Skip to content

File challenge reports against the backend instead of GitHub - #2917

Merged
CollinBeczak merged 2 commits into
mainfrom
challenge-reports-off-github
Sep 16, 2026
Merged

CollinBeczak merged 2 commits into
mainfrom
challenge-reports-off-github

Conversation

@CollinBeczak

Copy link
Copy Markdown
Collaborator

Reporting a challenge opened an issue in a public GitHub repository, using a GitHub write token that had to be shipped to the browser, and decided whether a challenge had been reported by searching that repo. The backend stores reports itself now, so none of that is needed: POST the report, and let the server record it, post the challenge comment that tells the owner, and hand it to an admin to triage.

Reports are readable by anyone, so the flag control no longer hides behind GitHub env vars. A challenge with an open report shows as reported to every reader, logged in or not, and clicking through lists the reports with their reporter, date, body and outcome.

Adds a Reports tab to super admin, since the triage that used to happen in the GitHub issue tracker now has nowhere else to go: filter by status, limit to challenges that are still active, and mark a report actioned or dismissed with an optional note.

Drops REACT_APP_GITHUB_ISSUES_API_TOKEN/_OWNER/_REPO, which no longer have a reader, and the translations of the modal subtitle that promise a GitHub issue will be created.

Requires the backend's challenge report endpoints.

Reporting a challenge opened an issue in a public GitHub repository,
using a GitHub write token that had to be shipped to the browser, and
decided whether a challenge had been reported by searching that repo.
The backend stores reports itself now, so none of that is needed: POST
the report, and let the server record it, post the challenge comment
that tells the owner, and hand it to an admin to triage.

Reports are readable by anyone, so the flag control no longer hides
behind GitHub env vars. A challenge with an open report shows as
reported to every reader, logged in or not, and clicking through lists
the reports with their reporter, date, body and outcome.

Adds a Reports tab to super admin, since the triage that used to happen
in the GitHub issue tracker now has nowhere else to go: filter by status,
limit to challenges that are still active, and mark a report actioned or
dismissed with an optional note.

Drops REACT_APP_GITHUB_ISSUES_API_TOKEN/_OWNER/_REPO, which no longer
have a reader, and the translations of the modal subtitle that promise a
GitHub issue will be created.

Requires the backend's challenge report endpoints.
@CollinBeczak
CollinBeczak merged commit a8b2262 into main Sep 16, 2026
6 checks passed
@CollinBeczak
CollinBeczak deleted the challenge-reports-off-github branch September 16, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant