Skip to content

[851 by GPT-5.4] Implement supporter-only /promote vanity titles and show them in the header and leaderboard - #855

Merged
propr-dev[bot] merged 2 commits into
849-epic-to-execute-4x3from
851/gpt-5.4-implement-supporter-only--20260518-1340-9wd
May 18, 2026
Merged

propr-dev[bot] merged 2 commits into
849-epic-to-execute-4x3from
851/gpt-5.4-implement-supporter-only--20260518-1340-9wd

Conversation

@propr-dev

@propr-dev propr-dev Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #851

Branch: 851/gpt-5.4-implement-supporter-only--20260518-1340-9wd
Commits: ✅ Changes committed (7d4e8dd)


AI Processing Completed

Execution Details:

Summary:
Implemented supporter vanity titles end to end.

Added a persistent display_rank field through the shared profile contract and DB migrations, exposed a new backend POST /api/account/update-display-rank route gated by is_executive_supporter = 1, and updated /api/leaderboard to prefer display_rank over corporate_rank without touching organic rank progression. The shared title registry and exact HR rejection copy are now centralized.

On the frontend, /promote is in the canonical slash-command registry, autocomplete, analytics parsing, and inline command detection. It mirrors /model: /promote shows the title catalog, /promote opens vanity-title choices, non-supporters get the exact HR error, and supporter selections persist through the new account API helper. Local game state now stores displayRank, the header shows displayRank ?? currentRank, and the leaderboard UI renders the promoted title.

Verification: apps/backend typecheck passed, apps/frontend typecheck 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:

  • Conversation: 178 messages
  • Session: 019e3b51-3e92-7af3-b3f1-4d004d2f0b6c

Log files stored at:

  • conversation: /tmp/claude-logs/issue-851-2026-05-18T13-48-20-705Z-conversation.json
  • output: /tmp/claude-logs/issue-851-2026-05-18T13-48-20-705Z-output.txt
Latest 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!

…ity titles

Implemented by Claude Code using gpt-5.4 model.

Implementation completed successfully.
@propr-dev

propr-dev Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix
Triggered automatically by Planner execution settings.

@github-actions

Copy link
Copy Markdown

❌ Checks Failed

Linting or Build errors were detected.

View Logs
Starting validation process...

--- Frontend: Lint, Typecheck & Build ---
❌ Frontend Lint FAILED

> @claude-cope/[email protected] lint
> eslint . --max-warnings 0


/root/actions-runner-claude-cope/_work/claude-cope/claude-cope/apps/frontend/src/components/slashCommandExecutor.ts
  1077:1  warning  Function 'handleExtendedCommand' has a complexity of 21. Maximum allowed is 20  complexity

/root/actions-runner-claude-cope/_work/claude-cope/claude-cope/apps/frontend/src/hooks/__tests__/profileSync.test.ts
  455:1  warning  File has too many lines (404). Maximum allowed is 400  max-lines

✖ 2 problems (0 errors, 2 warnings)

ESLint found too many warnings (maximum: 0).
npm error Lifecycle script `lint` failed with error:
npm error code 1
npm error path /root/actions-runner-claude-cope/_work/claude-cope/claude-cope/apps/frontend
npm error workspace @claude-cope/[email protected]
npm error location /root/actions-runner-claude-cope/_work/claude-cope/claude-cope/apps/frontend
npm error command failed
npm error command sh -c eslint . --max-warnings 0

--- Backend: Lint, Typecheck & Build ---
✅ Backend Lint passed
✅ Backend Typecheck passed
✅ Backend Build passed

View Workflow

@propr-dev

propr-dev Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit fb32aba

Summary of Changes

Updated the two flagged frontend files only.

In slashCommandExecutor.ts, I extracted the /take branch into handleTakeExtendedCommand(). That should drop handleExtendedCommand back under the complexity limit without changing behavior.

In profileSync.test.ts, 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).


🤖 Implementation Details

  • Model: GPT-5.4
  • Requested By: @github-actions[bot]
  • Time: 2m 28s
  • Tokens: 448,203 (441,838 in / 6,365 out)
  • Cost: $1.20

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10
_Processing comment ID: 4478343167✓_

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
@propr-dev
propr-dev Bot merged commit 259fe3c into 849-epic-to-execute-4x3 May 18, 2026
1 check passed
@propr-dev
propr-dev Bot deleted the 851/gpt-5.4-implement-supporter-only--20260518-1340-9wd branch May 18, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant