Repository navigation
[851 by GPT-5.4] Implement supporter-only /promote vanity titles and show them in the header and leaderboard - #855
Conversation
…ity titles Implemented by Claude Code using gpt-5.4 model. Implementation completed successfully.
|
/ultrafix |
❌ Checks FailedLinting or Build errors were detected. View Logs |
|
✅ Applied the requested follow-up changes in commit fb32aba Summary of ChangesUpdated the two flagged frontend files only. In slashCommandExecutor.ts, I extracted the In profileSync.test.ts, I factored the repeated economy and pending-reward setup into shared helpers. The file is now 324 lines, below the I could not run the repo lint script to completion in this worktree because the frontend 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
|
Updated the two flagged frontend files only. In [slashCommandExecutor.ts](/tmp/git-processor/worktrees/integry/claude-cope/pr-855-followup-2026-05-18T13-49-24/apps/frontend/src/components/slashCommandExecutor.ts:1077), I extracted the `/take` branch into `handleTakeExtendedCommand()`. That should drop `handleExtendedCommand` back under the complexity limit without changing behavior. In [profileSync.test.ts](/tmp/git-processor/worktrees/integry/claude-cope/pr-855-followup-2026-05-18T13-49-24/apps/frontend/src/hooks/__tests__/profileSync.test.ts:12), I factored the repeated economy and pending-reward setup into shared helpers. The file is now 324 lines, below the `max-lines` threshold. I could not run the repo lint script to completion in this worktree because the frontend `eslint` binary is not installed here (`npm run lint --workspace @claude-cope/frontend` fails with `eslint: not found`). PR: #855 Comment by: @github-actions[bot] (ID: 4478343167) Model: gpt-5.4
AI Implementation Summary
Closes #851
Branch:
851/gpt-5.4-implement-supporter-only--20260518-1340-9wdCommits: ✅ Changes committed (7d4e8dd)
AI Processing Completed
Execution Details:
/promotevanity titles and show them in the header and leaderboard #851Summary:
Implemented supporter vanity titles end to end.
Added a persistent
display_rankfield through the shared profile contract and DB migrations, exposed a new backendPOST /api/account/update-display-rankroute gated byis_executive_supporter = 1, and updated/api/leaderboardto preferdisplay_rankovercorporate_rankwithout touching organic rank progression. The shared title registry and exact HR rejection copy are now centralized.On the frontend,
/promoteis in the canonical slash-command registry, autocomplete, analytics parsing, and inline command detection. It mirrors/model:/promoteshows the title catalog,/promoteopens vanity-title choices, non-supporters get the exact HR error, and supporter selections persist through the new account API helper. Local game state now storesdisplayRank, the header showsdisplayRank ?? currentRank, and the leaderboard UI renders the promoted title.Verification:
apps/backendtypecheck passed,apps/frontendtypecheck passed, backend focused Vitest suites passed (account,leaderboard,app), and frontend focused Vitest suites passed for slash-command registry/menu/detection/execution, profile sync, and analytics command parsing.Detailed Logs:
019e3b51-3e92-7af3-b3f1-4d004d2f0b6cLog files stored at:
/tmp/claude-logs/issue-851-2026-05-18T13-48-20-705Z-conversation.json/tmp/claude-logs/issue-851-2026-05-18T13-48-20-705Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #851.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!