Add instructor and administrator profile dashboard access - #23
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
On-demand reviews are free for the next 23 days. After that, they cost $0.25 per reviewed file. Or wait 32 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
| </p> | ||
| )} | ||
| </div> | ||
| ) : !hasLibraryMembership && staffAccount ? ( |
There was a problem hiding this comment.
🟠 High profile/page.tsx:352
Contributors and administrators with egghead_staff_special_access do not receive the EGGHEAD_BUILDER_URL dashboard link when that entitlement sets hasLibraryMembership to true; the !hasLibraryMembership && staffAccount branch is therefore skipped and the ordinary membership panel is rendered instead. Make the staff CTA take precedence over the membership CTA (or otherwise remove this gate) so the normal staff-access state can open the builder.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @apps/web/src/app/profile/page.tsx around line 352:
Contributors and administrators with `egghead_staff_special_access` do not receive the `EGGHEAD_BUILDER_URL` dashboard link when that entitlement sets `hasLibraryMembership` to `true`; the `!hasLibraryMembership && staffAccount` branch is therefore skipped and the ordinary membership panel is rendered instead. Make the staff CTA take precedence over the membership CTA (or otherwise remove this gate) so the normal staff-access state can open the builder.
Summary
Testing
Note
Add instructor and administrator profile dashboard access
staffAccountPresentationin account-role.ts to mapEggheadAccountRole('admin' | 'contributor' | 'user') to role-specific presentation data (heading, status, description, actionLabel), returning null for 'user'.EGGHEAD_BUILDER_URLconstant pointing tohttps://builder.egghead.io.📊 Macroscope summarized 2162975. 3 files reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues