@alepha/ui 0.25.1 → 0.26.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/LICENSE +21 -0
- package/README.md +136 -2
- package/dist/components/account/account-connections.d.ts +16 -0
- package/dist/components/account/account-connections.d.ts.map +1 -0
- package/dist/components/account/account-connections.js +76 -0
- package/dist/components/account/account-connections.js.map +1 -0
- package/dist/components/account/account-delete-dialog.d.ts +44 -0
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -0
- package/dist/components/account/account-delete-dialog.js +126 -0
- package/dist/components/account/account-delete-dialog.js.map +1 -0
- package/dist/components/account/account-header.d.ts +33 -0
- package/dist/components/account/account-header.d.ts.map +1 -0
- package/dist/components/account/account-header.js +41 -0
- package/dist/components/account/account-header.js.map +1 -0
- package/dist/components/account/account-keys.d.ts +23 -0
- package/dist/components/account/account-keys.d.ts.map +1 -0
- package/dist/components/account/account-keys.js +168 -0
- package/dist/components/account/account-keys.js.map +1 -0
- package/dist/components/account/account-layout.d.ts +32 -0
- package/dist/components/account/account-layout.d.ts.map +1 -0
- package/dist/components/account/account-layout.js +53 -0
- package/dist/components/account/account-layout.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts +31 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -0
- package/dist/components/account/account-password-dialog.js +120 -0
- package/dist/components/account/account-password-dialog.js.map +1 -0
- package/dist/components/account/account-profile.d.ts +27 -0
- package/dist/components/account/account-profile.d.ts.map +1 -0
- package/dist/components/account/account-profile.js +217 -0
- package/dist/components/account/account-profile.js.map +1 -0
- package/dist/components/account/account-router-options.d.ts +77 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -0
- package/dist/components/account/account-router-options.js +22 -0
- package/dist/components/account/account-router-options.js.map +1 -0
- package/dist/components/account/account-router-page.d.ts +49 -0
- package/dist/components/account/account-router-page.d.ts.map +1 -0
- package/dist/components/account/account-router-page.js +61 -0
- package/dist/components/account/account-router-page.js.map +1 -0
- package/dist/components/account/account-router.d.ts +214 -0
- package/dist/components/account/account-router.d.ts.map +1 -0
- package/dist/components/account/account-router.js +216 -0
- package/dist/components/account/account-router.js.map +1 -0
- package/dist/components/account/account-security.d.ts +22 -0
- package/dist/components/account/account-security.d.ts.map +1 -0
- package/dist/components/account/account-security.js +107 -0
- package/dist/components/account/account-security.js.map +1 -0
- package/dist/components/account/account-sessions.d.ts +17 -0
- package/dist/components/account/account-sessions.d.ts.map +1 -0
- package/dist/components/account/account-sessions.js +108 -0
- package/dist/components/account/account-sessions.js.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts +39 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.js +40 -0
- package/dist/components/action-error-toaster/action-error-toaster.js.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts +16 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.js +117 -0
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -0
- package/dist/components/admin/admin-analytics-results.d.ts +15 -0
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-results.js +56 -0
- package/dist/components/admin/admin-analytics-results.js.map +1 -0
- package/dist/components/admin/admin-analytics.d.ts +9 -0
- package/dist/components/admin/admin-analytics.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics.js +66 -0
- package/dist/components/admin/admin-analytics.js.map +1 -0
- package/dist/components/admin/admin-audits.d.ts +4 -0
- package/dist/components/admin/admin-audits.d.ts.map +1 -0
- package/dist/components/admin/admin-audits.js +173 -0
- package/dist/components/admin/admin-audits.js.map +1 -0
- package/dist/components/admin/admin-files.d.ts +4 -0
- package/dist/components/admin/admin-files.d.ts.map +1 -0
- package/dist/components/admin/admin-files.js +237 -0
- package/dist/components/admin/admin-files.js.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +11 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.js +200 -0
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts +9 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.js +26 -0
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -0
- package/dist/components/admin/admin-jobs.d.ts +4 -0
- package/dist/components/admin/admin-jobs.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs.js +248 -0
- package/dist/components/admin/admin-jobs.js.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts +15 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.js +66 -0
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts +4 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -0
- package/dist/components/admin/admin-keys.js +161 -0
- package/dist/components/admin/admin-keys.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts +33 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -0
- package/dist/components/admin/admin-layout.js +101 -0
- package/dist/components/admin/admin-layout.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +4 -0
- package/dist/components/admin/admin-notifications.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications.js +99 -0
- package/dist/components/admin/admin-notifications.js.map +1 -0
- package/dist/components/admin/admin-page.d.ts +16 -0
- package/dist/components/admin/admin-page.d.ts.map +1 -0
- package/dist/components/admin/admin-page.js +15 -0
- package/dist/components/admin/admin-page.js.map +1 -0
- package/dist/components/admin/admin-parameters.d.ts +26 -0
- package/dist/components/admin/admin-parameters.d.ts.map +1 -0
- package/dist/components/admin/admin-parameters.js +560 -0
- package/dist/components/admin/admin-parameters.js.map +1 -0
- package/dist/components/admin/admin-payments.d.ts +4 -0
- package/dist/components/admin/admin-payments.d.ts.map +1 -0
- package/dist/components/admin/admin-payments.js +72 -0
- package/dist/components/admin/admin-payments.js.map +1 -0
- package/dist/components/admin/admin-router-options.d.ts +135 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -0
- package/dist/components/admin/admin-router-options.js +29 -0
- package/dist/components/admin/admin-router-options.js.map +1 -0
- package/dist/components/admin/admin-router-page.d.ts +54 -0
- package/dist/components/admin/admin-router-page.d.ts.map +1 -0
- package/dist/components/admin/admin-router-page.js +66 -0
- package/dist/components/admin/admin-router-page.js.map +1 -0
- package/dist/components/admin/admin-router.d.ts +169 -0
- package/dist/components/admin/admin-router.d.ts.map +1 -0
- package/dist/components/admin/admin-router.js +346 -0
- package/dist/components/admin/admin-router.js.map +1 -0
- package/dist/components/admin/admin-sessions.d.ts +4 -0
- package/dist/components/admin/admin-sessions.d.ts.map +1 -0
- package/dist/components/admin/admin-sessions.js +124 -0
- package/dist/components/admin/admin-sessions.js.map +1 -0
- package/dist/components/admin/admin-user-cell.d.ts +37 -0
- package/dist/components/admin/admin-user-cell.d.ts.map +1 -0
- package/dist/components/admin/admin-user-cell.js +35 -0
- package/dist/components/admin/admin-user-cell.js.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js +55 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +14 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js +162 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts +26 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js +60 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js +47 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts +10 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.js +13 -0
- package/dist/components/admin/admin-user-detail-password-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts +56 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js +73 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts +18 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js +21 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +20 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.js +70 -0
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +25 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js +64 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail.d.ts +39 -0
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail.js +386 -0
- package/dist/components/admin/admin-user-detail.js.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts +23 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.js +77 -0
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -0
- package/dist/components/admin/admin-users-status-filter.d.ts +13 -0
- package/dist/components/admin/admin-users-status-filter.d.ts.map +1 -0
- package/dist/components/admin/admin-users-status-filter.js +41 -0
- package/dist/components/admin/admin-users-status-filter.js.map +1 -0
- package/dist/components/admin/admin-users.d.ts +16 -0
- package/dist/components/admin/admin-users.d.ts.map +1 -0
- package/dist/components/admin/admin-users.js +325 -0
- package/dist/components/admin/admin-users.js.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +11 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js +190 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +9 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.js +153 -0
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts +12 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.js +30 -0
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -0
- package/dist/components/admin/admin-workflows.d.ts +4 -0
- package/dist/components/admin/admin-workflows.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows.js +145 -0
- package/dist/components/admin/admin-workflows.js.map +1 -0
- package/dist/components/admin/diff-lines.d.ts +13 -0
- package/dist/components/admin/diff-lines.d.ts.map +1 -0
- package/dist/components/admin/diff-lines.js +57 -0
- package/dist/components/admin/diff-lines.js.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts +36 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.js +58 -0
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -0
- package/dist/components/admin/parameter-history-item.d.ts +17 -0
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -0
- package/dist/components/admin/parameter-history-item.js +177 -0
- package/dist/components/admin/parameter-history-item.js.map +1 -0
- package/dist/components/admin/parameter-json-dialog.d.ts +13 -0
- package/dist/components/admin/parameter-json-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-json-dialog.js +63 -0
- package/dist/components/admin/parameter-json-dialog.js.map +1 -0
- package/dist/components/admin/parameter-save-dialog.d.ts +26 -0
- package/dist/components/admin/parameter-save-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-save-dialog.js +74 -0
- package/dist/components/admin/parameter-save-dialog.js.map +1 -0
- package/dist/components/admin/use-confirmed-action.d.ts +53 -0
- package/dist/components/admin/use-confirmed-action.d.ts.map +1 -0
- package/dist/components/admin/use-confirmed-action.js +50 -0
- package/dist/components/admin/use-confirmed-action.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +218 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table.js +565 -0
- package/dist/components/alepha-table/alepha-table.js.map +1 -0
- package/dist/components/alepha-table/use-table-selection.d.ts +34 -0
- package/dist/components/alepha-table/use-table-selection.d.ts.map +1 -0
- package/dist/components/alepha-table/use-table-selection.js +45 -0
- package/dist/components/alepha-table/use-table-selection.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +74 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -0
- package/dist/components/app-actions/app-actions.js +77 -0
- package/dist/components/app-actions/app-actions.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +135 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +276 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/auth/auth-login.d.ts +40 -0
- package/dist/components/auth/auth-login.d.ts.map +1 -0
- package/dist/components/auth/auth-login.js +237 -0
- package/dist/components/auth/auth-login.js.map +1 -0
- package/dist/components/auth/auth-register.d.ts +35 -0
- package/dist/components/auth/auth-register.d.ts.map +1 -0
- package/dist/components/auth/auth-register.js +478 -0
- package/dist/components/auth/auth-register.js.map +1 -0
- package/dist/components/auth/auth-reset-password.d.ts +21 -0
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -0
- package/dist/components/auth/auth-reset-password.js +283 -0
- package/dist/components/auth/auth-reset-password.js.map +1 -0
- package/dist/components/auth/auth-router.d.ts +245 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -0
- package/dist/components/auth/auth-router.js +117 -0
- package/dist/components/auth/auth-router.js.map +1 -0
- package/dist/components/auth/auth-verify-email.d.ts +19 -0
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -0
- package/dist/components/auth/auth-verify-email.js +124 -0
- package/dist/components/auth/auth-verify-email.js.map +1 -0
- package/dist/components/auth/provider-labels.d.ts +9 -0
- package/dist/components/auth/provider-labels.d.ts.map +1 -0
- package/dist/components/auth/provider-labels.js +20 -0
- package/dist/components/auth/provider-labels.js.map +1 -0
- package/dist/components/auto-form/auto-form.d.ts +219 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -0
- package/dist/components/auto-form/auto-form.js +412 -0
- package/dist/components/auto-form/auto-form.js.map +1 -0
- package/dist/components/brand-icon/brand-icon.d.ts +18 -0
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -0
- package/dist/components/brand-icon/brand-icon.js +84 -0
- package/dist/components/brand-icon/brand-icon.js.map +1 -0
- package/dist/components/button-dark/button-dark.d.ts +25 -0
- package/dist/components/button-dark/button-dark.d.ts.map +1 -0
- package/dist/components/button-dark/button-dark.js +44 -0
- package/dist/components/button-dark/button-dark.js.map +1 -0
- package/dist/components/button-language/button-language.d.ts +24 -0
- package/dist/components/button-language/button-language.d.ts.map +1 -0
- package/dist/components/button-language/button-language.js +50 -0
- package/dist/components/button-language/button-language.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +33 -0
- package/dist/components/button-theme/button-theme.d.ts.map +1 -0
- package/dist/components/button-theme/button-theme.js +90 -0
- package/dist/components/button-theme/button-theme.js.map +1 -0
- package/dist/components/button-user/button-user.d.ts +147 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -0
- package/dist/components/button-user/button-user.js +147 -0
- package/dist/components/button-user/button-user.js.map +1 -0
- package/dist/components/captcha/turnstile-widget.d.ts +59 -0
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -0
- package/dist/components/captcha/turnstile-widget.js +97 -0
- package/dist/components/captcha/turnstile-widget.js.map +1 -0
- package/dist/components/control/control.d.ts +200 -0
- package/dist/components/control/control.d.ts.map +1 -0
- package/dist/components/control/control.js +300 -0
- package/dist/components/control/control.js.map +1 -0
- package/dist/components/control-array/control-array.d.ts +77 -0
- package/dist/components/control-array/control-array.d.ts.map +1 -0
- package/dist/components/control-array/control-array.js +444 -0
- package/dist/components/control-array/control-array.js.map +1 -0
- package/dist/components/control-base/field-i18n.d.ts +30 -0
- package/dist/components/control-base/field-i18n.d.ts.map +1 -0
- package/dist/components/control-base/field-i18n.js +27 -0
- package/dist/components/control-base/field-i18n.js.map +1 -0
- package/dist/components/control-base/form-field.d.ts +128 -0
- package/dist/components/control-base/form-field.d.ts.map +1 -0
- package/dist/components/control-base/form-field.js +208 -0
- package/dist/components/control-base/form-field.js.map +1 -0
- package/dist/components/control-base/grid.d.ts +18 -0
- package/dist/components/control-base/grid.d.ts.map +1 -0
- package/dist/components/control-base/grid.js +46 -0
- package/dist/components/control-base/grid.js.map +1 -0
- package/dist/components/control-base/icon-hint.d.ts +9 -0
- package/dist/components/control-base/icon-hint.d.ts.map +1 -0
- package/dist/components/control-base/icon-hint.js +35 -0
- package/dist/components/control-base/icon-hint.js.map +1 -0
- package/dist/components/control-date/control-date.d.ts +34 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -0
- package/dist/components/control-date/control-date.js +111 -0
- package/dist/components/control-date/control-date.js.map +1 -0
- package/dist/components/control-number/control-number.d.ts +38 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -0
- package/dist/components/control-number/control-number.js +77 -0
- package/dist/components/control-number/control-number.js.map +1 -0
- package/dist/components/control-object/control-object.d.ts +45 -0
- package/dist/components/control-object/control-object.d.ts.map +1 -0
- package/dist/components/control-object/control-object.js +110 -0
- package/dist/components/control-object/control-object.js.map +1 -0
- package/dist/components/control-password/control-password.d.ts +28 -0
- package/dist/components/control-password/control-password.d.ts.map +1 -0
- package/dist/components/control-password/control-password.js +65 -0
- package/dist/components/control-password/control-password.js.map +1 -0
- package/dist/components/control-select/control-select.d.ts +128 -0
- package/dist/components/control-select/control-select.d.ts.map +1 -0
- package/dist/components/control-select/control-select.js +363 -0
- package/dist/components/control-select/control-select.js.map +1 -0
- package/dist/components/control-upload/control-upload.d.ts +67 -0
- package/dist/components/control-upload/control-upload.d.ts.map +1 -0
- package/dist/components/control-upload/control-upload.js +294 -0
- package/dist/components/control-upload/control-upload.js.map +1 -0
- package/dist/components/file-image/file-image.d.ts +31 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -0
- package/dist/components/file-image/file-image.js +27 -0
- package/dist/components/file-image/file-image.js.map +1 -0
- package/dist/components/language-toggle/language-toggle.d.ts +8 -0
- package/dist/components/language-toggle/language-toggle.d.ts.map +1 -0
- package/dist/components/language-toggle/language-toggle.js +49 -0
- package/dist/components/language-toggle/language-toggle.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +114 -0
- package/dist/components/markdown-view/markdown-view.d.ts +21 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view/markdown-view.js +104 -0
- package/dist/components/markdown-view/markdown-view.js.map +1 -0
- package/dist/components/nav-shell/nav-page.d.ts +24 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-page.js +28 -0
- package/dist/components/nav-shell/nav-page.js.map +1 -0
- package/dist/components/nav-shell/nav-shell.d.ts +26 -0
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-shell.js +53 -0
- package/dist/components/nav-shell/nav-shell.js.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts +65 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.js +87 -0
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -0
- package/dist/components/nav-shell/spotlight.d.ts +37 -0
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -0
- package/dist/components/nav-shell/spotlight.js +102 -0
- package/dist/components/nav-shell/spotlight.js.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts +24 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +36 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts +45 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.js +60 -0
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts +21 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.js +48 -0
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -0
- package/dist/components/settings/settings-danger-section.d.ts +35 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -0
- package/dist/components/settings/settings-danger-section.js +42 -0
- package/dist/components/settings/settings-danger-section.js.map +1 -0
- package/dist/components/settings/settings-heading.d.ts +36 -0
- package/dist/components/settings/settings-heading.d.ts.map +1 -0
- package/dist/components/settings/settings-heading.js +39 -0
- package/dist/components/settings/settings-heading.js.map +1 -0
- package/dist/components/settings/settings-layout.d.ts +81 -0
- package/dist/components/settings/settings-layout.d.ts.map +1 -0
- package/dist/components/settings/settings-layout.js +56 -0
- package/dist/components/settings/settings-layout.js.map +1 -0
- package/dist/components/settings/settings-nav.d.ts +85 -0
- package/dist/components/settings/settings-nav.d.ts.map +1 -0
- package/dist/components/settings/settings-nav.js +91 -0
- package/dist/components/settings/settings-nav.js.map +1 -0
- package/dist/components/settings/settings-row.d.ts +45 -0
- package/dist/components/settings/settings-row.d.ts.map +1 -0
- package/dist/components/settings/settings-row.js +44 -0
- package/dist/components/settings/settings-row.js.map +1 -0
- package/dist/components/settings/settings-section.d.ts +36 -0
- package/dist/components/settings/settings-section.d.ts.map +1 -0
- package/dist/components/settings/settings-section.js +36 -0
- package/dist/components/settings/settings-section.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +44 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +31 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +73 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +18 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +60 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +119 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +57 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +134 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +45 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +151 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +164 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +20 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +89 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +134 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +93 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.d.ts.map +1 -0
- package/dist/components/ui/direction.js +3 -0
- package/dist/components/ui/drawer.d.ts +17 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +138 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +80 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +49 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +16 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +122 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +137 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +18 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +87 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +29 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +46 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +119 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +99 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +388 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +33 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +14 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +54 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +38 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/use-dialog/use-dialog.d.ts +61 -0
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -0
- package/dist/components/use-dialog/use-dialog.js +139 -0
- package/dist/components/use-dialog/use-dialog.js.map +1 -0
- package/dist/components/use-toast/use-toast.d.ts +37 -0
- package/dist/components/use-toast/use-toast.d.ts.map +1 -0
- package/dist/components/use-toast/use-toast.js +32 -0
- package/dist/components/use-toast/use-toast.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +20 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lib/i18n-fr.d.ts +46 -0
- package/dist/lib/i18n-fr.d.ts.map +1 -0
- package/dist/lib/i18n-fr.js +505 -0
- package/dist/lib/i18n-fr.js.map +1 -0
- package/dist/lib/resize-image.d.ts +50 -0
- package/dist/lib/resize-image.d.ts.map +1 -0
- package/dist/lib/resize-image.js +68 -0
- package/dist/lib/resize-image.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +254 -0
- package/package.json +46 -15
- package/src/components/account/__tests__/account-router.spec.ts +201 -0
- package/src/components/account/account-connections.tsx +111 -0
- package/src/components/account/account-delete-dialog.tsx +184 -0
- package/src/components/account/account-header.tsx +57 -0
- package/src/components/account/account-keys.tsx +221 -0
- package/src/components/account/account-layout.tsx +66 -0
- package/src/components/account/account-password-dialog.tsx +152 -0
- package/src/components/account/account-profile.tsx +342 -0
- package/src/components/account/account-router-options.tsx +88 -0
- package/src/components/account/account-router-page.tsx +69 -0
- package/src/components/account/account-router.tsx +233 -0
- package/src/components/account/account-security.tsx +150 -0
- package/src/components/account/account-sessions.tsx +140 -0
- package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +62 -0
- package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +82 -0
- package/src/components/admin/__tests__/admin-router-page.spec.ts +54 -0
- package/src/components/admin/__tests__/admin-router.spec.ts +208 -0
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +99 -0
- package/src/components/admin/__tests__/admin-user-detail.spec.ts +29 -0
- package/src/components/admin/admin-analytics-query-panel.tsx +149 -0
- package/src/components/admin/admin-analytics-results.tsx +95 -0
- package/src/components/admin/admin-analytics.tsx +104 -0
- package/src/components/admin/admin-audits.tsx +12 -15
- package/src/components/admin/admin-files.tsx +10 -18
- package/src/components/admin/admin-jobs-executions-panel.tsx +2 -1
- package/src/components/admin/admin-jobs.tsx +3 -1
- package/src/components/admin/admin-keys-token-dialog.tsx +123 -0
- package/src/components/admin/admin-keys.tsx +54 -3
- package/src/components/admin/admin-layout.tsx +107 -0
- package/src/components/admin/admin-payments.tsx +4 -5
- package/src/components/admin/admin-router-options.tsx +150 -0
- package/src/components/admin/admin-router-page.tsx +74 -0
- package/src/components/admin/admin-router.tsx +379 -0
- package/src/components/admin/admin-sessions.tsx +2 -16
- package/src/components/admin/admin-user-cell.tsx +70 -0
- package/src/components/admin/admin-user-detail-overview-tab.tsx +28 -0
- package/src/components/admin/admin-user-detail-profile-policy.spec.ts +146 -0
- package/src/components/admin/admin-user-detail-profile-policy.ts +147 -0
- package/src/components/admin/admin-user-detail-security-tab.tsx +1 -1
- package/src/components/admin/admin-user-detail.tsx +76 -32
- package/src/components/admin/admin-users-status-filter.tsx +2 -0
- package/src/components/admin/admin-workflows-execution-sheet.tsx +277 -0
- package/src/components/admin/admin-workflows-executions-panel.tsx +170 -0
- package/src/components/admin/admin-workflows-status-badge.tsx +40 -0
- package/src/components/admin/admin-workflows.tsx +207 -0
- package/src/components/alepha-table/alepha-table.tsx +91 -19
- package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +79 -0
- package/src/components/app-actions/app-actions.tsx +118 -0
- package/src/components/app-shell/app-shell.tsx +122 -0
- package/src/components/auth/auth-register.tsx +55 -17
- package/src/components/auth/auth-reset-password.tsx +81 -8
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +237 -0
- package/src/components/auto-form/auto-form.tsx +113 -27
- package/src/components/button-user/button-user.tsx +121 -5
- package/src/components/control/control.tsx +47 -79
- package/src/components/control-base/form-field.tsx +60 -3
- package/src/components/control-password/control-password.tsx +87 -0
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +101 -0
- package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +142 -0
- package/src/components/control-select/control-select.tsx +78 -111
- package/src/components/control-upload/control-upload.tsx +27 -1
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +48 -0
- package/src/components/markdown-view/markdown-view.tsx +14 -0
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +88 -0
- package/src/components/nav-shell/nav-page.tsx +3 -3
- package/src/components/nav-shell/nav-tree-util.ts +48 -0
- package/src/components/nav-shell/use-nav-entries.ts +11 -2
- package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +123 -0
- package/src/components/settings/__tests__/settings-section.browser.spec.tsx +130 -0
- package/src/components/settings/settings-danger-section.tsx +59 -0
- package/src/components/settings/settings-heading.tsx +55 -0
- package/src/components/settings/settings-layout.tsx +115 -0
- package/src/components/settings/settings-nav.tsx +175 -0
- package/src/components/settings/settings-row.tsx +81 -0
- package/src/components/settings/settings-section.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +9 -1
- package/src/components/ui/segmented.tsx +19 -2
- package/src/lib/i18n-fr.ts +68 -0
- package/src/lib/resize-image.ts +135 -0
- package/src/styles.css +126 -1
- /package/src/components/{admin/admin-user-detail-provider-labels.ts → auth/provider-labels.ts} +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { WorkflowStatusBadge } from "@alepha/ui/components/admin/admin-workflows-status-badge";
|
|
2
|
+
import { useConfirmedAction } from "@alepha/ui/components/admin/use-confirmed-action";
|
|
3
|
+
import { Button } from "@alepha/ui/components/ui/button";
|
|
4
|
+
import {
|
|
5
|
+
Sheet,
|
|
6
|
+
SheetContent,
|
|
7
|
+
SheetDescription,
|
|
8
|
+
SheetHeader,
|
|
9
|
+
SheetTitle,
|
|
10
|
+
} from "@alepha/ui/components/ui/sheet";
|
|
11
|
+
import type { AdminWorkflowController } from "alepha/api/workflows";
|
|
12
|
+
import { useClient, useQuery } from "alepha/react";
|
|
13
|
+
import { useI18n } from "alepha/react/i18n";
|
|
14
|
+
import { Ban, Play, RotateCcw, Undo2 } from "lucide-react";
|
|
15
|
+
import { useState } from "react";
|
|
16
|
+
|
|
17
|
+
export interface WorkflowExecutionSheetProps {
|
|
18
|
+
executionId: string | null;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Detail sheet for one workflow execution: status, admin actions gated by
|
|
24
|
+
* the server-computed `can`, and the step timeline with per-step attempts,
|
|
25
|
+
* durations, errors and results.
|
|
26
|
+
*/
|
|
27
|
+
export const WorkflowExecutionSheet = (props: WorkflowExecutionSheetProps) => {
|
|
28
|
+
const client = useClient<AdminWorkflowController>();
|
|
29
|
+
const { l, tr } = useI18n();
|
|
30
|
+
const [refreshKey, setRefreshKey] = useState(0);
|
|
31
|
+
|
|
32
|
+
const { data: detail } = useQuery(
|
|
33
|
+
{
|
|
34
|
+
handler: ({ signal }) =>
|
|
35
|
+
props.executionId
|
|
36
|
+
? client.getWorkflowExecution(
|
|
37
|
+
{ params: { id: props.executionId } },
|
|
38
|
+
{ request: { signal } },
|
|
39
|
+
)
|
|
40
|
+
: Promise.resolve(null),
|
|
41
|
+
onError: () => {},
|
|
42
|
+
},
|
|
43
|
+
[client, props.executionId, refreshKey],
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const refresh = () => setRefreshKey((k) => k + 1);
|
|
47
|
+
|
|
48
|
+
const retry = useConfirmedAction<[string]>(
|
|
49
|
+
{
|
|
50
|
+
confirm: {
|
|
51
|
+
title: tr("admin.workflows.retryTitle", { default: "Retry workflow" }),
|
|
52
|
+
description: tr("admin.workflows.retryConfirm", {
|
|
53
|
+
default: "Resume this execution from its failed step?",
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
handler: async (id) => {
|
|
57
|
+
await client.retryWorkflowExecution({ params: { id } });
|
|
58
|
+
refresh();
|
|
59
|
+
},
|
|
60
|
+
success: tr("admin.workflows.retried", { default: "Workflow resumed" }),
|
|
61
|
+
},
|
|
62
|
+
[client, tr],
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
const cancel = useConfirmedAction<[string]>(
|
|
66
|
+
{
|
|
67
|
+
confirm: {
|
|
68
|
+
title: tr("admin.workflows.cancelTitle", {
|
|
69
|
+
default: "Cancel workflow",
|
|
70
|
+
}),
|
|
71
|
+
description: tr("admin.workflows.cancelConfirm", {
|
|
72
|
+
default: "Stop this execution? Remaining steps will not run.",
|
|
73
|
+
}),
|
|
74
|
+
destructive: true,
|
|
75
|
+
},
|
|
76
|
+
handler: async (id) => {
|
|
77
|
+
await client.cancelWorkflowExecution({ params: { id } });
|
|
78
|
+
refresh();
|
|
79
|
+
},
|
|
80
|
+
success: tr("admin.workflows.cancelled", {
|
|
81
|
+
default: "Workflow cancelled",
|
|
82
|
+
}),
|
|
83
|
+
},
|
|
84
|
+
[client, tr],
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
const compensate = useConfirmedAction<[string]>(
|
|
88
|
+
{
|
|
89
|
+
confirm: {
|
|
90
|
+
title: tr("admin.workflows.compensateTitle", {
|
|
91
|
+
default: "Compensate workflow",
|
|
92
|
+
}),
|
|
93
|
+
description: tr("admin.workflows.compensateConfirm", {
|
|
94
|
+
default:
|
|
95
|
+
"Run the compensation functions of every completed step, in reverse order?",
|
|
96
|
+
}),
|
|
97
|
+
destructive: true,
|
|
98
|
+
},
|
|
99
|
+
handler: async (id) => {
|
|
100
|
+
await client.compensateWorkflowExecution({ params: { id } });
|
|
101
|
+
refresh();
|
|
102
|
+
},
|
|
103
|
+
success: tr("admin.workflows.compensated", {
|
|
104
|
+
default: "Compensation started",
|
|
105
|
+
}),
|
|
106
|
+
},
|
|
107
|
+
[client, tr],
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const restart = useConfirmedAction<[string]>(
|
|
111
|
+
{
|
|
112
|
+
confirm: {
|
|
113
|
+
title: tr("admin.workflows.restartTitle", {
|
|
114
|
+
default: "Restart workflow",
|
|
115
|
+
}),
|
|
116
|
+
description: tr("admin.workflows.restartConfirm", {
|
|
117
|
+
default: "Start a new execution with the same payload?",
|
|
118
|
+
}),
|
|
119
|
+
},
|
|
120
|
+
handler: async (id) => {
|
|
121
|
+
await client.restartWorkflowExecution({ params: { id } });
|
|
122
|
+
refresh();
|
|
123
|
+
},
|
|
124
|
+
success: tr("admin.workflows.restarted", {
|
|
125
|
+
default: "Workflow restarted",
|
|
126
|
+
}),
|
|
127
|
+
},
|
|
128
|
+
[client, tr],
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
return (
|
|
132
|
+
<Sheet
|
|
133
|
+
open={props.executionId !== null}
|
|
134
|
+
onOpenChange={(open) => {
|
|
135
|
+
if (!open) props.onClose();
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
<SheetContent
|
|
139
|
+
side="right"
|
|
140
|
+
className="flex w-full flex-col gap-0 data-[side=right]:sm:max-w-[42vw]"
|
|
141
|
+
>
|
|
142
|
+
{detail && (
|
|
143
|
+
<>
|
|
144
|
+
<SheetHeader>
|
|
145
|
+
<SheetTitle className="flex items-center gap-2">
|
|
146
|
+
<span className="truncate">{detail.workflowName}</span>
|
|
147
|
+
<WorkflowStatusBadge status={detail.status} />
|
|
148
|
+
</SheetTitle>
|
|
149
|
+
<SheetDescription className="font-mono text-xs">
|
|
150
|
+
{detail.id}
|
|
151
|
+
</SheetDescription>
|
|
152
|
+
</SheetHeader>
|
|
153
|
+
|
|
154
|
+
<div className="flex flex-wrap items-center gap-2 px-4 pb-2">
|
|
155
|
+
{detail.can.retry && (
|
|
156
|
+
<Button size="sm" onClick={() => retry.run(detail.id)}>
|
|
157
|
+
<Play />
|
|
158
|
+
{tr("admin.workflows.retry", { default: "Retry" })}
|
|
159
|
+
</Button>
|
|
160
|
+
)}
|
|
161
|
+
{detail.can.restart && (
|
|
162
|
+
<Button
|
|
163
|
+
size="sm"
|
|
164
|
+
variant="outline"
|
|
165
|
+
onClick={() => restart.run(detail.id)}
|
|
166
|
+
>
|
|
167
|
+
<RotateCcw />
|
|
168
|
+
{tr("admin.workflows.restart", { default: "Restart" })}
|
|
169
|
+
</Button>
|
|
170
|
+
)}
|
|
171
|
+
{detail.can.compensate && (
|
|
172
|
+
<Button
|
|
173
|
+
size="sm"
|
|
174
|
+
variant="outline"
|
|
175
|
+
onClick={() => compensate.run(detail.id)}
|
|
176
|
+
>
|
|
177
|
+
<Undo2 />
|
|
178
|
+
{tr("admin.workflows.compensate", { default: "Compensate" })}
|
|
179
|
+
</Button>
|
|
180
|
+
)}
|
|
181
|
+
{detail.can.cancel && (
|
|
182
|
+
<Button
|
|
183
|
+
size="sm"
|
|
184
|
+
variant="destructive"
|
|
185
|
+
onClick={() => cancel.run(detail.id)}
|
|
186
|
+
>
|
|
187
|
+
<Ban />
|
|
188
|
+
{tr("admin.workflows.cancel", { default: "Cancel" })}
|
|
189
|
+
</Button>
|
|
190
|
+
)}
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
{detail.error && (
|
|
194
|
+
<div className="text-destructive mx-4 mb-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-xs">
|
|
195
|
+
<span className="font-medium">
|
|
196
|
+
{detail.errorStep ? `${detail.errorStep}: ` : null}
|
|
197
|
+
</span>
|
|
198
|
+
{detail.error}
|
|
199
|
+
</div>
|
|
200
|
+
)}
|
|
201
|
+
|
|
202
|
+
<div className="min-h-0 flex-1 overflow-y-auto px-4 pb-4">
|
|
203
|
+
<ol className="flex flex-col gap-2">
|
|
204
|
+
{detail.steps.map((step) => (
|
|
205
|
+
<WorkflowExecutionSheetStep key={step.id} step={step} l={l} />
|
|
206
|
+
))}
|
|
207
|
+
</ol>
|
|
208
|
+
</div>
|
|
209
|
+
</>
|
|
210
|
+
)}
|
|
211
|
+
</SheetContent>
|
|
212
|
+
</Sheet>
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
interface WorkflowExecutionSheetStepProps {
|
|
217
|
+
step: {
|
|
218
|
+
id: string;
|
|
219
|
+
stepName: string;
|
|
220
|
+
stepIndex: number;
|
|
221
|
+
status: string;
|
|
222
|
+
attempt: number;
|
|
223
|
+
maxAttempts: number;
|
|
224
|
+
iteration?: number;
|
|
225
|
+
error?: string;
|
|
226
|
+
result?: Record<string, unknown>;
|
|
227
|
+
startedAt?: string;
|
|
228
|
+
completedAt?: string;
|
|
229
|
+
scheduledAt?: string;
|
|
230
|
+
};
|
|
231
|
+
l: ReturnType<typeof useI18n>["l"];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const WorkflowExecutionSheetStep = (props: WorkflowExecutionSheetStepProps) => {
|
|
235
|
+
const { step, l } = props;
|
|
236
|
+
const durationMs =
|
|
237
|
+
step.startedAt && step.completedAt
|
|
238
|
+
? new Date(step.completedAt).getTime() -
|
|
239
|
+
new Date(step.startedAt).getTime()
|
|
240
|
+
: null;
|
|
241
|
+
|
|
242
|
+
return (
|
|
243
|
+
<li className="rounded-md border px-3 py-2">
|
|
244
|
+
<div className="flex items-center gap-2">
|
|
245
|
+
<span className="text-muted-foreground w-5 text-right font-mono text-xs">
|
|
246
|
+
{step.stepIndex + 1}
|
|
247
|
+
</span>
|
|
248
|
+
<span className="truncate text-sm font-medium">{step.stepName}</span>
|
|
249
|
+
<WorkflowStatusBadge status={step.status} />
|
|
250
|
+
<span className="text-muted-foreground ml-auto text-xs">
|
|
251
|
+
{step.iteration && step.iteration > 0
|
|
252
|
+
? `×${step.iteration + 1} `
|
|
253
|
+
: null}
|
|
254
|
+
{step.attempt > 0 ? `${step.attempt}/${step.maxAttempts}` : null}
|
|
255
|
+
{durationMs !== null
|
|
256
|
+
? ` · ${durationMs < 1000 ? `${durationMs} ms` : `${(durationMs / 1000).toFixed(1)} s`}`
|
|
257
|
+
: null}
|
|
258
|
+
</span>
|
|
259
|
+
</div>
|
|
260
|
+
{step.status === "pending" && step.scheduledAt && (
|
|
261
|
+
<div className="text-muted-foreground mt-1 pl-7 text-xs">
|
|
262
|
+
{String(l(step.scheduledAt, { date: "fromNow" }))}
|
|
263
|
+
</div>
|
|
264
|
+
)}
|
|
265
|
+
{step.error && (
|
|
266
|
+
<div className="text-destructive mt-1 pl-7 text-xs" title={step.error}>
|
|
267
|
+
{step.error}
|
|
268
|
+
</div>
|
|
269
|
+
)}
|
|
270
|
+
{step.result && (
|
|
271
|
+
<pre className="text-muted-foreground mt-1 max-h-32 overflow-auto rounded bg-muted/50 p-2 pl-2 text-[11px] leading-snug">
|
|
272
|
+
{JSON.stringify(step.result, null, 2)}
|
|
273
|
+
</pre>
|
|
274
|
+
)}
|
|
275
|
+
</li>
|
|
276
|
+
);
|
|
277
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { WorkflowExecutionSheet } from "@alepha/ui/components/admin/admin-workflows-execution-sheet";
|
|
2
|
+
import { WorkflowStatusBadge } from "@alepha/ui/components/admin/admin-workflows-status-badge";
|
|
3
|
+
import { AlephaTable } from "@alepha/ui/components/alepha-table/alepha-table";
|
|
4
|
+
import { Control } from "@alepha/ui/components/control/control";
|
|
5
|
+
import { type Infer, z } from "alepha";
|
|
6
|
+
import type {
|
|
7
|
+
AdminWorkflowController,
|
|
8
|
+
WorkflowExecutionResource,
|
|
9
|
+
} from "alepha/api/workflows";
|
|
10
|
+
import { useClient } from "alepha/react";
|
|
11
|
+
import { useI18n } from "alepha/react/i18n";
|
|
12
|
+
import { CircleDot } from "lucide-react";
|
|
13
|
+
import { useCallback, useState } from "react";
|
|
14
|
+
|
|
15
|
+
const EXEC_POLL_MS = 10_000;
|
|
16
|
+
|
|
17
|
+
const execFiltersSchema = z.object({
|
|
18
|
+
status: z.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
type ExecFilters = Infer<typeof execFiltersSchema>;
|
|
21
|
+
|
|
22
|
+
export interface WorkflowExecutionsPanelProps {
|
|
23
|
+
workflowName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Server-paginated executions table for a single workflow. Row click opens
|
|
28
|
+
* the execution detail sheet (step timeline + admin actions).
|
|
29
|
+
*/
|
|
30
|
+
export const WorkflowExecutionsPanel = (
|
|
31
|
+
props: WorkflowExecutionsPanelProps,
|
|
32
|
+
) => {
|
|
33
|
+
const client = useClient<AdminWorkflowController>();
|
|
34
|
+
const { l, tr } = useI18n();
|
|
35
|
+
const [openExecution, setOpenExecution] = useState<string | null>(null);
|
|
36
|
+
|
|
37
|
+
const fetcher = useCallback(
|
|
38
|
+
async (params: {
|
|
39
|
+
page: number;
|
|
40
|
+
size: number;
|
|
41
|
+
sort?: string;
|
|
42
|
+
filters?: ExecFilters;
|
|
43
|
+
}) => {
|
|
44
|
+
return client.findWorkflowExecutions({
|
|
45
|
+
query: {
|
|
46
|
+
page: params.page,
|
|
47
|
+
size: params.size,
|
|
48
|
+
sort: params.sort,
|
|
49
|
+
workflow: props.workflowName,
|
|
50
|
+
status: params.filters?.status as
|
|
51
|
+
| WorkflowExecutionResource["status"]
|
|
52
|
+
| undefined,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
[client, props.workflowName],
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<>
|
|
61
|
+
<AlephaTable<WorkflowExecutionResource>
|
|
62
|
+
className="min-h-0 flex-1"
|
|
63
|
+
persistenceKey={`admin.workflows.executions.${props.workflowName}`}
|
|
64
|
+
pollMs={EXEC_POLL_MS}
|
|
65
|
+
rowKey={(e) => e.id}
|
|
66
|
+
fetch={fetcher}
|
|
67
|
+
onRowClick={(e) => setOpenExecution(e.id)}
|
|
68
|
+
filters={{
|
|
69
|
+
schema: execFiltersSchema,
|
|
70
|
+
render: (form) => (
|
|
71
|
+
<Control
|
|
72
|
+
input={form.input.status}
|
|
73
|
+
label=""
|
|
74
|
+
clearable
|
|
75
|
+
icon={CircleDot}
|
|
76
|
+
clearLabel={String(
|
|
77
|
+
tr("admin.workflows.statusAll", { default: "All statuses" }),
|
|
78
|
+
)}
|
|
79
|
+
triggerClassName="w-48"
|
|
80
|
+
items={[
|
|
81
|
+
{ value: "pending", label: "pending" },
|
|
82
|
+
{ value: "running", label: "running" },
|
|
83
|
+
{ value: "completed", label: "completed" },
|
|
84
|
+
{ value: "failed", label: "failed" },
|
|
85
|
+
{ value: "timed_out", label: "timed_out" },
|
|
86
|
+
{ value: "compensating", label: "compensating" },
|
|
87
|
+
{ value: "compensated", label: "compensated" },
|
|
88
|
+
{ value: "compensation_failed", label: "compensation_failed" },
|
|
89
|
+
{ value: "cancelled", label: "cancelled" },
|
|
90
|
+
]}
|
|
91
|
+
/>
|
|
92
|
+
),
|
|
93
|
+
}}
|
|
94
|
+
columns={{
|
|
95
|
+
status: {
|
|
96
|
+
label: tr("admin.workflows.colStatus", { default: "Status" }),
|
|
97
|
+
cell: (e) => <WorkflowStatusBadge status={e.status} />,
|
|
98
|
+
},
|
|
99
|
+
currentStep: {
|
|
100
|
+
label: tr("admin.workflows.colStep", { default: "Step" }),
|
|
101
|
+
cell: (e) =>
|
|
102
|
+
e.currentStep ? (
|
|
103
|
+
<code className="text-xs">{e.currentStep}</code>
|
|
104
|
+
) : (
|
|
105
|
+
<span className="text-muted-foreground">—</span>
|
|
106
|
+
),
|
|
107
|
+
},
|
|
108
|
+
createdAt: {
|
|
109
|
+
label: tr("admin.workflows.colCreated", { default: "Created" }),
|
|
110
|
+
sortable: true,
|
|
111
|
+
cell: (e) => (
|
|
112
|
+
<span className="text-muted-foreground text-xs">
|
|
113
|
+
{String(l(e.createdAt, { date: "fromNow" }))}
|
|
114
|
+
</span>
|
|
115
|
+
),
|
|
116
|
+
},
|
|
117
|
+
duration: {
|
|
118
|
+
label: tr("admin.workflows.colDuration", { default: "Duration" }),
|
|
119
|
+
align: "right",
|
|
120
|
+
cell: (e) => {
|
|
121
|
+
if (!e.startedAt || !e.completedAt) {
|
|
122
|
+
return <span className="text-muted-foreground">—</span>;
|
|
123
|
+
}
|
|
124
|
+
const ms =
|
|
125
|
+
new Date(e.completedAt).getTime() -
|
|
126
|
+
new Date(e.startedAt).getTime();
|
|
127
|
+
return (
|
|
128
|
+
<span className="text-xs">
|
|
129
|
+
{ms < 1000 ? `${ms} ms` : `${(ms / 1000).toFixed(1)} s`}
|
|
130
|
+
</span>
|
|
131
|
+
);
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
triggeredBy: {
|
|
135
|
+
label: tr("admin.workflows.colTriggeredBy", {
|
|
136
|
+
default: "Triggered by",
|
|
137
|
+
}),
|
|
138
|
+
cell: (e) => (
|
|
139
|
+
<span className="text-muted-foreground text-xs">
|
|
140
|
+
{e.triggeredByName ?? e.triggeredBy ?? "—"}
|
|
141
|
+
</span>
|
|
142
|
+
),
|
|
143
|
+
},
|
|
144
|
+
error: {
|
|
145
|
+
label: tr("admin.workflows.colError", { default: "Error" }),
|
|
146
|
+
cell: (e) =>
|
|
147
|
+
e.error ? (
|
|
148
|
+
<span
|
|
149
|
+
className="text-destructive line-clamp-2 text-xs"
|
|
150
|
+
title={e.error}
|
|
151
|
+
>
|
|
152
|
+
{e.error}
|
|
153
|
+
</span>
|
|
154
|
+
) : (
|
|
155
|
+
<span className="text-muted-foreground">—</span>
|
|
156
|
+
),
|
|
157
|
+
},
|
|
158
|
+
}}
|
|
159
|
+
emptyMessage={String(
|
|
160
|
+
tr("admin.workflows.noExecs", { default: "No executions yet." }),
|
|
161
|
+
)}
|
|
162
|
+
/>
|
|
163
|
+
|
|
164
|
+
<WorkflowExecutionSheet
|
|
165
|
+
executionId={openExecution}
|
|
166
|
+
onClose={() => setOpenExecution(null)}
|
|
167
|
+
/>
|
|
168
|
+
</>
|
|
169
|
+
);
|
|
170
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Badge } from "@alepha/ui/components/ui/badge";
|
|
2
|
+
import { useI18n } from "alepha/react/i18n";
|
|
3
|
+
|
|
4
|
+
export interface WorkflowStatusBadgeProps {
|
|
5
|
+
/**
|
|
6
|
+
* Accepts both execution statuses and step statuses — the two sets
|
|
7
|
+
* overlap on everything but `timed_out` / `skipped`.
|
|
8
|
+
*/
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const VARIANTS: Record<
|
|
13
|
+
string,
|
|
14
|
+
"default" | "secondary" | "outline" | "destructive"
|
|
15
|
+
> = {
|
|
16
|
+
pending: "secondary",
|
|
17
|
+
running: "default",
|
|
18
|
+
completed: "outline",
|
|
19
|
+
skipped: "outline",
|
|
20
|
+
failed: "destructive",
|
|
21
|
+
timed_out: "destructive",
|
|
22
|
+
compensating: "secondary",
|
|
23
|
+
compensated: "outline",
|
|
24
|
+
compensation_failed: "destructive",
|
|
25
|
+
cancelled: "outline",
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Coloured badge for a workflow execution or step status.
|
|
30
|
+
*/
|
|
31
|
+
export const WorkflowStatusBadge = (props: WorkflowStatusBadgeProps) => {
|
|
32
|
+
const { tr } = useI18n();
|
|
33
|
+
return (
|
|
34
|
+
<Badge variant={VARIANTS[props.status] ?? "outline"}>
|
|
35
|
+
{tr(`admin.workflows.status.${props.status}` as any, {
|
|
36
|
+
default: props.status,
|
|
37
|
+
})}
|
|
38
|
+
</Badge>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
void React;
|
|
4
|
+
|
|
5
|
+
import { AdminPage } from "@alepha/ui/components/admin/admin-page";
|
|
6
|
+
import { WorkflowExecutionsPanel } from "@alepha/ui/components/admin/admin-workflows-executions-panel";
|
|
7
|
+
import { AlephaTable } from "@alepha/ui/components/alepha-table/alepha-table";
|
|
8
|
+
import { Control } from "@alepha/ui/components/control/control";
|
|
9
|
+
import { Badge } from "@alepha/ui/components/ui/badge";
|
|
10
|
+
import {
|
|
11
|
+
Sheet,
|
|
12
|
+
SheetContent,
|
|
13
|
+
SheetDescription,
|
|
14
|
+
SheetHeader,
|
|
15
|
+
SheetTitle,
|
|
16
|
+
} from "@alepha/ui/components/ui/sheet";
|
|
17
|
+
import { type Infer, type Page, z } from "alepha";
|
|
18
|
+
import type {
|
|
19
|
+
AdminWorkflowController,
|
|
20
|
+
WorkflowRegistration,
|
|
21
|
+
} from "alepha/api/workflows";
|
|
22
|
+
import { useClient } from "alepha/react";
|
|
23
|
+
import { useI18n } from "alepha/react/i18n";
|
|
24
|
+
import { ListOrdered, Search } from "lucide-react";
|
|
25
|
+
import { useCallback, useState } from "react";
|
|
26
|
+
|
|
27
|
+
const POLL_MS = 30_000;
|
|
28
|
+
|
|
29
|
+
const workflowFiltersSchema = z.object({
|
|
30
|
+
search: z.string().optional(),
|
|
31
|
+
});
|
|
32
|
+
type WorkflowFilters = Infer<typeof workflowFiltersSchema>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Wrap an in-memory array as a `Page<T>` so it can feed `AlephaTable`'s
|
|
36
|
+
* fetcher without server-side pagination — appropriate for the bounded
|
|
37
|
+
* workflow registry.
|
|
38
|
+
*/
|
|
39
|
+
function asPage<T>(items: T[]): Page<T> {
|
|
40
|
+
return {
|
|
41
|
+
content: items,
|
|
42
|
+
page: {
|
|
43
|
+
number: 0,
|
|
44
|
+
size: items.length,
|
|
45
|
+
offset: 0,
|
|
46
|
+
numberOfElements: items.length,
|
|
47
|
+
totalElements: items.length,
|
|
48
|
+
totalPages: 1,
|
|
49
|
+
isEmpty: items.length === 0,
|
|
50
|
+
isFirst: true,
|
|
51
|
+
isLast: true,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function applyWorkflowFilters(
|
|
57
|
+
workflows: WorkflowRegistration[],
|
|
58
|
+
filters?: WorkflowFilters,
|
|
59
|
+
): WorkflowRegistration[] {
|
|
60
|
+
const q = filters?.search?.trim().toLowerCase();
|
|
61
|
+
if (!q) return workflows;
|
|
62
|
+
return workflows.filter(
|
|
63
|
+
(w) =>
|
|
64
|
+
w.name.toLowerCase().includes(q) ||
|
|
65
|
+
(w.tags?.some((t) => t.toLowerCase().includes(q)) ?? false),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AdminWorkflows() {
|
|
70
|
+
const client = useClient<AdminWorkflowController>();
|
|
71
|
+
const { tr } = useI18n();
|
|
72
|
+
const [openWorkflow, setOpenWorkflow] = useState<WorkflowRegistration | null>(
|
|
73
|
+
null,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
const fetcher = useCallback(
|
|
77
|
+
async (params: { filters?: WorkflowFilters }) => {
|
|
78
|
+
const workflows = await client.getWorkflowRegistry();
|
|
79
|
+
return asPage(applyWorkflowFilters(workflows, params.filters));
|
|
80
|
+
},
|
|
81
|
+
[client],
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<AdminPage>
|
|
86
|
+
<AlephaTable<WorkflowRegistration>
|
|
87
|
+
className="min-h-0 flex-1"
|
|
88
|
+
persistenceKey="admin.workflows"
|
|
89
|
+
pollMs={POLL_MS}
|
|
90
|
+
rowKey={(w) => w.name}
|
|
91
|
+
fetch={fetcher}
|
|
92
|
+
onRowClick={(w) => setOpenWorkflow(w)}
|
|
93
|
+
filters={{
|
|
94
|
+
schema: workflowFiltersSchema,
|
|
95
|
+
render: (form) => (
|
|
96
|
+
<div className="w-72">
|
|
97
|
+
<Control
|
|
98
|
+
input={form.input.search}
|
|
99
|
+
label=""
|
|
100
|
+
icon={Search}
|
|
101
|
+
placeholder={String(
|
|
102
|
+
tr("admin.workflows.searchPlaceholder", {
|
|
103
|
+
default: "Search…",
|
|
104
|
+
}),
|
|
105
|
+
)}
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
),
|
|
109
|
+
}}
|
|
110
|
+
columns={{
|
|
111
|
+
name: {
|
|
112
|
+
label: tr("admin.workflows.colName", { default: "Name" }),
|
|
113
|
+
sortable: true,
|
|
114
|
+
cell: (w) => (
|
|
115
|
+
<div className="flex min-w-0 flex-col">
|
|
116
|
+
<span className="truncate font-medium">{w.name}</span>
|
|
117
|
+
<span className="text-muted-foreground truncate text-xs">
|
|
118
|
+
{w.steps.map((s) => s.name).join(" → ")}
|
|
119
|
+
</span>
|
|
120
|
+
</div>
|
|
121
|
+
),
|
|
122
|
+
},
|
|
123
|
+
steps: {
|
|
124
|
+
label: tr("admin.workflows.colSteps", { default: "Steps" }),
|
|
125
|
+
align: "right",
|
|
126
|
+
cell: (w) => w.stepCount,
|
|
127
|
+
},
|
|
128
|
+
onError: {
|
|
129
|
+
label: tr("admin.workflows.colOnError", { default: "On error" }),
|
|
130
|
+
cell: (w) => (
|
|
131
|
+
<Badge
|
|
132
|
+
variant={w.onError === "compensate" ? "secondary" : "outline"}
|
|
133
|
+
>
|
|
134
|
+
{w.onError}
|
|
135
|
+
</Badge>
|
|
136
|
+
),
|
|
137
|
+
},
|
|
138
|
+
priority: {
|
|
139
|
+
label: tr("admin.workflows.colPriority", { default: "Priority" }),
|
|
140
|
+
cell: (w) => <Badge variant="outline">{w.priority}</Badge>,
|
|
141
|
+
},
|
|
142
|
+
running: {
|
|
143
|
+
label: tr("admin.workflows.colRunning", { default: "Running" }),
|
|
144
|
+
align: "right",
|
|
145
|
+
cell: (w) => w.running,
|
|
146
|
+
},
|
|
147
|
+
pending: {
|
|
148
|
+
label: tr("admin.workflows.colPending", { default: "Pending" }),
|
|
149
|
+
align: "right",
|
|
150
|
+
cell: (w) => w.pending,
|
|
151
|
+
},
|
|
152
|
+
failed: {
|
|
153
|
+
label: tr("admin.workflows.colFailed", { default: "Failed" }),
|
|
154
|
+
align: "right",
|
|
155
|
+
cell: (w) => (
|
|
156
|
+
<span className={w.failed > 0 ? "text-destructive" : undefined}>
|
|
157
|
+
{w.failed}
|
|
158
|
+
</span>
|
|
159
|
+
),
|
|
160
|
+
},
|
|
161
|
+
}}
|
|
162
|
+
rowActions={(w) => [
|
|
163
|
+
{
|
|
164
|
+
label: tr("admin.workflows.viewExecutions", {
|
|
165
|
+
default: "View executions",
|
|
166
|
+
}),
|
|
167
|
+
icon: ListOrdered,
|
|
168
|
+
onClick: () => setOpenWorkflow(w),
|
|
169
|
+
},
|
|
170
|
+
]}
|
|
171
|
+
emptyMessage={String(
|
|
172
|
+
tr("admin.workflows.none", { default: "No workflows registered." }),
|
|
173
|
+
)}
|
|
174
|
+
/>
|
|
175
|
+
|
|
176
|
+
<Sheet
|
|
177
|
+
open={openWorkflow !== null}
|
|
178
|
+
onOpenChange={(open) => {
|
|
179
|
+
if (!open) setOpenWorkflow(null);
|
|
180
|
+
}}
|
|
181
|
+
>
|
|
182
|
+
<SheetContent
|
|
183
|
+
side="right"
|
|
184
|
+
className="flex w-full flex-col gap-0 data-[side=right]:sm:max-w-[60vw]"
|
|
185
|
+
>
|
|
186
|
+
{openWorkflow && (
|
|
187
|
+
<>
|
|
188
|
+
<SheetHeader>
|
|
189
|
+
<SheetTitle>{openWorkflow.name}</SheetTitle>
|
|
190
|
+
<SheetDescription>
|
|
191
|
+
{tr("admin.workflows.execsDescription", {
|
|
192
|
+
default: "Executions for this workflow.",
|
|
193
|
+
})}
|
|
194
|
+
</SheetDescription>
|
|
195
|
+
</SheetHeader>
|
|
196
|
+
<div className="flex min-h-0 flex-1 flex-col p-4">
|
|
197
|
+
<WorkflowExecutionsPanel workflowName={openWorkflow.name} />
|
|
198
|
+
</div>
|
|
199
|
+
</>
|
|
200
|
+
)}
|
|
201
|
+
</SheetContent>
|
|
202
|
+
</Sheet>
|
|
203
|
+
</AdminPage>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export default AdminWorkflows;
|