-
Notifications
You must be signed in to change notification settings - Fork 1
Merge dev into main #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bda5eb3
add slider for range selection
tunikakeks f2b0c0c
imrpove ui/ux in general
tunikakeks 7297e88
Add row selection, fix positioning of backend selection buttons, add …
PleaseInsertNameHere d1fb98f
add .next/ to gitignore
PleaseInsertNameHere 4b9b376
merge conflicts
tunikakeks 21d4749
small prediction change
tunikakeks 373d834
add loading skeleton
tunikakeks 723cd68
Changes
tunikakeks 6d4edb7
fix preferences
tunikakeks 8a25249
Improve prediction chart zoom and styling
tunikakeks 5571961
change prediction ch
tunikakeks 3d144a9
Address PR feedback on stats and UI
tunikakeks 74ce68c
change prediction chart to be more smooth
tunikakeks 13bcee6
fix y axis problems
tunikakeks c8d40c4
fix chart coloring
tunikakeks 7e9ee77
comment fixes
tunikakeks f41ef23
Add experimental Android snapshot workflow
tunikakeks b4ec1dd
Limit snapshot workflow triggers and use Java 21
tunikakeks 2e61f0d
add cursor gradient, prevent right click and selection
PleaseInsertNameHere ae60238
Merge branch 'dev' of https://github.com/RedstoneCloud/RedTrack into dev
PleaseInsertNameHere 0a71e0e
make cursor gradient smaller and faster
PleaseInsertNameHere c4dbfc7
Add nightly dev Android snapshot release
tunikakeks 911bb8a
Merge branch 'dev' of https://github.com/RedstoneCloud/RedTrack into dev
PleaseInsertNameHere 9ba35cb
Split dev nightly Android snapshot workflow
tunikakeks b545be0
Run dev snapshot workflow on dev pushes only
tunikakeks a7b6f5b
Update backend/src/jobs/PingServerJob.ts
tunikakeks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(pnpm add:*)", | ||
| "Bash(node -e:*)", | ||
| "Bash(npx tsc:*)", | ||
| "Bash(pnpm run build:*)", | ||
| "Bash(pnpm exec tsc:*)", | ||
| "Bash(git add:*)", | ||
| "Bash(git commit -m \"$\\(cat <<''EOF''\nAdd interactive first-time setup wizard for backend\n\nAdds an interactive CLI setup that runs automatically when no .env file\nexists, guiding through MongoDB URI, port, ping interval, HTTPS, and\nadmin account creation with input validation, colored output, and\npassword masking. Supports --skip-setup flag for CI/Docker environments.\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>\nEOF\n\\)\")", | ||
| "Bash(npx next build:*)", | ||
| "Bash(git commit -m \"$\\(cat <<''EOF''\nRedesign chart: smooth lines, move legend to table, fix Now button zoom reset\n\n- Add tension \\(0.3\\) to chart lines for smoother curves\n- Remove built-in Chart.js legend, replace with clickable color dots\n in the server table''s new \"Chart\" column to toggle server visibility\n- Sort table rows by player count descending\n- Fix \"Now\" button to also reset chart zoom via forwardRef/useImperativeHandle\n- Remove redundant \"Reset to live\" button\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>\nEOF\n\\)\")" | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| name: Android Snapshot (dev) | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["dev"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: app | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: dev | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10 | ||
| run_install: false | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: "temurin" | ||
| java-version: "21" | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build web assets | ||
| run: pnpm build | ||
|
|
||
| - name: Sync Android | ||
| run: pnpm sync:android | ||
|
|
||
| - name: Build APK | ||
| run: | | ||
| chmod +x android/gradlew | ||
| cd android | ||
| ./gradlew assembleDebug | ||
|
|
||
| - name: Upload APK artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: android-apk | ||
| path: app/android/app/build/outputs/apk/debug/app-debug.apk | ||
|
|
||
| release: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| ref: dev | ||
|
|
||
| - name: Download APK artifact | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: android-apk | ||
|
|
||
| - name: Update latest snapshot tag | ||
| run: | | ||
| git tag -f latest-snapshot-dev "${GITHUB_SHA}" | ||
| git push -f origin latest-snapshot-dev | ||
|
|
||
| - name: Prepare release | ||
| id: release | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const tag = "latest-snapshot-dev"; | ||
| const notes = `Snapshot build from ${context.sha.substring(0, 7)} (${new Date().toISOString().slice(0, 10)})`; | ||
| let release; | ||
| try { | ||
| release = await github.rest.repos.getReleaseByTag({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| tag | ||
| }); | ||
| } catch (error) { | ||
| if (error.status !== 404) throw error; | ||
| } | ||
|
|
||
| if (!release) { | ||
| release = await github.rest.repos.createRelease({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| tag_name: tag, | ||
| name: "Latest Snapshot (dev)", | ||
| body: notes, | ||
| prerelease: true | ||
| }); | ||
| } else { | ||
| const assets = await github.paginate(github.rest.repos.listReleaseAssets, { | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| release_id: release.data.id | ||
| }); | ||
| for (const asset of assets) { | ||
| await github.rest.repos.deleteReleaseAsset({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| asset_id: asset.id | ||
| }); | ||
| } | ||
| await github.rest.repos.updateRelease({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| release_id: release.data.id, | ||
| name: "Latest Snapshot (dev)", | ||
| body: notes, | ||
| prerelease: true | ||
| }); | ||
| } | ||
|
|
||
| core.setOutput("upload_url", release.data.upload_url); | ||
|
|
||
| - name: Upload release asset | ||
| uses: actions/upload-release-asset@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| upload_url: ${{ steps.release.outputs.upload_url }} | ||
| asset_path: app-debug.apk | ||
| asset_name: app-debug.apk | ||
| asset_content_type: application/vnd.android.package-archive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| name: Android Snapshot | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: app | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10 | ||
| run_install: false | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: "temurin" | ||
| java-version: "21" | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build web assets | ||
| run: pnpm build | ||
|
|
||
| - name: Sync Android | ||
| run: pnpm sync:android | ||
|
|
||
| - name: Build APK | ||
| run: | | ||
| chmod +x android/gradlew | ||
| cd android | ||
| ./gradlew assembleDebug | ||
|
|
||
| - name: Upload APK artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: android-apk | ||
| path: app/android/app/build/outputs/apk/debug/app-debug.apk | ||
|
|
||
| release: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
tunikakeks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Download APK artifact | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: android-apk | ||
|
|
||
| - name: Update latest snapshot tag | ||
| run: | | ||
| git tag -f latest-snapshot "${GITHUB_SHA}" | ||
| git push -f origin latest-snapshot | ||
|
|
||
| - name: Prepare release | ||
| id: release | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const tag = "latest-snapshot"; | ||
| const notes = `Snapshot build from ${context.sha.substring(0, 7)} (${new Date().toISOString().slice(0, 10)})`; | ||
| let release; | ||
| try { | ||
| release = await github.rest.repos.getReleaseByTag({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| tag | ||
| }); | ||
| } catch (error) { | ||
| if (error.status !== 404) throw error; | ||
| } | ||
|
|
||
| if (!release) { | ||
| release = await github.rest.repos.createRelease({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| tag_name: tag, | ||
| name: "Latest Snapshot", | ||
| body: notes, | ||
| prerelease: true | ||
| }); | ||
| } else { | ||
| const assets = await github.paginate(github.rest.repos.listReleaseAssets, { | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| release_id: release.data.id | ||
| }); | ||
| for (const asset of assets) { | ||
| await github.rest.repos.deleteReleaseAsset({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| asset_id: asset.id | ||
| }); | ||
| } | ||
| await github.rest.repos.updateRelease({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| release_id: release.data.id, | ||
| name: "Latest Snapshot", | ||
| body: notes, | ||
| prerelease: true | ||
| }); | ||
| } | ||
|
|
||
| core.setOutput("upload_url", release.data.upload_url); | ||
|
|
||
| - name: Upload release asset | ||
| uses: actions/upload-release-asset@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| upload_url: ${{ steps.release.outputs.upload_url }} | ||
| asset_path: app-debug.apk | ||
| asset_name: app-debug.apk | ||
tunikakeks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| asset_content_type: application/vnd.android.package-archive | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .next/ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.