Replace mock maintainer flag with user role check - #286
Conversation
|
@YashMahawa is attempting to deploy a commit to the Threadflow Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThe bounty sidebar now derives maintainer access from ChangesMaintainer role gating
Jest globals dependency
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseding my earlier validation note after tightening the PR scope: I removed the out-of-scope package/lockfile dependency change, so the diff is now only Current local validation on the updated branch:
|
33208b3 to
1b7c9bd
Compare
Summary
NEXT_PUBLIC_MOCK_MAINTAINERgate inBountySidebarwith the existinguseUserRole()hooksponsorCloses #274
Validation
pnpm install --frozen-lockfilewith pnpm 10.25.0pnpm lint(passes with one existing warning inlib/server-graphql.ts)pnpm buildNotes
components/bounty/bounty-sidebar.tsx.pnpm exec tsc --noEmitstill hits the repo's pre-existing missing@jest/globalstest dependency incomponents/reputation/__tests__/my-claims.test.ts, so this PR leaves that unrelated dependency cleanup out of scope.