mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-29 08:14:57 +00:00
- Created package.json for ui_pages with dependencies and exports. - Added roles.json for access permissions related to UI pages. - Implemented functions.json for managing UI pages and routing. - Developed stories.json for Storybook showcasing UI pages components. - Defined styles tokens for UI pages including colors, spacing, and typography. feat(ui_permissions): Introduce UI Permissions package for access control - Created package.json for ui_permissions with permission utilities. - Added roles.json defining permissions for a 6-level access control system. - Implemented functions.json for permission checking and level management. - Developed stories.json for Storybook showcasing permission-related components. - Defined styles tokens for UI permissions including colors and spacing.
112 lines
2.5 KiB
JSON
112 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-storybook.schema.json",
|
|
"featured": false,
|
|
"title": "Header Components",
|
|
"description": "Application and landing page header navigation components",
|
|
"stories": [
|
|
{
|
|
"name": "AppHeader",
|
|
"render": "header",
|
|
"description": "Main application header with navigation and user menu",
|
|
"args": {
|
|
"user": {
|
|
"id": "demo-user",
|
|
"username": "demo_user",
|
|
"avatarUrl": "/avatars/demo.png"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "AppHeaderLoggedOut",
|
|
"render": "header",
|
|
"description": "Application header for logged out users",
|
|
"args": {
|
|
"user": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LandingNav",
|
|
"render": "landing",
|
|
"description": "Landing page navigation with brand and CTA buttons",
|
|
"args": {
|
|
"menuOpen": false
|
|
}
|
|
},
|
|
{
|
|
"name": "LandingNavMobileOpen",
|
|
"render": "landing",
|
|
"description": "Landing navigation with mobile menu expanded",
|
|
"args": {
|
|
"menuOpen": true
|
|
}
|
|
}
|
|
],
|
|
"renders": {
|
|
"header": {
|
|
"description": "Main application header component",
|
|
"featured": true
|
|
},
|
|
"landing": {
|
|
"description": "Landing page navigation component"
|
|
}
|
|
},
|
|
"defaultContext": {
|
|
"user": {
|
|
"id": "demo-user",
|
|
"username": "demo_user",
|
|
"level": 2,
|
|
"email": "demo@example.com",
|
|
"avatarUrl": "/avatars/demo.png"
|
|
},
|
|
"tenant": {
|
|
"id": "demo-tenant",
|
|
"name": "Demo Organization"
|
|
}
|
|
},
|
|
"contextVariants": [
|
|
{
|
|
"name": "Guest",
|
|
"description": "Not logged in",
|
|
"context": {
|
|
"user": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Standard User",
|
|
"description": "Logged in user level 2",
|
|
"context": {
|
|
"user": {
|
|
"username": "user",
|
|
"level": 2,
|
|
"avatarUrl": "/avatars/user.png"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Admin",
|
|
"description": "Admin user level 3",
|
|
"context": {
|
|
"user": {
|
|
"username": "admin",
|
|
"level": 3,
|
|
"avatarUrl": "/avatars/admin.png"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"scripts": {
|
|
"renderFunctions": ["header", "landing", "render"],
|
|
"ignoredScripts": ["init", "tests"]
|
|
},
|
|
"parameters": {
|
|
"layout": "fullscreen",
|
|
"backgrounds": {
|
|
"default": "light",
|
|
"values": [
|
|
{ "name": "light", "value": "#ffffff" },
|
|
{ "name": "dark", "value": "#1a1a1a" }
|
|
]
|
|
}
|
|
}
|
|
}
|