gamut
gamut copied to clipboard
docs(styleguide): auto-collapse Figma embed for known non-Codecademy-admin user
Overview
Auto-collapses the Figma embed in Storybook docs pages if the Codecademy user is loaded and not an admin.
Context: I'd like to show off Gamut to people in my talks about design systems. But the giant Figma embeds are getting in the way for non-employees like me. I chatted with @dreamwasp who chatted with the team about the strategy in this PR: auto-collapsing them by default if we know the user isn't a Codecademy admin.
I'm getting Uncaught Error: Cannot find module '@codecademy/variance'
locally (and yes, I did yarn build
from the root). So I haven't tried it out locally.
PR Checklist
I can't do any of these things :c
- [ ] Related to designs:
- [ ] Related to JIRA ticket: [ABC-123]
- [ ] I have run this code to verify it works
- [ ] This PR includes unit tests for the code change
- [ ] This PR includes testing instructions tests for the code change
- [ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories
Testing Instructions
PR Links and Envs
i don't know what all this is :c sorry
Repository | PR Link | PR Env |
---|---|---|
Monolith | Monolith PR | Monolith Env |
Portal | Portal Link | Portal Env |
Another Repo | Another Link | Another Env |