-
Notifications
You must be signed in to change notification settings - Fork 0
Sprint 2 — UX fixes, staging env, admin tools, player sync improvements #177
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6dfab5b
fix: sprint testing issue — add synchronize trigger + dedup check
saggacce 66a5d7e
feat: reopen testing issue if closed with unchecked boxes
saggacce 5ba18c9
Merge branch 'main' into develop
saggacce 2b19f94
chore: remove future_features_roadmap.md — replaced by GitHub Issues
saggacce 3453b4b
feat: admin password reset — button + modal + endpoint
saggacce f0a47c6
feat: staging environment — nginx :8080 + production build in WSL
saggacce 0e85860
feat: staging uses git worktree from develop branch
saggacce c7376ce
fix: Refresh button visible for all users + player sync uses stored c…
saggacce 7d3bcbb
fix: auto-sync player profile on load when generalStats is empty
saggacce 5a19e57
feat: Refresh syncs player profile + recent matches + event stream
saggacce bedf262
fix: sprint-testing workflow needs pull-requests: write to comment on PR
saggacce 62a4417
fix: testing issue specifies staging (localhost:8080) not production
saggacce f3030ac
fix: auto-sync on profile load — remove internalAuthenticated gate + …
saggacce f51704f
fix: calculate generalStats from MatchPlayer records when snapshot is…
saggacce d10e575
fix: compute generalStats before return — avoid IIFE closure issue
saggacce 97a7782
fix: generalStats fallback from MatchPlayer + clear tsx cache on stag…
saggacce 6719498
docs: add debugging_lessons.md — bugs that took 3+ iterations to solve
saggacce 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
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,55 @@ | ||
| name: Enforce Testing Checklist | ||
|
|
||
| on: | ||
| issues: | ||
| types: [closed] | ||
|
|
||
| jobs: | ||
| check-all-boxes: | ||
| name: Verify all checkboxes are checked | ||
| runs-on: ubuntu-latest | ||
| # Only for testing issues | ||
| if: contains(github.event.issue.labels.*.name, 'testing') | ||
| permissions: | ||
| issues: write | ||
| steps: | ||
| - name: Check all boxes and reopen if incomplete | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const issue = context.payload.issue; | ||
| const body = issue.body || ''; | ||
|
|
||
| // Count total and checked boxes | ||
| const total = (body.match(/- \[[ x]\]/g) || []).length; | ||
| const checked = (body.match(/- \[x\]/g) || []).length; | ||
| const pending = total - checked; | ||
|
|
||
| if (pending > 0) { | ||
| // Reopen the issue | ||
| await github.rest.issues.update({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: issue.number, | ||
| state: 'open', | ||
| }); | ||
|
|
||
| // Comment explaining why | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: issue.number, | ||
| body: [ | ||
| `## ❌ No se puede cerrar — checklist incompleto`, | ||
| ``, | ||
| `Hay **${pending} de ${total}** items sin marcar.`, | ||
| ``, | ||
| `Completa todas las pruebas antes de cerrar este issue.`, | ||
| `El deploy a producción no debe aprobarse hasta que todo esté validado.`, | ||
| ].join('\n'), | ||
| }); | ||
|
|
||
| console.log(`Reopened issue #${issue.number} — ${pending}/${total} checks pending`); | ||
| } else { | ||
| console.log(`All ${total} checks completed — issue can be closed`); | ||
| } |
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
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
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because
/players/syncis still registered withoutrequireAuth, this fallback lets any unauthenticated caller exchange the storedpredgg_refresh_tokenand run player + recent-match syncs against the database. The rest of the app mountsplayersRouterdirectly (apps/api/src/index.ts) with no global auth, so a public POST can now consume the platform credential/quota and write arbitrary synced players; gate this fallback/route behind internal auth or admin authorization before reading the stored credential.Useful? React with 👍 / 👎.