@uibot/mcp-server 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/content.d.ts +5 -1
- package/dist/discovery.d.ts +5 -3
- package/dist/http.d.ts +4 -1
- package/dist/http.js +152 -117
- package/dist/resources/bundle.json +1 -1
- package/dist/resources/templates/shadcn-admin.yaml +1491 -334
- package/dist/server.d.ts +5 -1
- package/dist/server.js +152 -117
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/admin-apps.json +61 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/admin-chats.json +54 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-settings-account.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-settings-appearance.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-settings-display.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-settings-notifications.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-settings-profile.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/admin-settings.json +65 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-shell.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/admin-tasks.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/admin-users.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/agent-run-console.json +64 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/auth-minimal.json +59 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/billing-overview.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/billing-usage-ledger.json +66 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-workspace.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/collection-kanban.json +134 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/collection-shared.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/commerce-workspace.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/console-billing.json +68 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/console-page.json +13 -13
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/console-shell.json +29 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/creation-shared.json +2 -2
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/crm-workspace.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/dashboard-01.json +78 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/data-crud-gallery.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/data-crud-kanban.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/data-crud-master-detail.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/data-crud-table.json +66 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/document-workspace.json +1 -1
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/education-workspace.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/launch-site.json +72 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/layout.json +806 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/onboarding-checklist.json +63 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/onboarding-wizard.json +66 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/prompt-eval-workbench.json +65 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/record-master-detail.json +132 -0
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/r/shadcn-admin.json +77 -0
- package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/workspace.json +1 -1
- package/dist/snapshots/d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773/snapshot.json +1 -0
- package/dist/spec-ops.d.ts +31 -0
- package/package.json +12 -10
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-apps.json +0 -61
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-chats.json +0 -54
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings.json +0 -65
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-tasks.json +0 -66
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-users.json +0 -66
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-billing.json +0 -68
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-shell.json +0 -29
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard-01.json +0 -78
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/layout.json +0 -790
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin.json +0 -77
- package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/snapshot.json +0 -1
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/licenses/UIBot-LICENSE +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/licenses/blocks-icons-LICENSE +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/licenses/shadcn-THIRD_PARTY_LICENSE +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-dashboard.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-error-401.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-error-403.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-error-404.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-error-500.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-error-503.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-forgot-password.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-help.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-otp.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-overview.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-sign-in-2.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-sign-in.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/admin-sign-up.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/ai-chat.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/analytics-dashboard.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-floating.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-icon-rail.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-inset.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-settings.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-sidebar.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/app-shell-workspace.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth-centered.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth-enterprise.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth-recovery.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth-registration.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth-split.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/auth.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/blog.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/charts.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-artifact.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-focused.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-history.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-knowledge.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/chat-support.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/content.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/crm.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/dashboard.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/data-studio.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/data-table.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/data.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/document-assistant.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/document-library.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/document-reading.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/document-writing.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/drilldown-menu.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/ecommerce.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/feedback.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/field.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/form.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/grid.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/interactive.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/item-grid.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/kanban.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/lms.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/marketing.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/nav.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/portfolio.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/presentation.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/pricing.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/primitives.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/saas-landing.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sections.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/settings.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/shadcn-admin-shell.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-01.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-02.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-03.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-04.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-05.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-06.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-07.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-08.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-09.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-10.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-11.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-12.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-13.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-14.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-15.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-16.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-drilldown.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/sidebar-primitives.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/store.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/support-inbox.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/team-directory.json +0 -0
- /package/dist/snapshots/{4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f → d7bd93f1056f9b65c17b3146d456b92f6acffa6afe32bc53ee20bcca4a946773}/r/uibot-base.json +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "admin-settings",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Profile, account, appearance, notifications and display settings.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/field",
|
|
9
|
+
"@uibot/form",
|
|
10
|
+
"@uibot/layout",
|
|
11
|
+
"@uibot/nav"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "lib/uibot/templates/admin-settings.uibot.yaml",
|
|
16
|
+
"target": "lib/uibot/templates/admin-settings.uibot.yaml",
|
|
17
|
+
"content": "version: \"2.0\"\npages:\n - id: settings-profile\n path: /settings/profile\n title: Settings · Profile\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/profile\n saving: false\n uiError: null\n saved: false\n form:\n username: shadcn\n email: m@example.com\n bio: I own a computer.\n urls:\n - https://shadcn.com\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3\n [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\n direction: row\n wrap: true\n gap: md\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n text: This is how others will see you on the site.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Profile settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n description: This is your public display name.\n required: true\n value:\n _bindState: form.username\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n value:\n _bindState: form.email\n - type: Field\n props:\n name: bio\n label: Bio\n kind: textarea\n description: Describe your role and what you work on.\n value:\n _bindState: form.bio\n - type: Field\n props:\n name: urls\n label: URLs\n kind: urls\n description: Add links to your website, blog, or social media profiles.\n value:\n _bindState: form.urls\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update profile\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: profile\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: profile\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Profile\n href: /settings/profile\n appearance: admin\n routes:\n - label: Settings · Profile\n href: /settings/profile\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - id: settings-account\n path: /settings/account\n title: Settings · Account\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/account\n saving: false\n uiError: null\n saved: false\n form:\n name: shadcn\n birthday: \"\"\n language: English\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Account\n - type: Paragraph\n props:\n text: Update your account settings. Set your preferred language and timezone.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Account settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: name\n label: Name\n description: This is the name that will be displayed on your profile.\n required: true\n value:\n _bindState: form.name\n - type: Field\n props:\n name: birthday\n label: Date of birth\n kind: date\n description: Your date of birth is used to calculate your age.\n value:\n _bindState: form.birthday\n - type: Field\n props:\n name: language\n label: Language\n kind: combobox\n options:\n - value: English\n label: English\n - value: Chinese\n label: Chinese\n - value: French\n label: French\n - value: German\n label: German\n - value: Japanese\n label: Japanese\n value:\n _bindState: form.language\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update account\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: account\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: account\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Account\n href: /settings/account\n appearance: admin\n routes:\n - label: Settings · Account\n href: /settings/account\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - id: settings-appearance\n path: /settings/appearance\n title: Settings · Appearance\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/appearance\n saving: false\n uiError: null\n saved: false\n form:\n font: Inter\n theme: light\n direction: ltr\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Appearance\n - type: Paragraph\n props:\n text: Customize the appearance of the app. Automatically switch between day and\n night themes.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Appearance settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: font\n label: Font\n kind: select\n options:\n - value: Inter\n label: Inter\n - value: System\n label: System\n - value: Manrope\n label: Manrope\n value:\n _bindState: form.font\n - type: Field\n props:\n name: theme\n label: Theme\n kind: radio\n options:\n - value: light\n label: Light\n - value: dark\n label: Dark\n - value: system\n label: System\n value:\n _bindState: form.theme\n - type: Field\n props:\n name: direction\n label: Direction\n kind: select\n options:\n - value: ltr\n label: Ltr\n - value: rtl\n label: Rtl\n value:\n _bindState: form.direction\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update appearance\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: appearance\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: appearance\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n - action: SetState\n params:\n path: theme\n value:\n _state: form.theme\n - action: SetState\n params:\n path: direction\n value:\n _state: form.direction\n - action: SetState\n params:\n path: font\n value:\n _state: form.font\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Appearance\n href: /settings/appearance\n appearance: admin\n routes:\n - label: Settings · Appearance\n href: /settings/appearance\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - id: settings-notifications\n path: /settings/notifications\n title: Settings · Notifications\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/notifications\n saving: false\n uiError: null\n saved: false\n form:\n notify: all\n communication: false\n marketing: false\n social: true\n security: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Notifications\n - type: Paragraph\n props:\n text: Configure how you receive notifications.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Notifications settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: notify\n label: Notify me about...\n kind: radio\n options:\n - label: All new messages\n value: all\n - label: Direct messages and mentions\n value: mentions\n - label: Nothing\n value: none\n value:\n _bindState: form.notify\n - type: Field\n props:\n name: communication\n kind: switch\n label: Communication emails\n description: Receive emails about your account activity.\n value:\n _bindState: form.communication\n - type: Field\n props:\n name: marketing\n kind: switch\n label: Marketing emails\n description: Receive emails about new products and features.\n value:\n _bindState: form.marketing\n - type: Field\n props:\n name: social\n kind: switch\n label: Social emails\n description: Receive emails for friend requests and follows.\n value:\n _bindState: form.social\n - type: Field\n props:\n name: security\n kind: switch\n label: Security emails\n description: Receive emails about your account security.\n value:\n _bindState: form.security\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update notifications\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: notifications\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: notifications\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Notifications\n href: /settings/notifications\n appearance: admin\n routes:\n - label: Settings · Notifications\n href: /settings/notifications\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - id: settings-display\n path: /settings/display\n title: Settings · Display\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/display\n saving: false\n uiError: null\n saved: false\n form:\n recents: true\n home: true\n applications: true\n desktop: true\n downloads: true\n documents: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Display\n - type: Paragraph\n props:\n text: Turn items on or off to control what’s displayed in the app.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Display settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Paragraph\n props:\n text: Select the items you want to display in the sidebar.\n muted: true\n - type: Field\n props:\n name: recents\n label: Recents\n kind: checkbox\n value:\n _bindState: form.recents\n - type: Field\n props:\n name: home\n label: Home\n kind: checkbox\n value:\n _bindState: form.home\n - type: Field\n props:\n name: applications\n label: Applications\n kind: checkbox\n value:\n _bindState: form.applications\n - type: Field\n props:\n name: desktop\n label: Desktop\n kind: checkbox\n value:\n _bindState: form.desktop\n - type: Field\n props:\n name: downloads\n label: Downloads\n kind: checkbox\n value:\n _bindState: form.downloads\n - type: Field\n props:\n name: documents\n label: Documents\n kind: checkbox\n value:\n _bindState: form.documents\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update display\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: display\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: display\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Display\n href: /settings/display\n appearance: admin\n routes:\n - label: Settings · Display\n href: /settings/display\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
|
+
"type": "registry:lib"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "lib/uibot/templates/admin-settings.uibot.json",
|
|
22
|
+
"target": "lib/uibot/templates/admin-settings.uibot.json",
|
|
23
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"admin-settings\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"admin-settings.uibot.yaml\",\n \"contract\": {\n \"name\": \"admin-settings\",\n \"description\": \"Profile, account, appearance, notifications and display settings.\",\n \"level\": \"L5\",\n \"category\": \"app\",\n \"keywords\": [\n \"admin-settings\",\n \"个人设置套件\",\n \"Personal settings suite\",\n \"settings\",\n \"profile\",\n \"account\",\n \"appearance\",\n \"notifications\",\n \"display\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Divider\",\n \"Link\",\n \"Form\",\n \"Field\",\n \"Form.Submit\"\n ]\n }\n }\n}\n",
|
|
24
|
+
"type": "registry:lib"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"meta": {
|
|
28
|
+
"uibot": {
|
|
29
|
+
"schema": "uibot.registry.item.v1",
|
|
30
|
+
"item": "admin-settings",
|
|
31
|
+
"channel": "public",
|
|
32
|
+
"template": {
|
|
33
|
+
"file": "admin-settings.uibot.yaml",
|
|
34
|
+
"contract": {
|
|
35
|
+
"name": "admin-settings",
|
|
36
|
+
"description": "Profile, account, appearance, notifications and display settings.",
|
|
37
|
+
"level": "L5",
|
|
38
|
+
"category": "app",
|
|
39
|
+
"keywords": [
|
|
40
|
+
"admin-settings",
|
|
41
|
+
"个人设置套件",
|
|
42
|
+
"Personal settings suite",
|
|
43
|
+
"settings",
|
|
44
|
+
"profile",
|
|
45
|
+
"account",
|
|
46
|
+
"appearance",
|
|
47
|
+
"notifications",
|
|
48
|
+
"display"
|
|
49
|
+
],
|
|
50
|
+
"composedFrom": [
|
|
51
|
+
"PageLayout",
|
|
52
|
+
"Box",
|
|
53
|
+
"Heading",
|
|
54
|
+
"Paragraph",
|
|
55
|
+
"Divider",
|
|
56
|
+
"Link",
|
|
57
|
+
"Form",
|
|
58
|
+
"Field",
|
|
59
|
+
"Form.Submit"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "components/uibot/admin-shell.tsx",
|
|
16
16
|
"target": "components/uibot/admin-shell.tsx",
|
|
17
|
-
"content": "import {\n useCallback,\n useEffect,\n useRef,\n useState,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\nimport type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { Icon } from \"./icons\";\nimport { emit, records, text, type BlockContext } from \"./interaction\";\nimport { containPreviewNavigationDialog, PREVIEW_SCOPE_CSS } from \"./preview-scope\";\nimport { usePreviewWidth } from \"./preview-responsive\";\nimport { ScrollArea } from \"./scroll-area\";\nimport { Direction } from \"radix-ui\";\nimport { STANDARD_CONTAINER_CSS } from \"./layout-container\";\n\n/** Static exports retain viewport CSS until a mounted frame provides its local breakpoint. */\nfunction adminResponsiveCss(query: string, match: string, rules: string): string {\n const scoped = (selector: string) => rules.replaceAll(\".uibot-admin\", selector);\n return (\n scoped(`.uibot-admin${match}`) +\n `@media${query}{${scoped(\".uibot-admin:not([data-responsive])\")}}`\n );\n}\n\nconst layoutStyle = `\n${adminResponsiveCss(\"(max-width:480px)\", \"[data-compact-search=true]\", `.uibot-admin .nui-search{width:32px;height:32px;padding:0;justify-content:center}.uibot-admin .nui-search span,.uibot-admin .nui-search kbd{display:none}`)}\n.uibot-admin{position:relative}.nui-sidebar-space{width:256px;flex:none;min-height:0;position:relative}.nui-sidebar-space>.nui-sidebar{width:100%;height:100%}.nui-rail .nui-sidebar-space{width:64px}.nui-content-inner{min-height:100%}.nui-content-inner>*+*:not(dialog){margin-top:20px}\n.uibot-admin[data-container=boxed]>.nui-main{max-width:1120px;margin:0;flex-basis:0}.uibot-admin[data-container=boxed]{padding:16px;gap:16px;justify-content:center;background:var(--nui-sidebar,var(--muted,#eee))}\n.uibot-admin[data-navigation-style=attached]:not([data-container=boxed])>.nui-main{margin:0;border-radius:0;border-block:0;border-inline-end:0;box-shadow:none}\n.uibot-admin[data-navigation-style=floating]>.nui-sidebar-space{padding:8px}.uibot-admin[data-navigation-style=floating]>.nui-sidebar-space>.nui-sidebar{border:1px solid var(--nui-border,var(--border,#e5e5e5));border-radius:12px;background:var(--nui-surface,var(--background,#fff));height:100%}\n.uibot-admin[data-sidebar=hover]>.nui-sidebar-space{width:64px;z-index:30}.uibot-admin[data-sidebar=hover]>.nui-sidebar-space>.nui-sidebar{position:absolute;inset-inline-start:0;background:var(--nui-sidebar,#fafafa);width:64px}.uibot-admin[data-sidebar=hover]:not(.nui-rail)>.nui-sidebar-space>.nui-sidebar{width:256px;box-shadow:8px 0 25px #0002}\n.uibot-admin[data-offcanvas=floating]>.nui-mobile{margin:8px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border:1px solid var(--nui-border,#ddd);border-radius:12px}\n${adminResponsiveCss(\"(min-width:768px)\", \":is([data-responsive=desktop],[data-responsive=tablet])\", `.uibot-admin[data-navigation=navbar]{flex-direction:column}.uibot-admin[data-navigation=navbar]>.nui-sidebar-space{width:100%;z-index:31}.uibot-admin[data-navigation=navbar]>.nui-sidebar-space>.nui-sidebar{position:relative;display:flex;flex-direction:row;align-items:center;gap:24px;height:auto;width:100%;overflow:visible;padding:8px 16px;border-bottom:1px solid var(--nui-border,#ddd)}.uibot-admin[data-navigation=navbar] .nui-sidebar>.nui-brand-picker{flex:none}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand{margin:0}.uibot-admin[data-navigation=navbar] .nui-sidebar>nav{display:flex;flex-wrap:wrap;gap:8px 20px}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-group{display:flex;align-items:center;gap:4px;margin:0}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-label,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-footer,.uibot-admin[data-navigation=navbar] .nui-header-links{display:none}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-section,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand-picker{position:relative}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-section>div,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand-picker>nav{position:absolute;inset-block-start:100%;inset-inline-start:0;min-width:190px;max-height:60dvh;overflow:hidden;margin:0;padding:8px;border:1px solid var(--nui-border,#ddd);border-radius:8px;background:var(--nui-surface,#fff);box-shadow:0 8px 20px #0002}.uibot-admin[data-navigation=navbar]>.nui-main{width:100%;flex-basis:0;margin-inline:0}.uibot-admin[data-navigation=navbar][data-navigation-style=floating]>.nui-sidebar-space{padding:8px}.uibot-admin[data-navigation=navbar][data-navigation-style=floating]>.nui-main{width:calc(100% - 16px);margin-inline:8px}.uibot-admin[data-navigation=navbar][data-container=boxed]{justify-content:flex-start}.uibot-admin[data-navigation=navbar][data-container=boxed]>.nui-sidebar-space{width:100%;max-width:1120px;padding:0;align-self:center}.uibot-admin[data-navigation=navbar][data-container=boxed]>.nui-main{width:100%;margin-inline:auto}`)}\n${adminResponsiveCss(\"(min-width:768px)\", \":is([data-responsive=desktop],[data-responsive=tablet])\", `.uibot-admin[data-navigation=navbar] .uibot-menu-scroll{overflow:visible}.uibot-admin[data-navigation=navbar] .uibot-menu-scroll>.uibot-scroll-viewport{overflow:visible!important}.uibot-admin[data-navigation=navbar] .nui-sidebar .uibot-sider-menu{flex-direction:row;height:auto;align-items:center;gap:16px}.uibot-admin[data-navigation=navbar] .uibot-sider-menu ul,.uibot-admin[data-navigation=navbar] .uibot-menu-group>ul{display:flex;flex-wrap:wrap;gap:4px;overflow:visible}.uibot-admin[data-navigation=navbar] .uibot-menu-group-title{display:none}.uibot-admin[data-navigation=navbar] .uibot-sider-title{border:0;padding:8px}`)}\n.nui-rail .uibot-menu-label,.nui-rail .uibot-menu-badge,.nui-rail .uibot-sider-full-title,.nui-rail .uibot-menu-group-title{display:none}.nui-rail .uibot-menu-fallback,.nui-rail .uibot-sider-abbreviation{display:block}.nui-sidebar:has(.uibot-sider-menu){padding:0;overflow:hidden}.nui-rail .uibot-sider-footer{padding-inline:8px}.nui-rail .uibot-sider-title{padding-inline:0;text-align:center}.nui-rail .uibot-menu-link{width:calc(100% - 12px);min-height:36px;margin-inline:6px;justify-content:center;padding-inline:0;gap:0}\n${adminResponsiveCss(\"(max-width:767px)\", \"[data-responsive=mobile]\", `.uibot-admin .nui-sidebar-space{display:none}.uibot-admin[data-container=boxed]{padding:8px;gap:0}.uibot-admin[data-container=boxed]>.nui-main{width:100%}`)}\n`;\nconst shellStyle = `\n.uibot-admin{font-family:var(--nui-font,var(--font-body,Inter,ui-sans-serif,system-ui,sans-serif));display:flex;height:100dvh;overflow:hidden;background:var(--nui-sidebar,#fafafa);color:var(--nui-foreground,#171717);font-size:14px;line-height:1.5}.uibot-admin.dark{background:#141414;color:#fafafa}.uibot-admin *{box-sizing:border-box}.uibot-admin button,.uibot-admin a,.uibot-admin summary{touch-action:manipulation}.uibot-admin button:focus-visible,.uibot-admin a:focus-visible,.uibot-admin summary:focus-visible{outline:2px solid #737373;outline-offset:3px}.nui-sidebar{width:256px;flex:none;padding:8px;position:sticky;top:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column}.nui-main{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;margin:8px;margin-inline-start:0;border:1px solid var(--nui-border,#e5e5e5);border-radius:12px;background:var(--nui-surface,#fff);box-shadow:0 1px 2px #00000005}.dark .nui-main{background:#0a0a0a;border-color:#262626}.nui-header{flex:none;height:64px;display:flex;gap:20px;align-items:center;padding:0 24px}.nui-header-links{display:flex;gap:24px;font-weight:500;font-size:14px}.nui-header-links a{color:#737373;text-decoration:none}.nui-header-links a[aria-current=page]{color:inherit}.nui-toolbar{display:flex;gap:12px;align-items:center;margin-inline-start:auto}.nui-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;background:transparent;border:0;color:inherit;cursor:pointer}.nui-icon-button:hover{background:#88888815}.nui-search{display:flex;align-items:center;gap:9px;border:1px solid #e5e5e5;background:transparent;color:#737373;border-radius:6px;padding:5px 10px;width:240px;text-align:start}.nui-search kbd{margin-inline-start:auto;background:#88888810;border-radius:4px;padding:0 4px;font-size:11px}.nui-avatar{width:32px;height:32px;border-radius:50%;background:#eaeaea;color:#353535;display:grid;place-items:center;font-size:12px;font-weight:500}.nui-content{box-sizing:border-box;min-height:0;padding:20px 24px 28px}.nui-content>*+*{margin-top:20px}.nui-no-sidebar .nui-main{margin-inline-start:8px}.nui-brand{display:flex;align-items:center;gap:10px;padding:8px;margin-bottom:14px;text-align:start;width:100%;border:0;background:transparent;color:inherit}.nui-brand-mark{width:32px;height:32px;border-radius:8px;background:#171717;color:white;display:grid;place-items:center}.dark .nui-brand-mark{background:#fafafa;color:#171717}.nui-brand-copy{display:flex;flex:1;flex-direction:column;font-size:14px;line-height:19px}.nui-brand-copy small{font-size:12px;color:#737373}.nui-nav-group{margin:12px 0}.nui-nav-label{font-size:12px;font-weight:500;color:#737373;padding:0 8px;margin-bottom:6px}.nui-nav-link{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:6px;font-size:14px;color:inherit;text-decoration:none;white-space:nowrap}.nui-nav-link:hover{background:#88888810}.nui-nav-link[aria-current=page]{background:var(--nui-accent,#e9e9e9);color:var(--nui-accent-foreground,inherit);font-weight:500}.dark .nui-nav-link[aria-current=page]{background:var(--nui-accent,#272727)}.dark .nui-nav-link .nui-badge{background:#fafafa;color:#171717}.nui-nav-link .nui-badge{margin-inline-start:auto;border-radius:5px;background:#171717;color:#fff;font-size:11px;padding:0 6px}.nui-nav-section summary{cursor:pointer;list-style:none}.nui-nav-section summary>svg:last-child{margin-inline-start:auto}.nui-nav-section[open] summary>svg:last-child{transform:rotate(90deg)}.nui-rail .nui-nav-section>div{display:none}.nui-nav-footer{margin-top:auto;padding-top:24px}.nui-rail .nui-sidebar{width:64px}.nui-rail .nui-nav-label,.nui-rail .nui-nav-text,.nui-rail .nui-brand-copy,.nui-rail .nui-badge,.nui-rail .nui-brand-chevron{display:none}.nui-rail .nui-nav-link{justify-content:center;padding:10px 0}.nui-command{border:1px solid #ddd;border-radius:10px;width:500px;max-width:calc(100vw - 32px);padding:0;margin:auto;background:inherit;color:inherit;box-shadow:0 20px 80px #0003}.nui-command::backdrop,.nui-mobile::backdrop{background:#0008}.nui-command input{width:100%;padding:16px;border:0;border-bottom:1px solid #8883;background:transparent;outline:none}.nui-command nav{padding:8px}.nui-mobile{overflow:hidden;margin:0;padding:8px;width:280px;max-width:85vw;height:100dvh;max-height:100dvh;border:0;background:#fafafa;color:#171717}.nui-mobile .nui-nav-footer{margin-top:24px}.nui-user-menu{position:relative}.nui-user-menu summary{list-style:none;cursor:pointer}.nui-user-menu nav{position:absolute;inset-inline-end:0;top:40px;min-width:190px;border:1px solid #8883;background:var(--nui-surface,#fff);border-radius:8px;padding:8px;z-index:40;box-shadow:0 4px 12px #0002}.nui-user-menu a{display:block;padding:8px;color:inherit;text-decoration:none}.dark .nui-user-menu nav,.dark .nui-command,.dark .nui-mobile{background:var(--nui-surface,#171717);color:#fafafa}.nui-mobile-close{float:right}.nui-brand-picker summary{list-style:none;cursor:pointer}.nui-brand-picker nav{padding:4px 8px;margin-bottom:12px}.nui-brand-picker a{display:block;padding:4px;color:inherit}\n${adminResponsiveCss(\"(max-width:1024px)\", \":is([data-responsive=mobile],[data-responsive=tablet])\", `.uibot-admin .nui-header-links{display:none}.uibot-admin .nui-search{width:200px}`)}${adminResponsiveCss(\"(max-width:767px)\", \"[data-responsive=mobile]\", `.uibot-admin .nui-sidebar{display:none}.uibot-admin .nui-main{margin:0;border:0;border-radius:0}.uibot-admin .nui-header{padding:0 16px;gap:8px;height:60px}.uibot-admin .nui-content{padding:16px}.uibot-admin .nui-search{width:150px;font-size:12px}.uibot-admin .nui-search kbd{display:none}.uibot-admin .nui-toolbar{gap:5px}.uibot-admin table{min-width:680px}.uibot-admin h1{font-size:24px}`)}\n${PREVIEW_SCOPE_CSS}${layoutStyle}${STANDARD_CONTAINER_CSS}`;\nexport const AppNavigation: RendererComponent = (props, ctx) => (\n <>\n <style>{shellStyle}</style>\n <Navigation props={props} ctx={ctx} />\n </>\n);\nfunction Navigation({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n return (\n <>\n <details className=\"nui-brand-picker\">\n <summary aria-label={text(props.brand, \"Shadcn Admin\")}>\n <div className=\"nui-brand\">\n {typeof props.logoSrc === \"string\" && props.logoSrc ? (\n <img\n src={props.logoSrc}\n alt={text(props.brand, \"Brand\")}\n width={32}\n height={32}\n style={{ objectFit: \"contain\", flexShrink: 0 }}\n />\n ) : (\n <span className=\"nui-brand-mark\">\n <Icon name=\"command\" />\n </span>\n )}\n <span className=\"nui-brand-copy\">\n <strong>{text(props.brand, \"Shadcn Admin\")}</strong>\n <small>{text(props.subtitle, \"Vite + ShadcnUI\")}</small>\n </span>\n <span className=\"nui-brand-chevron\">\n <Icon name=\"chevrons-up-down\" size={16} />\n </span>\n </div>\n </summary>\n <nav aria-label=\"Workspaces\">\n <ScrollArea\n style={{ maxHeight: \"60dvh\" }}\n viewportProps={{ \"aria-label\": \"Workspace choices\" }}\n >\n {records(props.workspaces).map((w) => (\n <a\n key={text(w.href)}\n href={text(w.href)}\n onClick={() => emit(ctx, \"onNavigate\", { href: text(w.href) })}\n >\n {text(w.label)}\n </a>\n ))}\n </ScrollArea>\n </nav>\n </details>\n <nav aria-label=\"Main navigation\">\n {records(props.groups).map((group) => (\n <div className=\"nui-nav-group\" key={text(group.label)}>\n <div className=\"nui-nav-label\">{text(group.label)}</div>\n {records(group.items).map((item) =>\n records(item.children).length ? (\n <details\n key={text(item.label)}\n className=\"nui-nav-section\"\n open={\n records(item.children).some((child) => child.href === props.activePath) ||\n undefined\n }\n >\n <summary\n className=\"nui-nav-link\"\n aria-label={text(item.label)}\n title={text(item.label)}\n >\n <Icon name={text(item.icon, \"boxes\")} />\n <span className=\"nui-nav-text\">{text(item.label)}</span>\n <Icon name=\"chevron-right\" size={16} />\n </summary>\n <div className=\"ms-4 border-s ps-3\">\n <ScrollArea\n style={{ maxHeight: \"60dvh\" }}\n viewportProps={{ \"aria-label\": text(item.label) }}\n >\n {records(item.children).map((child) => (\n <a\n className=\"nui-nav-link\"\n key={text(child.href)}\n href={text(child.href)}\n aria-current={child.href === props.activePath ? \"page\" : undefined}\n onClick={() => emit(ctx, \"onNavigate\", { href: text(child.href) })}\n >\n {text(child.label)}\n </a>\n ))}\n </ScrollArea>\n </div>\n </details>\n ) : (\n <a\n key={text(item.href)}\n className=\"nui-nav-link\"\n title={text(item.label)}\n href={text(item.href)}\n aria-current={\n item.active === true || item.href === props.activePath ? \"page\" : undefined\n }\n onClick={() => emit(ctx, \"onNavigate\", { href: text(item.href) })}\n >\n <Icon name={text(item.icon, \"boxes\")} />\n <span className=\"nui-nav-text\">{text(item.label)}</span>\n {Boolean(item.badge) && <span className=\"nui-badge\">{text(item.badge)}</span>}\n </a>\n ),\n )}\n </div>\n ))}\n </nav>\n <div className=\"nui-nav-footer\">\n <a className=\"nui-nav-link\" href={text(props.profileHref, \"/settings/profile\")}>\n <span className=\"nui-avatar\">{text(props.initials, \"SN\")}</span>\n <span className=\"nui-brand-copy\">\n <strong>{text(props.userName, \"shadcn\")}</strong>\n <small>{text(props.email, \"m@example.com\")}</small>\n </span>\n <Icon name=\"chevrons-up-down\" size={16} />\n </a>\n </div>\n </>\n );\n}\nexport function AdminFrame({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n const layout =\n props.layout && typeof props.layout === \"object\"\n ? (props.layout as Record<string, unknown>)\n : {};\n const [hovered, setHovered] = useState(false);\n const [focused, setFocused] = useState(false);\n const [rail, setRail] = useState(layout.sidebar === \"folded\"),\n [localDark, setDark] = useState(props.theme === \"dark\"),\n [query, setQuery] = useState(\"\");\n useEffect(() => {\n setRail(layout.sidebar === \"folded\");\n setHovered(false);\n setFocused(false);\n }, [layout.sidebar]);\n const [systemDark, setSystemDark] = useState(false);\n const root = useRef<HTMLDivElement>(null);\n const width = usePreviewWidth(root);\n const smallScreen = width > 0 && width < 768;\n const [mobileOpen, setMobileOpen] = useState(false);\n const collapsed =\n layout.navigation !== \"navbar\" &&\n !smallScreen &&\n (layout.sidebar === \"hover\" ? !(hovered || focused) : rail);\n useEffect(() => {\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\");\n const sync = () => setSystemDark(media.matches);\n sync();\n media.addEventListener(\"change\", sync);\n return () => media.removeEventListener(\"change\", sync);\n }, []);\n const dark =\n props.theme === \"system\"\n ? systemDark\n : typeof props.theme === \"string\"\n ? props.theme === \"dark\"\n : localDark;\n // A page without sidebar content gets no empty navigation rail, toggle or drawer.\n const hasSidebarSlot: unknown = ctx.slots.sidebar;\n const hasSidebar = Array.isArray(hasSidebarSlot)\n ? hasSidebarSlot.length > 0\n : Boolean(hasSidebarSlot);\n const mobile = useRef<HTMLDialogElement>(null),\n command = useRef<HTMLDialogElement>(null),\n trigger = useRef<HTMLElement | null>(null);\n const releaseMobileBounds = useRef<(() => void) | null>(null);\n useEffect(() => () => releaseMobileBounds.current?.(), []);\n const close = (dialog: HTMLDialogElement | null) => {\n dialog?.close();\n trigger.current?.focus();\n };\n const show = useCallback(\n (dialog: HTMLDialogElement | null) => {\n trigger.current = document.activeElement as HTMLElement;\n if (dialog && dialog === mobile.current) {\n releaseMobileBounds.current?.();\n releaseMobileBounds.current = containPreviewNavigationDialog(\n dialog,\n layout.offcanvas === \"floating\" ? 8 : 0,\n );\n }\n dialog?.showModal();\n },\n [layout.offcanvas],\n );\n useEffect(() => {\n const key = (e: KeyboardEvent) => {\n if (root.current?.closest(\"[inert]\")) return;\n if (\n document.activeElement !== document.body &&\n !root.current?.contains(document.activeElement)\n )\n return;\n if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === \"k\") {\n e.preventDefault();\n show(command.current);\n }\n };\n document.addEventListener(\"keydown\", key);\n return () => document.removeEventListener(\"keydown\", key);\n }, [show]);\n useEffect(() => {\n const menus = () =>\n Array.from(\n root.current?.querySelectorAll<HTMLDetailsElement>(\n `.nui-user-menu[open],.nui-brand-picker[open]${layout.navigation === \"navbar\" ? \",.nui-nav-section[open]\" : \"\"}`,\n ) ?? [],\n );\n const dismissOutside = (event: PointerEvent) => {\n for (const menu of menus()) if (!menu.contains(event.target as Node)) menu.open = false;\n };\n const dismissEscape = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || root.current?.querySelector(\"dialog[open]\")) return;\n for (const menu of menus()) {\n if (!menu.contains(document.activeElement)) continue;\n event.preventDefault();\n menu.open = false;\n menu.querySelector<HTMLElement>(\"summary\")?.focus();\n }\n };\n document.addEventListener(\"pointerdown\", dismissOutside);\n document.addEventListener(\"keydown\", dismissEscape);\n return () => {\n document.removeEventListener(\"pointerdown\", dismissOutside);\n document.removeEventListener(\"keydown\", dismissEscape);\n };\n }, [layout.navigation]);\n useEffect(() => {\n if (!smallScreen) mobile.current?.close();\n }, [smallScreen]);\n const activePath = props.activePath ?? ctx.resolve?.getState?.(\"currentPath\");\n const routes = records(props.routes).filter((r) =>\n text(r.label).toLowerCase().includes(query.toLowerCase()),\n );\n return (\n <Direction.Provider dir={props.direction === \"rtl\" ? \"rtl\" : \"ltr\"}>\n <div\n ref={root}\n style={\n {\n fontFamily:\n props.font === \"System\"\n ? \"system-ui,sans-serif\"\n : props.font === \"Manrope\"\n ? \"Manrope,system-ui,sans-serif\"\n : undefined,\n ...pageLayoutTokenStyle(props.tokens, true),\n } as CSSProperties\n }\n data-uibot-type=\"PageLayout\"\n data-appearance=\"admin\"\n data-responsive={\n width > 0 ? (smallScreen ? \"mobile\" : width <= 1024 ? \"tablet\" : \"desktop\") : undefined\n }\n data-compact-search={width > 0 && width <= 480 ? \"true\" : undefined}\n data-navigation={layout.navigation as string | undefined}\n data-container={layout.container as string | undefined}\n data-navigation-style={layout.navigationStyle as string | undefined}\n data-offcanvas={layout.offcanvas as string | undefined}\n data-sidebar={\n layout.navigation === \"navbar\" ? undefined : (layout.sidebar as string | undefined)\n }\n dir={props.direction === \"rtl\" ? \"rtl\" : \"ltr\"}\n className={`uibot-admin ${collapsed ? \"nui-rail\" : \"\"} ${dark ? \"dark\" : \"\"} ${hasSidebar ? \"\" : \"nui-no-sidebar\"}`}\n onClickCapture={(event) => {\n if (rail && (event.target as HTMLElement).closest(\".nui-sidebar summary\")) setRail(false);\n }}\n >\n <style>{shellStyle}</style>\n {hasSidebar && (\n <div\n className=\"nui-sidebar-space\"\n onPointerEnter={() => setHovered(true)}\n onPointerLeave={() => setHovered(false)}\n onFocusCapture={() => setFocused(true)}\n onBlurCapture={(event) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node)) setFocused(false);\n }}\n >\n <aside className=\"nui-sidebar\">\n {layout.navigation === \"navbar\" && !smallScreen ? (\n (ctx.slots.sidebar as ReactNode[])\n ) : (\n <ScrollArea\n style={{ height: \"100%\", width: \"100%\" }}\n fillContent\n viewportProps={{ \"aria-label\": \"Sidebar navigation\" }}\n >\n {ctx.slots.sidebar as ReactNode[]}\n </ScrollArea>\n )}\n </aside>\n </div>\n )}\n <div className=\"nui-main\">\n <header className=\"nui-header\">\n {hasSidebar && (smallScreen || layout.navigation !== \"navbar\") && (\n <button\n type=\"button\"\n className=\"nui-icon-button\"\n aria-label=\"Toggle sidebar\"\n aria-expanded={smallScreen ? mobileOpen : !collapsed}\n onClick={() => {\n if (smallScreen) {\n setMobileOpen(true);\n show(mobile.current);\n } else if (layout.sidebar === \"hover\") setHovered(!hovered);\n else setRail(!rail);\n }}\n >\n <Icon name=\"panel-left\" />\n </button>\n )}\n {props.appearance !== \"admin\" && typeof props.title === \"string\" && (\n <strong>{props.title}</strong>\n )}\n <nav className=\"nui-header-links\" aria-label=\"Workspace\">\n {records(props.headerLinks).map((link) => (\n <a\n href={text(link.href)}\n key={text(link.label)}\n aria-current={\n link.href === activePath ||\n (link.href === \"/settings/profile\" &&\n typeof activePath === \"string\" &&\n activePath.startsWith(\"/settings/\"))\n ? \"page\"\n : undefined\n }\n >\n {text(link.label)}\n </a>\n ))}\n </nav>\n <div className=\"nui-toolbar\">\n <button\n type=\"button\"\n aria-label=\"Search\"\n className=\"nui-search\"\n onClick={() => show(command.current)}\n >\n <Icon name=\"search\" size={16} />\n <span>Search</span>\n <kbd>⌘ K</kbd>\n </button>\n <button\n type=\"button\"\n className=\"nui-icon-button\"\n aria-label={dark ? \"Use light theme\" : \"Use dark theme\"}\n onClick={() => {\n setDark(!dark);\n emit(\n ctx,\n \"onThemeChange\",\n { theme: dark ? \"light\" : \"dark\" },\n dark ? \"light\" : \"dark\",\n );\n }}\n >\n <Icon name={dark ? \"moon\" : \"sun\"} />\n </button>\n <details className=\"nui-user-menu\">\n <summary aria-label=\"Open account menu\">\n <span className=\"nui-avatar\">{text(props.initials, \"SN\")}</span>\n </summary>\n <nav aria-label=\"Account\">\n {records(\n props.accountLinks ?? [\n { href: \"/settings/profile\", label: \"Profile\" },\n { href: \"/settings/account\", label: \"Account\" },\n { href: \"/settings/notifications\", label: \"Notifications\" },\n { href: \"/sign-in\", label: \"Sign in\" },\n ],\n ).map((link) => (\n <a key={text(link.href)} href={text(link.href)}>\n {text(link.label)}\n </a>\n ))}\n </nav>\n </details>\n {ctx.slots.headerActions as ReactNode[]}\n </div>\n </header>\n <main className=\"nui-content-shell\" style={{ flex: 1, minHeight: 0, minWidth: 0 }}>\n <ScrollArea\n style={{ height: \"100%\" }}\n viewportProps={{ className: \"nui-content\", \"aria-label\": \"Page content\" }}\n >\n <div className=\"nui-content-inner\">{ctx.children as ReactNode[]}</div>\n </ScrollArea>\n </main>\n {ctx.slots.footer as ReactNode[]}\n </div>\n {hasSidebar && (\n <dialog\n ref={mobile}\n className=\"nui-mobile\"\n aria-label=\"Navigation\"\n onClose={() => {\n releaseMobileBounds.current?.();\n releaseMobileBounds.current = null;\n setMobileOpen(false);\n trigger.current?.focus();\n }}\n >\n <button\n type=\"button\"\n className=\"nui-icon-button nui-mobile-close\"\n aria-label=\"Close navigation\"\n onClick={() => close(mobile.current)}\n >\n <Icon name=\"x\" />\n </button>\n <ScrollArea\n style={{ height: \"calc(100% - 40px)\" }}\n fillContent\n viewportProps={{ \"aria-label\": \"Navigation links\" }}\n >\n <div\n onClick={(e) => {\n if ((e.target as Element).closest('a, button[data-uibot-type=\"MenuLink\"]'))\n close(mobile.current);\n }}\n >\n {ctx.slots.sidebar as ReactNode[]}\n </div>\n </ScrollArea>\n </dialog>\n )}\n <dialog\n ref={command}\n className=\"nui-command\"\n aria-label=\"Search pages\"\n onClose={() => {\n setQuery(\"\");\n trigger.current?.focus();\n }}\n onKeyDown={(event) => {\n if (\n ![\"ArrowDown\", \"ArrowUp\", \"Home\", \"End\"].includes(event.key) ||\n event.target instanceof HTMLInputElement\n )\n return;\n const links = Array.from(\n command.current?.querySelectorAll<HTMLAnchorElement>(\"nav a\") ?? [],\n );\n if (!links.length) return;\n event.preventDefault();\n const index = links.indexOf(document.activeElement as HTMLAnchorElement);\n const next =\n event.key === \"Home\"\n ? 0\n : event.key === \"End\"\n ? links.length - 1\n : (index + (event.key === \"ArrowDown\" ? 1 : -1) + links.length) % links.length;\n links[next]?.focus();\n }}\n >\n <input\n aria-label=\"Search pages\"\n autoComplete=\"off\"\n placeholder=\"Type a command or search...\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"ArrowDown\" || e.key === \"ArrowUp\") {\n const links = command.current?.querySelectorAll<HTMLAnchorElement>(\"nav a\");\n if (!links?.length) return;\n e.preventDefault();\n links[e.key === \"ArrowDown\" ? 0 : links.length - 1]?.focus();\n }\n }}\n />\n <ScrollArea style={{ maxHeight: 360 }} viewportProps={{ \"aria-label\": \"Search results\" }}>\n <nav>\n {routes.map((route) => (\n <a\n className=\"nui-nav-link\"\n href={text(route.href)}\n key={text(route.href)}\n onClick={() => close(command.current)}\n >\n <Icon name={text(route.icon, \"chevron-right\")} />\n {text(route.label)}\n </a>\n ))}\n {!routes.length && <p className=\"p-4 text-sm\">No results found.</p>}\n </nav>\n </ScrollArea>\n </dialog>\n </div>\n </Direction.Provider>\n );\n}\n\nimport { pageLayoutTokenStyle } from \"./layout-tokens\";\n",
|
|
17
|
+
"content": "import {\n useCallback,\n useEffect,\n useRef,\n useState,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\nimport type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { Icon } from \"./icons\";\nimport { emit, records, text, type BlockContext } from \"./interaction\";\nimport { containPreviewNavigationDialog, PREVIEW_SCOPE_CSS } from \"./preview-scope\";\nimport { usePreviewWidth } from \"./preview-responsive\";\nimport { ScrollArea } from \"./scroll-area\";\nimport { Direction } from \"radix-ui\";\nimport { STANDARD_CONTAINER_CSS } from \"./layout-container\";\n\n/** Static exports retain viewport CSS until a mounted frame provides its local breakpoint. */\nfunction adminResponsiveCss(query: string, match: string, rules: string): string {\n const scoped = (selector: string) => rules.replaceAll(\".uibot-admin\", selector);\n return (\n scoped(`.uibot-admin${match}`) +\n `@media${query}{${scoped(\".uibot-admin:not([data-responsive])\")}}`\n );\n}\n\nconst layoutStyle = `\n${adminResponsiveCss(\"(max-width:480px)\", \"[data-compact-search=true]\", `.uibot-admin .nui-search{width:32px;height:32px;padding:0;justify-content:center}.uibot-admin .nui-search span,.uibot-admin .nui-search kbd{display:none}`)}\n.uibot-admin{position:relative}.nui-sidebar-space{width:256px;flex:none;min-height:0;position:relative}.nui-sidebar-space>.nui-sidebar{width:100%;height:100%}.nui-rail .nui-sidebar-space{width:64px}.nui-content-inner{min-height:100%}.nui-content-inner>*+*:not(dialog){margin-top:20px}\n.uibot-admin[data-container=boxed]>.nui-main{max-width:1120px;margin:0;flex-basis:0}.uibot-admin[data-container=boxed]{padding:16px;gap:16px;justify-content:center;background:var(--nui-sidebar,var(--muted,#eee))}\n.uibot-admin[data-navigation-style=attached]:not([data-container=boxed]):not([data-shell=sidebar-inset])>.nui-main{margin:0;border-radius:0;border-block:0;border-inline-end:0;box-shadow:none}\n.uibot-admin[data-shell=sidebar-inset]>.nui-main{margin:8px;margin-inline-start:0;border:1px solid var(--nui-border,var(--border,#e5e5e5));border-radius:12px;background:var(--nui-surface,var(--background,#fff));box-shadow:0 1px 3px #0000000d}\n.uibot-admin[data-navigation-style=floating]>.nui-sidebar-space{padding:8px}.uibot-admin[data-navigation-style=floating]>.nui-sidebar-space>.nui-sidebar{border:1px solid var(--nui-border,var(--border,#e5e5e5));border-radius:12px;background:var(--nui-surface,var(--background,#fff));height:100%}\n.uibot-admin[data-sidebar=hover]>.nui-sidebar-space{width:64px;z-index:30}.uibot-admin[data-sidebar=hover]>.nui-sidebar-space>.nui-sidebar{position:absolute;inset-inline-start:0;background:var(--nui-sidebar,#fafafa);width:64px}.uibot-admin[data-sidebar=hover]:not(.nui-rail)>.nui-sidebar-space>.nui-sidebar{width:256px;box-shadow:8px 0 25px #0002}\n.uibot-admin[data-offcanvas=floating]>.nui-mobile{margin:8px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border:1px solid var(--nui-border,#ddd);border-radius:12px}\n${adminResponsiveCss(\"(min-width:768px)\", \":is([data-responsive=desktop],[data-responsive=tablet])\", `.uibot-admin[data-navigation=navbar]{flex-direction:column}.uibot-admin[data-navigation=navbar]>.nui-sidebar-space{width:100%;z-index:31}.uibot-admin[data-navigation=navbar]>.nui-sidebar-space>.nui-sidebar{position:relative;display:flex;flex-direction:row;align-items:center;gap:24px;height:auto;width:100%;overflow:visible;padding:8px 16px;border-bottom:1px solid var(--nui-border,#ddd)}.uibot-admin[data-navigation=navbar] .nui-sidebar>.nui-brand-picker{flex:none}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand{margin:0}.uibot-admin[data-navigation=navbar] .nui-sidebar>nav{display:flex;flex-wrap:wrap;gap:8px 20px}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-group{display:flex;align-items:center;gap:4px;margin:0}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-label,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-footer,.uibot-admin[data-navigation=navbar] .nui-header-links{display:none}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-section,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand-picker{position:relative}.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-nav-section>div,.uibot-admin[data-navigation=navbar] .nui-sidebar .nui-brand-picker>nav{position:absolute;inset-block-start:100%;inset-inline-start:0;min-width:190px;max-height:60dvh;overflow:hidden;margin:0;padding:8px;border:1px solid var(--nui-border,#ddd);border-radius:8px;background:var(--nui-surface,#fff);box-shadow:0 8px 20px #0002}.uibot-admin[data-navigation=navbar]>.nui-main{width:100%;flex-basis:0;margin-inline:0}.uibot-admin[data-navigation=navbar][data-navigation-style=floating]>.nui-sidebar-space{padding:8px}.uibot-admin[data-navigation=navbar][data-navigation-style=floating]>.nui-main{width:calc(100% - 16px);margin-inline:8px}.uibot-admin[data-navigation=navbar][data-container=boxed]{justify-content:flex-start}.uibot-admin[data-navigation=navbar][data-container=boxed]>.nui-sidebar-space{width:100%;max-width:1120px;padding:0;align-self:center}.uibot-admin[data-navigation=navbar][data-container=boxed]>.nui-main{width:100%;margin-inline:auto}`)}\n${adminResponsiveCss(\"(min-width:768px)\", \":is([data-responsive=desktop],[data-responsive=tablet])\", `.uibot-admin[data-navigation=navbar] .uibot-menu-scroll{overflow:visible}.uibot-admin[data-navigation=navbar] .uibot-menu-scroll>.uibot-scroll-viewport{overflow:visible!important}.uibot-admin[data-navigation=navbar] .nui-sidebar .uibot-sider-menu{flex-direction:row;height:auto;align-items:center;gap:16px}.uibot-admin[data-navigation=navbar] .uibot-sider-menu ul,.uibot-admin[data-navigation=navbar] .uibot-menu-group>ul{display:flex;flex-wrap:wrap;gap:4px;overflow:visible}.uibot-admin[data-navigation=navbar] .uibot-menu-group-title{display:none}.uibot-admin[data-navigation=navbar] .uibot-sider-title{border:0;padding:8px}`)}\n.nui-rail .uibot-menu-label,.nui-rail .uibot-menu-badge,.nui-rail .uibot-sider-full-title,.nui-rail .uibot-menu-group-title{display:none}.nui-rail .uibot-menu-fallback,.nui-rail .uibot-sider-abbreviation{display:block}.nui-sidebar:has(.uibot-sider-menu){padding:0;overflow:hidden}.nui-rail .uibot-sider-footer{padding-inline:8px}.nui-rail .uibot-sider-title{padding-inline:0;text-align:center}.nui-rail .uibot-menu-link{width:calc(100% - 12px);min-height:36px;margin-inline:6px;justify-content:center;padding-inline:0;gap:0}\n${adminResponsiveCss(\"(max-width:767px)\", \"[data-responsive=mobile]\", `.uibot-admin .nui-sidebar-space{display:none}.uibot-admin[data-container=boxed]{padding:8px;gap:0}.uibot-admin[data-container=boxed]>.nui-main{width:100%}`)}\n`;\nconst shellStyle = `\n.uibot-admin{font-family:var(--nui-font,var(--font-body,Inter,ui-sans-serif,system-ui,sans-serif));display:flex;height:100dvh;overflow:hidden;background:var(--nui-sidebar,#fafafa);color:var(--nui-foreground,#171717);font-size:14px;line-height:1.5}.uibot-admin.dark{background:#141414;color:#fafafa}.uibot-admin *{box-sizing:border-box}.uibot-admin button,.uibot-admin a,.uibot-admin summary{touch-action:manipulation}.uibot-admin button:focus-visible,.uibot-admin a:focus-visible,.uibot-admin summary:focus-visible{outline:2px solid #737373;outline-offset:3px}.nui-sidebar{width:256px;flex:none;padding:8px;position:sticky;top:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column}.nui-main{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;margin:8px;margin-inline-start:0;border:1px solid var(--nui-border,#e5e5e5);border-radius:12px;background:var(--nui-surface,#fff);box-shadow:0 1px 2px #00000005}.dark .nui-main{background:#0a0a0a;border-color:#262626}.nui-header{flex:none;height:64px;display:flex;gap:20px;align-items:center;padding:0 24px}.nui-header-links{display:flex;gap:24px;font-weight:500;font-size:14px}.nui-header-links a{color:#737373;text-decoration:none}.nui-header-links a[aria-current=page]{color:inherit}.nui-toolbar{display:flex;gap:12px;align-items:center;margin-inline-start:auto}.nui-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;background:transparent;border:0;color:inherit;cursor:pointer}.nui-icon-button:hover{background:#88888815}.nui-search{display:flex;align-items:center;gap:9px;border:1px solid #e5e5e5;background:transparent;color:#737373;border-radius:6px;padding:5px 10px;width:240px;text-align:start}.nui-search kbd{margin-inline-start:auto;background:#88888810;border-radius:4px;padding:0 4px;font-size:11px}.nui-avatar{width:32px;height:32px;border-radius:50%;background:#eaeaea;color:#353535;display:grid;place-items:center;font-size:12px;font-weight:500}.nui-content{box-sizing:border-box;min-height:0;padding:20px 24px 28px}.nui-content>*+*{margin-top:20px}.nui-no-sidebar .nui-main{margin-inline-start:8px}.nui-brand{display:flex;align-items:center;gap:10px;padding:8px;margin-bottom:14px;text-align:start;width:100%;border:0;background:transparent;color:inherit}.nui-brand-mark{width:32px;height:32px;border-radius:8px;background:#171717;color:white;display:grid;place-items:center}.dark .nui-brand-mark{background:#fafafa;color:#171717}.nui-brand-copy{display:flex;flex:1;flex-direction:column;font-size:14px;line-height:19px}.nui-brand-copy small{font-size:12px;color:#737373}.nui-nav-group{margin:12px 0}.nui-nav-label{font-size:12px;font-weight:500;color:#737373;padding:0 8px;margin-bottom:6px}.nui-nav-link{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:6px;font-size:14px;color:inherit;text-decoration:none;white-space:nowrap}.nui-nav-link:hover{background:#88888810}.nui-nav-link[aria-current=page]{background:var(--nui-accent,#e9e9e9);color:var(--nui-accent-foreground,inherit);font-weight:500}.dark .nui-nav-link[aria-current=page]{background:var(--nui-accent,#272727)}.dark .nui-nav-link .nui-badge{background:#fafafa;color:#171717}.nui-nav-link .nui-badge{margin-inline-start:auto;border-radius:5px;background:#171717;color:#fff;font-size:11px;padding:0 6px}.nui-nav-section summary{cursor:pointer;list-style:none}.nui-nav-section summary>svg:last-child{margin-inline-start:auto}.nui-nav-section[open] summary>svg:last-child{transform:rotate(90deg)}.nui-rail .nui-nav-section>div{display:none}.nui-nav-footer{margin-top:auto;padding-top:24px}.nui-rail .nui-sidebar{width:64px}.nui-rail .nui-nav-label,.nui-rail .nui-nav-text,.nui-rail .nui-brand-copy,.nui-rail .nui-badge,.nui-rail .nui-brand-chevron{display:none}.nui-rail .nui-nav-link{justify-content:center;padding:10px 0}.nui-command{border:1px solid #ddd;border-radius:10px;width:500px;max-width:calc(100vw - 32px);padding:0;margin:auto;background:inherit;color:inherit;box-shadow:0 20px 80px #0003}.nui-command::backdrop,.nui-mobile::backdrop{background:#0008}.nui-command input{width:100%;padding:16px;border:0;border-bottom:1px solid #8883;background:transparent;outline:none}.nui-command nav{padding:8px}.nui-mobile{overflow:hidden;margin:0;padding:8px;width:280px;max-width:85vw;height:100dvh;max-height:100dvh;border:0;background:#fafafa;color:#171717}.nui-mobile .nui-nav-footer{margin-top:24px}.nui-user-menu{position:relative}.nui-user-menu summary{list-style:none;cursor:pointer}.nui-user-menu nav{position:absolute;inset-inline-end:0;top:40px;min-width:190px;border:1px solid #8883;background:var(--nui-surface,#fff);border-radius:8px;padding:8px;z-index:40;box-shadow:0 4px 12px #0002}.nui-user-menu a{display:block;padding:8px;color:inherit;text-decoration:none}.dark .nui-user-menu nav,.dark .nui-command,.dark .nui-mobile{background:var(--nui-surface,#171717);color:#fafafa}.nui-mobile-close{float:right}.nui-brand-picker summary{list-style:none;cursor:pointer}.nui-brand-picker nav{padding:4px 8px;margin-bottom:12px}.nui-brand-picker a{display:block;padding:4px;color:inherit}\n${adminResponsiveCss(\"(max-width:1024px)\", \":is([data-responsive=mobile],[data-responsive=tablet])\", `.uibot-admin .nui-header-links{display:none}.uibot-admin .nui-search{width:200px}`)}${adminResponsiveCss(\"(max-width:767px)\", \"[data-responsive=mobile]\", `.uibot-admin .nui-sidebar{display:none}.uibot-admin .nui-main{margin:0;border:0;border-radius:0}.uibot-admin .nui-header{padding:0 16px;gap:8px;height:60px}.uibot-admin .nui-content{padding:16px}.uibot-admin .nui-search{width:150px;font-size:12px}.uibot-admin .nui-search kbd{display:none}.uibot-admin .nui-toolbar{gap:5px}.uibot-admin table{min-width:680px}.uibot-admin h1{font-size:24px}`)}\n${PREVIEW_SCOPE_CSS}${layoutStyle}${STANDARD_CONTAINER_CSS}`;\nexport const AppNavigation: RendererComponent = (props, ctx) => (\n <>\n <style>{shellStyle}</style>\n <Navigation props={props} ctx={ctx} />\n </>\n);\nfunction Navigation({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n return (\n <>\n <details className=\"nui-brand-picker\">\n <summary aria-label={text(props.brand, \"Shadcn Admin\")}>\n <div className=\"nui-brand\">\n {typeof props.logoSrc === \"string\" && props.logoSrc ? (\n <img\n src={props.logoSrc}\n alt={text(props.brand, \"Brand\")}\n width={32}\n height={32}\n style={{ objectFit: \"contain\", flexShrink: 0 }}\n />\n ) : (\n <span className=\"nui-brand-mark\">\n <Icon name=\"command\" />\n </span>\n )}\n <span className=\"nui-brand-copy\">\n <strong>{text(props.brand, \"Shadcn Admin\")}</strong>\n <small>{text(props.subtitle, \"Vite + ShadcnUI\")}</small>\n </span>\n <span className=\"nui-brand-chevron\">\n <Icon name=\"chevrons-up-down\" size={16} />\n </span>\n </div>\n </summary>\n <nav aria-label=\"Workspaces\">\n <ScrollArea\n style={{ maxHeight: \"60dvh\" }}\n viewportProps={{ \"aria-label\": \"Workspace choices\" }}\n >\n {records(props.workspaces).map((w) => (\n <a\n key={text(w.href)}\n href={text(w.href)}\n onClick={() => emit(ctx, \"onNavigate\", { href: text(w.href) })}\n >\n {text(w.label)}\n </a>\n ))}\n </ScrollArea>\n </nav>\n </details>\n <nav aria-label=\"Main navigation\">\n {records(props.groups).map((group) => (\n <div className=\"nui-nav-group\" key={text(group.label)}>\n <div className=\"nui-nav-label\">{text(group.label)}</div>\n {records(group.items).map((item) =>\n records(item.children).length ? (\n <details\n key={text(item.label)}\n className=\"nui-nav-section\"\n open={\n records(item.children).some((child) => child.href === props.activePath) ||\n undefined\n }\n >\n <summary\n className=\"nui-nav-link\"\n aria-label={text(item.label)}\n title={text(item.label)}\n >\n <Icon name={text(item.icon, \"boxes\")} />\n <span className=\"nui-nav-text\">{text(item.label)}</span>\n <Icon name=\"chevron-right\" size={16} />\n </summary>\n <div className=\"ms-4 border-s ps-3\">\n <ScrollArea\n style={{ maxHeight: \"60dvh\" }}\n viewportProps={{ \"aria-label\": text(item.label) }}\n >\n {records(item.children).map((child) => (\n <a\n className=\"nui-nav-link\"\n key={text(child.href)}\n href={text(child.href)}\n aria-current={child.href === props.activePath ? \"page\" : undefined}\n onClick={() => emit(ctx, \"onNavigate\", { href: text(child.href) })}\n >\n {text(child.label)}\n </a>\n ))}\n </ScrollArea>\n </div>\n </details>\n ) : (\n <a\n key={text(item.href)}\n className=\"nui-nav-link\"\n title={text(item.label)}\n href={text(item.href)}\n aria-current={\n item.active === true || item.href === props.activePath ? \"page\" : undefined\n }\n onClick={() => emit(ctx, \"onNavigate\", { href: text(item.href) })}\n >\n <Icon name={text(item.icon, \"boxes\")} />\n <span className=\"nui-nav-text\">{text(item.label)}</span>\n {Boolean(item.badge) && <span className=\"nui-badge\">{text(item.badge)}</span>}\n </a>\n ),\n )}\n </div>\n ))}\n </nav>\n <div className=\"nui-nav-footer\">\n <a className=\"nui-nav-link\" href={text(props.profileHref, \"/settings/profile\")}>\n <span className=\"nui-avatar\">{text(props.initials, \"SN\")}</span>\n <span className=\"nui-brand-copy\">\n <strong>{text(props.userName, \"shadcn\")}</strong>\n <small>{text(props.email, \"m@example.com\")}</small>\n </span>\n <Icon name=\"chevrons-up-down\" size={16} />\n </a>\n </div>\n </>\n );\n}\nexport function AdminFrame({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n const layout =\n props.layout && typeof props.layout === \"object\"\n ? (props.layout as Record<string, unknown>)\n : {};\n const [hovered, setHovered] = useState(false);\n const [focused, setFocused] = useState(false);\n const [rail, setRail] = useState(layout.sidebar === \"folded\"),\n [localDark, setDark] = useState(props.theme === \"dark\"),\n [query, setQuery] = useState(\"\");\n useEffect(() => {\n setRail(layout.sidebar === \"folded\");\n setHovered(false);\n setFocused(false);\n }, [layout.sidebar]);\n const [systemDark, setSystemDark] = useState(false);\n const root = useRef<HTMLDivElement>(null);\n const width = usePreviewWidth(root);\n const smallScreen = width > 0 && width < 768;\n const [mobileOpen, setMobileOpen] = useState(false);\n const collapsed =\n layout.navigation !== \"navbar\" &&\n !smallScreen &&\n (layout.sidebar === \"hover\" ? !(hovered || focused) : rail);\n useEffect(() => {\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\");\n const sync = () => setSystemDark(media.matches);\n sync();\n media.addEventListener(\"change\", sync);\n return () => media.removeEventListener(\"change\", sync);\n }, []);\n const dark =\n props.theme === \"system\"\n ? systemDark\n : typeof props.theme === \"string\"\n ? props.theme === \"dark\"\n : localDark;\n // A page without sidebar content gets no empty navigation rail, toggle or drawer.\n const hasSidebarSlot: unknown = ctx.slots.sidebar;\n const hasSidebar = Array.isArray(hasSidebarSlot)\n ? hasSidebarSlot.length > 0\n : Boolean(hasSidebarSlot);\n const mobile = useRef<HTMLDialogElement>(null),\n command = useRef<HTMLDialogElement>(null),\n trigger = useRef<HTMLElement | null>(null);\n const releaseMobileBounds = useRef<(() => void) | null>(null);\n useEffect(() => () => releaseMobileBounds.current?.(), []);\n const close = (dialog: HTMLDialogElement | null) => {\n dialog?.close();\n trigger.current?.focus();\n };\n const show = useCallback(\n (dialog: HTMLDialogElement | null) => {\n trigger.current = document.activeElement as HTMLElement;\n if (dialog && dialog === mobile.current) {\n releaseMobileBounds.current?.();\n releaseMobileBounds.current = containPreviewNavigationDialog(\n dialog,\n layout.offcanvas === \"floating\" ? 8 : 0,\n );\n }\n dialog?.showModal();\n },\n [layout.offcanvas],\n );\n useEffect(() => {\n const key = (e: KeyboardEvent) => {\n if (root.current?.closest(\"[inert]\")) return;\n if (\n document.activeElement !== document.body &&\n !root.current?.contains(document.activeElement)\n )\n return;\n if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === \"k\") {\n e.preventDefault();\n show(command.current);\n }\n };\n document.addEventListener(\"keydown\", key);\n return () => document.removeEventListener(\"keydown\", key);\n }, [show]);\n useEffect(() => {\n const menus = () =>\n Array.from(\n root.current?.querySelectorAll<HTMLDetailsElement>(\n `.nui-user-menu[open],.nui-brand-picker[open]${layout.navigation === \"navbar\" ? \",.nui-nav-section[open]\" : \"\"}`,\n ) ?? [],\n );\n const dismissOutside = (event: PointerEvent) => {\n for (const menu of menus()) if (!menu.contains(event.target as Node)) menu.open = false;\n };\n const dismissEscape = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || root.current?.querySelector(\"dialog[open]\")) return;\n for (const menu of menus()) {\n if (!menu.contains(document.activeElement)) continue;\n event.preventDefault();\n menu.open = false;\n menu.querySelector<HTMLElement>(\"summary\")?.focus();\n }\n };\n document.addEventListener(\"pointerdown\", dismissOutside);\n document.addEventListener(\"keydown\", dismissEscape);\n return () => {\n document.removeEventListener(\"pointerdown\", dismissOutside);\n document.removeEventListener(\"keydown\", dismissEscape);\n };\n }, [layout.navigation]);\n useEffect(() => {\n if (!smallScreen) mobile.current?.close();\n }, [smallScreen]);\n const activePath = props.activePath ?? ctx.resolve?.getState?.(\"currentPath\");\n const routes = records(props.routes).filter((r) =>\n text(r.label).toLowerCase().includes(query.toLowerCase()),\n );\n return (\n <Direction.Provider dir={props.direction === \"rtl\" ? \"rtl\" : \"ltr\"}>\n <div\n ref={root}\n style={\n {\n fontFamily:\n props.font === \"System\"\n ? \"system-ui,sans-serif\"\n : props.font === \"Manrope\"\n ? \"Manrope,system-ui,sans-serif\"\n : undefined,\n ...pageLayoutTokenStyle(props.tokens, true),\n } as CSSProperties\n }\n data-uibot-type=\"PageLayout\"\n data-appearance=\"admin\"\n data-shell={typeof layout.shell === \"string\" ? layout.shell : undefined}\n data-responsive={\n width > 0 ? (smallScreen ? \"mobile\" : width <= 1024 ? \"tablet\" : \"desktop\") : undefined\n }\n data-compact-search={width > 0 && width <= 480 ? \"true\" : undefined}\n data-navigation={layout.navigation as string | undefined}\n data-container={layout.container as string | undefined}\n data-navigation-style={layout.navigationStyle as string | undefined}\n data-offcanvas={layout.offcanvas as string | undefined}\n data-sidebar={\n layout.navigation === \"navbar\" ? undefined : (layout.sidebar as string | undefined)\n }\n dir={props.direction === \"rtl\" ? \"rtl\" : \"ltr\"}\n className={`uibot-admin ${collapsed ? \"nui-rail\" : \"\"} ${dark ? \"dark\" : \"\"} ${hasSidebar ? \"\" : \"nui-no-sidebar\"}`}\n onClickCapture={(event) => {\n if (rail && (event.target as HTMLElement).closest(\".nui-sidebar summary\")) setRail(false);\n }}\n >\n <style>{shellStyle}</style>\n {hasSidebar && (\n <div\n className=\"nui-sidebar-space\"\n onPointerEnter={() => setHovered(true)}\n onPointerLeave={() => setHovered(false)}\n onFocusCapture={() => setFocused(true)}\n onBlurCapture={(event) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node)) setFocused(false);\n }}\n >\n <aside className=\"nui-sidebar\">\n {layout.navigation === \"navbar\" && !smallScreen ? (\n (ctx.slots.sidebar as ReactNode[])\n ) : (\n <ScrollArea\n style={{ height: \"100%\", width: \"100%\" }}\n fillContent\n viewportProps={{ \"aria-label\": \"Sidebar navigation\" }}\n >\n {ctx.slots.sidebar as ReactNode[]}\n </ScrollArea>\n )}\n </aside>\n </div>\n )}\n <div className=\"nui-main\">\n <header className=\"nui-header\">\n {hasSidebar && (smallScreen || layout.navigation !== \"navbar\") && (\n <button\n type=\"button\"\n className=\"nui-icon-button\"\n aria-label=\"Toggle sidebar\"\n aria-expanded={smallScreen ? mobileOpen : !collapsed}\n onClick={() => {\n if (smallScreen) {\n setMobileOpen(true);\n show(mobile.current);\n } else if (layout.sidebar === \"hover\") setHovered(!hovered);\n else setRail(!rail);\n }}\n >\n <Icon name=\"panel-left\" />\n </button>\n )}\n {props.appearance !== \"admin\" && typeof props.title === \"string\" && (\n <strong>{props.title}</strong>\n )}\n <nav className=\"nui-header-links\" aria-label=\"Workspace\">\n {records(props.headerLinks).map((link) => (\n <a\n href={text(link.href)}\n key={text(link.label)}\n aria-current={\n link.href === activePath ||\n (link.href === \"/settings/profile\" &&\n typeof activePath === \"string\" &&\n activePath.startsWith(\"/settings/\"))\n ? \"page\"\n : undefined\n }\n >\n {text(link.label)}\n </a>\n ))}\n </nav>\n <div className=\"nui-toolbar\">\n <button\n type=\"button\"\n aria-label=\"Search\"\n className=\"nui-search\"\n onClick={() => show(command.current)}\n >\n <Icon name=\"search\" size={16} />\n <span>Search</span>\n <kbd>⌘ K</kbd>\n </button>\n <button\n type=\"button\"\n className=\"nui-icon-button\"\n aria-label={dark ? \"Use light theme\" : \"Use dark theme\"}\n onClick={() => {\n setDark(!dark);\n emit(\n ctx,\n \"onThemeChange\",\n { theme: dark ? \"light\" : \"dark\" },\n dark ? \"light\" : \"dark\",\n );\n }}\n >\n <Icon name={dark ? \"moon\" : \"sun\"} />\n </button>\n <details className=\"nui-user-menu\">\n <summary aria-label=\"Open account menu\">\n <span className=\"nui-avatar\">{text(props.initials, \"SN\")}</span>\n </summary>\n <nav aria-label=\"Account\">\n {records(\n props.accountLinks ?? [\n { href: \"/settings/profile\", label: \"Profile\" },\n { href: \"/settings/account\", label: \"Account\" },\n { href: \"/settings/notifications\", label: \"Notifications\" },\n { href: \"/sign-in\", label: \"Sign in\" },\n ],\n ).map((link) => (\n <a key={text(link.href)} href={text(link.href)}>\n {text(link.label)}\n </a>\n ))}\n </nav>\n </details>\n {ctx.slots.headerActions as ReactNode[]}\n </div>\n </header>\n <main className=\"nui-content-shell\" style={{ flex: 1, minHeight: 0, minWidth: 0 }}>\n <ScrollArea\n style={{ height: \"100%\" }}\n viewportProps={{ className: \"nui-content\", \"aria-label\": \"Page content\" }}\n >\n <div className=\"nui-content-inner\">{ctx.children as ReactNode[]}</div>\n </ScrollArea>\n </main>\n {ctx.slots.footer as ReactNode[]}\n </div>\n {hasSidebar && (\n <dialog\n ref={mobile}\n className=\"nui-mobile\"\n aria-label=\"Navigation\"\n onClose={() => {\n releaseMobileBounds.current?.();\n releaseMobileBounds.current = null;\n setMobileOpen(false);\n trigger.current?.focus();\n }}\n >\n <button\n type=\"button\"\n className=\"nui-icon-button nui-mobile-close\"\n aria-label=\"Close navigation\"\n onClick={() => close(mobile.current)}\n >\n <Icon name=\"x\" />\n </button>\n <ScrollArea\n style={{ height: \"calc(100% - 40px)\" }}\n fillContent\n viewportProps={{ \"aria-label\": \"Navigation links\" }}\n >\n <div\n onClick={(e) => {\n if ((e.target as Element).closest('a, button[data-uibot-type=\"MenuLink\"]'))\n close(mobile.current);\n }}\n >\n {ctx.slots.sidebar as ReactNode[]}\n </div>\n </ScrollArea>\n </dialog>\n )}\n <dialog\n ref={command}\n className=\"nui-command\"\n aria-label=\"Search pages\"\n onClose={() => {\n setQuery(\"\");\n trigger.current?.focus();\n }}\n onKeyDown={(event) => {\n if (\n ![\"ArrowDown\", \"ArrowUp\", \"Home\", \"End\"].includes(event.key) ||\n event.target instanceof HTMLInputElement\n )\n return;\n const links = Array.from(\n command.current?.querySelectorAll<HTMLAnchorElement>(\"nav a\") ?? [],\n );\n if (!links.length) return;\n event.preventDefault();\n const index = links.indexOf(document.activeElement as HTMLAnchorElement);\n const next =\n event.key === \"Home\"\n ? 0\n : event.key === \"End\"\n ? links.length - 1\n : (index + (event.key === \"ArrowDown\" ? 1 : -1) + links.length) % links.length;\n links[next]?.focus();\n }}\n >\n <input\n aria-label=\"Search pages\"\n autoComplete=\"off\"\n placeholder=\"Type a command or search...\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"ArrowDown\" || e.key === \"ArrowUp\") {\n const links = command.current?.querySelectorAll<HTMLAnchorElement>(\"nav a\");\n if (!links?.length) return;\n e.preventDefault();\n links[e.key === \"ArrowDown\" ? 0 : links.length - 1]?.focus();\n }\n }}\n />\n <ScrollArea style={{ maxHeight: 360 }} viewportProps={{ \"aria-label\": \"Search results\" }}>\n <nav>\n {routes.map((route) => (\n <a\n className=\"nui-nav-link\"\n href={text(route.href)}\n key={text(route.href)}\n onClick={() => close(command.current)}\n >\n <Icon name={text(route.icon, \"chevron-right\")} />\n {text(route.label)}\n </a>\n ))}\n {!routes.length && <p className=\"p-4 text-sm\">No results found.</p>}\n </nav>\n </ScrollArea>\n </dialog>\n </div>\n </Direction.Provider>\n );\n}\n\nimport { pageLayoutTokenStyle } from \"./layout-tokens\";\n",
|
|
18
18
|
"type": "registry:ui"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "admin-tasks",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Task management: shared UiBot Admin page source.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/data-table",
|
|
9
|
+
"@uibot/feedback",
|
|
10
|
+
"@uibot/field",
|
|
11
|
+
"@uibot/form",
|
|
12
|
+
"@uibot/layout"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/admin-tasks.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/admin-tasks.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: tasks\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: Find\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onStateChange:\n - watch:\n - editorOpen\n - draft.title\n - draft.label\n - draft.status\n - draft.priority\n run: []\n path: /tasks\n title: Tasks\n state:\n direction: ltr\n font: Inter\n selectionEvent: null\n theme: light\n currentPath: /tasks\n rows:\n - id: TASK-8782\n title: Document release rollback steps\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8783\n title: Fix keyboard focus in the task drawer\n label: bug\n status: todo\n priority: high\n - id: TASK-8784\n title: Add status filters to the task list\n label: feature\n status: in progress\n priority: low\n - id: TASK-8785\n title: Update deployment checklist\n label: documentation\n status: done\n priority: medium\n - id: TASK-8786\n title: Investigate duplicate task submissions\n label: bug\n status: canceled\n priority: high\n - id: TASK-8787\n title: Add saved table views\n label: feature\n status: backlog\n priority: low\n - id: TASK-8788\n title: Document task priority definitions\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8789\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8790\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8791\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8792\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8793\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8794\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8795\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8796\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8797\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8798\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8799\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8800\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8801\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8802\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8803\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8804\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8805\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8806\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8807\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8808\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8809\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8810\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8811\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8812\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8813\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8814\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8815\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8816\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8817\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8818\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8819\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8820\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8821\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8822\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8823\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8824\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8825\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8826\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8827\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8828\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8829\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8830\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8831\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8832\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8833\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8834\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8835\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8836\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8837\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8838\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8839\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8840\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8841\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8842\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8843\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8844\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8845\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8846\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8847\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8848\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8849\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8850\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8851\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8852\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8853\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8854\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8855\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8856\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8857\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8858\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8859\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8860\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8861\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8862\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8863\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8864\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8865\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8866\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8867\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8868\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8869\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8870\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8871\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8872\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8873\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8874\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8875\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8876\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8877\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8878\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8879\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8880\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8881\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: backlog\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n editorBaseline: {}\n discardEditorOpen: false\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Tasks\n - type: Paragraph\n props:\n text: Sample tasks for triage and prioritization.\n muted: true\n size: sm\n - type: Button\n props:\n label: Create\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorBaseline\n value:\n title:\n _state: draft.title\n label:\n _state: draft.label\n status:\n _state: draft.status\n priority:\n _state: draft.priority\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: id\n label: Task\n kind: muted\n - key: title\n label: Title\n kind: text\n badgeKey: label\n - key: status\n label: Status\n kind: badge\n - key: priority\n label: Priority\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - key: priority\n label: Priority\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n searchKeys:\n - id\n - title\n searchPlaceholder: Filter tasks...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorBaseline\n value:\n title:\n _state: draft.title\n label:\n _state: draft.label\n status:\n _state: draft.status\n priority:\n _state: draft.priority\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono\n text-xs\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit task\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: title\n label: Title\n kind: text\n value:\n _bindState: draft.title\n required: true\n - type: Field\n props:\n name: label\n label: Label\n kind: select\n value:\n _bindState: draft.label\n required: true\n options:\n - value: documentation\n label: Documentation\n - value: bug\n label: Bug\n - value: feature\n label: Feature\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Field\n props:\n name: priority\n label: Priority\n kind: radio\n value:\n _bindState: draft.priority\n required: true\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n _if:\n - _eq:\n - _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n - InsertOne\n - operation: InsertOne\n data:\n title:\n _event: values.title\n label:\n _event: values.label\n status:\n _event: values.status\n priority:\n _event: values.priority\n - operation: UpdateOne\n data:\n title:\n _event: values.title\n label:\n _event: values.label\n status:\n _event: values.status\n priority:\n _event: values.priority\n filter:\n id:\n _state: draft.id\n version:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: Find\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: discardEditorOpen\n value:\n _computed: editorDirty\n - action: SetState\n params:\n path: editorOpen\n value:\n _computed: editorDirty\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently\n removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n version:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: Find\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Tasks\n href: /tasks\n appearance: admin\n routes:\n - label: Tasks\n href: /tasks\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n - type: Modal\n props:\n open:\n _state: discardEditorOpen\n pending:\n _state: saving\n title: Discard unsaved changes?\n description: Your edits will be lost if you discard them.\n events:\n onClose: &a1\n - &a2\n action: SetState\n params:\n path: discardEditorOpen\n value: false\n children:\n - type: Button\n props:\n label: Stay\n variant: outline\n events:\n onClick: *a1\n - type: Button\n props:\n label: Discard\n variant: destructive\n events:\n onClick:\n - *a2\n - action: SetState\n params:\n path: editorOpen\n value: false\n urlState:\n tableView:\n param: view\n default: \"\"\n computed:\n editorDirty:\n _not:\n _and:\n - _eq:\n - _if:\n - _state: draft.title\n - _state: draft.title\n - \"\"\n - _if:\n - _state: editorBaseline.title\n - _state: editorBaseline.title\n - \"\"\n - _eq:\n - _if:\n - _state: draft.label\n - _state: draft.label\n - \"\"\n - _if:\n - _state: editorBaseline.label\n - _state: editorBaseline.label\n - \"\"\n - _eq:\n - _if:\n - _state: draft.status\n - _state: draft.status\n - \"\"\n - _if:\n - _state: editorBaseline.status\n - _state: editorBaseline.status\n - \"\"\n - _eq:\n - _if:\n - _state: draft.priority\n - _state: draft.priority\n - \"\"\n - _if:\n - _state: editorBaseline.priority\n - _state: editorBaseline.priority\n - \"\"\nconnections:\n - id: tasks-db\n type: Collection\n entity: tasks\n mock:\n seed:\n - id: TASK-8782\n title: Document release rollback steps\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8783\n title: Fix keyboard focus in the task drawer\n label: bug\n status: todo\n priority: high\n - id: TASK-8784\n title: Add status filters to the task list\n label: feature\n status: in progress\n priority: low\n - id: TASK-8785\n title: Update deployment checklist\n label: documentation\n status: done\n priority: medium\n - id: TASK-8786\n title: Investigate duplicate task submissions\n label: bug\n status: canceled\n priority: high\n - id: TASK-8787\n title: Add saved table views\n label: feature\n status: backlog\n priority: low\n - id: TASK-8788\n title: Document task priority definitions\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8789\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8790\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8791\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8792\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8793\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8794\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8795\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8796\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8797\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8798\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8799\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8800\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8801\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8802\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8803\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8804\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8805\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8806\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8807\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8808\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8809\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8810\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8811\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8812\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8813\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8814\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8815\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8816\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8817\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8818\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8819\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8820\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8821\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8822\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8823\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8824\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8825\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8826\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8827\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8828\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8829\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8830\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8831\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8832\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8833\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8834\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8835\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8836\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8837\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8838\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8839\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8840\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8841\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8842\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8843\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8844\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8845\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8846\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8847\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8848\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8849\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8850\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8851\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8852\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8853\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8854\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8855\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8856\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8857\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8858\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8859\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8860\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8861\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8862\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8863\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8864\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8865\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8866\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8867\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8868\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8869\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8870\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8871\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8872\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8873\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8874\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8875\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8876\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8877\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8878\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8879\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8880\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8881\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/admin-tasks.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/admin-tasks.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"admin-tasks\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"admin-tasks.uibot.yaml\",\n \"contract\": {\n \"name\": \"admin-tasks\",\n \"description\": \"Task management: shared UiBot Admin page source.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"admin-tasks\",\n \"任务管理\",\n \"Task management\",\n \"tasks\",\n \"data\",\n \"tasks\",\n \"table\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Button\",\n \"DataTable\",\n \"Modal\",\n \"Field\",\n \"Drawer\",\n \"Form\",\n \"Form.Submit\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "admin-tasks",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "admin-tasks.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "admin-tasks",
|
|
37
|
+
"description": "Task management: shared UiBot Admin page source.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"admin-tasks",
|
|
42
|
+
"任务管理",
|
|
43
|
+
"Task management",
|
|
44
|
+
"tasks",
|
|
45
|
+
"data",
|
|
46
|
+
"tasks",
|
|
47
|
+
"table"
|
|
48
|
+
],
|
|
49
|
+
"composedFrom": [
|
|
50
|
+
"PageLayout",
|
|
51
|
+
"Box",
|
|
52
|
+
"Heading",
|
|
53
|
+
"Paragraph",
|
|
54
|
+
"Button",
|
|
55
|
+
"DataTable",
|
|
56
|
+
"Modal",
|
|
57
|
+
"Field",
|
|
58
|
+
"Drawer",
|
|
59
|
+
"Form",
|
|
60
|
+
"Form.Submit"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|