@astryxdesign/cli 0.7.17-canary.g4ea41ce → 0.7.17-canary.g5a3fd39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/api/build/_adapter.d.mts +7 -6
- package/api/build/_adapter.mjs +18 -11
- package/api/build/build.type.mjs +1 -1
- package/api/build/kit/kind.d.mts +6 -0
- package/api/build/kit/kind.mjs +1 -1
- package/api/build/kit/rank.d.mts +7 -1
- package/api/build/kit/rank.mjs +15 -5
- package/api/build/kit/signals.mjs +58 -57
- package/api/build/kit/start.d.mts +2 -1
- package/api/build/kit/start.mjs +62 -9
- package/api/build/kit/words.d.mts +6 -2
- package/api/build/kit/words.mjs +7 -3
- package/api/component/__fixtures__/resolutions/modules.txt +2 -2
- package/api/component/_adapter.d.mts +30 -24
- package/api/component/_adapter.mjs +72 -31
- package/api/component/component.mjs +4 -4
- package/api/component/detail/detail.d.mts +2 -2
- package/api/component/detail/detail.mjs +1 -1
- package/api/component/list/list.d.mts +2 -2
- package/api/component/list/list.mjs +4 -4
- package/api/discover/_adapter.mjs +15 -15
- package/api/docs/_adapter.d.mts +13 -5
- package/api/docs/_adapter.mjs +37 -10
- package/api/doctor/_adapter.d.mts +32 -0
- package/api/doctor/_adapter.mjs +56 -1
- package/api/doctor/doctor.mjs +28 -5
- package/api/doctor/theme-checks.mjs +165 -83
- package/api/error.d.mts +4 -3
- package/api/error.mjs +3 -2
- package/api/hook/_adapter.d.mts +5 -4
- package/api/hook/_adapter.mjs +6 -5
- package/api/icon/_options.d.mts +17 -0
- package/api/icon/_options.mjs +54 -0
- package/api/icon/exportIconIndex.doc.d.mts +10 -0
- package/api/icon/exportIconIndex.doc.mjs +59 -0
- package/api/icon/icon.mjs +11 -34
- package/api/icon/icon.type.d.mts +49 -0
- package/api/icon/icon.type.mjs +24 -0
- package/api/icon/rankIconIndex.doc.d.mts +10 -0
- package/api/icon/rankIconIndex.doc.mjs +79 -0
- package/api/icon/search/icon-index.d.mts +41 -0
- package/api/icon/search/icon-index.mjs +139 -0
- package/api/icon/search/search.d.mts +18 -0
- package/api/icon/search/search.mjs +13 -0
- package/api/index.d.mts +1 -0
- package/api/index.mjs +1 -0
- package/api/search/_adapter.d.mts +8 -5
- package/api/search/_adapter.mjs +14 -10
- package/api/search/_gather-components.d.mts +4 -4
- package/api/search/_gather-components.mjs +4 -3
- package/api/search/_gather-hooks.d.mts +2 -2
- package/api/search/_gather-hooks.mjs +1 -1
- package/api/search/_lexical.mjs +12 -2
- package/api/search/_priority.d.mts +10 -2
- package/api/search/_priority.mjs +37 -7
- package/api/search/_score.d.mts +12 -3
- package/api/search/_score.mjs +6 -3
- package/api/search/_words.mjs +12 -3
- package/api/search/search.d.mts +7 -1
- package/api/search/search.mjs +37 -4
- package/api/swizzle/_adapter.d.mts +7 -5
- package/api/swizzle/_adapter.mjs +7 -3
- package/api/swizzle/copy/copy.mjs +5 -4
- package/api/theme/build/build.d.mts +5 -0
- package/api/theme/build/build.mjs +400 -21
- package/api/theme/build/family.mjs +18 -7
- package/api/theme/build/font-warning.mjs +5 -4
- package/api/theme/build/input-fields.d.mts +21 -6
- package/api/theme/build/input-fields.mjs +104 -13
- package/api/theme/build/typography-values.d.mts +22 -0
- package/api/theme/build/typography-values.mjs +172 -22
- package/api/theme/build/written-values.d.mts +7 -0
- package/api/theme/build/written-values.mjs +57 -8
- package/api/theme/generateTonalPalette.doc.mjs +1 -1
- package/api/theme/palette/generate/generator.d.mts +14 -2
- package/api/theme/palette/generate/generator.mjs +94 -8
- package/api/theme/theme.type.d.mts +21 -4
- package/api/theme/theme.type.mjs +14 -5
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeTemplate.doc.mjs +18 -3
- package/api/theme-edit/_adapter.d.mts +1 -1
- package/api/theme-edit/_adapter.mjs +1 -1
- package/api/theme-edit/_catalog.d.mts +10 -4
- package/api/theme-edit/_catalog.mjs +81 -22
- package/api/theme-edit/_check.mjs +402 -88
- package/api/theme-edit/_color.d.mts +11 -2
- package/api/theme-edit/_color.mjs +23 -7
- package/api/theme-edit/_compiler.mjs +11 -3
- package/api/theme-edit/_context.d.mts +87 -6
- package/api/theme-edit/_context.mjs +224 -17
- package/api/theme-edit/_css.mjs +4 -0
- package/api/theme-edit/_edit.mjs +331 -58
- package/api/theme-edit/_how-question.d.mts +11 -0
- package/api/theme-edit/_how-question.mjs +2514 -234
- package/api/theme-edit/_how.mjs +79 -14
- package/api/theme-edit/_missed.mjs +294 -32
- package/api/theme-edit/_normal.d.mts +3 -1
- package/api/theme-edit/_normal.mjs +4 -1
- package/api/theme-edit/_palette.mjs +36 -5
- package/api/theme-edit/_part-words.mjs +20 -2
- package/api/theme-edit/_parts.d.mts +12 -1
- package/api/theme-edit/_parts.mjs +116 -11
- package/api/theme-edit/_preview-app.mjs +40 -2
- package/api/theme-edit/_preview.d.mts +45 -5
- package/api/theme-edit/_preview.mjs +173 -21
- package/api/theme-edit/_settings.d.mts +20 -0
- package/api/theme-edit/_settings.mjs +1033 -94
- package/api/theme-edit/_tables.mjs +2 -2
- package/api/theme-edit/theme-edit.type.d.mts +6 -5
- package/api/theme-edit/theme-edit.type.mjs +8 -8
- package/api/upgrade/_adapter.mjs +13 -2
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/tree/authoring.doc.mjs +1 -0
- package/assets/docs/tree/cli.doc.mjs +1 -0
- package/assets/docs/tree/computer-agent-guide.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +2 -2
- package/assets/docs/tree/global.doc.mjs +1 -0
- package/assets/docs/tree/single-component.doc.mjs +40 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/who-answers.doc.mjs +2 -2
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.tsx +1 -1
- package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +4 -4
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx +1 -0
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx +2 -2
- package/assets/templates/blocks/components/Card/CardElevations.tsx +1 -1
- package/assets/templates/blocks/components/Card/CardWithInnerLayout.tsx +19 -3
- package/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx +11 -1
- package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardMulti.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterHorizontal.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterInsideACard.tsx +1 -1
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx +8 -0
- package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx +8 -2
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsx +1 -0
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx +1 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleCustomContent.tsx +9 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsx +12 -2
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx +28 -7
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx +35 -7
- package/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.tsx +1 -1
- package/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsx +20 -4
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsx +15 -3
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsx +29 -6
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx +2 -2
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx +2 -2
- package/assets/templates/blocks/components/Divider/DividerFullBleed.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerVariants.tsx +1 -1
- package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.tsx +23 -4
- package/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsx +18 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsx +20 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsx +16 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx +11 -1
- package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +12 -2
- package/assets/templates/blocks/components/InternationalizationProvider/useDirectionHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsx +1 -1
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsx +17 -3
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsx +17 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsx +15 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsx +9 -2
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsx +1 -1
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsx +1 -1
- package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Outline/OutlineDensity.tsx +2 -0
- package/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +6 -1
- package/assets/templates/blocks/components/Pagination/PaginationVariants.tsx +4 -0
- package/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx +17 -2
- package/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +8 -1
- package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +2 -2
- package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +2 -0
- package/assets/templates/blocks/components/Switch/SwitchWithStatus.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx +12 -1
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx +11 -1
- package/assets/templates/blocks/components/Table/TableInCard.tsx +2 -2
- package/assets/templates/blocks/components/Text/TextTruncation.tsx +1 -1
- package/assets/templates/blocks/components/Text/TextWordBreak.tsx +12 -2
- package/assets/templates/blocks/components/Text/TextWrap.tsx +19 -4
- package/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaStates.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaValidation.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsx +1 -1
- package/assets/templates/blocks/components/TextInput/TextInputStatusVariant.tsx +2 -2
- package/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx +15 -1
- package/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx +15 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +8 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +12 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +18 -3
- package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx +6 -0
- package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx +7 -1
- package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsx +2 -2
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +9 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/page.tsx +102 -6
- package/assets/templates/pages/canvas-editor/page.tsx +73 -2
- package/assets/templates/pages/centered-hero/page.tsx +10 -4
- package/assets/templates/pages/course-detail/page.tsx +46 -2
- package/assets/templates/pages/dashboard/page.tsx +45 -16
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +31 -20
- package/assets/templates/pages/dashboard-comparison/page.tsx +9 -0
- package/assets/templates/pages/dashboard-composition/page.tsx +22 -9
- package/assets/templates/pages/dashboard-progress/page.tsx +27 -15
- package/assets/templates/pages/dashboard-scorecard/page.tsx +9 -0
- package/assets/templates/pages/detail-page/page.tsx +105 -77
- package/assets/templates/pages/documentation/page.tsx +15 -2
- package/assets/templates/pages/documentation-design/page.tsx +7 -34
- package/assets/templates/pages/documentation-technical/page.tsx +76 -12
- package/assets/templates/pages/editor/page.tsx +26 -21
- package/assets/templates/pages/file-explorer/page.tsx +35 -1
- package/assets/templates/pages/form-two-column/page.tsx +2 -3
- package/assets/templates/pages/form-wizard/page.tsx +31 -3
- package/assets/templates/pages/form-wizard-vertical/page.tsx +32 -3
- package/assets/templates/pages/gallery-hero/page.tsx +2 -1
- package/assets/templates/pages/ide/page.tsx +15 -1
- package/assets/templates/pages/incident-console/page.tsx +2 -1
- package/assets/templates/pages/incident-console/template.doc.mjs +1 -1
- package/assets/templates/pages/kanban-board/page.tsx +39 -2
- package/assets/templates/pages/payment-form/page.tsx +77 -39
- package/assets/templates/pages/product-gallery/page.tsx +16 -14
- package/assets/templates/pages/settings/page.tsx +35 -3
- package/assets/templates/pages/settings-dialog/page.tsx +34 -5
- package/assets/templates/pages/settings-sidebar/page.tsx +23 -3
- package/assets/templates/pages/shell-nav/page.tsx +28 -12
- package/assets/templates/pages/shell-side-nav/page.tsx +16 -1
- package/assets/templates/pages/shell-top-nav/page.tsx +27 -1
- package/assets/templates/pages/side-gallery/page.tsx +1 -1
- package/assets/templates/pages/table/page.tsx +2 -1
- package/assets/templates/pages/table/template.doc.mjs +1 -1
- package/assets/templates/pages/table-collapsible/page.tsx +1 -1
- package/assets/templates/pages/table-comparison/page.tsx +1 -1
- package/assets/templates/pages/table-filter/page.tsx +9 -2
- package/assets/templates/pages/table-grouped/page.tsx +16 -6
- package/assets/templates/pages/table-inbox/page.tsx +60 -1
- package/assets/templates/pages/table-page/page.tsx +10 -2
- package/assets/templates/pages/table-tree/page.tsx +95 -13
- package/assets/templates/pages/theme-showcase/page.tsx +107 -11
- package/assets/templates/pages/work-item-detail/page.tsx +88 -74
- package/assets/templates/pages/work-item-detail/template.doc.mjs +0 -1
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/gothic/gothicTheme.ts +5 -0
- package/assets/templates/themes/neutral/neutralTheme.ts +1 -1
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/y2k/y2kTheme.ts +1 -1
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/doctypes/_schema.d.mts +22 -8
- package/authoring/doctypes/_schema.mjs +31 -0
- package/authoring/doctypes/command/command.doc.mjs +24 -0
- package/authoring/doctypes/command/type.ts +31 -0
- package/authoring/doctypes/component/component.doc.mjs +1 -1
- package/authoring/doctypes/component/type.ts +8 -5
- package/authoring/doctypes/namespace/namespace.doc.mjs +6 -0
- package/authoring/doctypes/namespace/type.ts +4 -0
- package/authoring/doctypes/template/type.ts +0 -7
- package/authoring/index.d.ts +6 -1
- package/authoring/integration/integration.doc.mjs +7 -0
- package/authoring/integration/schema.d.mts +6 -0
- package/authoring/integration/schema.mjs +3 -0
- package/authoring/integration/type.ts +34 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -0
- package/clients/cli/commands/component.mjs +5 -1
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/experimental/index.mjs +4 -1
- package/clients/cli/commands/experimental/theme.mjs +139 -64
- package/clients/cli/commands/experimental-render.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-add.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +3 -1
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-template.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-use.doc.mjs +2 -0
- package/clients/cli/commands/gap-report.doc.mjs +1 -0
- package/clients/cli/commands/hook.doc.mjs +1 -1
- package/clients/cli/commands/init.doc.mjs +1 -1
- package/clients/cli/commands/integration-add.doc.mjs +1 -0
- package/clients/cli/commands/manifest.mjs +10 -3
- package/clients/cli/commands/swizzle.doc.mjs +8 -1
- package/clients/cli/commands/swizzle.mjs +13 -6
- package/clients/cli/commands/template.doc.mjs +3 -0
- package/clients/cli/commands/theme-add.doc.mjs +2 -1
- package/clients/cli/commands/theme-build.doc.mjs +2 -1
- package/clients/cli/commands/theme-eject.doc.mjs +1 -1
- package/clients/cli/commands/theme-palette-generate.doc.mjs +3 -2
- package/clients/cli/commands/theme-remove.doc.mjs +2 -1
- package/clients/cli/commands/theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/theme-template.doc.mjs +1 -0
- package/clients/cli/commands/theme-use.doc.mjs +2 -1
- package/clients/cli/commands/theme.doc.mjs +7 -2
- package/clients/cli/commands/theme.mjs +21 -5
- package/clients/cli/index.mjs +167 -59
- package/clients/cli/lib/base-gate.mjs +522 -0
- package/clients/cli/lib/command-path.mjs +26 -0
- package/clients/cli/lib/define-command.mjs +161 -12
- package/clients/cli/lib/json-shim.mjs +34 -31
- package/clients/cli/lib/manifest.d.ts +14 -0
- package/clients/cli/lib/manifest.mjs +78 -22
- package/clients/cli/lib/root-args.mjs +79 -0
- package/clients/cli/lib/stray-option.mjs +21 -8
- package/clients/cli/lib/unknown-command.mjs +27 -6
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +13 -1
- package/foundation/agent-docs/computer-agent-text.mjs +1 -1
- package/foundation/bases/core-docs.d.mts +10 -0
- package/foundation/bases/core-docs.mjs +42 -0
- package/foundation/bases/core.d.mts +11 -0
- package/foundation/bases/core.mjs +32 -0
- package/foundation/bases/requirements.d.mts +128 -0
- package/foundation/bases/requirements.mjs +193 -0
- package/foundation/bases/resolve.d.mts +134 -0
- package/foundation/bases/resolve.mjs +295 -0
- package/foundation/bases/state.d.mts +24 -0
- package/foundation/bases/state.mjs +46 -0
- package/foundation/bases/steps.d.mts +49 -0
- package/foundation/bases/steps.mjs +88 -0
- package/foundation/config/project.d.mts +14 -0
- package/foundation/config/project.mjs +68 -1
- package/foundation/discovery/cli-self-docs.mjs +9 -1
- package/foundation/discovery/command-pointers.d.mts +28 -0
- package/foundation/discovery/command-pointers.mjs +31 -0
- package/foundation/discovery/component-discovery.d.mts +9 -8
- package/foundation/discovery/component-discovery.mjs +9 -4
- package/foundation/discovery/docs-discovery.d.mts +13 -5
- package/foundation/discovery/docs-discovery.mjs +25 -6
- package/foundation/discovery/hook-discovery.d.mts +6 -6
- package/foundation/discovery/hook-discovery.mjs +6 -4
- package/foundation/discovery/template-adapter.mjs +5 -0
- package/foundation/discovery/template-ids.d.mts +1 -1
- package/foundation/discovery/template-ids.mjs +5 -1
- package/foundation/discovery/theme-discovery.mjs +3 -0
- package/foundation/discovery/theme-imports.mjs +19 -1
- package/foundation/doc-compiler/tree.d.mts +4 -2
- package/foundation/doc-compiler/tree.mjs +46 -1
- package/foundation/env/package-manager.d.mts +7 -0
- package/foundation/env/package-manager.mjs +21 -0
- package/foundation/fonts/font-stylesheet.d.mts +8 -0
- package/foundation/fonts/font-stylesheet.mjs +26 -2
- package/foundation/fs/gather-cache.mjs +44 -13
- package/foundation/fs/own-modules.d.mts +29 -0
- package/foundation/fs/own-modules.mjs +57 -0
- package/foundation/fs/paths.d.mts +30 -2
- package/foundation/fs/paths.mjs +49 -2
- package/foundation/integrations/integrations.d.mts +4 -0
- package/foundation/integrations/integrations.mjs +6 -1
- package/foundation/release/choose.d.mts +7 -0
- package/foundation/release/choose.mjs +16 -2
- package/foundation/release/notices.d.mts +26 -0
- package/foundation/release/notices.mjs +48 -19
- package/foundation/release/project.d.mts +3 -2
- package/foundation/release/project.mjs +4 -5
- package/foundation/release/run-context.d.mts +7 -2
- package/foundation/release/run-context.mjs +6 -2
- package/foundation/render/css-cut.mjs +86 -6
- package/foundation/render/cut-short.d.mts +35 -0
- package/foundation/render/cut-short.mjs +124 -0
- package/foundation/render/font-probe.d.mts +27 -0
- package/foundation/render/font-probe.mjs +77 -0
- package/foundation/render/layers.d.mts +1 -9
- package/foundation/render/layers.mjs +2 -111
- package/foundation/render/page-worker.mjs +83 -6
- package/foundation/render/picture-chrome.mjs +24 -2
- package/foundation/render/picture-playwright.mjs +22 -2
- package/foundation/render/picture-window.d.mts +20 -4
- package/foundation/render/picture-window.mjs +137 -4
- package/foundation/response/base.d.ts +25 -0
- package/foundation/response/error-codes.d.mts +4 -1
- package/foundation/response/error-codes.d.ts +4 -1
- package/foundation/response/error-codes.doc.mjs +17 -0
- package/foundation/response/error-codes.mjs +21 -0
- package/foundation/response/json.d.mts +3 -1
- package/foundation/response/json.mjs +7 -2
- package/foundation/response/response-types.doc.mjs +2 -2
- package/foundation/suggest/name-index.d.mts +2 -1
- package/foundation/suggest/name-index.mjs +1 -1
- package/foundation/suggest/other-command.d.mts +4 -1
- package/foundation/suggest/other-command.mjs +23 -6
- package/foundation/text/string-utils.d.mts +7 -2
- package/foundation/text/string-utils.mjs +24 -10
- package/package.json +6 -6
- package/assets/templates/pages/access-denied/page.tsx +0 -101
- package/assets/templates/pages/access-denied/template.doc.mjs +0 -24
- package/assets/templates/pages/error-page/page.tsx +0 -130
- package/assets/templates/pages/error-page/template.doc.mjs +0 -22
- package/assets/templates/pages/not-found/page.tsx +0 -124
- package/assets/templates/pages/not-found/template.doc.mjs +0 -30
- package/assets/templates/pages/review-workspace/page.tsx +0 -551
- package/assets/templates/pages/review-workspace/template.doc.mjs +0 -31
- package/assets/templates/pages/run-console/page.tsx +0 -945
- package/assets/templates/pages/run-console/template.doc.mjs +0 -27
- package/assets/templates/pages/welcome-portal/page.tsx +0 -538
- package/assets/templates/pages/welcome-portal/template.doc.mjs +0 -38
|
@@ -1,945 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Run Console: launch a run of a pipeline, a job or a test suite, watch its
|
|
7
|
-
* progress, read its logs, and read its results.
|
|
8
|
-
*
|
|
9
|
-
* List view: header | status tabs | run table
|
|
10
|
-
* Run view: header with actions | summary and progress | steps |
|
|
11
|
-
* Logs and Results tabs
|
|
12
|
-
*
|
|
13
|
-
* Choosing a run opens its run view in place of the table; Back returns to
|
|
14
|
-
* the table. On a narrow screen the table keeps the columns a reader scans
|
|
15
|
-
* first, and the run view stacks.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import {useState} from 'react';
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
HStack,
|
|
22
|
-
Layout,
|
|
23
|
-
LayoutContent,
|
|
24
|
-
LayoutFooter,
|
|
25
|
-
LayoutHeader,
|
|
26
|
-
StackItem,
|
|
27
|
-
VStack,
|
|
28
|
-
} from '@astryxdesign/core/Layout';
|
|
29
|
-
import {Heading, Text} from '@astryxdesign/core/Text';
|
|
30
|
-
import {Badge} from '@astryxdesign/core/Badge';
|
|
31
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
32
|
-
import {CodeBlock} from '@astryxdesign/core/CodeBlock';
|
|
33
|
-
import {Dialog, DialogHeader} from '@astryxdesign/core/Dialog';
|
|
34
|
-
import {Divider} from '@astryxdesign/core/Divider';
|
|
35
|
-
import {EmptyState} from '@astryxdesign/core/EmptyState';
|
|
36
|
-
import {Icon} from '@astryxdesign/core/Icon';
|
|
37
|
-
import {List, ListItem} from '@astryxdesign/core/List';
|
|
38
|
-
import {MetadataList, MetadataListItem} from '@astryxdesign/core/MetadataList';
|
|
39
|
-
import {ProgressBar} from '@astryxdesign/core/ProgressBar';
|
|
40
|
-
import {Selector} from '@astryxdesign/core/Selector';
|
|
41
|
-
import {StatusDot} from '@astryxdesign/core/StatusDot';
|
|
42
|
-
import {Table} from '@astryxdesign/core/Table';
|
|
43
|
-
import type {TableColumn} from '@astryxdesign/core/Table';
|
|
44
|
-
import {Tab, TabList} from '@astryxdesign/core/TabList';
|
|
45
|
-
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
46
|
-
import {Timestamp} from '@astryxdesign/core/Timestamp';
|
|
47
|
-
import {useToast} from '@astryxdesign/core/Toast';
|
|
48
|
-
import {Token} from '@astryxdesign/core/Token';
|
|
49
|
-
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
50
|
-
import {rtlStyles} from '@astryxdesign/core/utils';
|
|
51
|
-
import {
|
|
52
|
-
ArrowDownTrayIcon,
|
|
53
|
-
ArrowLeftIcon,
|
|
54
|
-
ArrowPathIcon,
|
|
55
|
-
PlayIcon,
|
|
56
|
-
StopIcon,
|
|
57
|
-
} from '@heroicons/react/24/outline';
|
|
58
|
-
|
|
59
|
-
type RunStatus = 'queued' | 'running' | 'passed' | 'failed' | 'cancelled';
|
|
60
|
-
type StepStatus = 'pending' | 'running' | 'passed' | 'failed' | 'skipped';
|
|
61
|
-
type TestStatus = 'passed' | 'failed' | 'skipped';
|
|
62
|
-
type Trigger = 'push' | 'schedule' | 'manual';
|
|
63
|
-
|
|
64
|
-
interface Step {
|
|
65
|
-
name: string;
|
|
66
|
-
status: StepStatus;
|
|
67
|
-
/** Seconds, or null while the step has not finished. */
|
|
68
|
-
duration: number | null;
|
|
69
|
-
log: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface TestResult {
|
|
73
|
-
name: string;
|
|
74
|
-
suite: string;
|
|
75
|
-
status: TestStatus;
|
|
76
|
-
/** Milliseconds. */
|
|
77
|
-
duration: number;
|
|
78
|
-
message?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface Run extends Record<string, unknown> {
|
|
82
|
-
id: string;
|
|
83
|
-
number: number;
|
|
84
|
-
pipeline: string;
|
|
85
|
-
branch: string;
|
|
86
|
-
commit: string;
|
|
87
|
-
trigger: Trigger;
|
|
88
|
-
status: RunStatus;
|
|
89
|
-
/** ISO time, or null while the run is queued. */
|
|
90
|
-
startedAt: string | null;
|
|
91
|
-
/** Seconds, or null while the run has not finished. */
|
|
92
|
-
duration: number | null;
|
|
93
|
-
/** Percent of steps done, for a running run. */
|
|
94
|
-
progress: number;
|
|
95
|
-
steps: Step[];
|
|
96
|
-
tests: TestResult[];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const PIPELINES = ['web-app ci', 'api integration tests', 'nightly e2e'];
|
|
100
|
-
|
|
101
|
-
const STEP_NAMES = ['Checkout', 'Install', 'Build', 'Test', 'Deploy preview'];
|
|
102
|
-
|
|
103
|
-
/** The test runner's output for a finished test step, from its results. */
|
|
104
|
-
function testLog(tests: TestResult[]): string {
|
|
105
|
-
const lines = ['$ npm test -- --ci'];
|
|
106
|
-
for (const suite of [...new Set(tests.map(t => t.suite))]) {
|
|
107
|
-
const inSuite = tests.filter(t => t.suite === suite);
|
|
108
|
-
const failed = inSuite.filter(t => t.status === 'failed');
|
|
109
|
-
lines.push(
|
|
110
|
-
`${failed.length > 0 ? 'FAIL' : 'PASS'} src/${suite}/${suite}.test.ts (${inSuite.length} ${inSuite.length === 1 ? 'test' : 'tests'})`,
|
|
111
|
-
);
|
|
112
|
-
for (const t of failed) {
|
|
113
|
-
lines.push(` x ${t.name} (${t.duration} ms)`, ` ${t.message ?? ''}`);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
const count = (status: TestStatus) =>
|
|
117
|
-
tests.filter(t => t.status === status).length;
|
|
118
|
-
const parts = [
|
|
119
|
-
count('failed') > 0 ? `${count('failed')} failed` : null,
|
|
120
|
-
`${count('passed')} passed`,
|
|
121
|
-
count('skipped') > 0 ? `${count('skipped')} skipped` : null,
|
|
122
|
-
].filter(Boolean);
|
|
123
|
-
lines.push(`Tests: ${parts.join(', ')}, ${tests.length} total`);
|
|
124
|
-
return lines.join('\n');
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/** Log text for one step, in the shape a CI runner prints it. */
|
|
128
|
-
function logFor(step: string, status: StepStatus, tests: TestResult[]): string {
|
|
129
|
-
if (status === 'pending') {
|
|
130
|
-
return 'Not started: waiting for the earlier steps';
|
|
131
|
-
}
|
|
132
|
-
if (status === 'skipped') {
|
|
133
|
-
return 'Skipped: the run ended before this step';
|
|
134
|
-
}
|
|
135
|
-
switch (step) {
|
|
136
|
-
case 'Checkout':
|
|
137
|
-
return [
|
|
138
|
-
'$ git fetch --depth 1 origin',
|
|
139
|
-
'$ git checkout --force FETCH_HEAD',
|
|
140
|
-
'HEAD is now at the requested commit',
|
|
141
|
-
].join('\n');
|
|
142
|
-
case 'Install':
|
|
143
|
-
return [
|
|
144
|
-
'$ npm ci',
|
|
145
|
-
'added 1,284 packages',
|
|
146
|
-
'found 0 vulnerabilities',
|
|
147
|
-
].join('\n');
|
|
148
|
-
case 'Build':
|
|
149
|
-
return [
|
|
150
|
-
'$ npm run build',
|
|
151
|
-
'Compiling 412 modules',
|
|
152
|
-
status === 'failed'
|
|
153
|
-
? 'error: Cannot find module "./config/regions" from src/server.ts'
|
|
154
|
-
: 'Build finished; output written to dist/',
|
|
155
|
-
].join('\n');
|
|
156
|
-
case 'Test':
|
|
157
|
-
return status === 'running'
|
|
158
|
-
? [
|
|
159
|
-
'$ npm test -- --ci',
|
|
160
|
-
'PASS src/cart/cart.test.ts',
|
|
161
|
-
'PASS src/auth/auth.test.ts',
|
|
162
|
-
'RUNS src/checkout/checkout.test.ts',
|
|
163
|
-
].join('\n')
|
|
164
|
-
: testLog(tests);
|
|
165
|
-
default:
|
|
166
|
-
return [
|
|
167
|
-
'$ npm run deploy:preview',
|
|
168
|
-
'Uploaded 64 files',
|
|
169
|
-
'Preview is live',
|
|
170
|
-
].join('\n');
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* The steps of a run whose steps before `at` passed and whose step `at`
|
|
176
|
-
* ended as `last`; the steps after it are pending or skipped.
|
|
177
|
-
*/
|
|
178
|
-
function steps(
|
|
179
|
-
at: number,
|
|
180
|
-
last: StepStatus,
|
|
181
|
-
durations: number[],
|
|
182
|
-
tests: TestResult[] = [],
|
|
183
|
-
): Step[] {
|
|
184
|
-
return STEP_NAMES.map((name, i) => {
|
|
185
|
-
const status: StepStatus =
|
|
186
|
-
i < at
|
|
187
|
-
? 'passed'
|
|
188
|
-
: i === at
|
|
189
|
-
? last
|
|
190
|
-
: last === 'running' || last === 'pending'
|
|
191
|
-
? 'pending'
|
|
192
|
-
: 'skipped';
|
|
193
|
-
const done = status === 'passed' || status === 'failed';
|
|
194
|
-
return {
|
|
195
|
-
name,
|
|
196
|
-
status,
|
|
197
|
-
duration: done ? (durations[i] ?? null) : null,
|
|
198
|
-
log: logFor(name, status, tests),
|
|
199
|
-
};
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const PASSING_TESTS: TestResult[] = [
|
|
204
|
-
{
|
|
205
|
-
name: 'adds an item to the cart',
|
|
206
|
-
suite: 'cart',
|
|
207
|
-
status: 'passed',
|
|
208
|
-
duration: 41,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
name: 'merges a guest cart on sign-in',
|
|
212
|
-
suite: 'cart',
|
|
213
|
-
status: 'passed',
|
|
214
|
-
duration: 63,
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'refreshes an expired session',
|
|
218
|
-
suite: 'auth',
|
|
219
|
-
status: 'passed',
|
|
220
|
-
duration: 118,
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: 'calculates tax for a split shipment',
|
|
224
|
-
suite: 'checkout',
|
|
225
|
-
status: 'passed',
|
|
226
|
-
duration: 207,
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
name: 'shows the order summary',
|
|
230
|
-
suite: 'checkout',
|
|
231
|
-
status: 'passed',
|
|
232
|
-
duration: 95,
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
name: 'renders the gift wrap option',
|
|
236
|
-
suite: 'checkout',
|
|
237
|
-
status: 'skipped',
|
|
238
|
-
duration: 0,
|
|
239
|
-
},
|
|
240
|
-
];
|
|
241
|
-
|
|
242
|
-
const FAILING_TESTS: TestResult[] = [
|
|
243
|
-
{
|
|
244
|
-
name: 'applies a saved discount code',
|
|
245
|
-
suite: 'checkout',
|
|
246
|
-
status: 'failed',
|
|
247
|
-
duration: 2104,
|
|
248
|
-
message: 'Expected total 84.00, received 96.00',
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: 'retries a declined card once',
|
|
252
|
-
suite: 'checkout',
|
|
253
|
-
status: 'failed',
|
|
254
|
-
duration: 1880,
|
|
255
|
-
message: 'Timed out waiting for the payment response',
|
|
256
|
-
},
|
|
257
|
-
...PASSING_TESTS,
|
|
258
|
-
];
|
|
259
|
-
|
|
260
|
-
const DURATIONS = [6, 41, 72, 188, 35];
|
|
261
|
-
|
|
262
|
-
// Deterministic fixtures: fixed ISO times, no clocks, no randomness.
|
|
263
|
-
const RUNS: Run[] = [
|
|
264
|
-
{
|
|
265
|
-
id: 'run-1048',
|
|
266
|
-
number: 1048,
|
|
267
|
-
pipeline: 'web-app ci',
|
|
268
|
-
branch: 'feature/checkout-redesign',
|
|
269
|
-
commit: '3f9c2ab',
|
|
270
|
-
trigger: 'push',
|
|
271
|
-
status: 'running',
|
|
272
|
-
startedAt: '2026-06-30T16:42:00Z',
|
|
273
|
-
duration: null,
|
|
274
|
-
progress: 60,
|
|
275
|
-
steps: steps(3, 'running', DURATIONS),
|
|
276
|
-
tests: [],
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: 'run-1047',
|
|
280
|
-
number: 1047,
|
|
281
|
-
pipeline: 'api integration tests',
|
|
282
|
-
branch: 'fix/rate-limit-retry',
|
|
283
|
-
commit: 'b81e07d',
|
|
284
|
-
trigger: 'push',
|
|
285
|
-
status: 'failed',
|
|
286
|
-
startedAt: '2026-06-30T16:05:00Z',
|
|
287
|
-
duration: 307,
|
|
288
|
-
progress: 100,
|
|
289
|
-
steps: steps(3, 'failed', DURATIONS, FAILING_TESTS),
|
|
290
|
-
tests: FAILING_TESTS,
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
id: 'run-1046',
|
|
294
|
-
number: 1046,
|
|
295
|
-
pipeline: 'web-app ci',
|
|
296
|
-
branch: 'main',
|
|
297
|
-
commit: '9d4a611',
|
|
298
|
-
trigger: 'push',
|
|
299
|
-
status: 'passed',
|
|
300
|
-
startedAt: '2026-06-30T15:20:00Z',
|
|
301
|
-
duration: 342,
|
|
302
|
-
progress: 100,
|
|
303
|
-
steps: steps(5, 'passed', DURATIONS, PASSING_TESTS),
|
|
304
|
-
tests: PASSING_TESTS,
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
id: 'run-1045',
|
|
308
|
-
number: 1045,
|
|
309
|
-
pipeline: 'nightly e2e',
|
|
310
|
-
branch: 'main',
|
|
311
|
-
commit: '9d4a611',
|
|
312
|
-
trigger: 'schedule',
|
|
313
|
-
status: 'passed',
|
|
314
|
-
startedAt: '2026-06-30T03:00:00Z',
|
|
315
|
-
duration: 1265,
|
|
316
|
-
progress: 100,
|
|
317
|
-
steps: steps(5, 'passed', [8, 52, 90, 1080, 35], PASSING_TESTS),
|
|
318
|
-
tests: PASSING_TESTS,
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
id: 'run-1044',
|
|
322
|
-
number: 1044,
|
|
323
|
-
pipeline: 'web-app ci',
|
|
324
|
-
branch: 'chore/upgrade-bundler',
|
|
325
|
-
commit: '5c27e90',
|
|
326
|
-
trigger: 'push',
|
|
327
|
-
status: 'failed',
|
|
328
|
-
startedAt: '2026-06-29T22:14:00Z',
|
|
329
|
-
duration: 131,
|
|
330
|
-
progress: 100,
|
|
331
|
-
steps: steps(2, 'failed', DURATIONS),
|
|
332
|
-
tests: [],
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
id: 'run-1043',
|
|
336
|
-
number: 1043,
|
|
337
|
-
pipeline: 'api integration tests',
|
|
338
|
-
branch: 'main',
|
|
339
|
-
commit: '7e1f3c4',
|
|
340
|
-
trigger: 'manual',
|
|
341
|
-
status: 'cancelled',
|
|
342
|
-
startedAt: '2026-06-29T19:31:00Z',
|
|
343
|
-
duration: 58,
|
|
344
|
-
progress: 40,
|
|
345
|
-
steps: steps(2, 'skipped', DURATIONS),
|
|
346
|
-
tests: [],
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
id: 'run-1049',
|
|
350
|
-
number: 1049,
|
|
351
|
-
pipeline: 'nightly e2e',
|
|
352
|
-
branch: 'release/2.4',
|
|
353
|
-
commit: 'a0c55e2',
|
|
354
|
-
trigger: 'manual',
|
|
355
|
-
status: 'queued',
|
|
356
|
-
startedAt: null,
|
|
357
|
-
duration: null,
|
|
358
|
-
progress: 0,
|
|
359
|
-
steps: steps(0, 'pending', DURATIONS),
|
|
360
|
-
tests: [],
|
|
361
|
-
},
|
|
362
|
-
];
|
|
363
|
-
|
|
364
|
-
const STATUS_LABEL: Record<RunStatus, string> = {
|
|
365
|
-
queued: 'Queued',
|
|
366
|
-
running: 'Running',
|
|
367
|
-
passed: 'Passed',
|
|
368
|
-
failed: 'Failed',
|
|
369
|
-
cancelled: 'Cancelled',
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
const STATUS_DOT: Record<
|
|
373
|
-
RunStatus,
|
|
374
|
-
'accent' | 'success' | 'error' | 'neutral'
|
|
375
|
-
> = {
|
|
376
|
-
queued: 'neutral',
|
|
377
|
-
running: 'accent',
|
|
378
|
-
passed: 'success',
|
|
379
|
-
failed: 'error',
|
|
380
|
-
cancelled: 'neutral',
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
const STEP_DOT: Record<StepStatus, 'accent' | 'success' | 'error' | 'neutral'> =
|
|
384
|
-
{
|
|
385
|
-
pending: 'neutral',
|
|
386
|
-
running: 'accent',
|
|
387
|
-
passed: 'success',
|
|
388
|
-
failed: 'error',
|
|
389
|
-
skipped: 'neutral',
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
const STEP_LABEL: Record<StepStatus, string> = {
|
|
393
|
-
pending: 'Pending',
|
|
394
|
-
running: 'Running',
|
|
395
|
-
passed: 'Passed',
|
|
396
|
-
failed: 'Failed',
|
|
397
|
-
skipped: 'Skipped',
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
const TRIGGER_LABEL: Record<Trigger, string> = {
|
|
401
|
-
push: 'Push',
|
|
402
|
-
schedule: 'Schedule',
|
|
403
|
-
manual: 'Manual',
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
const TEST_LABEL: Record<TestStatus, string> = {
|
|
407
|
-
passed: 'Passed',
|
|
408
|
-
failed: 'Failed',
|
|
409
|
-
skipped: 'Skipped',
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
const TEST_TOKEN: Record<TestStatus, 'green' | 'red' | 'gray'> = {
|
|
413
|
-
passed: 'green',
|
|
414
|
-
failed: 'red',
|
|
415
|
-
skipped: 'gray',
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
/** 307 -> "5m 7s". */
|
|
419
|
-
function formatDuration(seconds: number | null): string {
|
|
420
|
-
if (seconds === null) {
|
|
421
|
-
return '—';
|
|
422
|
-
}
|
|
423
|
-
const m = Math.floor(seconds / 60);
|
|
424
|
-
const s = seconds % 60;
|
|
425
|
-
return m > 0 ? `${m}m ${s}s` : `${s}s`;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
type Filter = 'all' | 'running' | 'failed' | 'passed';
|
|
429
|
-
|
|
430
|
-
function matches(run: Run, filter: Filter): boolean {
|
|
431
|
-
if (filter === 'all') {
|
|
432
|
-
return true;
|
|
433
|
-
}
|
|
434
|
-
if (filter === 'running') {
|
|
435
|
-
return run.status === 'running' || run.status === 'queued';
|
|
436
|
-
}
|
|
437
|
-
return run.status === filter;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
function RunStatusMark({status}: {status: RunStatus}) {
|
|
441
|
-
return (
|
|
442
|
-
<HStack gap={2} vAlign="center">
|
|
443
|
-
<StatusDot
|
|
444
|
-
variant={STATUS_DOT[status]}
|
|
445
|
-
label={STATUS_LABEL[status]}
|
|
446
|
-
isPulsing={status === 'running'}
|
|
447
|
-
/>
|
|
448
|
-
<Text type="body">{STATUS_LABEL[status]}</Text>
|
|
449
|
-
</HStack>
|
|
450
|
-
);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
function RunTable({
|
|
454
|
-
runs,
|
|
455
|
-
isNarrow,
|
|
456
|
-
onOpen,
|
|
457
|
-
}: {
|
|
458
|
-
runs: Run[];
|
|
459
|
-
isNarrow: boolean;
|
|
460
|
-
onOpen: (id: string) => void;
|
|
461
|
-
}) {
|
|
462
|
-
const all: TableColumn<Run>[] = [
|
|
463
|
-
{
|
|
464
|
-
key: 'status',
|
|
465
|
-
header: 'Status',
|
|
466
|
-
renderCell: run => <RunStatusMark status={run.status} />,
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
key: 'number',
|
|
470
|
-
header: 'Run',
|
|
471
|
-
renderCell: run => (
|
|
472
|
-
<Button
|
|
473
|
-
label={`#${run.number}`}
|
|
474
|
-
variant="ghost"
|
|
475
|
-
size="sm"
|
|
476
|
-
onClick={() => onOpen(run.id)}
|
|
477
|
-
/>
|
|
478
|
-
),
|
|
479
|
-
},
|
|
480
|
-
{key: 'pipeline', header: 'Pipeline'},
|
|
481
|
-
{key: 'branch', header: 'Branch'},
|
|
482
|
-
{
|
|
483
|
-
key: 'trigger',
|
|
484
|
-
header: 'Trigger',
|
|
485
|
-
renderCell: run => TRIGGER_LABEL[run.trigger],
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
key: 'duration',
|
|
489
|
-
header: 'Duration',
|
|
490
|
-
renderCell: run =>
|
|
491
|
-
run.status === 'running' ? (
|
|
492
|
-
<ProgressBar
|
|
493
|
-
value={run.progress}
|
|
494
|
-
label={`Run ${run.number} progress`}
|
|
495
|
-
isLabelHidden
|
|
496
|
-
/>
|
|
497
|
-
) : (
|
|
498
|
-
formatDuration(run.duration)
|
|
499
|
-
),
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
key: 'startedAt',
|
|
503
|
-
header: 'Started',
|
|
504
|
-
renderCell: run =>
|
|
505
|
-
run.startedAt ? (
|
|
506
|
-
<Timestamp
|
|
507
|
-
value={run.startedAt}
|
|
508
|
-
format="date_time"
|
|
509
|
-
color="secondary"
|
|
510
|
-
/>
|
|
511
|
-
) : (
|
|
512
|
-
<Text type="body" color="secondary">
|
|
513
|
-
Not started
|
|
514
|
-
</Text>
|
|
515
|
-
),
|
|
516
|
-
},
|
|
517
|
-
];
|
|
518
|
-
// A narrow screen keeps what a reader scans first.
|
|
519
|
-
const narrowKeys = ['status', 'number', 'pipeline'];
|
|
520
|
-
const columns = isNarrow
|
|
521
|
-
? all.filter(column => narrowKeys.includes(column.key))
|
|
522
|
-
: all;
|
|
523
|
-
if (runs.length === 0) {
|
|
524
|
-
return (
|
|
525
|
-
<EmptyState
|
|
526
|
-
title="No runs here"
|
|
527
|
-
description="Choose another status, or start a run."
|
|
528
|
-
icon={<Icon icon={PlayIcon} size="lg" />}
|
|
529
|
-
/>
|
|
530
|
-
);
|
|
531
|
-
}
|
|
532
|
-
return (
|
|
533
|
-
<Table
|
|
534
|
-
data={runs}
|
|
535
|
-
columns={columns}
|
|
536
|
-
idKey="id"
|
|
537
|
-
density="compact"
|
|
538
|
-
textOverflow="truncate"
|
|
539
|
-
/>
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function RunView({
|
|
544
|
-
run,
|
|
545
|
-
onBack,
|
|
546
|
-
onRerun,
|
|
547
|
-
onCancel,
|
|
548
|
-
}: {
|
|
549
|
-
run: Run;
|
|
550
|
-
onBack: () => void;
|
|
551
|
-
onRerun: (run: Run) => void;
|
|
552
|
-
onCancel: (id: string) => void;
|
|
553
|
-
}) {
|
|
554
|
-
const showToast = useToast();
|
|
555
|
-
const firstOpen =
|
|
556
|
-
run.steps.find(
|
|
557
|
-
step => step.status === 'failed' || step.status === 'running',
|
|
558
|
-
) ?? run.steps[0];
|
|
559
|
-
const [stepName, setStepName] = useState(firstOpen.name);
|
|
560
|
-
const [tab, setTab] = useState(
|
|
561
|
-
run.tests.length > 0 && run.status === 'failed' ? 'results' : 'logs',
|
|
562
|
-
);
|
|
563
|
-
const step = run.steps.find(s => s.name === stepName) ?? firstOpen;
|
|
564
|
-
const isActive = run.status === 'running' || run.status === 'queued';
|
|
565
|
-
const failed = run.tests.filter(t => t.status === 'failed').length;
|
|
566
|
-
const skipped = run.tests.filter(t => t.status === 'skipped').length;
|
|
567
|
-
const passed = run.tests.length - failed - skipped;
|
|
568
|
-
// Failed tests first, so a reader sees what broke without scrolling.
|
|
569
|
-
const tests = [...run.tests].sort(
|
|
570
|
-
(a, b) => Number(b.status === 'failed') - Number(a.status === 'failed'),
|
|
571
|
-
);
|
|
572
|
-
const testColumns: TableColumn<TestResult & Record<string, unknown>>[] = [
|
|
573
|
-
{
|
|
574
|
-
key: 'status',
|
|
575
|
-
header: 'Result',
|
|
576
|
-
renderCell: t => (
|
|
577
|
-
<Token
|
|
578
|
-
size="sm"
|
|
579
|
-
color={TEST_TOKEN[t.status]}
|
|
580
|
-
label={TEST_LABEL[t.status]}
|
|
581
|
-
/>
|
|
582
|
-
),
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
key: 'name',
|
|
586
|
-
header: 'Test',
|
|
587
|
-
renderCell: t => (
|
|
588
|
-
<VStack gap={0}>
|
|
589
|
-
<Text type="body">{t.name}</Text>
|
|
590
|
-
{t.message && (
|
|
591
|
-
<Text type="supporting" color="secondary">
|
|
592
|
-
{t.message}
|
|
593
|
-
</Text>
|
|
594
|
-
)}
|
|
595
|
-
</VStack>
|
|
596
|
-
),
|
|
597
|
-
},
|
|
598
|
-
{key: 'suite', header: 'Suite'},
|
|
599
|
-
{
|
|
600
|
-
key: 'duration',
|
|
601
|
-
header: 'Time',
|
|
602
|
-
renderCell: t => (t.status === 'skipped' ? '—' : `${t.duration} ms`),
|
|
603
|
-
},
|
|
604
|
-
];
|
|
605
|
-
|
|
606
|
-
return (
|
|
607
|
-
<VStack gap={4}>
|
|
608
|
-
<HStack gap={3} vAlign="center" wrap="wrap">
|
|
609
|
-
<Button
|
|
610
|
-
label="All runs"
|
|
611
|
-
variant="ghost"
|
|
612
|
-
size="sm"
|
|
613
|
-
icon={
|
|
614
|
-
<Icon icon={ArrowLeftIcon} size="sm" xstyle={rtlStyles.mirror} />
|
|
615
|
-
}
|
|
616
|
-
onClick={onBack}
|
|
617
|
-
/>
|
|
618
|
-
<StackItem size="fill">
|
|
619
|
-
<HStack gap={2} vAlign="center" wrap="wrap">
|
|
620
|
-
<Heading level={2}>
|
|
621
|
-
{run.pipeline} #{run.number}
|
|
622
|
-
</Heading>
|
|
623
|
-
<RunStatusMark status={run.status} />
|
|
624
|
-
</HStack>
|
|
625
|
-
</StackItem>
|
|
626
|
-
<HStack gap={2} wrap="wrap">
|
|
627
|
-
{isActive ? (
|
|
628
|
-
<Button
|
|
629
|
-
label="Cancel run"
|
|
630
|
-
variant="secondary"
|
|
631
|
-
size="sm"
|
|
632
|
-
icon={<Icon icon={StopIcon} size="sm" />}
|
|
633
|
-
onClick={() => onCancel(run.id)}
|
|
634
|
-
/>
|
|
635
|
-
) : (
|
|
636
|
-
<Button
|
|
637
|
-
label="Re-run"
|
|
638
|
-
size="sm"
|
|
639
|
-
icon={<Icon icon={ArrowPathIcon} size="sm" />}
|
|
640
|
-
onClick={() => onRerun(run)}
|
|
641
|
-
/>
|
|
642
|
-
)}
|
|
643
|
-
</HStack>
|
|
644
|
-
</HStack>
|
|
645
|
-
|
|
646
|
-
{run.status === 'running' && (
|
|
647
|
-
<ProgressBar value={run.progress} label="Run progress" hasValueLabel />
|
|
648
|
-
)}
|
|
649
|
-
|
|
650
|
-
<MetadataList columns="multi">
|
|
651
|
-
<MetadataListItem label="Branch">
|
|
652
|
-
<Text type="body">{run.branch}</Text>
|
|
653
|
-
</MetadataListItem>
|
|
654
|
-
<MetadataListItem label="Commit">
|
|
655
|
-
<Text type="body">{run.commit}</Text>
|
|
656
|
-
</MetadataListItem>
|
|
657
|
-
<MetadataListItem label="Trigger">
|
|
658
|
-
<Text type="body">{TRIGGER_LABEL[run.trigger]}</Text>
|
|
659
|
-
</MetadataListItem>
|
|
660
|
-
<MetadataListItem label="Started">
|
|
661
|
-
{run.startedAt ? (
|
|
662
|
-
<Timestamp value={run.startedAt} format="date_time" />
|
|
663
|
-
) : (
|
|
664
|
-
<Text type="body">Not started</Text>
|
|
665
|
-
)}
|
|
666
|
-
</MetadataListItem>
|
|
667
|
-
<MetadataListItem label="Duration">
|
|
668
|
-
<Text type="body">{formatDuration(run.duration)}</Text>
|
|
669
|
-
</MetadataListItem>
|
|
670
|
-
</MetadataList>
|
|
671
|
-
|
|
672
|
-
<Divider />
|
|
673
|
-
|
|
674
|
-
<VStack gap={2}>
|
|
675
|
-
<Heading level={3}>Steps</Heading>
|
|
676
|
-
<List density="compact" hasDividers listStyle="decimal">
|
|
677
|
-
{run.steps.map(s => (
|
|
678
|
-
<ListItem
|
|
679
|
-
key={s.name}
|
|
680
|
-
label={s.name}
|
|
681
|
-
description={STEP_LABEL[s.status]}
|
|
682
|
-
startContent={
|
|
683
|
-
<StatusDot
|
|
684
|
-
variant={STEP_DOT[s.status]}
|
|
685
|
-
label={STEP_LABEL[s.status]}
|
|
686
|
-
isPulsing={s.status === 'running'}
|
|
687
|
-
/>
|
|
688
|
-
}
|
|
689
|
-
endContent={
|
|
690
|
-
<Text type="supporting" color="secondary">
|
|
691
|
-
{formatDuration(s.duration)}
|
|
692
|
-
</Text>
|
|
693
|
-
}
|
|
694
|
-
isSelected={tab === 'logs' && s.name === step.name}
|
|
695
|
-
onClick={() => {
|
|
696
|
-
setStepName(s.name);
|
|
697
|
-
setTab('logs');
|
|
698
|
-
}}
|
|
699
|
-
/>
|
|
700
|
-
))}
|
|
701
|
-
</List>
|
|
702
|
-
</VStack>
|
|
703
|
-
|
|
704
|
-
<VStack gap={3}>
|
|
705
|
-
<TabList value={tab} onChange={setTab} role="tablist" hasDivider>
|
|
706
|
-
<Tab value="logs" label="Logs" panelId="run-logs" />
|
|
707
|
-
<Tab
|
|
708
|
-
value="results"
|
|
709
|
-
label="Results"
|
|
710
|
-
panelId="run-results"
|
|
711
|
-
endContent={
|
|
712
|
-
failed > 0 ? (
|
|
713
|
-
<Badge variant="error" label={String(failed)} />
|
|
714
|
-
) : undefined
|
|
715
|
-
}
|
|
716
|
-
/>
|
|
717
|
-
</TabList>
|
|
718
|
-
{tab === 'logs' ? (
|
|
719
|
-
<VStack gap={2} id="run-logs" role="tabpanel">
|
|
720
|
-
<CodeBlock
|
|
721
|
-
code={step.log}
|
|
722
|
-
language="plaintext"
|
|
723
|
-
title={`${step.name} log`}
|
|
724
|
-
hasLanguageLabel={false}
|
|
725
|
-
hasLineNumbers
|
|
726
|
-
maxHeight={320}
|
|
727
|
-
width="100%"
|
|
728
|
-
size="sm"
|
|
729
|
-
endContent={
|
|
730
|
-
<Button
|
|
731
|
-
label="Download log"
|
|
732
|
-
variant="ghost"
|
|
733
|
-
size="sm"
|
|
734
|
-
isIconOnly
|
|
735
|
-
icon={<Icon icon={ArrowDownTrayIcon} size="sm" />}
|
|
736
|
-
onClick={() =>
|
|
737
|
-
// Demo only: replace this toast with the call that performs the action.
|
|
738
|
-
showToast({
|
|
739
|
-
body: `Demo: downloading the ${step.name.toLowerCase()} log would start here`,
|
|
740
|
-
uniqueID: `download-${run.id}-${step.name}`,
|
|
741
|
-
})
|
|
742
|
-
}
|
|
743
|
-
/>
|
|
744
|
-
}
|
|
745
|
-
/>
|
|
746
|
-
</VStack>
|
|
747
|
-
) : (
|
|
748
|
-
<VStack gap={3} id="run-results" role="tabpanel">
|
|
749
|
-
{run.tests.length === 0 ? (
|
|
750
|
-
<EmptyState
|
|
751
|
-
title="No test results yet"
|
|
752
|
-
description={
|
|
753
|
-
isActive
|
|
754
|
-
? 'This run has not finished its test step.'
|
|
755
|
-
: 'This run stopped before its test step.'
|
|
756
|
-
}
|
|
757
|
-
isCompact
|
|
758
|
-
/>
|
|
759
|
-
) : (
|
|
760
|
-
<>
|
|
761
|
-
<HStack gap={2} wrap="wrap">
|
|
762
|
-
<Badge variant="success" label={`${passed} passed`} />
|
|
763
|
-
<Badge variant="error" label={`${failed} failed`} />
|
|
764
|
-
<Badge variant="neutral" label={`${skipped} skipped`} />
|
|
765
|
-
</HStack>
|
|
766
|
-
<Table
|
|
767
|
-
data={tests as (TestResult & Record<string, unknown>)[]}
|
|
768
|
-
columns={testColumns}
|
|
769
|
-
idKey="name"
|
|
770
|
-
density="compact"
|
|
771
|
-
/>
|
|
772
|
-
</>
|
|
773
|
-
)}
|
|
774
|
-
</VStack>
|
|
775
|
-
)}
|
|
776
|
-
</VStack>
|
|
777
|
-
</VStack>
|
|
778
|
-
);
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
export default function RunConsolePage() {
|
|
782
|
-
const [runs, setRuns] = useState(RUNS);
|
|
783
|
-
const [filter, setFilter] = useState<Filter>('all');
|
|
784
|
-
const [openId, setOpenId] = useState<string | null>(null);
|
|
785
|
-
const [isNewRunOpen, setIsNewRunOpen] = useState(false);
|
|
786
|
-
const [pipeline, setPipeline] = useState(PIPELINES[0]);
|
|
787
|
-
const [branch, setBranch] = useState('main');
|
|
788
|
-
const isNarrow = useMediaQuery('(max-width: 768px)');
|
|
789
|
-
|
|
790
|
-
const open = runs.find(run => run.id === openId) ?? null;
|
|
791
|
-
const visible = runs.filter(run => matches(run, filter));
|
|
792
|
-
const activeCount = runs.filter(
|
|
793
|
-
run => run.status === 'running' || run.status === 'queued',
|
|
794
|
-
).length;
|
|
795
|
-
|
|
796
|
-
/** A queued run of `pipeline` on `branch`, numbered after the newest run. */
|
|
797
|
-
const queue = (from: {pipeline: string; branch: string; commit: string}) => {
|
|
798
|
-
const number = Math.max(...runs.map(run => run.number)) + 1;
|
|
799
|
-
const run: Run = {
|
|
800
|
-
id: `run-${number}`,
|
|
801
|
-
number,
|
|
802
|
-
pipeline: from.pipeline,
|
|
803
|
-
branch: from.branch,
|
|
804
|
-
commit: from.commit,
|
|
805
|
-
trigger: 'manual',
|
|
806
|
-
status: 'queued',
|
|
807
|
-
startedAt: null,
|
|
808
|
-
duration: null,
|
|
809
|
-
progress: 0,
|
|
810
|
-
steps: steps(0, 'pending', DURATIONS),
|
|
811
|
-
tests: [],
|
|
812
|
-
};
|
|
813
|
-
setRuns(prev => [run, ...prev]);
|
|
814
|
-
return run;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
const cancel = (id: string) =>
|
|
818
|
-
setRuns(prev =>
|
|
819
|
-
prev.map(run =>
|
|
820
|
-
run.id === id
|
|
821
|
-
? {
|
|
822
|
-
...run,
|
|
823
|
-
status: 'cancelled',
|
|
824
|
-
steps: run.steps.map(s =>
|
|
825
|
-
s.status === 'running' || s.status === 'pending'
|
|
826
|
-
? {
|
|
827
|
-
...s,
|
|
828
|
-
status: 'skipped' as const,
|
|
829
|
-
log: logFor(s.name, 'skipped', run.tests),
|
|
830
|
-
}
|
|
831
|
-
: s,
|
|
832
|
-
),
|
|
833
|
-
}
|
|
834
|
-
: run,
|
|
835
|
-
),
|
|
836
|
-
);
|
|
837
|
-
|
|
838
|
-
return (
|
|
839
|
-
<Layout
|
|
840
|
-
height="fill"
|
|
841
|
-
header={
|
|
842
|
-
<LayoutHeader hasDivider>
|
|
843
|
-
<HStack gap={3} vAlign="center" wrap="wrap">
|
|
844
|
-
<StackItem size="fill">
|
|
845
|
-
<HStack gap={2} vAlign="center">
|
|
846
|
-
<Heading level={1}>Runs</Heading>
|
|
847
|
-
<Text type="supporting" color="secondary">
|
|
848
|
-
{activeCount} running or queued
|
|
849
|
-
</Text>
|
|
850
|
-
</HStack>
|
|
851
|
-
</StackItem>
|
|
852
|
-
<Button
|
|
853
|
-
label="New run"
|
|
854
|
-
variant="primary"
|
|
855
|
-
size="sm"
|
|
856
|
-
icon={<Icon icon={PlayIcon} size="sm" />}
|
|
857
|
-
onClick={() => setIsNewRunOpen(true)}
|
|
858
|
-
/>
|
|
859
|
-
</HStack>
|
|
860
|
-
</LayoutHeader>
|
|
861
|
-
}
|
|
862
|
-
content={
|
|
863
|
-
<LayoutContent>
|
|
864
|
-
{open ? (
|
|
865
|
-
<RunView
|
|
866
|
-
key={open.id}
|
|
867
|
-
run={open}
|
|
868
|
-
onBack={() => setOpenId(null)}
|
|
869
|
-
onRerun={run => setOpenId(queue(run).id)}
|
|
870
|
-
onCancel={cancel}
|
|
871
|
-
/>
|
|
872
|
-
) : (
|
|
873
|
-
<VStack gap={3}>
|
|
874
|
-
<TabList
|
|
875
|
-
value={filter}
|
|
876
|
-
onChange={value => setFilter(value as Filter)}
|
|
877
|
-
hasDivider>
|
|
878
|
-
<Tab value="all" label="All" />
|
|
879
|
-
<Tab value="running" label="Running" />
|
|
880
|
-
<Tab value="failed" label="Failed" />
|
|
881
|
-
<Tab value="passed" label="Passed" />
|
|
882
|
-
</TabList>
|
|
883
|
-
<RunTable runs={visible} isNarrow={isNarrow} onOpen={setOpenId} />
|
|
884
|
-
</VStack>
|
|
885
|
-
)}
|
|
886
|
-
<Dialog
|
|
887
|
-
isOpen={isNewRunOpen}
|
|
888
|
-
onOpenChange={setIsNewRunOpen}
|
|
889
|
-
purpose="form">
|
|
890
|
-
<Layout
|
|
891
|
-
header={
|
|
892
|
-
<DialogHeader
|
|
893
|
-
title="Start a run"
|
|
894
|
-
onOpenChange={setIsNewRunOpen}
|
|
895
|
-
/>
|
|
896
|
-
}
|
|
897
|
-
content={
|
|
898
|
-
<LayoutContent padding={4}>
|
|
899
|
-
<VStack gap={4}>
|
|
900
|
-
<Selector
|
|
901
|
-
label="Pipeline"
|
|
902
|
-
value={pipeline}
|
|
903
|
-
options={PIPELINES.map(p => ({value: p, label: p}))}
|
|
904
|
-
onChange={setPipeline}
|
|
905
|
-
/>
|
|
906
|
-
<TextInput
|
|
907
|
-
label="Branch"
|
|
908
|
-
value={branch}
|
|
909
|
-
onChange={setBranch}
|
|
910
|
-
/>
|
|
911
|
-
</VStack>
|
|
912
|
-
</LayoutContent>
|
|
913
|
-
}
|
|
914
|
-
footer={
|
|
915
|
-
<LayoutFooter hasDivider>
|
|
916
|
-
<HStack gap={2} hAlign="end">
|
|
917
|
-
<Button
|
|
918
|
-
label="Cancel"
|
|
919
|
-
variant="secondary"
|
|
920
|
-
onClick={() => setIsNewRunOpen(false)}
|
|
921
|
-
/>
|
|
922
|
-
<Button
|
|
923
|
-
label="Start run"
|
|
924
|
-
variant="primary"
|
|
925
|
-
isDisabled={branch.trim() === ''}
|
|
926
|
-
onClick={() => {
|
|
927
|
-
queue({
|
|
928
|
-
pipeline,
|
|
929
|
-
branch: branch.trim(),
|
|
930
|
-
commit: 'latest',
|
|
931
|
-
});
|
|
932
|
-
setFilter('all');
|
|
933
|
-
setIsNewRunOpen(false);
|
|
934
|
-
}}
|
|
935
|
-
/>
|
|
936
|
-
</HStack>
|
|
937
|
-
</LayoutFooter>
|
|
938
|
-
}
|
|
939
|
-
/>
|
|
940
|
-
</Dialog>
|
|
941
|
-
</LayoutContent>
|
|
942
|
-
}
|
|
943
|
-
/>
|
|
944
|
-
);
|
|
945
|
-
}
|