Skip to content

Fix: Dashboard tab rendering for contributor and creator roles#376

Merged
dotunv merged 2 commits into
Savitura:mainfrom
IyanuOluwaJesuloba:fix/dashboard-visible-tabs
Jun 28, 2026
Merged

Fix: Dashboard tab rendering for contributor and creator roles#376
dotunv merged 2 commits into
Savitura:mainfrom
IyanuOluwaJesuloba:fix/dashboard-visible-tabs

Conversation

@IyanuOluwaJesuloba

Copy link
Copy Markdown
Contributor

Summary

Closes #281
Replaced duplicate tabs.map() usage with a single visibleTabs.map() in Dashboard.jsx
Ensures contributors only see allowed tabs and creators still see Analytics/Referrals
Prevents runtime crashes caused by rendering unauthorized tabs
Added regression coverage in Dashboard.test.jsx to verify role-based tab visibility

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@IyanuOluwaJesuloba Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@dotunv dotunv merged commit ca11a0f into Savitura:main Jun 28, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Dashboard crashes — duplicate .map() on tabs renders all tabs regardless of user role

2 participants