@alepha/ui 0.27.0 → 0.27.1
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 +56 -15
- package/dist/components/account/account-connections.d.ts.map +1 -1
- package/dist/components/account/account-connections.js +24 -13
- package/dist/components/account/account-connections.js.map +1 -1
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -1
- package/dist/components/account/account-delete-dialog.js +12 -8
- package/dist/components/account/account-delete-dialog.js.map +1 -1
- package/dist/components/account/account-header.d.ts.map +1 -1
- package/dist/components/account/account-header.js +3 -1
- package/dist/components/account/account-header.js.map +1 -1
- package/dist/components/account/account-keys.d.ts.map +1 -1
- package/dist/components/account/account-keys.js +35 -21
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-mfa-dialog.d.ts +20 -0
- package/dist/components/account/account-mfa-dialog.d.ts.map +1 -0
- package/dist/components/account/account-mfa-dialog.js +149 -0
- package/dist/components/account/account-mfa-dialog.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -1
- package/dist/components/account/account-password-dialog.js +15 -10
- package/dist/components/account/account-password-dialog.js.map +1 -1
- package/dist/components/account/account-profile.d.ts.map +1 -1
- package/dist/components/account/account-profile.js +25 -25
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router.d.ts +76 -2
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +44 -4
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/account/account-security.d.ts +11 -1
- package/dist/components/account/account-security.d.ts.map +1 -1
- package/dist/components/account/account-security.js +119 -32
- package/dist/components/account/account-security.js.map +1 -1
- package/dist/components/account/account-sessions.d.ts.map +1 -1
- package/dist/components/account/account-sessions.js +46 -24
- package/dist/components/account/account-sessions.js.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.js +4 -9
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.js +3 -3
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-labels.d.ts +26 -0
- package/dist/components/admin/admin-jobs-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-labels.js +46 -0
- package/dist/components/admin/admin-jobs-status-labels.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -1
- package/dist/components/admin/admin-layout.js +5 -3
- package/dist/components/admin/admin-layout.js.map +1 -1
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts +21 -0
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js +122 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js.map +1 -0
- package/dist/components/admin/admin-notifications-detail.d.ts +23 -0
- package/dist/components/admin/admin-notifications-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail.js +48 -0
- package/dist/components/admin/admin-notifications-detail.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts +13 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.js +64 -0
- package/dist/components/admin/admin-notifications-preview-body.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts +24 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.js +35 -0
- package/dist/components/admin/admin-notifications-preview-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts +18 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.js +53 -0
- package/dist/components/admin/admin-notifications-raw-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.js +32 -0
- package/dist/components/admin/admin-notifications-status-badge.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.js +33 -0
- package/dist/components/admin/admin-notifications-status-labels.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts +44 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.js +64 -0
- package/dist/components/admin/admin-notifications-status-tones.js.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts +16 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.js +24 -0
- package/dist/components/admin/admin-notifications-template-label.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +13 -2
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +264 -29
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +29 -2
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +68 -8
- package/dist/components/admin/admin-router.js.map +1 -1
- package/dist/components/admin/admin-sessions.d.ts.map +1 -1
- package/dist/components/admin/admin-sessions.js +1 -1
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +12 -2
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.js +63 -44
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail.js +20 -15
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users.js +1 -1
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +4 -12
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.js +3 -3
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-labels.d.ts +19 -0
- package/dist/components/admin/admin-workflows-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-labels.js +48 -0
- package/dist/components/admin/admin-workflows-status-labels.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +6 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +33 -5
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/auth/auth-login.d.ts.map +1 -1
- package/dist/components/auth/auth-login.js +27 -17
- package/dist/components/auth/auth-login.js.map +1 -1
- package/dist/components/auth/auth-mfa-step.d.ts +25 -0
- package/dist/components/auth/auth-mfa-step.d.ts.map +1 -0
- package/dist/components/auth/auth-mfa-step.js +122 -0
- package/dist/components/auth/auth-mfa-step.js.map +1 -0
- package/dist/components/auth/auth-register.js +2 -2
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auth/auth-reset-password.js +2 -2
- package/dist/components/auth/auth-router.d.ts +20 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -1
- package/dist/components/auth/provider-labels.d.ts.map +1 -1
- package/dist/components/auth/provider-labels.js +1 -0
- package/dist/components/auth/provider-labels.js.map +1 -1
- package/dist/components/control/control.d.ts +11 -2
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +7 -2
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.d.ts.map +1 -1
- package/dist/components/control-array/control-array.js +55 -10
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-number/control-number.d.ts +5 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -1
- package/dist/components/control-number/control-number.js +1 -0
- package/dist/components/control-number/control-number.js.map +1 -1
- package/dist/components/control-object/control-object.d.ts +12 -1
- package/dist/components/control-object/control-object.d.ts.map +1 -1
- package/dist/components/control-object/control-object.js +2 -1
- package/dist/components/control-object/control-object.js.map +1 -1
- package/dist/components/control-password/control-password.d.ts.map +1 -1
- package/dist/components/control-password/control-password.js +1 -0
- package/dist/components/control-password/control-password.js.map +1 -1
- package/dist/components/detail/detail-layout.d.ts +6 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -1
- package/dist/components/detail/detail-layout.js +2 -1
- package/dist/components/detail/detail-layout.js.map +1 -1
- package/dist/components/email-body-frame/email-body-frame.d.ts +37 -0
- package/dist/components/email-body-frame/email-body-frame.d.ts.map +1 -0
- package/dist/components/email-body-frame/email-body-frame.js +44 -0
- package/dist/components/email-body-frame/email-body-frame.js.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts +33 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/{FlowchartDiagramLabel.js → DiagramLabel.js} +15 -6
- package/dist/components/markdown-view/diagram/DiagramLabel.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +0 -5
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +2 -6
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +2 -3
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +2 -3
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -1
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +20 -11
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/MermaidFence.js +48 -13
- package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -1
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts +50 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js +141 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js +101 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js +77 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts +16 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js +39 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts +20 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js +61 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts +27 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js +65 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts +155 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js +478 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts +132 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.js +0 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts +32 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js +312 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +65 -0
- package/dist/components/markdown-view/markdown-view.d.ts +18 -11
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +30 -16
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/nav-shell/nav-page.d.ts +7 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-page.js.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.d.ts +64 -2
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.js +29 -6
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -1
- package/dist/components/nav-shell/spotlight.d.ts +3 -2
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -1
- package/dist/components/nav-shell/spotlight.js +9 -6
- package/dist/components/nav-shell/spotlight.js.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +9 -2
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.d.ts +6 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.js +8 -3
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.js +1 -1
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +1 -0
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -0
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -0
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -2
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +1 -0
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/card.d.ts +2 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +1 -0
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +2 -2
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +1 -0
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +1 -0
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +1 -0
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +1 -0
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +1 -0
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -0
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/segmented.d.ts +11 -0
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +6 -2
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +1 -0
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +1 -0
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +2 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +1 -0
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -11
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +252 -2
- package/dist/lib/i18n-fr.js.map +1 -1
- package/package.json +5 -5
- package/src/components/account/__tests__/account-router.spec.ts +25 -0
- package/src/components/account/__tests__/account-security-mfa-gate.browser.spec.tsx +76 -0
- package/src/components/account/account-connections.tsx +50 -18
- package/src/components/account/account-delete-dialog.tsx +24 -9
- package/src/components/account/account-header.tsx +4 -1
- package/src/components/account/account-keys.tsx +73 -29
- package/src/components/account/account-mfa-dialog.tsx +233 -0
- package/src/components/account/account-password-dialog.tsx +42 -12
- package/src/components/account/account-profile.tsx +66 -25
- package/src/components/account/account-router.tsx +47 -6
- package/src/components/account/account-security.tsx +209 -22
- package/src/components/account/account-sessions.tsx +87 -22
- package/src/components/action-error-toaster/__tests__/action-error-toaster.browser.spec.tsx +114 -0
- package/src/components/admin/__tests__/admin-nav-i18n.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-notifications-preview-body.browser.spec.tsx +128 -0
- package/src/components/admin/__tests__/admin-notifications-raw-tab.browser.spec.tsx +76 -0
- package/src/components/admin/__tests__/admin-notifications-status-badge.browser.spec.tsx +121 -0
- package/src/components/admin/__tests__/admin-router.spec.ts +27 -0
- package/src/components/admin/__tests__/admin-status-labels.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-user-detail-security-tab.browser.spec.tsx +92 -0
- package/src/components/admin/admin-jobs-executions-panel.tsx +8 -11
- package/src/components/admin/admin-jobs-status-badge.tsx +4 -5
- package/src/components/admin/admin-jobs-status-labels.ts +46 -0
- package/src/components/admin/admin-layout.tsx +9 -3
- package/src/components/admin/admin-notifications-detail-tabs.tsx +167 -0
- package/src/components/admin/admin-notifications-detail.tsx +100 -0
- package/src/components/admin/admin-notifications-preview-body.tsx +104 -0
- package/src/components/admin/admin-notifications-preview-tab.tsx +55 -0
- package/src/components/admin/admin-notifications-raw-tab.tsx +76 -0
- package/src/components/admin/admin-notifications-status-badge.tsx +44 -0
- package/src/components/admin/admin-notifications-status-labels.ts +42 -0
- package/src/components/admin/admin-notifications-status-tones.ts +85 -0
- package/src/components/admin/admin-notifications-template-label.ts +22 -0
- package/src/components/admin/admin-notifications.tsx +398 -31
- package/src/components/admin/admin-router.tsx +65 -8
- package/src/components/admin/admin-sessions.tsx +10 -3
- package/src/components/admin/admin-user-detail-security-tab.tsx +70 -5
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +10 -3
- package/src/components/admin/admin-user-detail.tsx +92 -23
- package/src/components/admin/admin-users.tsx +1 -1
- package/src/components/admin/admin-workflows-executions-panel.tsx +8 -16
- package/src/components/admin/admin-workflows-status-badge.tsx +4 -5
- package/src/components/admin/admin-workflows-status-labels.ts +51 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-key.browser.spec.tsx +106 -0
- package/src/components/alepha-table/alepha-table.tsx +50 -10
- package/src/components/auth/auth-login.tsx +37 -18
- package/src/components/auth/auth-mfa-step.tsx +177 -0
- package/src/components/auth/auth-register.tsx +1 -1
- package/src/components/auth/provider-labels.ts +4 -0
- package/src/components/control/__tests__/control-autofocus.browser.spec.tsx +107 -0
- package/src/components/control/control.tsx +20 -5
- package/src/components/control-array/__tests__/control-array-child-change.browser.spec.tsx +90 -0
- package/src/components/control-array/control-array.tsx +85 -13
- package/src/components/control-number/control-number.tsx +7 -0
- package/src/components/control-object/__tests__/control-object-clear.browser.spec.tsx +100 -0
- package/src/components/control-object/control-object.tsx +21 -2
- package/src/components/control-password/control-password.tsx +2 -1
- package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +36 -0
- package/src/components/detail/detail-layout.tsx +20 -1
- package/src/components/email-body-frame/__tests__/email-body-frame.browser.spec.tsx +52 -0
- package/src/components/email-body-frame/email-body-frame.tsx +81 -0
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +65 -2
- package/src/components/markdown-view/diagram/{FlowchartDiagramLabel.tsx → DiagramLabel.tsx} +14 -4
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +1 -6
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +1 -1
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +2 -3
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +2 -3
- package/src/components/markdown-view/diagram/MermaidFence.tsx +65 -15
- package/src/components/markdown-view/diagram/SequenceDiagram.tsx +203 -0
- package/src/components/markdown-view/diagram/SequenceDiagramFragment.tsx +120 -0
- package/src/components/markdown-view/diagram/SequenceDiagramMessage.tsx +100 -0
- package/src/components/markdown-view/diagram/SequenceDiagramNote.tsx +46 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipant.tsx +80 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipantActor.tsx +74 -0
- package/src/components/markdown-view/diagram/__tests__/sequence-diagram.browser.spec.tsx +267 -0
- package/src/components/markdown-view/diagram/layoutSequence.spec.ts +535 -0
- package/src/components/markdown-view/diagram/layoutSequence.ts +764 -0
- package/src/components/markdown-view/diagram/sequenceModel.ts +141 -0
- package/src/components/markdown-view/diagram/sequenceParser.spec.ts +495 -0
- package/src/components/markdown-view/diagram/sequenceParser.ts +443 -0
- package/src/components/markdown-view/markdown-view.css +65 -0
- package/src/components/markdown-view/markdown-view.tsx +34 -16
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +107 -1
- package/src/components/nav-shell/nav-page.tsx +8 -0
- package/src/components/nav-shell/nav-tree-util.ts +95 -2
- package/src/components/nav-shell/spotlight.tsx +22 -8
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +9 -2
- package/src/components/nav-shell/use-nav-entries.ts +18 -2
- package/src/components/nav-shell/use-nav-tree.ts +4 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +3 -3
- package/src/components/ui/breadcrumb.tsx +3 -3
- package/src/components/ui/card.tsx +5 -5
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +8 -8
- package/src/components/ui/command.tsx +4 -4
- package/src/components/ui/context-menu.tsx +7 -7
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/drawer.tsx +6 -6
- package/src/components/ui/dropdown-menu.tsx +8 -14
- package/src/components/ui/empty.tsx +3 -3
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +2 -2
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +9 -9
- package/src/components/ui/pagination.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/segmented.tsx +28 -0
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +4 -4
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/table.tsx +6 -9
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/tooltip.tsx +3 -11
- package/src/components/use-dialog/__tests__/use-dialog-providers.browser.spec.tsx +61 -0
- package/src/hooks/use-mobile.ts +1 -1
- package/src/lib/__tests__/i18n-fr.spec.ts +27 -5
- package/src/lib/i18n-fr.ts +308 -1
- package/dist/components/language-toggle/language-toggle.d.ts +0 -8
- package/dist/components/language-toggle/language-toggle.d.ts.map +0 -1
- package/dist/components/language-toggle/language-toggle.js +0 -49
- package/dist/components/language-toggle/language-toggle.js.map +0 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +0 -23
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +0 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -55
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -5
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.js +0 -15
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/carousel.d.ts +0 -29
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -144
- package/dist/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -26
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/direction.d.ts +0 -2
- package/dist/components/ui/direction.d.ts.map +0 -1
- package/dist/components/ui/direction.js +0 -3
- package/dist/components/ui/item.d.ts +0 -23
- package/dist/components/ui/item.d.ts.map +0 -1
- package/dist/components/ui/item.js +0 -122
- package/dist/components/ui/item.js.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.js +0 -84
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -29
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -38
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -12
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -60
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -9
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -38
- package/dist/components/ui/toggle.js.map +0 -1
- package/src/components/language-toggle/language-toggle.tsx +0 -66
- package/src/components/ui/accordion.tsx +0 -77
- package/src/components/ui/aspect-ratio.tsx +0 -22
- package/src/components/ui/carousel.tsx +0 -258
- package/src/components/ui/collapsible.tsx +0 -21
- package/src/components/ui/direction.tsx +0 -6
- package/src/components/ui/item.tsx +0 -200
- package/src/components/ui/navigation-menu.tsx +0 -170
- package/src/components/ui/radio-group.tsx +0 -37
- package/src/components/ui/scroll-area.tsx +0 -53
- package/src/components/ui/toggle-group.tsx +0 -93
- package/src/components/ui/toggle.tsx +0 -44
|
@@ -15,8 +15,7 @@ import type {
|
|
|
15
15
|
AdminUserController,
|
|
16
16
|
} from "alepha/api/users";
|
|
17
17
|
import type { AdminWorkflowController } from "alepha/api/workflows";
|
|
18
|
-
import {
|
|
19
|
-
import { $secure } from "alepha/security";
|
|
18
|
+
import { Translate } from "alepha/react/i18n";
|
|
20
19
|
import { $client } from "alepha/server/links";
|
|
21
20
|
import {
|
|
22
21
|
Bell,
|
|
@@ -116,6 +115,24 @@ import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
|
116
115
|
* initializer — injects `AdminRouter` and sets `parent: this.admin.layout`
|
|
117
116
|
* directly, the same way `$pageAdmin` does internally.
|
|
118
117
|
*
|
|
118
|
+
* ### Labels are catalogue keys, not text
|
|
119
|
+
*
|
|
120
|
+
* Every `nav` here carries a `labelKey` (and a `groupKey` where it has a
|
|
121
|
+
* group) beside its English `label`. A class field is evaluated once, at
|
|
122
|
+
* construction, outside React - so a label written as `tr(...)` would be
|
|
123
|
+
* frozen in whatever language happened to be active then, which is why the
|
|
124
|
+
* whole admin chrome stayed English inside a French application while the
|
|
125
|
+
* pages under it were translated.
|
|
126
|
+
*
|
|
127
|
+
* The keys are resolved by `navLabel` / `navGroupLabel`, which the sidebar,
|
|
128
|
+
* the breadcrumbs and the palette all call from inside a component, so a
|
|
129
|
+
* language switch re-labels the shell with no reload. `label` stays the
|
|
130
|
+
* English text and becomes the `tr` default, so an application that registers
|
|
131
|
+
* no catalogue sees exactly what it saw before.
|
|
132
|
+
*
|
|
133
|
+
* A page added here without a `labelKey` is untranslatable, and
|
|
134
|
+
* `admin-router.spec.ts` fails for it.
|
|
135
|
+
*
|
|
119
136
|
* ### Group order is a contract
|
|
120
137
|
*
|
|
121
138
|
* The built-in pages are parked in a reserved high band: `Identity`
|
|
@@ -140,6 +157,13 @@ import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
|
140
157
|
* registers its own page named `files` (or any of the other twelve) either
|
|
141
158
|
* shadows this one or is shadowed by it, silently, depending on mount order.
|
|
142
159
|
* Treat these thirteen names as reserved when hanging pages off `layout`.
|
|
160
|
+
*
|
|
161
|
+
* ### It needs `<DialogProvider>` and `<Toaster />` above it
|
|
162
|
+
*
|
|
163
|
+
* Several admin pages call `useDialog()`, which throws without a provider,
|
|
164
|
+
* and raise toasts. `AppShell` mounts both; a standalone mount, or `AppShell`
|
|
165
|
+
* with `embedded`, has to supply them. `AccountRouter`'s JSDoc explains why
|
|
166
|
+
* the shells deliberately do not mount them themselves.
|
|
143
167
|
*/
|
|
144
168
|
export class AdminRouter {
|
|
145
169
|
protected readonly options = $store(adminRouterOptionsAtom);
|
|
@@ -172,11 +196,11 @@ export class AdminRouter {
|
|
|
172
196
|
* `/admin` contributes `dashboardCards` rather than redirecting away from
|
|
173
197
|
* it.
|
|
174
198
|
*/
|
|
175
|
-
layout = $
|
|
199
|
+
layout = $pageNav({
|
|
176
200
|
name: "admin",
|
|
177
201
|
path: "/admin",
|
|
178
|
-
|
|
179
|
-
nav: { label: "Admin" },
|
|
202
|
+
permission: "admin:ui",
|
|
203
|
+
nav: { label: "Admin", labelKey: "admin.nav.admin" },
|
|
180
204
|
lazy: () => import("./admin-layout.tsx"),
|
|
181
205
|
});
|
|
182
206
|
|
|
@@ -201,6 +225,7 @@ export class AdminRouter {
|
|
|
201
225
|
head: { title: "Dashboard" },
|
|
202
226
|
nav: {
|
|
203
227
|
label: "Dashboard",
|
|
228
|
+
labelKey: "admin.nav.dashboard",
|
|
204
229
|
icon: createElement(LayoutDashboard),
|
|
205
230
|
order: 0,
|
|
206
231
|
},
|
|
@@ -231,7 +256,14 @@ export class AdminRouter {
|
|
|
231
256
|
can: () => this.userApi.findUsers.can(),
|
|
232
257
|
render: () =>
|
|
233
258
|
createElement(AdminDashboardCountCard, {
|
|
234
|
-
|
|
259
|
+
// `render` runs inside `AdminDashboard`'s render but not inside a
|
|
260
|
+
// hook-safe position, so the label is an element that looks the
|
|
261
|
+
// key up itself rather than a `tr` call here. Same key as the nav
|
|
262
|
+
// entry: it is the same word on the same subject.
|
|
263
|
+
label: createElement(Translate, {
|
|
264
|
+
k: "admin.nav.users",
|
|
265
|
+
fallback: "Users",
|
|
266
|
+
}),
|
|
235
267
|
href: "/admin/users",
|
|
236
268
|
icon: createElement(UsersIcon, { className: "size-4" }),
|
|
237
269
|
load: async () =>
|
|
@@ -252,8 +284,10 @@ export class AdminRouter {
|
|
|
252
284
|
can: () => this.userApi.findUsers.can(),
|
|
253
285
|
nav: {
|
|
254
286
|
label: "Users",
|
|
287
|
+
labelKey: "admin.nav.users",
|
|
255
288
|
icon: createElement(UsersIcon),
|
|
256
289
|
group: "Identity",
|
|
290
|
+
groupKey: "admin.nav.group.identity",
|
|
257
291
|
order: 1000,
|
|
258
292
|
},
|
|
259
293
|
lazy: () => import("./admin-users.tsx"),
|
|
@@ -261,14 +295,17 @@ export class AdminRouter {
|
|
|
261
295
|
});
|
|
262
296
|
|
|
263
297
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
298
|
+
* `nav.hidden` - a secured route that is not a sidebar entry, but still a
|
|
299
|
+
* breadcrumb. It carries a `nav` only so the crumb has a `labelKey`: without
|
|
300
|
+
* one the label falls back to `head.title`, which is a plain string
|
|
301
|
+
* evaluated here and so permanently English.
|
|
266
302
|
*/
|
|
267
303
|
userDetail = $pageNav({
|
|
268
304
|
parent: this.layout,
|
|
269
305
|
path: "/users/:userId",
|
|
270
306
|
name: "userDetail",
|
|
271
307
|
head: { title: "User" },
|
|
308
|
+
nav: { hidden: true, label: "User", labelKey: "admin.nav.userDetail" },
|
|
272
309
|
permission: "admin:user:read",
|
|
273
310
|
can: () => this.userApi.getUser.can(),
|
|
274
311
|
schema: {
|
|
@@ -289,8 +326,10 @@ export class AdminRouter {
|
|
|
289
326
|
can: () => this.sessionApi.findSessions.can(),
|
|
290
327
|
nav: {
|
|
291
328
|
label: "Sessions",
|
|
329
|
+
labelKey: "admin.nav.sessions",
|
|
292
330
|
icon: createElement(ShieldCheck),
|
|
293
331
|
group: "Identity",
|
|
332
|
+
groupKey: "admin.nav.group.identity",
|
|
294
333
|
order: 1001,
|
|
295
334
|
},
|
|
296
335
|
lazy: () => import("./admin-sessions.tsx"),
|
|
@@ -305,8 +344,10 @@ export class AdminRouter {
|
|
|
305
344
|
can: () => this.apiKeyApi.findApiKeys.can(),
|
|
306
345
|
nav: {
|
|
307
346
|
label: "API keys",
|
|
347
|
+
labelKey: "admin.nav.keys",
|
|
308
348
|
icon: createElement(KeyRound),
|
|
309
349
|
group: "Identity",
|
|
350
|
+
groupKey: "admin.nav.group.identity",
|
|
310
351
|
order: 1003,
|
|
311
352
|
keywords: ["tokens", "credentials"],
|
|
312
353
|
},
|
|
@@ -322,8 +363,10 @@ export class AdminRouter {
|
|
|
322
363
|
can: () => this.jobApi.listJobs.can(),
|
|
323
364
|
nav: {
|
|
324
365
|
label: "Jobs",
|
|
366
|
+
labelKey: "admin.nav.jobs",
|
|
325
367
|
icon: createElement(Timer),
|
|
326
368
|
group: "System",
|
|
369
|
+
groupKey: "admin.nav.group.system",
|
|
327
370
|
order: 1010,
|
|
328
371
|
},
|
|
329
372
|
lazy: () => import("./admin-jobs.tsx"),
|
|
@@ -338,8 +381,10 @@ export class AdminRouter {
|
|
|
338
381
|
can: () => this.notificationApi.findNotifications.can(),
|
|
339
382
|
nav: {
|
|
340
383
|
label: "Notifications",
|
|
384
|
+
labelKey: "admin.nav.notifications",
|
|
341
385
|
icon: createElement(Bell),
|
|
342
386
|
group: "System",
|
|
387
|
+
groupKey: "admin.nav.group.system",
|
|
343
388
|
order: 1011,
|
|
344
389
|
},
|
|
345
390
|
lazy: () => import("./admin-notifications.tsx"),
|
|
@@ -354,8 +399,10 @@ export class AdminRouter {
|
|
|
354
399
|
can: () => this.auditApi.findAudits.can(),
|
|
355
400
|
nav: {
|
|
356
401
|
label: "Audit log",
|
|
402
|
+
labelKey: "admin.nav.audits",
|
|
357
403
|
icon: createElement(ShieldAlert),
|
|
358
404
|
group: "Identity",
|
|
405
|
+
groupKey: "admin.nav.group.identity",
|
|
359
406
|
order: 1002,
|
|
360
407
|
},
|
|
361
408
|
lazy: () => import("./admin-audits.tsx"),
|
|
@@ -370,8 +417,10 @@ export class AdminRouter {
|
|
|
370
417
|
can: () => this.fileApi.findFiles.can(),
|
|
371
418
|
nav: {
|
|
372
419
|
label: "Files",
|
|
420
|
+
labelKey: "admin.nav.files",
|
|
373
421
|
icon: createElement(Files),
|
|
374
422
|
group: "System",
|
|
423
|
+
groupKey: "admin.nav.group.system",
|
|
375
424
|
order: 1012,
|
|
376
425
|
},
|
|
377
426
|
lazy: () => import("./admin-files.tsx"),
|
|
@@ -386,8 +435,10 @@ export class AdminRouter {
|
|
|
386
435
|
can: () => this.parameterApi.getParameterTree.can(),
|
|
387
436
|
nav: {
|
|
388
437
|
label: "Parameters",
|
|
438
|
+
labelKey: "admin.nav.parameters",
|
|
389
439
|
icon: createElement(SlidersHorizontal),
|
|
390
440
|
group: "System",
|
|
441
|
+
groupKey: "admin.nav.group.system",
|
|
391
442
|
order: 1015,
|
|
392
443
|
keywords: ["settings", "config", "configuration"],
|
|
393
444
|
},
|
|
@@ -409,8 +460,10 @@ export class AdminRouter {
|
|
|
409
460
|
can: () => this.paymentApi.listIntents.can(),
|
|
410
461
|
nav: {
|
|
411
462
|
label: "Payments",
|
|
463
|
+
labelKey: "admin.nav.payments",
|
|
412
464
|
icon: createElement(CreditCard),
|
|
413
465
|
group: "System",
|
|
466
|
+
groupKey: "admin.nav.group.system",
|
|
414
467
|
order: 1013,
|
|
415
468
|
},
|
|
416
469
|
lazy: () => import("./admin-payments.tsx"),
|
|
@@ -425,8 +478,10 @@ export class AdminRouter {
|
|
|
425
478
|
can: () => this.analyticsApi.listDatasets.can(),
|
|
426
479
|
nav: {
|
|
427
480
|
label: "Analytics",
|
|
481
|
+
labelKey: "admin.nav.analytics",
|
|
428
482
|
icon: createElement(ChartLine),
|
|
429
483
|
group: "System",
|
|
484
|
+
groupKey: "admin.nav.group.system",
|
|
430
485
|
order: 1016,
|
|
431
486
|
},
|
|
432
487
|
lazy: () => import("./admin-analytics.tsx"),
|
|
@@ -441,8 +496,10 @@ export class AdminRouter {
|
|
|
441
496
|
can: () => this.workflowApi.getWorkflowRegistry.can(),
|
|
442
497
|
nav: {
|
|
443
498
|
label: "Workflows",
|
|
499
|
+
labelKey: "admin.nav.workflows",
|
|
444
500
|
icon: createElement(Workflow),
|
|
445
501
|
group: "System",
|
|
502
|
+
groupKey: "admin.nav.group.system",
|
|
446
503
|
order: 1014,
|
|
447
504
|
keywords: ["saga", "steps", "executions"],
|
|
448
505
|
},
|
|
@@ -116,9 +116,16 @@ export const AdminSessions = () => {
|
|
|
116
116
|
label: tr("admin.sessions.colDevice", { default: "Device" }),
|
|
117
117
|
cell: (s) => {
|
|
118
118
|
const ua = s.userAgent;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
// "Unknown" is what the parser reports for a client it could
|
|
120
|
+
// not place (an API caller, an OAuth or MCP agent). Printing it
|
|
121
|
+
// twice tells an admin less than the placeholder this column
|
|
122
|
+
// already uses for a session carrying no agent at all.
|
|
123
|
+
const text =
|
|
124
|
+
(ua
|
|
125
|
+
? [ua.browser, ua.os]
|
|
126
|
+
.filter((part) => part && part !== "Unknown")
|
|
127
|
+
.join(" • ")
|
|
128
|
+
: "") || "—";
|
|
122
129
|
return (
|
|
123
130
|
<span className="text-muted-foreground line-clamp-1 text-xs">
|
|
124
131
|
{text}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import type { IdentityResource } from "alepha/api/users";
|
|
16
16
|
import type { UseActionReturn } from "alepha/react";
|
|
17
17
|
import { useI18n } from "alepha/react/i18n";
|
|
18
|
-
import { KeyRound, Trash2 } from "lucide-react";
|
|
18
|
+
import { KeyRound, ShieldOff, Trash2 } from "lucide-react";
|
|
19
19
|
|
|
20
20
|
import { PROVIDER_LABELS } from "../auth/provider-labels.ts";
|
|
21
21
|
|
|
@@ -25,21 +25,45 @@ export interface AdminUserDetailSecurityTabProps {
|
|
|
25
25
|
*/
|
|
26
26
|
hasPassword: boolean;
|
|
27
27
|
/**
|
|
28
|
-
* Every identity except `credentials`, which has its own card.
|
|
28
|
+
* Every identity except `credentials`, which has its own card. The `totp`
|
|
29
|
+
* row may be in here; this component splits it out rather than trusting a
|
|
30
|
+
* caller to, because listing a second factor as a connection is exactly the
|
|
31
|
+
* mistake to avoid.
|
|
29
32
|
*/
|
|
30
33
|
socialIdentities: ReadonlyArray<IdentityResource>;
|
|
31
34
|
removeIdentity: UseActionReturn<[IdentityResource], void>;
|
|
35
|
+
/**
|
|
36
|
+
* Clears the authenticator-app enrollment. Separate from
|
|
37
|
+
* {@link removeIdentity} because the confirmation has to say something
|
|
38
|
+
* different: this one does not take away a way in, it takes away a check.
|
|
39
|
+
*/
|
|
40
|
+
clearTotp: UseActionReturn<[IdentityResource], void>;
|
|
32
41
|
onChangePassword: () => void;
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
/**
|
|
36
|
-
* Security tab: password sign-in and linked OAuth
|
|
45
|
+
* Security tab: password sign-in, the second factor, and linked OAuth
|
|
46
|
+
* providers.
|
|
37
47
|
*/
|
|
38
48
|
export const AdminUserDetailSecurityTab = (
|
|
39
49
|
props: AdminUserDetailSecurityTabProps,
|
|
40
50
|
) => {
|
|
41
51
|
const { tr } = useI18n();
|
|
42
52
|
|
|
53
|
+
/*
|
|
54
|
+
* A TOTP enrollment is stored as an ordinary identity row, so it arrives in
|
|
55
|
+
* the same list as Google and GitHub. It is not a way to sign in, and
|
|
56
|
+
* offering to "remove the connection" would both misdescribe it and hand
|
|
57
|
+
* over the one action a locked-out user's attacker wants most, under the
|
|
58
|
+
* wrong label.
|
|
59
|
+
*/
|
|
60
|
+
const totpIdentity = props.socialIdentities.find(
|
|
61
|
+
(it) => it.provider === "totp",
|
|
62
|
+
);
|
|
63
|
+
const connections = props.socialIdentities.filter(
|
|
64
|
+
(it) => it.provider !== "totp",
|
|
65
|
+
);
|
|
66
|
+
|
|
43
67
|
return (
|
|
44
68
|
<div className="min-h-0 flex-1 overflow-auto">
|
|
45
69
|
<div className="flex max-w-6xl flex-col gap-6 p-6">
|
|
@@ -83,6 +107,47 @@ export const AdminUserDetailSecurityTab = (
|
|
|
83
107
|
</CardFooter>
|
|
84
108
|
</Card>
|
|
85
109
|
|
|
110
|
+
<Card>
|
|
111
|
+
<CardHeader>
|
|
112
|
+
<CardTitle>
|
|
113
|
+
{tr("admin.userDetail.mfa", {
|
|
114
|
+
default: "Two-factor authentication",
|
|
115
|
+
})}
|
|
116
|
+
</CardTitle>
|
|
117
|
+
<CardDescription>
|
|
118
|
+
{tr("admin.userDetail.mfaSub", {
|
|
119
|
+
default: "An authenticator app checked after the password.",
|
|
120
|
+
})}
|
|
121
|
+
</CardDescription>
|
|
122
|
+
</CardHeader>
|
|
123
|
+
<CardContent>
|
|
124
|
+
<p className="text-muted-foreground text-sm">
|
|
125
|
+
{totpIdentity
|
|
126
|
+
? tr("admin.userDetail.mfaOn", {
|
|
127
|
+
default:
|
|
128
|
+
"An authenticator app is enrolled. Clear it only if the user has lost the device and their recovery codes. They will sign in with their password alone until they enroll again.",
|
|
129
|
+
})
|
|
130
|
+
: tr("admin.userDetail.mfaOff", {
|
|
131
|
+
default: "No authenticator app is enrolled.",
|
|
132
|
+
})}
|
|
133
|
+
</p>
|
|
134
|
+
</CardContent>
|
|
135
|
+
{totpIdentity ? (
|
|
136
|
+
<CardFooter>
|
|
137
|
+
<Button
|
|
138
|
+
variant="destructive"
|
|
139
|
+
loading={props.clearTotp.loading}
|
|
140
|
+
onClick={() => props.clearTotp.run(totpIdentity)}
|
|
141
|
+
>
|
|
142
|
+
<ShieldOff className="size-4" />
|
|
143
|
+
{tr("admin.userDetail.mfaClear", {
|
|
144
|
+
default: "Clear second factor",
|
|
145
|
+
})}
|
|
146
|
+
</Button>
|
|
147
|
+
</CardFooter>
|
|
148
|
+
) : null}
|
|
149
|
+
</Card>
|
|
150
|
+
|
|
86
151
|
<Card>
|
|
87
152
|
<CardHeader>
|
|
88
153
|
<CardTitle>
|
|
@@ -97,7 +162,7 @@ export const AdminUserDetailSecurityTab = (
|
|
|
97
162
|
</CardDescription>
|
|
98
163
|
</CardHeader>
|
|
99
164
|
<CardContent>
|
|
100
|
-
{
|
|
165
|
+
{connections.length === 0 ? (
|
|
101
166
|
<p className="text-muted-foreground text-sm">
|
|
102
167
|
{tr("admin.userDetail.noIdentities", {
|
|
103
168
|
default: "No connected accounts.",
|
|
@@ -105,7 +170,7 @@ export const AdminUserDetailSecurityTab = (
|
|
|
105
170
|
</p>
|
|
106
171
|
) : (
|
|
107
172
|
<ul className="flex flex-col gap-2">
|
|
108
|
-
{
|
|
173
|
+
{connections.map((id) => {
|
|
109
174
|
const label = PROVIDER_LABELS[id.provider] ?? id.provider;
|
|
110
175
|
return (
|
|
111
176
|
<li
|
|
@@ -60,9 +60,16 @@ export const AdminUserDetailSessionsTab = (
|
|
|
60
60
|
}),
|
|
61
61
|
cell: (s) => {
|
|
62
62
|
const ua = s.userAgent;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
// "Unknown" is what the parser reports for a client it could
|
|
64
|
+
// not place (an API caller, an OAuth or MCP agent). Printing it
|
|
65
|
+
// twice tells an admin less than the placeholder this column
|
|
66
|
+
// already uses for a session carrying no agent at all.
|
|
67
|
+
const text =
|
|
68
|
+
(ua
|
|
69
|
+
? [ua.browser, ua.os]
|
|
70
|
+
.filter((part) => part && part !== "Unknown")
|
|
71
|
+
.join(" • ")
|
|
72
|
+
: "") || "—";
|
|
66
73
|
return (
|
|
67
74
|
<span className="text-muted-foreground line-clamp-1 text-xs">
|
|
68
75
|
{text}
|
|
@@ -16,6 +16,7 @@ import { useDetailTab } from "@alepha/ui/components/detail/use-detail-tab";
|
|
|
16
16
|
import { Button } from "@alepha/ui/components/ui/button";
|
|
17
17
|
import { useDialog } from "@alepha/ui/components/use-dialog/use-dialog";
|
|
18
18
|
import { useToast } from "@alepha/ui/components/use-toast/use-toast";
|
|
19
|
+
import { AlephaError } from "alepha";
|
|
19
20
|
import type { AdminAuditController } from "alepha/api/audits";
|
|
20
21
|
import type {
|
|
21
22
|
AdminIdentityController,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
UserCheck,
|
|
41
42
|
UserX,
|
|
42
43
|
} from "lucide-react";
|
|
43
|
-
import { useCallback,
|
|
44
|
+
import { useCallback, useState } from "react";
|
|
44
45
|
|
|
45
46
|
import { PROVIDER_LABELS } from "../auth/provider-labels.ts";
|
|
46
47
|
import { passwordSchema } from "./admin-user-detail-password-schema.ts";
|
|
@@ -120,8 +121,25 @@ export const AdminUserDetail = (props: AdminUserDetailProps) => {
|
|
|
120
121
|
// refetch() — so the mutations below just call the relevant refetch()
|
|
121
122
|
// instead of bumping a manual reload key.
|
|
122
123
|
|
|
124
|
+
// ⚠️ Every query keyed on `userId` is gated on it being non-empty.
|
|
125
|
+
//
|
|
126
|
+
// `resolveUserDetailId` falls back to `""` on purpose, so a vendored
|
|
127
|
+
// consumer declaring `/users/:id` keeps working — but the fallback used to
|
|
128
|
+
// be dispatched anyway. `useRouterState` is a GLOBAL store, so navigating
|
|
129
|
+
// away re-renders this component with the next route's params before it
|
|
130
|
+
// unmounts: `userId` becomes `""`, the dep changes, and the query re-runs
|
|
131
|
+
// with it. The batch then posts `params: { id: "" }` and the server answers
|
|
132
|
+
// `Invalid GUID at /id` — blight #358, seven hits, and #118 before it on
|
|
133
|
+
// the previous bundle.
|
|
134
|
+
//
|
|
135
|
+
// Skipping the request is also what makes the fallback fail VISIBLY: with
|
|
136
|
+
// nothing in flight, `loading` is false and `user` is undefined, so the
|
|
137
|
+
// `notFound` branch below renders instead of a 400 nobody sees.
|
|
138
|
+
const hasUserId = userId !== "";
|
|
139
|
+
|
|
123
140
|
const userQuery = useQuery(
|
|
124
141
|
{
|
|
142
|
+
enabled: hasUserId,
|
|
125
143
|
handler: ({ signal }) =>
|
|
126
144
|
userClient.getUser(
|
|
127
145
|
{
|
|
@@ -157,6 +175,9 @@ export const AdminUserDetail = (props: AdminUserDetailProps) => {
|
|
|
157
175
|
|
|
158
176
|
const identitiesQuery = useQuery(
|
|
159
177
|
{
|
|
178
|
+
// Same gate: this one sends `userId` as a filter, so an empty one asks
|
|
179
|
+
// for every identity in the realm rather than failing.
|
|
180
|
+
enabled: hasUserId,
|
|
160
181
|
handler: ({ signal }) =>
|
|
161
182
|
identityClient.findIdentities(
|
|
162
183
|
{ query: { userId, size: 100, userRealmName: props.userRealmName } },
|
|
@@ -246,33 +267,39 @@ export const AdminUserDetail = (props: AdminUserDetailProps) => {
|
|
|
246
267
|
);
|
|
247
268
|
await userQuery.refetch();
|
|
248
269
|
} catch (err) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
270
|
+
// Throw, never toast. `ActionErrorToaster`, which `AppShell` mounts,
|
|
271
|
+
// already turns an unhandled action error into exactly one toast, and
|
|
272
|
+
// it reads `error.message` - the very string this used to pass to
|
|
273
|
+
// `toast.error` for an `HttpError`. So a refused duplicate email
|
|
274
|
+
// arrived twice, as two identical stacked toasts.
|
|
275
|
+
//
|
|
276
|
+
// What is left here is the other half of the job: making sure the
|
|
277
|
+
// error carries a sentence worth showing. An `HttpError` already does
|
|
278
|
+
// (it is the server's own wording, and "Email already exists" is
|
|
279
|
+
// exactly what the operator needs to read), so it travels as-is.
|
|
280
|
+
// Anything else is transport or a bug, whose message - "Failed to
|
|
281
|
+
// fetch" - says nothing about this form, so it gets replaced.
|
|
282
|
+
//
|
|
283
|
+
// Same division of labour as the auth forms in this package: the
|
|
284
|
+
// handler throws, the toaster shows.
|
|
285
|
+
throw err instanceof HttpError
|
|
286
|
+
? err
|
|
287
|
+
: new AlephaError(
|
|
288
|
+
tr("admin.userDetail.saveError", {
|
|
253
289
|
default: "Failed to save profile",
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
|
|
290
|
+
}),
|
|
291
|
+
{ cause: err },
|
|
292
|
+
);
|
|
257
293
|
}
|
|
258
294
|
},
|
|
259
295
|
});
|
|
260
296
|
|
|
261
|
-
//
|
|
262
|
-
//
|
|
263
|
-
//
|
|
264
|
-
//
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
form.setInitialValues({
|
|
268
|
-
username: user.username ?? "",
|
|
269
|
-
email: user.email ?? "",
|
|
270
|
-
firstName: user.firstName ?? "",
|
|
271
|
-
lastName: user.lastName ?? "",
|
|
272
|
-
emailVerified: user.emailVerified ?? false,
|
|
273
|
-
roles: user.roles ?? [],
|
|
274
|
-
});
|
|
275
|
-
}, [userQuery.data]);
|
|
297
|
+
// No `useEffect` re-seeding the form from `userQuery.data` here: the same
|
|
298
|
+
// object is already `useForm`'s `initialValues` above, and `useForm` re-seeds
|
|
299
|
+
// itself when it changes - keeping the fields the user has edited, which the
|
|
300
|
+
// hand-rolled effect could not do. It re-seeded wholesale, so anything typed
|
|
301
|
+
// between pressing Save and the refetch landing was overwritten by data that
|
|
302
|
+
// predates it.
|
|
276
303
|
|
|
277
304
|
// -- Set password ---------------------------------------------------------
|
|
278
305
|
|
|
@@ -412,6 +439,47 @@ export const AdminUserDetail = (props: AdminUserDetailProps) => {
|
|
|
412
439
|
[props.userRealmName],
|
|
413
440
|
);
|
|
414
441
|
|
|
442
|
+
// -- Clear the second factor ----------------------------------------------
|
|
443
|
+
|
|
444
|
+
/*
|
|
445
|
+
* Same endpoint as `removeIdentity`: a TOTP enrollment is an identity row,
|
|
446
|
+
* and `admin:identity:delete` already means "can take away a way into this
|
|
447
|
+
* account". What differs is what the operator is told: this does not remove
|
|
448
|
+
* a sign-in method, it removes the check that sits after one, so the wording
|
|
449
|
+
* of `removeIdentity` would be actively wrong here.
|
|
450
|
+
*
|
|
451
|
+
* It is also the single action an attacker holding an admin session wants
|
|
452
|
+
* most, which is why it confirms rather than firing on one click.
|
|
453
|
+
*/
|
|
454
|
+
const clearTotp = useAction<[IdentityResource]>(
|
|
455
|
+
{
|
|
456
|
+
handler: async (identity) => {
|
|
457
|
+
const ok = await dialog.confirm({
|
|
458
|
+
title: tr("admin.userDetail.clearTotpTitle", {
|
|
459
|
+
default: "Clear second factor",
|
|
460
|
+
}),
|
|
461
|
+
description: tr("admin.userDetail.clearTotpConfirm", {
|
|
462
|
+
default:
|
|
463
|
+
"This account will sign in with its password alone until the user enrolls an authenticator app again. Do this only when they have lost both the device and their recovery codes.",
|
|
464
|
+
}),
|
|
465
|
+
destructive: true,
|
|
466
|
+
});
|
|
467
|
+
if (!ok) return;
|
|
468
|
+
await identityClient.deleteIdentity({
|
|
469
|
+
params: { id: identity.id },
|
|
470
|
+
query: { userRealmName: props.userRealmName },
|
|
471
|
+
});
|
|
472
|
+
toast.success(
|
|
473
|
+
tr("admin.userDetail.totpCleared", {
|
|
474
|
+
default: "Second factor cleared",
|
|
475
|
+
}),
|
|
476
|
+
);
|
|
477
|
+
await identitiesQuery.refetch();
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
[props.userRealmName],
|
|
481
|
+
);
|
|
482
|
+
|
|
415
483
|
// -- Sessions / audits fetchers -------------------------------------------
|
|
416
484
|
|
|
417
485
|
const sessionsFetcher = useCallback(
|
|
@@ -581,6 +649,7 @@ export const AdminUserDetail = (props: AdminUserDetailProps) => {
|
|
|
581
649
|
hasPassword={hasPassword}
|
|
582
650
|
socialIdentities={socialIdentities}
|
|
583
651
|
removeIdentity={removeIdentity}
|
|
652
|
+
clearTotp={clearTotp}
|
|
584
653
|
onChangePassword={() => setPasswordOpen(true)}
|
|
585
654
|
/>
|
|
586
655
|
)}
|
|
@@ -445,7 +445,7 @@ export const AdminUsers = (props: AdminUsersProps) => {
|
|
|
445
445
|
// Defaulting joined-date hidden keeps the table compact on
|
|
446
446
|
// first view; opt back in via the column picker. The
|
|
447
447
|
// sortable header still works once enabled.
|
|
448
|
-
defaultHidden:
|
|
448
|
+
defaultHidden: true,
|
|
449
449
|
cell: (u) => (
|
|
450
450
|
<span className="text-muted-foreground text-xs">
|
|
451
451
|
{String(l(u.createdAt, { date: "fromNow" }))}
|
|
@@ -12,6 +12,11 @@ import { useI18n } from "alepha/react/i18n";
|
|
|
12
12
|
import { CircleDot } from "lucide-react";
|
|
13
13
|
import { useCallback, useState } from "react";
|
|
14
14
|
|
|
15
|
+
import {
|
|
16
|
+
useWorkflowStatusLabels,
|
|
17
|
+
WORKFLOW_EXECUTION_STATUSES,
|
|
18
|
+
} from "./admin-workflows-status-labels.ts";
|
|
19
|
+
|
|
15
20
|
const EXEC_POLL_MS = 10_000;
|
|
16
21
|
|
|
17
22
|
const execFiltersSchema = z.object({
|
|
@@ -32,6 +37,7 @@ export const AdminWorkflowsExecutionsPanel = (
|
|
|
32
37
|
) => {
|
|
33
38
|
const client = useClient<AdminWorkflowController>();
|
|
34
39
|
const { l, tr } = useI18n();
|
|
40
|
+
const statusLabels = useWorkflowStatusLabels();
|
|
35
41
|
const [openExecution, setOpenExecution] = useState<string | null>(null);
|
|
36
42
|
|
|
37
43
|
const fetcher = useCallback(
|
|
@@ -77,23 +83,9 @@ export const AdminWorkflowsExecutionsPanel = (
|
|
|
77
83
|
tr("admin.workflows.statusAll", { default: "All statuses" }),
|
|
78
84
|
)}
|
|
79
85
|
triggerClassName="w-48"
|
|
80
|
-
items={
|
|
81
|
-
"pending",
|
|
82
|
-
"running",
|
|
83
|
-
"completed",
|
|
84
|
-
"failed",
|
|
85
|
-
"timed_out",
|
|
86
|
-
"compensating",
|
|
87
|
-
"compensated",
|
|
88
|
-
"compensation_failed",
|
|
89
|
-
"cancelled",
|
|
90
|
-
].map((status) => ({
|
|
86
|
+
items={WORKFLOW_EXECUTION_STATUSES.map((status) => ({
|
|
91
87
|
value: status,
|
|
92
|
-
label:
|
|
93
|
-
tr(`admin.workflows.status.${status}` as any, {
|
|
94
|
-
default: status,
|
|
95
|
-
}),
|
|
96
|
-
),
|
|
88
|
+
label: statusLabels[status],
|
|
97
89
|
}))}
|
|
98
90
|
/>
|
|
99
91
|
),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Badge } from "@alepha/ui/components/ui/badge";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { useWorkflowStatusLabels } from "./admin-workflows-status-labels.ts";
|
|
3
4
|
|
|
4
5
|
export interface AdminWorkflowsStatusBadgeProps {
|
|
5
6
|
/**
|
|
@@ -31,12 +32,10 @@ const VARIANTS: Record<
|
|
|
31
32
|
export const AdminWorkflowsStatusBadge = (
|
|
32
33
|
props: AdminWorkflowsStatusBadgeProps,
|
|
33
34
|
) => {
|
|
34
|
-
const
|
|
35
|
+
const labels = useWorkflowStatusLabels();
|
|
35
36
|
return (
|
|
36
37
|
<Badge variant={VARIANTS[props.status] ?? "outline"}>
|
|
37
|
-
{
|
|
38
|
-
default: props.status,
|
|
39
|
-
})}
|
|
38
|
+
{labels[props.status] ?? props.status}
|
|
40
39
|
</Badge>
|
|
41
40
|
);
|
|
42
41
|
};
|