Frontendx
Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Plugins
Installed
react@^19.2.0
react-dom@^19.2.0
Editor
Permission Based UI
Description
Build a permission-aware control panel. Select an admin, editor, or viewer role. Use a permission map for create, edit, delete, and publish actions, then render or disable each action button from the active role. Show the active role and granted permissions.
Example 1:
Select viewer => action controls and the permissions list update.
Constraints
- Include all roles and actions.
- Switching roles updates controls and the permissions list.
- Expose the permissions list through a labeled region.
Key a permissions object by role.
Preview
Terminal
Test Results
Permission Based UI
Render UI controls conditionally from a role and permission map.