aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2026-03-21feat(worker): block eval() in PHP code submissionsHEADmainnsfisis
Add validation to reject PHP code containing eval() before execution. Update the problem description to inform participants about this restriction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21feat(admin): add bulk restart page for all gamesnsfisis
終了したゲームを一括で multiplayer に変更し、main player を 全削除して再スタートするための管理画面を /admin/restart に追加。 観戦者参加時のカンニング防止が目的。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20fix(game): allow participants to view watch states after game finishesnsfisis
Previously GetWatchLatestStates returned ErrForbidden for participants regardless of game state. Now checks whether the game has finished and permits access once complete. Also fixes config test env var cleanup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20style(frontend): thicken tournament bracket connector linesnsfisis
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20fix(tournament): restrict BYE auto-win to round 0 onlynsfisis
In later rounds, a nil player means the opponent is TBD (e.g., waiting for a semifinal winner), not a BYE. Previously these were incorrectly marked as BYE wins. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20Merge pull request #13 from nsfisis/claude/limit-results-50-XphjVnsfisis
Limit submissions query to 50 results for performance
2026-03-20提出結果の取得を最新50件に制限Claude
プレイ画面の提出結果一覧が際限なく増えるのを防ぐため、 GetSubmissionsByGameIDAndUserID クエリに LIMIT 50 を追加。 https://claude.ai/code/session_015rm8yZD4va9hRH429u9N6q
2026-03-20style(frontend): improve tournament bracket visual presentationnsfisis
- Use brand-600 color for winner lines instead of pink-700 - Unify border width to 2px across all bracket lines - Fix vertical lines changing color midway by using child match winner color for leg segments - Add vertical stem above final round connector - Increase vertical line height (3x) for better visual spacing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20fix(frontend): fix quarter-final bracket horizontal lines overshooting leg ↵nsfisis
positions Replace grid-based horizontal line positioning with flex + fixed 25% width approach. The grid calculation broke at colSpan=2 because Math.floor(1/2)=0 couldn't express half-column offsets. Also remove seed number display from player cards. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20Merge pull request #12 from nsfisis/claude/fix-bracket-lines-UV13Hnsfisis
Fix tournament bracket connector positioning and span calculations
2026-03-19Fix tournament bracket horizontal lines extending beyond vertical leg positionsClaude
The horizontal connector lines were spanning the full width of each connector cell (columns 1 to colSpan), but they should only span between the centers of the left and right halves where the vertical legs are positioned. For example, with colSpan=8, the line was drawn across all 8 columns instead of only columns 3-6 (between the two vertical leg positions at columns 2.5 and 6.5). https://claude.ai/code/session_01JSWpL1UdZ2r6ppSmKJJXMb
2026-03-19Merge pull request #11 from nsfisis/claude/fix-bracket-lines-NNrCinsfisis
Enhance tournament bracket visualization with colored connectors
2026-03-19Fix tournament bracket connector linesClaude
The bracket connectors had two issues: 1. The center vertical line from each connector went to the wrong position, not aligning with child connectors below 2. No vertical lines connected round-0 connectors to player cards Redesign the Connector component to draw: - A center stem going UP (connecting to parent round) - A horizontal line (connecting left/right branches) - Two legs going DOWN at half-center positions (connecting to children) Also add vertical stem lines above each player card to bridge the gap between round-0 connector legs and the player boxes. https://claude.ai/code/session_01NKA6A2uWXJBRknZZcwMGCn
2026-03-19Merge pull request #10 from nsfisis/claude/fix-tournament-seeding-iyQOJnsfisis
Remove MatchCell component from TournamentPage
2026-03-19Remove MatchCell from tournament bracket, use connector line colors onlyClaude
MatchCell displayed player names redundantly alongside PlayerCards. Now tournament progression is shown only through connector line colors: pink for winner, gray for loser, black for undecided. https://claude.ai/code/session_01PoJoubE1hzxHhxMYFKzReb
2026-03-06style: switch from tab to space indentation in frontend and worker/phpnsfisis
Update biome.json indentStyle from "tab" to "space" and reformat all files in both workspaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06feat(frontend): remove standalone submissions pagensfisis
Submission history is now shown inline on the play screen, making the dedicated /golf/:gameId/submissions page redundant.
2026-03-05fix(frontend): hide code column in ranking table when code is not availablensfisis
2026-03-01feat(frontend): show submission history on play screennsfisis
Replace the placeholder submission status section with a full submission history table using the existing getGamePlaySubmissions API. Extract shared DataTable, DataTableCell, and formatUnixTimestamp from RankingTable into a reusable Gaming/DataTable component. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01fix(frontend): render line numbers before syntax highlighting to prevent ↵nsfisis
layout shift Show plaintext with Shiki-compatible line structure (.shiki > code > .line) from the start, so CSS line-number counters apply immediately. This prevents the popover from jittering when Shiki replaces the content. If Shiki fails, the plaintext with line numbers remains as a natural fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01fix(frontend): add right padding to code block to prevent copy button overlapnsfisis
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28fix(game): normalize CRLF to LF in stdin and code before executionnsfisis
DB stores stdin/code with CRLF intact, but workers expect LF. Add normalizeCRLF helper and apply it to code and stdin in EnqueueTestTasks. Refactor normalizeTestcaseResultOutput to reuse the same helper.
2026-02-28feat(admin): show play/watch links for non-public gamesnsfisis
Admin games list page already shows all games including non-public ones, but play/watch links were hidden behind an IsPublic check. Since this is an admin-only page, always show the links. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28feat(admin): allow admin users to view and submit code before game startsnsfisis
Admin users can now access the gaming UI (problem description, code editor, submit button) even when a game has not started yet. Regular users still see the waiting screen as before. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28Merge pull request #9 from nsfisis/claude/add-problem-view-navigation-lgGbbnsfisis
Add watch page link to golf problem preview
2026-02-28問題閲覧画面のリンクをゲーム開始前でも表示するClaude
started_at の条件分岐を削除し、対戦・観戦ページへのリンクを 常に表示するようにした。 https://claude.ai/code/session_019qZoTGJ1R2vnAzxZLiSEhx
2026-02-28問題閲覧画面に観戦ページへのリンクを追加Claude
対戦ページへのリンクと並べて観戦ページへのリンクを表示するようにした。 ゲーム開始後に両方のリンクが横並びで表示される。 https://claude.ai/code/session_019qZoTGJ1R2vnAzxZLiSEhx
2026-02-28chore(dev): remove temporary containersnsfisis
2026-02-28fix(worker/php): add missing filensfisis
2026-02-28feat(frontend): change brand color for PHPerKaigi 2026nsfisis
2026-02-27feat(worker): update PHP to 8.5.3nsfisis
2026-02-27feat(frontend): update icon, logo and textnsfisis
2026-02-27fix(docker): fix Go version of Dockerfile.toolsnsfisis
2026-02-27feat(deploy): re-enable update-submodule workflownsfisis
2026-02-24Merge pull request #8 from nsfisis/claude/find-missing-admin-features-mHZoDnsfisis
Display usernames in submission lists and details
2026-02-24Merge pull request #7 from nsfisis/claude/update-dev-docs-BDoCRnsfisis
Expand developer guide with comprehensive setup and architecture docs
2026-02-24fix(admin): show username in submissions and add testcase links to problems listClaude
Submissions list and detail pages now display the username alongside the user ID instead of showing only a numeric ID. The problems list page now includes a direct link to each problem's testcases for easier navigation. https://claude.ai/code/session_01JF5ZmGAQ4zNbhV5DM729Fw
2026-02-24docs: expand DEV.md with comprehensive developer guideClaude
The existing DEV.md was minimal, covering only a brief architecture list, dependencies, and basic setup steps. Rewrite it as a full developer guide covering architecture details, project structure, all just commands, code generation workflow, testing/linting, database management, CI pipeline, and environment variables. https://claude.ai/code/session_01UVdjU4rCYUnZNt6fFECwAe
2026-02-21refactor: rename stuttering exported types in game and tournament packagesnsfisis
Fix golangci-lint revive warnings by removing package name prefixes: - game.GameHubInterface → game.HubInterface - game.GameDetail → game.Detail - tournament.TournamentEntry → tournament.Entry - tournament.TournamentMatch → tournament.Match - tournament.TournamentBracket → tournament.Bracket - tournament.TournamentEditData → tournament.EditData Also fix gofmt alignment in api/convert.go and gosimple S1016 in game/service.go. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21refactor(admin): separate business logic into game and tournament servicesnsfisis
Move transaction handling, rejudge workflow, tournament bracket creation, and data repair logic from admin handler into game.Service and tournament.Service, mirroring the earlier api package separation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21refactor(api): separate business logic into game, tournament, session packagesnsfisis
Extract business logic from api/handler.go into dedicated service packages: - session: context helpers (resolves admin → api import dependency) - game: game state, code submission, ranking, watch logic - tournament: bracket construction and seed ordering - api/convert.go: domain → API type conversion functions api/handler.go is now a thin adapter that delegates to services and maps domain errors to HTTP status codes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21perf(game): compile whitespace regex once at package levelnsfisis
Move regexp.MustCompile out of CalcCodeSize to avoid recompiling on every call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21Merge pull request #6 from nsfisis/claude/allow-viewing-without-login-zODtVnsfisis
Allow unauthenticated users to view games and watch matches
2026-02-21fix: resolve gofmt formatting in handler_wrapper_gen.goClaude
https://claude.ai/code/session_019j9tNcnLsLz15e1qtbmeqe
2026-02-21fix: resolve biome formatting error in App.tsx tournament routeClaude
https://claude.ai/code/session_019j9tNcnLsLz15e1qtbmeqe
2026-02-20feat: allow viewing/spectating games without loginClaude
Make watch, ranking, game list, and tournament endpoints accessible without authentication. Unauthenticated users can browse games and spectate from the index page, while play/submit/preview still require login. https://claude.ai/code/session_019j9tNcnLsLz15e1qtbmeqe
2026-02-20feat(frontend): add problem preview page for pre-game viewingnsfisis
Allow participants to view problem descriptions and sample code before a game starts. Dashboard shows a preview link only for games that haven't started yet. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20feat: add user submission history pagensfisis
Allow users to view their own past submissions (code, size, status, timestamp) for each game. Adds API endpoint, backend handler, SQL query, and frontend page with expandable code display. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20style(backend): modernize Go syntax with range-over-int and type inferencensfisis
Use Go 1.22+ range-over-integer syntax, replace interface{} with any, and remove redundant type parameters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20feat(admin): integrate asynqmon web UI for task queue monitoringnsfisis
Mount asynqmon HTTP handler under admin/queue with existing session cookie and admin middleware authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>