@prenta/admin 2.6.1 → 2.7.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/CHANGELOG.md +98 -0
- package/design-system/tokens.css +179 -85
- package/design-system/tokens.json +276 -85
- package/design-system/tokens.scss +148 -44
- package/design-system/tokens.tailwind.cjs +50 -1
- package/dist/AdminRoot.d.ts.map +1 -1
- package/dist/AdminRoot.js +42 -20
- package/dist/AdminRoot.js.map +1 -1
- package/dist/LoginRoot.d.ts.map +1 -1
- package/dist/LoginRoot.js +2 -1
- package/dist/LoginRoot.js.map +1 -1
- package/dist/__tests__/components/author-avatar.test.js +3 -17
- package/dist/__tests__/components/author-avatar.test.js.map +1 -1
- package/dist/__tests__/components/notification-bell.test.js +86 -15
- package/dist/__tests__/components/notification-bell.test.js.map +1 -1
- package/dist/__tests__/components/responsive-tiers.render.test.d.ts +2 -0
- package/dist/__tests__/components/responsive-tiers.render.test.d.ts.map +1 -0
- package/dist/__tests__/components/responsive-tiers.render.test.js +313 -0
- package/dist/__tests__/components/responsive-tiers.render.test.js.map +1 -0
- package/dist/__tests__/components/serp-preview.render.test.js +6 -3
- package/dist/__tests__/components/serp-preview.render.test.js.map +1 -1
- package/dist/__tests__/components/shell-primitives.render.test.d.ts +2 -0
- package/dist/__tests__/components/shell-primitives.render.test.d.ts.map +1 -0
- package/dist/__tests__/components/shell-primitives.render.test.js +716 -0
- package/dist/__tests__/components/shell-primitives.render.test.js.map +1 -0
- package/dist/__tests__/components/theme-provider-accent.test.js +49 -7
- package/dist/__tests__/components/theme-provider-accent.test.js.map +1 -1
- package/dist/__tests__/components/toggle.test.js +10 -3
- package/dist/__tests__/components/toggle.test.js.map +1 -1
- package/dist/__tests__/components/ui-primitives.test.js +3 -7
- package/dist/__tests__/components/ui-primitives.test.js.map +1 -1
- package/dist/__tests__/layout/build-nav-items.test.js +1 -1
- package/dist/__tests__/layout/build-nav-items.test.js.map +1 -1
- package/dist/__tests__/layout/shell-nav.render.test.d.ts +2 -0
- package/dist/__tests__/layout/shell-nav.render.test.d.ts.map +1 -0
- package/dist/__tests__/layout/shell-nav.render.test.js +736 -0
- package/dist/__tests__/layout/shell-nav.render.test.js.map +1 -0
- package/dist/__tests__/layout/sidebar-forms-submenu.render.test.js +8 -4
- package/dist/__tests__/layout/sidebar-forms-submenu.render.test.js.map +1 -1
- package/dist/__tests__/layout/sidebar-groups.render.test.d.ts +2 -0
- package/dist/__tests__/layout/sidebar-groups.render.test.d.ts.map +1 -0
- package/dist/__tests__/layout/sidebar-groups.render.test.js +56 -0
- package/dist/__tests__/layout/sidebar-groups.render.test.js.map +1 -0
- package/dist/__tests__/layout/sidebar-menus.render.test.d.ts +2 -0
- package/dist/__tests__/layout/sidebar-menus.render.test.d.ts.map +1 -0
- package/dist/__tests__/layout/sidebar-menus.render.test.js +82 -0
- package/dist/__tests__/layout/sidebar-menus.render.test.js.map +1 -0
- package/dist/__tests__/layout/sidebar-plugin-nav.test.js +1 -1
- package/dist/__tests__/layout/sidebar-plugin-nav.test.js.map +1 -1
- package/dist/__tests__/layout/sidebar-posts.test.js +48 -38
- package/dist/__tests__/layout/sidebar-posts.test.js.map +1 -1
- package/dist/__tests__/layout/sidebar-submenu.render.test.js +26 -10
- package/dist/__tests__/layout/sidebar-submenu.render.test.js.map +1 -1
- package/dist/__tests__/layout/topbar.render.test.d.ts +2 -0
- package/dist/__tests__/layout/topbar.render.test.d.ts.map +1 -0
- package/dist/__tests__/layout/topbar.render.test.js +406 -0
- package/dist/__tests__/layout/topbar.render.test.js.map +1 -0
- package/dist/__tests__/lib/api.test.js +2 -0
- package/dist/__tests__/lib/api.test.js.map +1 -1
- package/dist/__tests__/lib/job-drawer.test.d.ts +2 -0
- package/dist/__tests__/lib/job-drawer.test.d.ts.map +1 -0
- package/dist/__tests__/lib/job-drawer.test.js +393 -0
- package/dist/__tests__/lib/job-drawer.test.js.map +1 -0
- package/dist/__tests__/lib/job-view.test.d.ts +2 -0
- package/dist/__tests__/lib/job-view.test.d.ts.map +1 -0
- package/dist/__tests__/lib/job-view.test.js +387 -0
- package/dist/__tests__/lib/job-view.test.js.map +1 -0
- package/dist/__tests__/lib/jobs-service.test.d.ts +2 -0
- package/dist/__tests__/lib/jobs-service.test.d.ts.map +1 -0
- package/dist/__tests__/lib/jobs-service.test.js +88 -0
- package/dist/__tests__/lib/jobs-service.test.js.map +1 -0
- package/dist/__tests__/router/admin-route-order.test.d.ts +2 -0
- package/dist/__tests__/router/admin-route-order.test.d.ts.map +1 -0
- package/dist/__tests__/router/admin-route-order.test.js +36 -0
- package/dist/__tests__/router/admin-route-order.test.js.map +1 -0
- package/dist/__tests__/styles/ai-gradient-contrast.test.d.ts +2 -0
- package/dist/__tests__/styles/ai-gradient-contrast.test.d.ts.map +1 -0
- package/dist/__tests__/styles/ai-gradient-contrast.test.js +110 -0
- package/dist/__tests__/styles/ai-gradient-contrast.test.js.map +1 -0
- package/dist/__tests__/styles/breakpoint-order.test.d.ts +2 -0
- package/dist/__tests__/styles/breakpoint-order.test.d.ts.map +1 -0
- package/dist/__tests__/styles/breakpoint-order.test.js +52 -0
- package/dist/__tests__/styles/breakpoint-order.test.js.map +1 -0
- package/dist/__tests__/styles/responsive-layer.test.js +303 -12
- package/dist/__tests__/styles/responsive-layer.test.js.map +1 -1
- package/dist/__tests__/styles/tailwind-preset.test.d.ts +2 -0
- package/dist/__tests__/styles/tailwind-preset.test.d.ts.map +1 -0
- package/dist/__tests__/styles/tailwind-preset.test.js +147 -0
- package/dist/__tests__/styles/tailwind-preset.test.js.map +1 -0
- package/dist/__tests__/styles/theme-token-scope.test.js +9 -3
- package/dist/__tests__/styles/theme-token-scope.test.js.map +1 -1
- package/dist/__tests__/styles/tiers.test.d.ts +2 -0
- package/dist/__tests__/styles/tiers.test.d.ts.map +1 -0
- package/dist/__tests__/styles/tiers.test.js +121 -0
- package/dist/__tests__/styles/tiers.test.js.map +1 -0
- package/dist/__tests__/styles/tokens-drift.test.js +57 -6
- package/dist/__tests__/styles/tokens-drift.test.js.map +1 -1
- package/dist/__tests__/views/admin-lazy-route.render.test.js +27 -1
- package/dist/__tests__/views/admin-lazy-route.render.test.js.map +1 -1
- package/dist/__tests__/views/ai-settings.render.test.js +4 -4
- package/dist/__tests__/views/appearance-menus-route.render.test.d.ts +2 -0
- package/dist/__tests__/views/appearance-menus-route.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/appearance-menus-route.render.test.js +50 -0
- package/dist/__tests__/views/appearance-menus-route.render.test.js.map +1 -0
- package/dist/__tests__/views/appearance-settings.render.test.js +8 -6
- package/dist/__tests__/views/appearance-settings.render.test.js.map +1 -1
- package/dist/__tests__/views/appearance-theme-provider.render.test.d.ts +2 -0
- package/dist/__tests__/views/appearance-theme-provider.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/appearance-theme-provider.render.test.js +286 -0
- package/dist/__tests__/views/appearance-theme-provider.render.test.js.map +1 -0
- package/dist/__tests__/views/dashboard.test.js +37 -0
- package/dist/__tests__/views/dashboard.test.js.map +1 -1
- package/dist/__tests__/views/document-edit-navigation.render.test.d.ts +2 -0
- package/dist/__tests__/views/document-edit-navigation.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/document-edit-navigation.render.test.js +101 -0
- package/dist/__tests__/views/document-edit-navigation.render.test.js.map +1 -0
- package/dist/__tests__/views/document-edit-routes.render.test.d.ts +2 -0
- package/dist/__tests__/views/document-edit-routes.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/document-edit-routes.render.test.js +113 -0
- package/dist/__tests__/views/document-edit-routes.render.test.js.map +1 -0
- package/dist/__tests__/views/email-settings.render.test.js +2 -2
- package/dist/__tests__/views/form-entries.render.test.js +15 -0
- package/dist/__tests__/views/form-entries.render.test.js.map +1 -1
- package/dist/__tests__/views/form-submissions.render.test.js +18 -0
- package/dist/__tests__/views/form-submissions.render.test.js.map +1 -1
- package/dist/__tests__/views/forms-list.render.test.js +12 -0
- package/dist/__tests__/views/forms-list.render.test.js.map +1 -1
- package/dist/__tests__/views/general-settings.render.test.js +26 -10
- package/dist/__tests__/views/general-settings.render.test.js.map +1 -1
- package/dist/__tests__/views/jobs-drawer.render.test.d.ts +2 -0
- package/dist/__tests__/views/jobs-drawer.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/jobs-drawer.render.test.js +908 -0
- package/dist/__tests__/views/jobs-drawer.render.test.js.map +1 -0
- package/dist/__tests__/views/jobs-list.render.test.d.ts +2 -0
- package/dist/__tests__/views/jobs-list.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/jobs-list.render.test.js +695 -0
- package/dist/__tests__/views/jobs-list.render.test.js.map +1 -0
- package/dist/__tests__/views/kpi-grid.test.d.ts +2 -0
- package/dist/__tests__/views/kpi-grid.test.d.ts.map +1 -0
- package/dist/__tests__/views/kpi-grid.test.js +26 -0
- package/dist/__tests__/views/kpi-grid.test.js.map +1 -0
- package/dist/__tests__/views/post-section-editor.test.js +3 -1
- package/dist/__tests__/views/post-section-editor.test.js.map +1 -1
- package/dist/__tests__/views/script-tags.render.test.js +25 -0
- package/dist/__tests__/views/script-tags.render.test.js.map +1 -1
- package/dist/__tests__/views/security-settings.render.test.js +9 -8
- package/dist/__tests__/views/security-settings.render.test.js.map +1 -1
- package/dist/__tests__/views/seo-settings.render.test.js +7 -7
- package/dist/__tests__/views/seo-settings.render.test.js.map +1 -1
- package/dist/__tests__/views/settings-save-bar.render.test.d.ts +2 -0
- package/dist/__tests__/views/settings-save-bar.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/settings-save-bar.render.test.js +68 -0
- package/dist/__tests__/views/settings-save-bar.render.test.js.map +1 -0
- package/dist/__tests__/views/settings-save-footer.render.test.js +23 -15
- package/dist/__tests__/views/settings-save-footer.render.test.js.map +1 -1
- package/dist/__tests__/views/settings-tabs.render.test.d.ts +2 -0
- package/dist/__tests__/views/settings-tabs.render.test.d.ts.map +1 -0
- package/dist/__tests__/views/settings-tabs.render.test.js +319 -0
- package/dist/__tests__/views/settings-tabs.render.test.js.map +1 -0
- package/dist/__tests__/views/updates-tab.render.test.js +4 -3
- package/dist/__tests__/views/updates-tab.render.test.js.map +1 -1
- package/dist/components/Breadcrumbs.d.ts +8 -1
- package/dist/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.js +6 -0
- package/dist/components/Breadcrumbs.js.map +1 -1
- package/dist/components/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette.js +40 -4
- package/dist/components/CommandPalette.js.map +1 -1
- package/dist/components/LocaleSwitcher.d.ts.map +1 -1
- package/dist/components/LocaleSwitcher.js +1 -1
- package/dist/components/LocaleSwitcher.js.map +1 -1
- package/dist/components/NotificationBell.d.ts.map +1 -1
- package/dist/components/NotificationBell.js +44 -3
- package/dist/components/NotificationBell.js.map +1 -1
- package/dist/components/OfflineStatus.js +1 -1
- package/dist/components/OfflineStatus.js.map +1 -1
- package/dist/components/PresenceIndicator.d.ts.map +1 -1
- package/dist/components/PresenceIndicator.js +2 -1
- package/dist/components/PresenceIndicator.js.map +1 -1
- package/dist/components/ReflowMeter.js +2 -2
- package/dist/components/ReflowMeter.js.map +1 -1
- package/dist/components/SEOPanel.js +2 -2
- package/dist/components/SEOPanel.js.map +1 -1
- package/dist/components/ThemeProvider.d.ts +24 -4
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider.js +80 -22
- package/dist/components/ThemeProvider.js.map +1 -1
- package/dist/components/TipTapEditor.d.ts.map +1 -1
- package/dist/components/TipTapEditor.js +3 -4
- package/dist/components/TipTapEditor.js.map +1 -1
- package/dist/components/forms/EmbedPanel.js +1 -1
- package/dist/components/forms/EmbedPanel.js.map +1 -1
- package/dist/components/forms/FormEntryDetailPane.js +6 -1
- package/dist/components/forms/FormEntryDetailPane.js.map +1 -1
- package/dist/components/forms/ShortcodeGlossary.d.ts.map +1 -1
- package/dist/components/forms/ShortcodeGlossary.js +6 -1
- package/dist/components/forms/ShortcodeGlossary.js.map +1 -1
- package/dist/components/forms/primitives.d.ts +15 -5
- package/dist/components/forms/primitives.d.ts.map +1 -1
- package/dist/components/forms/primitives.js +11 -11
- package/dist/components/forms/primitives.js.map +1 -1
- package/dist/components/pages/tag-badges.d.ts +2 -1
- package/dist/components/pages/tag-badges.d.ts.map +1 -1
- package/dist/components/pages/tag-badges.js +4 -3
- package/dist/components/pages/tag-badges.js.map +1 -1
- package/dist/components/seo/PageAuditPanel.js +2 -2
- package/dist/components/seo/PageAuditPanel.js.map +1 -1
- package/dist/components/seo/SerpPreview.d.ts +4 -4
- package/dist/components/seo/SerpPreview.js +1 -1
- package/dist/components/seo/SerpPreview.js.map +1 -1
- package/dist/components/seo/primitives.js +2 -2
- package/dist/components/seo/primitives.js.map +1 -1
- package/dist/components/ui/AuthorAvatar.d.ts +4 -4
- package/dist/components/ui/AuthorAvatar.d.ts.map +1 -1
- package/dist/components/ui/AuthorAvatar.js +11 -10
- package/dist/components/ui/AuthorAvatar.js.map +1 -1
- package/dist/components/ui/Badge.d.ts +1 -1
- package/dist/components/ui/Badge.js +1 -1
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Breadcrumb.d.ts +27 -0
- package/dist/components/ui/Breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/Breadcrumb.js +41 -0
- package/dist/components/ui/Breadcrumb.js.map +1 -0
- package/dist/components/ui/Button.d.ts +2 -2
- package/dist/components/ui/Button.d.ts.map +1 -1
- package/dist/components/ui/Button.js +31 -16
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Card.d.ts +8 -4
- package/dist/components/ui/Card.d.ts.map +1 -1
- package/dist/components/ui/Card.js +21 -13
- package/dist/components/ui/Card.js.map +1 -1
- package/dist/components/ui/CardListControls.d.ts +34 -0
- package/dist/components/ui/CardListControls.d.ts.map +1 -0
- package/dist/components/ui/CardListControls.js +25 -0
- package/dist/components/ui/CardListControls.js.map +1 -0
- package/dist/components/ui/CountChip.d.ts +20 -0
- package/dist/components/ui/CountChip.d.ts.map +1 -0
- package/dist/components/ui/CountChip.js +48 -0
- package/dist/components/ui/CountChip.js.map +1 -0
- package/dist/components/ui/FilterPill.d.ts +2 -1
- package/dist/components/ui/FilterPill.d.ts.map +1 -1
- package/dist/components/ui/FilterPill.js +3 -2
- package/dist/components/ui/FilterPill.js.map +1 -1
- package/dist/components/ui/Input.d.ts +1 -1
- package/dist/components/ui/InspectorPane.d.ts +1 -1
- package/dist/components/ui/InspectorPane.d.ts.map +1 -1
- package/dist/components/ui/InspectorPane.js +15 -4
- package/dist/components/ui/InspectorPane.js.map +1 -1
- package/dist/components/ui/Modal.d.ts.map +1 -1
- package/dist/components/ui/Modal.js +10 -2
- package/dist/components/ui/Modal.js.map +1 -1
- package/dist/components/ui/PageHeader.d.ts +28 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.js +18 -0
- package/dist/components/ui/PageHeader.js.map +1 -0
- package/dist/components/ui/RowActions.d.ts +5 -0
- package/dist/components/ui/RowActions.d.ts.map +1 -1
- package/dist/components/ui/RowActions.js +7 -2
- package/dist/components/ui/RowActions.js.map +1 -1
- package/dist/components/ui/Segmented.d.ts +21 -0
- package/dist/components/ui/Segmented.d.ts.map +1 -0
- package/dist/components/ui/Segmented.js +41 -0
- package/dist/components/ui/Segmented.js.map +1 -0
- package/dist/components/ui/Toaster.d.ts +12 -0
- package/dist/components/ui/Toaster.d.ts.map +1 -0
- package/dist/components/ui/Toaster.js +103 -0
- package/dist/components/ui/Toaster.js.map +1 -0
- package/dist/components/ui/Toggle.d.ts +4 -3
- package/dist/components/ui/Toggle.d.ts.map +1 -1
- package/dist/components/ui/Toggle.js +16 -12
- package/dist/components/ui/Toggle.js.map +1 -1
- package/dist/components/ui/UnderlineTabs.d.ts +56 -0
- package/dist/components/ui/UnderlineTabs.d.ts.map +1 -0
- package/dist/components/ui/UnderlineTabs.js +205 -0
- package/dist/components/ui/UnderlineTabs.js.map +1 -0
- package/dist/components/ui/UnsavedBar.d.ts +25 -0
- package/dist/components/ui/UnsavedBar.d.ts.map +1 -0
- package/dist/components/ui/UnsavedBar.js +22 -0
- package/dist/components/ui/UnsavedBar.js.map +1 -0
- package/dist/components/ui/admin-links.d.ts +11 -0
- package/dist/components/ui/admin-links.d.ts.map +1 -0
- package/dist/components/ui/admin-links.js +10 -0
- package/dist/components/ui/admin-links.js.map +1 -0
- package/dist/components/ui/card-table.d.ts +43 -0
- package/dist/components/ui/card-table.d.ts.map +1 -0
- package/dist/components/ui/card-table.js +31 -0
- package/dist/components/ui/card-table.js.map +1 -0
- package/dist/components/virtual-window.d.ts +7 -0
- package/dist/components/virtual-window.d.ts.map +1 -1
- package/dist/components/virtual-window.js +5 -2
- package/dist/components/virtual-window.js.map +1 -1
- package/dist/fields/RelationshipField.js +1 -1
- package/dist/fields/RelationshipField.js.map +1 -1
- package/dist/files/dm-mono-latin-400-normal.woff +0 -0
- package/dist/files/dm-mono-latin-400-normal.woff2 +0 -0
- package/dist/files/dm-mono-latin-500-normal.woff +0 -0
- package/dist/files/dm-mono-latin-500-normal.woff2 +0 -0
- package/dist/files/dm-mono-latin-ext-400-normal.woff +0 -0
- package/dist/files/dm-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/dm-mono-latin-ext-500-normal.woff +0 -0
- package/dist/files/dm-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-400-normal.woff +0 -0
- package/dist/files/dm-sans-latin-400-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-500-normal.woff +0 -0
- package/dist/files/dm-sans-latin-500-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-600-normal.woff +0 -0
- package/dist/files/dm-sans-latin-600-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-700-normal.woff +0 -0
- package/dist/files/dm-sans-latin-700-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-ext-400-normal.woff +0 -0
- package/dist/files/dm-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-ext-500-normal.woff +0 -0
- package/dist/files/dm-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-ext-600-normal.woff +0 -0
- package/dist/files/dm-sans-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/dm-sans-latin-ext-700-normal.woff +0 -0
- package/dist/files/dm-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/hooks/useAppearanceBootstrap.d.ts.map +1 -1
- package/dist/hooks/useAppearanceBootstrap.js +9 -3
- package/dist/hooks/useAppearanceBootstrap.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/layout/Header.d.ts +14 -5
- package/dist/layout/Header.d.ts.map +1 -1
- package/dist/layout/Header.js +78 -13
- package/dist/layout/Header.js.map +1 -1
- package/dist/layout/Layout.d.ts +5 -3
- package/dist/layout/Layout.d.ts.map +1 -1
- package/dist/layout/Layout.js +45 -54
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/MobileTabBar.d.ts +20 -0
- package/dist/layout/MobileTabBar.d.ts.map +1 -0
- package/dist/layout/MobileTabBar.js +29 -0
- package/dist/layout/MobileTabBar.js.map +1 -0
- package/dist/layout/Sidebar.d.ts +8 -26
- package/dist/layout/Sidebar.d.ts.map +1 -1
- package/dist/layout/Sidebar.js +309 -345
- package/dist/layout/Sidebar.js.map +1 -1
- package/dist/layout/nav-config.d.ts +101 -0
- package/dist/layout/nav-config.d.ts.map +1 -0
- package/dist/layout/nav-config.js +297 -0
- package/dist/layout/nav-config.js.map +1 -0
- package/dist/layout/primitives/AdminShell.d.ts +10 -2
- package/dist/layout/primitives/AdminShell.d.ts.map +1 -1
- package/dist/layout/primitives/AdminShell.js +114 -6
- package/dist/layout/primitives/AdminShell.js.map +1 -1
- package/dist/layout/topbar-classes.d.ts +8 -0
- package/dist/layout/topbar-classes.d.ts.map +1 -0
- package/dist/layout/topbar-classes.js +8 -0
- package/dist/layout/topbar-classes.js.map +1 -0
- package/dist/layout/use-nav-items.d.ts +10 -0
- package/dist/layout/use-nav-items.d.ts.map +1 -0
- package/dist/layout/use-nav-items.js +39 -0
- package/dist/layout/use-nav-items.js.map +1 -0
- package/dist/lib/api.d.ts +6 -0
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +1 -1
- package/dist/lib/api.js.map +1 -1
- package/dist/lib/appearance-api.d.ts +3 -1
- package/dist/lib/appearance-api.d.ts.map +1 -1
- package/dist/lib/appearance-api.js +1 -0
- package/dist/lib/appearance-api.js.map +1 -1
- package/dist/lib/job-drawer.d.ts +128 -0
- package/dist/lib/job-drawer.d.ts.map +1 -0
- package/dist/lib/job-drawer.js +351 -0
- package/dist/lib/job-drawer.js.map +1 -0
- package/dist/lib/job-view.d.ts +187 -0
- package/dist/lib/job-view.d.ts.map +1 -0
- package/dist/lib/job-view.js +363 -0
- package/dist/lib/job-view.js.map +1 -0
- package/dist/lib/jobs-service.d.ts +134 -0
- package/dist/lib/jobs-service.d.ts.map +1 -0
- package/dist/lib/jobs-service.js +179 -0
- package/dist/lib/jobs-service.js.map +1 -0
- package/dist/lib/sheet-focus.d.ts +24 -0
- package/dist/lib/sheet-focus.d.ts.map +1 -0
- package/dist/lib/sheet-focus.js +61 -0
- package/dist/lib/sheet-focus.js.map +1 -0
- package/dist/lib/tiers.d.ts +30 -0
- package/dist/lib/tiers.d.ts.map +1 -0
- package/dist/lib/tiers.js +43 -0
- package/dist/lib/tiers.js.map +1 -0
- package/dist/prenta-admin.css +1 -1
- package/dist/router/admin-routes.d.ts.map +1 -1
- package/dist/router/admin-routes.js +8 -0
- package/dist/router/admin-routes.js.map +1 -1
- package/dist/router/index.d.ts +5 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +7 -0
- package/dist/router/index.js.map +1 -1
- package/dist/views/ApiKeys.js +2 -2
- package/dist/views/ApiKeys.js.map +1 -1
- package/dist/views/AppearanceChrome.d.ts +6 -0
- package/dist/views/AppearanceChrome.d.ts.map +1 -0
- package/dist/views/AppearanceChrome.js +25 -0
- package/dist/views/AppearanceChrome.js.map +1 -0
- package/dist/views/CollectionList.d.ts.map +1 -1
- package/dist/views/CollectionList.js +73 -53
- package/dist/views/CollectionList.js.map +1 -1
- package/dist/views/Dashboard.d.ts.map +1 -1
- package/dist/views/Dashboard.js +14 -8
- package/dist/views/Dashboard.js.map +1 -1
- package/dist/views/DocumentEdit.d.ts +6 -1
- package/dist/views/DocumentEdit.d.ts.map +1 -1
- package/dist/views/DocumentEdit.js +44 -8
- package/dist/views/DocumentEdit.js.map +1 -1
- package/dist/views/FormDeliveries.d.ts.map +1 -1
- package/dist/views/FormDeliveries.js +7 -1
- package/dist/views/FormDeliveries.js.map +1 -1
- package/dist/views/FormEntries.d.ts.map +1 -1
- package/dist/views/FormEntries.js +11 -2
- package/dist/views/FormEntries.js.map +1 -1
- package/dist/views/FormSubmissions.d.ts +1 -1
- package/dist/views/FormSubmissions.d.ts.map +1 -1
- package/dist/views/FormSubmissions.js +15 -4
- package/dist/views/FormSubmissions.js.map +1 -1
- package/dist/views/Forms.d.ts.map +1 -1
- package/dist/views/Forms.js +6 -4
- package/dist/views/Forms.js.map +1 -1
- package/dist/views/FormsSettings.d.ts +2 -0
- package/dist/views/FormsSettings.d.ts.map +1 -0
- package/dist/views/FormsSettings.js +37 -0
- package/dist/views/FormsSettings.js.map +1 -0
- package/dist/views/Jobs/BusyButton.d.ts +15 -0
- package/dist/views/Jobs/BusyButton.d.ts.map +1 -0
- package/dist/views/Jobs/BusyButton.js +26 -0
- package/dist/views/Jobs/BusyButton.js.map +1 -0
- package/dist/views/Jobs/CancelJobDialog.d.ts +21 -0
- package/dist/views/Jobs/CancelJobDialog.d.ts.map +1 -0
- package/dist/views/Jobs/CancelJobDialog.js +66 -0
- package/dist/views/Jobs/CancelJobDialog.js.map +1 -0
- package/dist/views/Jobs/DrawerActivity.d.ts +16 -0
- package/dist/views/Jobs/DrawerActivity.d.ts.map +1 -0
- package/dist/views/Jobs/DrawerActivity.js +59 -0
- package/dist/views/Jobs/DrawerActivity.js.map +1 -0
- package/dist/views/Jobs/DrawerOverview.d.ts +28 -0
- package/dist/views/Jobs/DrawerOverview.d.ts.map +1 -0
- package/dist/views/Jobs/DrawerOverview.js +32 -0
- package/dist/views/Jobs/DrawerOverview.js.map +1 -0
- package/dist/views/Jobs/DrawerResults.d.ts +25 -0
- package/dist/views/Jobs/DrawerResults.d.ts.map +1 -0
- package/dist/views/Jobs/DrawerResults.js +50 -0
- package/dist/views/Jobs/DrawerResults.js.map +1 -0
- package/dist/views/Jobs/DrawerReview.d.ts +44 -0
- package/dist/views/Jobs/DrawerReview.d.ts.map +1 -0
- package/dist/views/Jobs/DrawerReview.js +110 -0
- package/dist/views/Jobs/DrawerReview.js.map +1 -0
- package/dist/views/Jobs/JobDrawer.d.ts +31 -0
- package/dist/views/Jobs/JobDrawer.d.ts.map +1 -0
- package/dist/views/Jobs/JobDrawer.js +353 -0
- package/dist/views/Jobs/JobDrawer.js.map +1 -0
- package/dist/views/Jobs/JobsTable.d.ts +19 -0
- package/dist/views/Jobs/JobsTable.d.ts.map +1 -0
- package/dist/views/Jobs/JobsTable.js +80 -0
- package/dist/views/Jobs/JobsTable.js.map +1 -0
- package/dist/views/Jobs/WorkerStrip.d.ts +22 -0
- package/dist/views/Jobs/WorkerStrip.d.ts.map +1 -0
- package/dist/views/Jobs/WorkerStrip.js +63 -0
- package/dist/views/Jobs/WorkerStrip.js.map +1 -0
- package/dist/views/Jobs/atoms.d.ts +19 -0
- package/dist/views/Jobs/atoms.d.ts.map +1 -0
- package/dist/views/Jobs/atoms.js +52 -0
- package/dist/views/Jobs/atoms.js.map +1 -0
- package/dist/views/Jobs/focus.d.ts +23 -0
- package/dist/views/Jobs/focus.d.ts.map +1 -0
- package/dist/views/Jobs/focus.js +54 -0
- package/dist/views/Jobs/focus.js.map +1 -0
- package/dist/views/Jobs/icons.d.ts +22 -0
- package/dist/views/Jobs/icons.d.ts.map +1 -0
- package/dist/views/Jobs/icons.js +23 -0
- package/dist/views/Jobs/icons.js.map +1 -0
- package/dist/views/Jobs/placeholders.d.ts +6 -0
- package/dist/views/Jobs/placeholders.d.ts.map +1 -0
- package/dist/views/Jobs/placeholders.js +20 -0
- package/dist/views/Jobs/placeholders.js.map +1 -0
- package/dist/views/Jobs/useJobDetail.d.ts +21 -0
- package/dist/views/Jobs/useJobDetail.d.ts.map +1 -0
- package/dist/views/Jobs/useJobDetail.js +39 -0
- package/dist/views/Jobs/useJobDetail.js.map +1 -0
- package/dist/views/Jobs/useJobsFeed.d.ts +35 -0
- package/dist/views/Jobs/useJobsFeed.d.ts.map +1 -0
- package/dist/views/Jobs/useJobsFeed.js +231 -0
- package/dist/views/Jobs/useJobsFeed.js.map +1 -0
- package/dist/views/Jobs/useReviewItems.d.ts +39 -0
- package/dist/views/Jobs/useReviewItems.d.ts.map +1 -0
- package/dist/views/Jobs/useReviewItems.js +140 -0
- package/dist/views/Jobs/useReviewItems.js.map +1 -0
- package/dist/views/Jobs.d.ts +10 -1
- package/dist/views/Jobs.d.ts.map +1 -1
- package/dist/views/Jobs.js +126 -35
- package/dist/views/Jobs.js.map +1 -1
- package/dist/views/MediaBrowser.d.ts.map +1 -1
- package/dist/views/MediaBrowser.js +37 -9
- package/dist/views/MediaBrowser.js.map +1 -1
- package/dist/views/Pages/PagesListView.d.ts +1 -1
- package/dist/views/Pages/PagesListView.d.ts.map +1 -1
- package/dist/views/Pages/PagesListView.js +34 -5
- package/dist/views/Pages/PagesListView.js.map +1 -1
- package/dist/views/Posts/NewPostTypeInstructions.d.ts.map +1 -1
- package/dist/views/Posts/NewPostTypeInstructions.js +12 -2
- package/dist/views/Posts/NewPostTypeInstructions.js.map +1 -1
- package/dist/views/Posts/PostTypesView.d.ts.map +1 -1
- package/dist/views/Posts/PostTypesView.js +10 -1
- package/dist/views/Posts/PostTypesView.js.map +1 -1
- package/dist/views/Posts/PostsListView.d.ts +1 -2
- package/dist/views/Posts/PostsListView.d.ts.map +1 -1
- package/dist/views/Posts/PostsListView.js +31 -3
- package/dist/views/Posts/PostsListView.js.map +1 -1
- package/dist/views/SEO.d.ts.map +1 -1
- package/dist/views/SEO.js +3 -3
- package/dist/views/SEO.js.map +1 -1
- package/dist/views/ScriptTags.d.ts.map +1 -1
- package/dist/views/ScriptTags.js +20 -15
- package/dist/views/ScriptTags.js.map +1 -1
- package/dist/views/Settings.d.ts.map +1 -1
- package/dist/views/Settings.js +115 -51
- package/dist/views/Settings.js.map +1 -1
- package/dist/views/SpamFolder.d.ts +2 -0
- package/dist/views/SpamFolder.d.ts.map +1 -0
- package/dist/views/SpamFolder.js +14 -0
- package/dist/views/SpamFolder.js.map +1 -0
- package/dist/views/Trash.d.ts +6 -1
- package/dist/views/Trash.d.ts.map +1 -1
- package/dist/views/Trash.js +7 -2
- package/dist/views/Trash.js.map +1 -1
- package/dist/views/Users.js +2 -2
- package/dist/views/Users.js.map +1 -1
- package/dist/views/WidgetsPlaceholder.d.ts +2 -0
- package/dist/views/WidgetsPlaceholder.d.ts.map +1 -0
- package/dist/views/WidgetsPlaceholder.js +15 -0
- package/dist/views/WidgetsPlaceholder.js.map +1 -0
- package/dist/views/dashboard/kpi-grid.d.ts +18 -0
- package/dist/views/dashboard/kpi-grid.d.ts.map +1 -0
- package/dist/views/dashboard/kpi-grid.js +36 -0
- package/dist/views/dashboard/kpi-grid.js.map +1 -0
- package/dist/views/lazy-views.d.ts +4 -0
- package/dist/views/lazy-views.d.ts.map +1 -1
- package/dist/views/lazy-views.js +4 -0
- package/dist/views/lazy-views.js.map +1 -1
- package/dist/views/page-editor/PageTab.js +1 -1
- package/dist/views/page-editor/PageTab.js.map +1 -1
- package/dist/views/page-editor/ReviewBar.js +1 -1
- package/dist/views/page-editor/ReviewBar.js.map +1 -1
- package/dist/views/page-editor/VersionHistoryPanel.js +1 -1
- package/dist/views/page-editor/VersionHistoryPanel.js.map +1 -1
- package/dist/views/seo/AuditTab.js +1 -1
- package/dist/views/seo/AuditTab.js.map +1 -1
- package/dist/views/seo/OverviewTab.d.ts.map +1 -1
- package/dist/views/seo/OverviewTab.js +2 -2
- package/dist/views/seo/OverviewTab.js.map +1 -1
- package/dist/views/seo/ProposalsTab.js +1 -1
- package/dist/views/seo/ProposalsTab.js.map +1 -1
- package/dist/views/settings/AISettingsTab.d.ts.map +1 -1
- package/dist/views/settings/AISettingsTab.js +4 -2
- package/dist/views/settings/AISettingsTab.js.map +1 -1
- package/dist/views/settings/AccessProtectionCard.js +1 -1
- package/dist/views/settings/AccessProtectionCard.js.map +1 -1
- package/dist/views/settings/AdminThemeCard.d.ts.map +1 -1
- package/dist/views/settings/AdminThemeCard.js +63 -15
- package/dist/views/settings/AdminThemeCard.js.map +1 -1
- package/dist/views/settings/AppearanceTab.d.ts.map +1 -1
- package/dist/views/settings/AppearanceTab.js +4 -2
- package/dist/views/settings/AppearanceTab.js.map +1 -1
- package/dist/views/settings/BrandPreviewCard.js +1 -1
- package/dist/views/settings/BrandPreviewCard.js.map +1 -1
- package/dist/views/settings/BrandVoiceCard.js +1 -1
- package/dist/views/settings/BrandVoiceCard.js.map +1 -1
- package/dist/views/settings/EmailSettingsTab.d.ts.map +1 -1
- package/dist/views/settings/EmailSettingsTab.js +5 -3
- package/dist/views/settings/EmailSettingsTab.js.map +1 -1
- package/dist/views/settings/GeneralSettingsTab.d.ts.map +1 -1
- package/dist/views/settings/GeneralSettingsTab.js +4 -2
- package/dist/views/settings/GeneralSettingsTab.js.map +1 -1
- package/dist/views/settings/ProviderConnectionCard.js +1 -1
- package/dist/views/settings/ProviderConnectionCard.js.map +1 -1
- package/dist/views/settings/SearchDataCard.js +1 -1
- package/dist/views/settings/SearchDataCard.js.map +1 -1
- package/dist/views/settings/SecurityStatusCard.js +2 -2
- package/dist/views/settings/SecurityStatusCard.js.map +1 -1
- package/dist/views/settings/SecurityTab.d.ts.map +1 -1
- package/dist/views/settings/SecurityTab.js +4 -2
- package/dist/views/settings/SecurityTab.js.map +1 -1
- package/dist/views/settings/SeoAutopilotCard.js +2 -2
- package/dist/views/settings/SeoAutopilotCard.js.map +1 -1
- package/dist/views/settings/SeoSettingsTab.d.ts.map +1 -1
- package/dist/views/settings/SeoSettingsTab.js +5 -3
- package/dist/views/settings/SeoSettingsTab.js.map +1 -1
- package/dist/views/settings/SiteIndexStatusCard.js +1 -1
- package/dist/views/settings/SiteIndexStatusCard.js.map +1 -1
- package/dist/views/settings/SiteThemeCard.js +1 -1
- package/dist/views/settings/UpdatesTab.d.ts.map +1 -1
- package/dist/views/settings/UpdatesTab.js +6 -5
- package/dist/views/settings/UpdatesTab.js.map +1 -1
- package/dist/views/settings/components.d.ts +7 -11
- package/dist/views/settings/components.d.ts.map +1 -1
- package/dist/views/settings/components.js +18 -12
- package/dist/views/settings/components.js.map +1 -1
- package/dist/views/settings/useAppearanceSettings.d.ts +7 -1
- package/dist/views/settings/useAppearanceSettings.d.ts.map +1 -1
- package/dist/views/settings/useAppearanceSettings.js +89 -22
- package/dist/views/settings/useAppearanceSettings.js.map +1 -1
- package/dist/views/users/UserDetailDrawer.js +1 -1
- package/dist/views/users/UserDetailDrawer.js.map +1 -1
- package/package.json +10 -8
- package/src/AdminRoot.tsx +88 -30
- package/src/LoginRoot.tsx +2 -1
- package/src/__tests__/components/author-avatar.test.tsx +3 -20
- package/src/__tests__/components/notification-bell.test.tsx +146 -14
- package/src/__tests__/components/responsive-tiers.render.test.tsx +461 -0
- package/src/__tests__/components/serp-preview.render.test.tsx +6 -3
- package/src/__tests__/components/shell-primitives.render.test.tsx +951 -0
- package/src/__tests__/components/theme-provider-accent.test.tsx +83 -8
- package/src/__tests__/components/toggle.test.tsx +11 -3
- package/src/__tests__/components/ui-primitives.test.tsx +5 -8
- package/src/__tests__/layout/build-nav-items.test.ts +1 -1
- package/src/__tests__/layout/shell-nav.render.test.tsx +983 -0
- package/src/__tests__/layout/sidebar-forms-submenu.render.test.tsx +8 -4
- package/src/__tests__/layout/sidebar-groups.render.test.tsx +116 -0
- package/src/__tests__/layout/sidebar-menus.render.test.tsx +116 -0
- package/src/__tests__/layout/sidebar-plugin-nav.test.ts +1 -1
- package/src/__tests__/layout/sidebar-posts.test.ts +48 -40
- package/src/__tests__/layout/sidebar-submenu.render.test.tsx +35 -10
- package/src/__tests__/layout/topbar.render.test.tsx +464 -0
- package/src/__tests__/lib/api.test.ts +2 -0
- package/src/__tests__/lib/job-drawer.test.ts +493 -0
- package/src/__tests__/lib/job-view.test.ts +437 -0
- package/src/__tests__/lib/jobs-service.test.ts +98 -0
- package/src/__tests__/router/admin-route-order.test.ts +39 -0
- package/src/__tests__/styles/ai-gradient-contrast.test.ts +135 -0
- package/src/__tests__/styles/breakpoint-order.test.ts +68 -0
- package/src/__tests__/styles/responsive-layer.test.ts +367 -12
- package/src/__tests__/styles/tailwind-preset.test.ts +154 -0
- package/src/__tests__/styles/theme-token-scope.test.ts +10 -3
- package/src/__tests__/styles/tiers.test.ts +136 -0
- package/src/__tests__/styles/tokens-drift.test.ts +67 -6
- package/src/__tests__/views/admin-lazy-route.render.test.tsx +41 -1
- package/src/__tests__/views/ai-settings.render.test.tsx +4 -4
- package/src/__tests__/views/appearance-menus-route.render.test.tsx +58 -0
- package/src/__tests__/views/appearance-settings.render.test.tsx +10 -8
- package/src/__tests__/views/appearance-theme-provider.render.test.tsx +347 -0
- package/src/__tests__/views/dashboard.test.tsx +48 -0
- package/src/__tests__/views/document-edit-navigation.render.test.tsx +130 -0
- package/src/__tests__/views/document-edit-routes.render.test.tsx +130 -0
- package/src/__tests__/views/email-settings.render.test.tsx +2 -2
- package/src/__tests__/views/form-entries.render.test.tsx +22 -0
- package/src/__tests__/views/form-submissions.render.test.tsx +22 -0
- package/src/__tests__/views/forms-list.render.test.tsx +13 -0
- package/src/__tests__/views/general-settings.render.test.tsx +38 -11
- package/src/__tests__/views/jobs-drawer.render.test.tsx +1047 -0
- package/src/__tests__/views/jobs-list.render.test.tsx +850 -0
- package/src/__tests__/views/kpi-grid.test.ts +29 -0
- package/src/__tests__/views/post-section-editor.test.tsx +5 -1
- package/src/__tests__/views/script-tags.render.test.tsx +29 -0
- package/src/__tests__/views/security-settings.render.test.tsx +9 -10
- package/src/__tests__/views/seo-settings.render.test.tsx +7 -9
- package/src/__tests__/views/settings-save-bar.render.test.tsx +91 -0
- package/src/__tests__/views/settings-save-footer.render.test.tsx +25 -15
- package/src/__tests__/views/settings-tabs.render.test.tsx +371 -0
- package/src/__tests__/views/updates-tab.render.test.tsx +4 -3
- package/src/components/Breadcrumbs.tsx +7 -1
- package/src/components/CommandPalette.tsx +51 -3
- package/src/components/LocaleSwitcher.tsx +5 -6
- package/src/components/NotificationBell.tsx +74 -18
- package/src/components/OfflineStatus.tsx +1 -1
- package/src/components/PresenceIndicator.tsx +2 -1
- package/src/components/ReflowMeter.tsx +3 -3
- package/src/components/SEOPanel.tsx +2 -2
- package/src/components/ThemeProvider.tsx +122 -42
- package/src/components/TipTapEditor.tsx +3 -4
- package/src/components/forms/EmbedPanel.tsx +1 -1
- package/src/components/forms/FormEntryDetailPane.tsx +7 -1
- package/src/components/forms/ShortcodeGlossary.tsx +7 -1
- package/src/components/forms/primitives.tsx +37 -21
- package/src/components/pages/tag-badges.tsx +4 -3
- package/src/components/seo/PageAuditPanel.tsx +2 -2
- package/src/components/seo/SerpPreview.tsx +5 -5
- package/src/components/seo/primitives.tsx +2 -2
- package/src/components/ui/AuthorAvatar.tsx +11 -10
- package/src/components/ui/Badge.tsx +1 -1
- package/src/components/ui/Breadcrumb.tsx +109 -0
- package/src/components/ui/Button.tsx +40 -15
- package/src/components/ui/Card.tsx +35 -32
- package/src/components/ui/CardListControls.tsx +90 -0
- package/src/components/ui/CountChip.tsx +90 -0
- package/src/components/ui/FilterPill.tsx +5 -3
- package/src/components/ui/InspectorPane.tsx +21 -7
- package/src/components/ui/Modal.tsx +20 -6
- package/src/components/ui/PageHeader.tsx +63 -0
- package/src/components/ui/RowActions.tsx +7 -2
- package/src/components/ui/Segmented.tsx +97 -0
- package/src/components/ui/Toaster.tsx +139 -0
- package/src/components/ui/Toggle.tsx +18 -14
- package/src/components/ui/UnderlineTabs.tsx +373 -0
- package/src/components/ui/UnsavedBar.tsx +119 -0
- package/src/components/ui/admin-links.tsx +20 -0
- package/src/components/ui/card-table.ts +34 -0
- package/src/components/virtual-window.tsx +13 -2
- package/src/fields/RelationshipField.tsx +1 -1
- package/src/hooks/useAppearanceBootstrap.ts +9 -3
- package/src/index.ts +19 -0
- package/src/layout/Header.tsx +210 -135
- package/src/layout/Layout.tsx +61 -108
- package/src/layout/MobileTabBar.tsx +92 -0
- package/src/layout/Sidebar.tsx +555 -593
- package/src/layout/nav-config.tsx +425 -0
- package/src/layout/primitives/AdminShell.tsx +154 -6
- package/src/layout/topbar-classes.ts +8 -0
- package/src/layout/use-nav-items.ts +40 -0
- package/src/lib/api.ts +7 -1
- package/src/lib/appearance-api.ts +4 -0
- package/src/lib/job-drawer.ts +424 -0
- package/src/lib/job-view.ts +456 -0
- package/src/lib/jobs-service.ts +290 -0
- package/src/lib/sheet-focus.ts +71 -0
- package/src/lib/tiers.ts +43 -0
- package/src/router/admin-routes.ts +8 -0
- package/src/router/index.ts +9 -1
- package/src/styles/prenta-tokens.css +263 -82
- package/src/styles/responsive.css +460 -22
- package/src/styles/theme.css +177 -28
- package/src/views/ApiKeys.tsx +2 -2
- package/src/views/AppearanceChrome.tsx +74 -0
- package/src/views/CollectionList.tsx +264 -205
- package/src/views/Dashboard.tsx +26 -13
- package/src/views/DocumentEdit.tsx +111 -56
- package/src/views/FormDeliveries.tsx +30 -17
- package/src/views/FormEntries.tsx +28 -20
- package/src/views/FormSubmissions.tsx +32 -34
- package/src/views/Forms.tsx +55 -34
- package/src/views/FormsSettings.tsx +94 -0
- package/src/views/Jobs/BusyButton.tsx +56 -0
- package/src/views/Jobs/CancelJobDialog.tsx +127 -0
- package/src/views/Jobs/DrawerActivity.tsx +142 -0
- package/src/views/Jobs/DrawerOverview.tsx +139 -0
- package/src/views/Jobs/DrawerResults.tsx +155 -0
- package/src/views/Jobs/DrawerReview.tsx +464 -0
- package/src/views/Jobs/JobDrawer.tsx +556 -0
- package/src/views/Jobs/JobsTable.tsx +260 -0
- package/src/views/Jobs/WorkerStrip.tsx +144 -0
- package/src/views/Jobs/atoms.tsx +93 -0
- package/src/views/Jobs/focus.ts +56 -0
- package/src/views/Jobs/icons.tsx +111 -0
- package/src/views/Jobs/placeholders.tsx +66 -0
- package/src/views/Jobs/useJobDetail.ts +64 -0
- package/src/views/Jobs/useJobsFeed.ts +249 -0
- package/src/views/Jobs/useReviewItems.ts +187 -0
- package/src/views/Jobs.tsx +282 -105
- package/src/views/MediaBrowser.tsx +71 -21
- package/src/views/Pages/PagesListView.tsx +115 -39
- package/src/views/Posts/NewPostTypeInstructions.tsx +15 -10
- package/src/views/Posts/PostTypesView.tsx +28 -6
- package/src/views/Posts/PostsListView.tsx +130 -40
- package/src/views/SEO.tsx +23 -8
- package/src/views/ScriptTags.tsx +233 -153
- package/src/views/Settings.tsx +215 -256
- package/src/views/SpamFolder.tsx +32 -0
- package/src/views/Trash.tsx +12 -1
- package/src/views/Users.tsx +2 -2
- package/src/views/WidgetsPlaceholder.tsx +33 -0
- package/src/views/dashboard/kpi-grid.ts +38 -0
- package/src/views/lazy-views.tsx +12 -0
- package/src/views/page-editor/PageTab.tsx +2 -2
- package/src/views/page-editor/ReviewBar.tsx +1 -1
- package/src/views/page-editor/VersionHistoryPanel.tsx +1 -1
- package/src/views/seo/AuditTab.tsx +1 -1
- package/src/views/seo/OverviewTab.tsx +6 -5
- package/src/views/seo/ProposalsTab.tsx +1 -1
- package/src/views/settings/AISettingsTab.tsx +10 -6
- package/src/views/settings/AccessProtectionCard.tsx +1 -1
- package/src/views/settings/AdminThemeCard.tsx +228 -35
- package/src/views/settings/AppearanceTab.tsx +10 -6
- package/src/views/settings/BrandPreviewCard.tsx +1 -1
- package/src/views/settings/BrandVoiceCard.tsx +1 -1
- package/src/views/settings/EmailSettingsTab.tsx +11 -7
- package/src/views/settings/GeneralSettingsTab.tsx +10 -6
- package/src/views/settings/ProviderConnectionCard.tsx +1 -1
- package/src/views/settings/SearchDataCard.tsx +1 -1
- package/src/views/settings/SecurityStatusCard.tsx +2 -2
- package/src/views/settings/SecurityTab.tsx +10 -6
- package/src/views/settings/SeoAutopilotCard.tsx +2 -2
- package/src/views/settings/SeoSettingsTab.tsx +13 -9
- package/src/views/settings/SiteIndexStatusCard.tsx +1 -1
- package/src/views/settings/SiteThemeCard.tsx +1 -1
- package/src/views/settings/UpdatesTab.tsx +107 -101
- package/src/views/settings/components.tsx +26 -62
- package/src/views/settings/useAppearanceSettings.ts +116 -25
- package/src/views/users/UserDetailDrawer.tsx +1 -1
- package/dist/components/ui/StatPill.d.ts +0 -18
- package/dist/components/ui/StatPill.d.ts.map +0 -1
- package/dist/components/ui/StatPill.js +0 -5
- package/dist/components/ui/StatPill.js.map +0 -1
- package/src/components/ui/StatPill.tsx +0 -37
package/src/views/Dashboard.tsx
CHANGED
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
* (the design uses plain progress bars + colored dots), keeping the bundle
|
|
10
10
|
* and TTI cost low.
|
|
11
11
|
*
|
|
12
|
-
* Responsive layout:
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Responsive layout (SHELL.md §8, cms-layouts.css):
|
|
13
|
+
* ≤ 768px (mobile): stat cards 2-col (an odd last card spans both), main
|
|
14
|
+
* grid stacks, quick actions scroll-x
|
|
15
|
+
* 769–1024 (tablet): stat cards 2+3, main grid stacks
|
|
16
|
+
* 1025–1399: stat cards 2+3, main grid is `1fr 320px`
|
|
17
|
+
* ≥ 1400: stat cards in one row
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
20
|
import { useEffect, useMemo, useState } from 'react'
|
|
@@ -46,6 +48,7 @@ import { AuthorAvatar } from '../components/ui/AuthorAvatar.js'
|
|
|
46
48
|
import { PanelSection, PANEL_LIST_ROW_CLASS } from '../components/ui/PanelSection.js'
|
|
47
49
|
import { OnboardingBlock, shouldShowOnboarding } from './dashboard/OnboardingBlock.js'
|
|
48
50
|
import type { OnboardingSignals } from './dashboard/OnboardingBlock.js'
|
|
51
|
+
import { kpiCardSpan, kpiGridClass } from './dashboard/kpi-grid.js'
|
|
49
52
|
|
|
50
53
|
interface DashboardStats {
|
|
51
54
|
totalDocuments: number
|
|
@@ -197,7 +200,7 @@ function statusBadge(status: string): {
|
|
|
197
200
|
case 'DRAFT':
|
|
198
201
|
return { label: 'Draft', cls: 'bg-muted text-muted-foreground' }
|
|
199
202
|
case 'SCHEDULED':
|
|
200
|
-
return { label: 'Scheduled', cls: 'bg-
|
|
203
|
+
return { label: 'Scheduled', cls: 'bg-warn-l text-warning' }
|
|
201
204
|
case 'IN_REVIEW':
|
|
202
205
|
return { label: 'In Review', cls: 'bg-info/10 text-info' }
|
|
203
206
|
default:
|
|
@@ -568,14 +571,14 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
568
571
|
)}
|
|
569
572
|
|
|
570
573
|
{error && exhausted && (
|
|
571
|
-
<div className="border-warning/30 bg-
|
|
574
|
+
<div className="border-warning/30 bg-warn-l flex items-center gap-3 rounded-lg border p-4">
|
|
572
575
|
<AlertTriangle className="text-warning h-5 w-5 shrink-0" />
|
|
573
576
|
<span className="text-warning flex-1 text-sm">
|
|
574
577
|
Some dashboard data may be unavailable.
|
|
575
578
|
</span>
|
|
576
579
|
<button
|
|
577
580
|
onClick={refetch}
|
|
578
|
-
className="border-warning/40 text-warning hover:bg-
|
|
581
|
+
className="border-warning/40 text-warning hover:bg-warn-l rounded-lg border px-3 py-1 text-sm transition-colors"
|
|
579
582
|
>
|
|
580
583
|
Retry
|
|
581
584
|
</button>
|
|
@@ -603,10 +606,14 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
603
606
|
)}
|
|
604
607
|
</p>
|
|
605
608
|
</div>
|
|
606
|
-
|
|
609
|
+
{/* Header actions collapse to icons at tablet and mobile; New Post
|
|
610
|
+
floats above the tab bar on mobile. */}
|
|
611
|
+
<div data-header-actions="" className="flex items-center gap-2">
|
|
607
612
|
<button
|
|
608
613
|
type="button"
|
|
609
614
|
onClick={() => nav(heroNewPostPath)}
|
|
615
|
+
data-variant="primary"
|
|
616
|
+
data-fab=""
|
|
610
617
|
className="bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-ring inline-flex items-center gap-1.5 rounded-lg px-3.5 py-1.5 text-sm font-medium shadow-sm transition-colors focus:outline-none focus-visible:ring-2"
|
|
611
618
|
>
|
|
612
619
|
<Plus className="h-3.5 w-3.5" aria-hidden />
|
|
@@ -617,6 +624,7 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
617
624
|
href={siteUrl}
|
|
618
625
|
target="_blank"
|
|
619
626
|
rel="noopener noreferrer"
|
|
627
|
+
data-variant="secondary"
|
|
620
628
|
className="border-border bg-card text-foreground hover:bg-accent inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-colors"
|
|
621
629
|
>
|
|
622
630
|
<ExternalLink className="h-3.5 w-3.5" aria-hidden />
|
|
@@ -641,8 +649,9 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
641
649
|
</div>
|
|
642
650
|
|
|
643
651
|
{/* Stat cards ─────────────────────────────────────────────────── */}
|
|
644
|
-
<div
|
|
645
|
-
{statCards.map((card) => {
|
|
652
|
+
<div data-kpi-grid="" className={kpiGridClass(statCards.length)}>
|
|
653
|
+
{statCards.map((card, index) => {
|
|
654
|
+
const span = kpiCardSpan(index, statCards.length)
|
|
646
655
|
const Inner = (
|
|
647
656
|
<>
|
|
648
657
|
<div
|
|
@@ -674,12 +683,15 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
674
683
|
key={card.label}
|
|
675
684
|
type="button"
|
|
676
685
|
onClick={() => nav(card.href!)}
|
|
677
|
-
className=
|
|
686
|
+
className={`bg-card border-border rounded-xl border p-4 text-left shadow-sm transition-shadow hover:shadow-md ${span}`}
|
|
678
687
|
>
|
|
679
688
|
{Inner}
|
|
680
689
|
</button>
|
|
681
690
|
) : (
|
|
682
|
-
<div
|
|
691
|
+
<div
|
|
692
|
+
key={card.label}
|
|
693
|
+
className={`bg-card border-border rounded-xl border p-4 shadow-sm ${span}`}
|
|
694
|
+
>
|
|
683
695
|
{Inner}
|
|
684
696
|
</div>
|
|
685
697
|
)
|
|
@@ -690,7 +702,8 @@ export function Dashboard({ config, session, onNavigate }: DashboardProps) {
|
|
|
690
702
|
{showOnboarding ? (
|
|
691
703
|
<OnboardingBlock signals={onboardingSignals} onNavigate={onNavigate} />
|
|
692
704
|
) : (
|
|
693
|
-
|
|
705
|
+
// One column up to 1024px (cms-layouts.css `.grid2`, tablet).
|
|
706
|
+
<div className="not-narrow:grid-cols-[minmax(0,1fr)_320px] grid grid-cols-1 gap-4">
|
|
694
707
|
{/* Recent Activity ───────────────────────────────────────── */}
|
|
695
708
|
<PanelSection
|
|
696
709
|
title="Recent Activity"
|
|
@@ -19,6 +19,8 @@ import { FieldRenderer } from '../fields/FieldRenderer.js'
|
|
|
19
19
|
import { RelationshipField } from '../fields/RelationshipField.js'
|
|
20
20
|
import { Button } from '../components/ui/Button.js'
|
|
21
21
|
import { Badge } from '../components/ui/Badge.js'
|
|
22
|
+
import { Breadcrumb } from '../components/ui/Breadcrumb.js'
|
|
23
|
+
import { PageHeader } from '../components/ui/PageHeader.js'
|
|
22
24
|
import { LivePreview } from '../components/LivePreview.js'
|
|
23
25
|
import { VersionHistory } from '../components/VersionHistory.js'
|
|
24
26
|
import { PresenceIndicator } from '../components/PresenceIndicator.js'
|
|
@@ -35,6 +37,11 @@ export interface DocumentEditProps {
|
|
|
35
37
|
documentId?: string
|
|
36
38
|
config: any
|
|
37
39
|
onNavigate?: (path: string) => void
|
|
40
|
+
/**
|
|
41
|
+
* The list this screen was reached from (`/<slug>` or `/collections/<slug>`).
|
|
42
|
+
* Cancel and the breadcrumb go back to it; a new document opens under it.
|
|
43
|
+
*/
|
|
44
|
+
listPath?: string
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
export function DocumentEdit({
|
|
@@ -42,6 +49,7 @@ export function DocumentEdit({
|
|
|
42
49
|
documentId,
|
|
43
50
|
config,
|
|
44
51
|
onNavigate,
|
|
52
|
+
listPath = `/${collectionSlug}`,
|
|
45
53
|
}: DocumentEditProps) {
|
|
46
54
|
const isNew = !documentId
|
|
47
55
|
const [values, setValues] = useState<Record<string, any>>({})
|
|
@@ -94,6 +102,10 @@ export function DocumentEdit({
|
|
|
94
102
|
const displayTitle = isNew
|
|
95
103
|
? `New ${collection?.labels?.singular ?? collectionSlug}`
|
|
96
104
|
: `Edit ${values[useAsTitleField] ?? 'Document'}`
|
|
105
|
+
const collectionPlural: string = collection?.labels?.plural ?? collectionSlug
|
|
106
|
+
const crumbTitle = isNew
|
|
107
|
+
? `New ${collection?.labels?.singular ?? collectionSlug}`
|
|
108
|
+
: String(values[useAsTitleField] || 'Untitled')
|
|
97
109
|
|
|
98
110
|
const isDirty =
|
|
99
111
|
JSON.stringify(values) !== JSON.stringify(initialValues) ||
|
|
@@ -109,7 +121,29 @@ export function DocumentEdit({
|
|
|
109
121
|
|
|
110
122
|
// Warn before discarding unsaved changes on client-side navigation (Cancel,
|
|
111
123
|
// sidebar/breadcrumb links) and on browser unload/refresh.
|
|
112
|
-
useNavigationBlocker(isDirty)
|
|
124
|
+
const releaseNavigationBlock = useNavigationBlocker(isDirty)
|
|
125
|
+
|
|
126
|
+
// While a new document is being created its fields are read-only: the editor
|
|
127
|
+
// moves to the created document afterwards, so anything typed during the
|
|
128
|
+
// POST would be dropped without a prompt. Focus goes back to the field it
|
|
129
|
+
// was in if the create fails.
|
|
130
|
+
const fieldsRef = useRef<HTMLDivElement>(null)
|
|
131
|
+
const creating = isNew && saving
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
const el = fieldsRef.current as (HTMLDivElement & { inert?: boolean }) | null
|
|
134
|
+
if (!el || !creating) return
|
|
135
|
+
const focused = el.contains(document.activeElement)
|
|
136
|
+
? (document.activeElement as HTMLElement)
|
|
137
|
+
: null
|
|
138
|
+
el.inert = true
|
|
139
|
+
return () => {
|
|
140
|
+
el.inert = false
|
|
141
|
+
// Only put focus back if nothing else has it (the inert fields dropped
|
|
142
|
+
// it); don't pull it from wherever the user has moved since.
|
|
143
|
+
const active = document.activeElement
|
|
144
|
+
if (focused?.isConnected && (!active || active === document.body)) focused.focus()
|
|
145
|
+
}
|
|
146
|
+
}, [creating])
|
|
113
147
|
|
|
114
148
|
const SEO_FIELDS: (keyof SEOData)[] = [
|
|
115
149
|
'metaTitle',
|
|
@@ -195,7 +229,10 @@ export function DocumentEdit({
|
|
|
195
229
|
setInitialSeoData(seoData)
|
|
196
230
|
setInitialLayoutAssignments(layoutAssignments)
|
|
197
231
|
if (newId && onNavigate) {
|
|
198
|
-
|
|
232
|
+
// Saved: the baseline update above lands on the next render, after
|
|
233
|
+
// this navigation, so clear the unsaved-changes guard first.
|
|
234
|
+
releaseNavigationBlock()
|
|
235
|
+
onNavigate(`${listPath}/${newId}`)
|
|
199
236
|
}
|
|
200
237
|
}
|
|
201
238
|
} else {
|
|
@@ -277,7 +314,7 @@ export function DocumentEdit({
|
|
|
277
314
|
toast.success('Document duplicated')
|
|
278
315
|
const newId = res.data?.id
|
|
279
316
|
if (newId && onNavigate) {
|
|
280
|
-
onNavigate(
|
|
317
|
+
onNavigate(`${listPath}/${newId}`)
|
|
281
318
|
}
|
|
282
319
|
}
|
|
283
320
|
}
|
|
@@ -300,7 +337,7 @@ export function DocumentEdit({
|
|
|
300
337
|
? 'bg-success/10 text-success'
|
|
301
338
|
: docStatus === 'SCHEDULED'
|
|
302
339
|
? 'bg-info/10 text-info'
|
|
303
|
-
: 'bg-
|
|
340
|
+
: 'bg-warn-l text-warning'
|
|
304
341
|
|
|
305
342
|
if (loading) {
|
|
306
343
|
return (
|
|
@@ -312,56 +349,70 @@ export function DocumentEdit({
|
|
|
312
349
|
|
|
313
350
|
return (
|
|
314
351
|
<div className="space-y-4">
|
|
315
|
-
<
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
<
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
<
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
<
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
352
|
+
<PageHeader
|
|
353
|
+
flush
|
|
354
|
+
title={displayTitle}
|
|
355
|
+
breadcrumb={
|
|
356
|
+
<Breadcrumb
|
|
357
|
+
items={[
|
|
358
|
+
{ label: 'Dashboard', path: '/' },
|
|
359
|
+
{ label: collectionPlural, path: listPath },
|
|
360
|
+
{ label: crumbTitle },
|
|
361
|
+
]}
|
|
362
|
+
/>
|
|
363
|
+
}
|
|
364
|
+
subtitle={
|
|
365
|
+
<>
|
|
366
|
+
<span
|
|
367
|
+
className={`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${statusColor}`}
|
|
368
|
+
>
|
|
369
|
+
{docStatus}
|
|
370
|
+
</span>
|
|
371
|
+
{documentId && <PresenceIndicator documentId={documentId} />}
|
|
372
|
+
{isDirty && <span className="text-warning text-xs font-medium">Unsaved changes</span>}
|
|
373
|
+
</>
|
|
374
|
+
}
|
|
375
|
+
actions={
|
|
376
|
+
<div className="flex items-center gap-2">
|
|
377
|
+
<button
|
|
378
|
+
onClick={() => setShowPreview((v) => !v)}
|
|
379
|
+
className="hover:bg-muted inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
|
|
380
|
+
title={showPreview ? 'Hide preview' : 'Show preview'}
|
|
381
|
+
>
|
|
382
|
+
{showPreview ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}
|
|
383
|
+
Preview
|
|
384
|
+
</button>
|
|
385
|
+
{!isNew && (
|
|
386
|
+
<>
|
|
387
|
+
<button
|
|
388
|
+
onClick={() => setShowShareLink(true)}
|
|
389
|
+
className="hover:bg-muted inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
|
|
390
|
+
title="Share a signed preview link for the current draft"
|
|
391
|
+
>
|
|
392
|
+
<Share2 className="h-4 w-4" />
|
|
393
|
+
Share preview
|
|
394
|
+
</button>
|
|
395
|
+
<button
|
|
396
|
+
onClick={() => setShowVersions(true)}
|
|
397
|
+
className="hover:bg-muted inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
|
|
398
|
+
title="Version history"
|
|
399
|
+
>
|
|
400
|
+
<Clock className="h-4 w-4" />
|
|
401
|
+
History
|
|
402
|
+
</button>
|
|
403
|
+
<button
|
|
404
|
+
onClick={handleDuplicate}
|
|
405
|
+
className="hover:bg-muted inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
|
|
406
|
+
title="Duplicate this document"
|
|
407
|
+
>
|
|
408
|
+
<Copy className="h-4 w-4" />
|
|
409
|
+
Duplicate
|
|
410
|
+
</button>
|
|
411
|
+
</>
|
|
412
|
+
)}
|
|
413
|
+
</div>
|
|
414
|
+
}
|
|
415
|
+
/>
|
|
365
416
|
|
|
366
417
|
<div className={showPreview ? 'grid grid-cols-2 gap-6' : ''}>
|
|
367
418
|
<div className="space-y-6">
|
|
@@ -378,7 +429,11 @@ export function DocumentEdit({
|
|
|
378
429
|
</p>
|
|
379
430
|
</div>
|
|
380
431
|
) : (
|
|
381
|
-
<div
|
|
432
|
+
<div
|
|
433
|
+
ref={fieldsRef}
|
|
434
|
+
aria-busy={creating || undefined}
|
|
435
|
+
className="grid grid-cols-1 gap-6 lg:grid-cols-3"
|
|
436
|
+
>
|
|
382
437
|
<div className="space-y-6 lg:col-span-2">
|
|
383
438
|
{mainFields.map((field: any) => (
|
|
384
439
|
<FieldRenderer
|
|
@@ -528,7 +583,7 @@ export function DocumentEdit({
|
|
|
528
583
|
)}
|
|
529
584
|
|
|
530
585
|
<div className="sticky bottom-0 flex items-center justify-end gap-3 border-t border-[var(--border)] bg-[var(--background)] px-4 py-3">
|
|
531
|
-
<Button variant="secondary" onClick={() => onNavigate?.(
|
|
586
|
+
<Button variant="secondary" onClick={() => onNavigate?.(listPath)}>
|
|
532
587
|
Cancel
|
|
533
588
|
</Button>
|
|
534
589
|
<Button variant="primary" loading={saving} onClick={handleSave} data-shortcut="save">
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import { useCallback, useEffect, useState } from 'react'
|
|
9
9
|
import { AlertTriangle, RefreshCw, RotateCcw } from 'lucide-react'
|
|
10
10
|
import { toast } from 'sonner'
|
|
11
|
+
import { Breadcrumb } from '../components/ui/Breadcrumb.js'
|
|
12
|
+
import { PageHeader } from '../components/ui/PageHeader.js'
|
|
11
13
|
import {
|
|
12
14
|
fetchFormDeliveries,
|
|
13
15
|
retryFormDelivery,
|
|
@@ -104,23 +106,34 @@ export function FormDeliveries({ onNavigate }: FormDeliveriesProps) {
|
|
|
104
106
|
// Fill the shell's <main> and scroll the table card internally so the
|
|
105
107
|
// pagination footer stays reachable (#736 sibling).
|
|
106
108
|
<div className="flex h-full min-h-0 flex-col gap-4 p-6">
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
{/* Title = sidebar label ("SMTP Log", SHELL.md §2). */}
|
|
110
|
+
<div className="shrink-0">
|
|
111
|
+
<PageHeader
|
|
112
|
+
flush
|
|
113
|
+
title="SMTP Log"
|
|
114
|
+
subtitle="Failed or retrying notification and webhook deliveries. Leads stay saved — retry here without re-submitting the form."
|
|
115
|
+
breadcrumb={
|
|
116
|
+
<Breadcrumb
|
|
117
|
+
items={[
|
|
118
|
+
{ label: 'Dashboard', path: '/' },
|
|
119
|
+
{ label: 'Forms', path: '/forms' },
|
|
120
|
+
{ label: 'SMTP Log' },
|
|
121
|
+
]}
|
|
122
|
+
/>
|
|
123
|
+
}
|
|
124
|
+
actions={
|
|
125
|
+
<button
|
|
126
|
+
type="button"
|
|
127
|
+
onClick={() => void load()}
|
|
128
|
+
data-variant="secondary"
|
|
129
|
+
className="border-border bg-card text-foreground hover:bg-muted inline-flex h-10 items-center gap-2 rounded-md border px-3 text-sm font-medium"
|
|
130
|
+
aria-label="Refresh deliveries"
|
|
131
|
+
>
|
|
132
|
+
<RefreshCw size={16} aria-hidden />
|
|
133
|
+
Refresh
|
|
134
|
+
</button>
|
|
135
|
+
}
|
|
136
|
+
/>
|
|
124
137
|
</div>
|
|
125
138
|
|
|
126
139
|
{loading ? (
|
|
@@ -26,14 +26,16 @@ import { emitFormsChanged, onFormsChanged } from '../lib/forms-events.js'
|
|
|
26
26
|
import { FormEntryDetailPane } from '../components/forms/FormEntryDetailPane.js'
|
|
27
27
|
import { EntriesTable } from '../components/forms/EntriesTable.js'
|
|
28
28
|
import { ExportMenu } from '../components/forms/ExportMenu.js'
|
|
29
|
+
import { Breadcrumb } from '../components/ui/Breadcrumb.js'
|
|
29
30
|
import { ConfirmDialog } from '../components/ui/ConfirmDialog.js'
|
|
31
|
+
import { PageHeader } from '../components/ui/PageHeader.js'
|
|
30
32
|
import { InspectorPane, SplitPaneLayout, SplitPaneList } from '../components/ui/InspectorPane.js'
|
|
31
33
|
import {
|
|
32
34
|
FormsEmptyState,
|
|
33
35
|
FormsErrorState,
|
|
34
36
|
FormsLoading,
|
|
35
37
|
FormsPagination,
|
|
36
|
-
|
|
38
|
+
EntryCountChips,
|
|
37
39
|
} from '../components/forms/primitives.js'
|
|
38
40
|
|
|
39
41
|
export interface FormEntriesProps {
|
|
@@ -202,27 +204,33 @@ export function FormEntries({ onNavigate }: FormEntriesProps) {
|
|
|
202
204
|
|
|
203
205
|
return (
|
|
204
206
|
<div className="space-y-5 p-6">
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
207
|
+
<PageHeader
|
|
208
|
+
flush
|
|
209
|
+
title="All Entries"
|
|
210
|
+
subtitle={`${total} ${total === 1 ? 'submission' : 'submissions'} across your forms`}
|
|
211
|
+
breadcrumb={
|
|
212
|
+
<Breadcrumb
|
|
213
|
+
items={[
|
|
214
|
+
{ label: 'Dashboard', path: '/' },
|
|
215
|
+
{ label: 'Forms', path: '/forms' },
|
|
216
|
+
{ label: 'All Entries' },
|
|
217
|
+
]}
|
|
218
|
+
/>
|
|
219
|
+
}
|
|
220
|
+
actions={
|
|
221
|
+
<ExportMenu formId={scopedFormId} disabled={counts !== null && counts.total === 0} />
|
|
222
|
+
}
|
|
223
|
+
/>
|
|
214
224
|
|
|
215
225
|
{counts && (
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
<SummaryChip value={counts.thisWeek} label="this week" />
|
|
225
|
-
</div>
|
|
226
|
+
<EntryCountChips
|
|
227
|
+
counts={counts}
|
|
228
|
+
filter={filter}
|
|
229
|
+
onFilter={(next) => {
|
|
230
|
+
setFilter(next)
|
|
231
|
+
setPage(1)
|
|
232
|
+
}}
|
|
233
|
+
/>
|
|
226
234
|
)}
|
|
227
235
|
|
|
228
236
|
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* empty / filtered-empty / error states are all handled.
|
|
12
12
|
*/
|
|
13
13
|
import { useCallback, useEffect, useState } from 'react'
|
|
14
|
-
import {
|
|
14
|
+
import { Inbox, Search } from 'lucide-react'
|
|
15
15
|
import { toast } from 'sonner'
|
|
16
16
|
import {
|
|
17
17
|
bulkUpdateEntries,
|
|
@@ -28,14 +28,16 @@ import { emitFormsChanged, onFormsChanged } from '../lib/forms-events.js'
|
|
|
28
28
|
import { FormEntryDetailPane } from '../components/forms/FormEntryDetailPane.js'
|
|
29
29
|
import { EntriesTable } from '../components/forms/EntriesTable.js'
|
|
30
30
|
import { ExportMenu } from '../components/forms/ExportMenu.js'
|
|
31
|
+
import { Breadcrumb } from '../components/ui/Breadcrumb.js'
|
|
31
32
|
import { ConfirmDialog } from '../components/ui/ConfirmDialog.js'
|
|
33
|
+
import { PageHeader } from '../components/ui/PageHeader.js'
|
|
32
34
|
import { InspectorPane, SplitPaneLayout, SplitPaneList } from '../components/ui/InspectorPane.js'
|
|
33
35
|
import {
|
|
34
36
|
FormsEmptyState,
|
|
35
37
|
FormsErrorState,
|
|
36
38
|
FormsLoading,
|
|
37
39
|
FormsPagination,
|
|
38
|
-
|
|
40
|
+
EntryCountChips,
|
|
39
41
|
} from '../components/forms/primitives.js'
|
|
40
42
|
|
|
41
43
|
export interface FormSubmissionsProps {
|
|
@@ -67,7 +69,9 @@ function filterToParams(filter: StatusFilter): Partial<FetchFormEntriesParams> {
|
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
// `onNavigate` stays in the props for callers; the breadcrumb routes through
|
|
73
|
+
// AdminLinks now that it replaces the old "Back to Forms" button.
|
|
74
|
+
export function FormSubmissions({ formId }: FormSubmissionsProps) {
|
|
71
75
|
const [formName, setFormName] = useState<string>('')
|
|
72
76
|
const [entries, setEntries] = useState<FormSubmission[]>([])
|
|
73
77
|
const [total, setTotal] = useState(0)
|
|
@@ -211,39 +215,33 @@ export function FormSubmissions({ formId, onNavigate }: FormSubmissionsProps) {
|
|
|
211
215
|
|
|
212
216
|
return (
|
|
213
217
|
<div className="space-y-5 p-6">
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
</div>
|
|
232
|
-
<ExportMenu formId={formId} disabled={counts !== null && counts.total === 0} />
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
218
|
+
{/* A form's entries are a second-level screen: the title is the form's
|
|
219
|
+
sidebar label and the crumb leads back to Forms (Inbox.html). */}
|
|
220
|
+
<PageHeader
|
|
221
|
+
flush
|
|
222
|
+
title={formName || 'Submissions'}
|
|
223
|
+
subtitle={`${total} ${total === 1 ? 'submission' : 'submissions'}`}
|
|
224
|
+
breadcrumb={
|
|
225
|
+
<Breadcrumb
|
|
226
|
+
items={[
|
|
227
|
+
{ label: 'Dashboard', path: '/' },
|
|
228
|
+
{ label: 'Forms', path: '/forms' },
|
|
229
|
+
{ label: formName || 'Submissions' },
|
|
230
|
+
]}
|
|
231
|
+
/>
|
|
232
|
+
}
|
|
233
|
+
actions={<ExportMenu formId={formId} disabled={counts !== null && counts.total === 0} />}
|
|
234
|
+
/>
|
|
235
235
|
|
|
236
236
|
{counts && (
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
<SummaryChip value={counts.thisWeek} label="this week" />
|
|
246
|
-
</div>
|
|
237
|
+
<EntryCountChips
|
|
238
|
+
counts={counts}
|
|
239
|
+
filter={filter}
|
|
240
|
+
onFilter={(next) => {
|
|
241
|
+
setFilter(next)
|
|
242
|
+
setPage(1)
|
|
243
|
+
}}
|
|
244
|
+
/>
|
|
247
245
|
)}
|
|
248
246
|
|
|
249
247
|
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|