@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,27 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export const doc = {
|
|
5
|
-
type: 'page',
|
|
6
|
-
name: 'Run Console',
|
|
7
|
-
displayName: 'Run Console',
|
|
8
|
-
description:
|
|
9
|
-
'A CI run console where New run, Re-run and Cancel update a list of pipeline and test runs. A status-filtered run history opens a detail view with progress, numbered steps, per-step logs, and test results with failures listed first.',
|
|
10
|
-
keywords: [
|
|
11
|
-
'CI run console',
|
|
12
|
-
'pipeline runs',
|
|
13
|
-
'run history',
|
|
14
|
-
'build logs',
|
|
15
|
-
'test results',
|
|
16
|
-
'job status',
|
|
17
|
-
],
|
|
18
|
-
isReady: false,
|
|
19
|
-
category: 'Tools - Run Console',
|
|
20
|
-
icons: {
|
|
21
|
-
ArrowDownTrayIcon: 'download',
|
|
22
|
-
ArrowLeftIcon: 'arrowLeft',
|
|
23
|
-
ArrowPathIcon: 'refresh',
|
|
24
|
-
PlayIcon: 'play',
|
|
25
|
-
StopIcon: 'stop',
|
|
26
|
-
},
|
|
27
|
-
};
|
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {useMemo, useRef, useState, type CSSProperties} from 'react';
|
|
6
|
-
import {Layout, LayoutContent, LayoutPanel} from '@astryxdesign/core/Layout';
|
|
7
|
-
import {Heading, Text} from '@astryxdesign/core/Text';
|
|
8
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
9
|
-
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
10
|
-
import {Badge} from '@astryxdesign/core/Badge';
|
|
11
|
-
import {Card} from '@astryxdesign/core/Card';
|
|
12
|
-
import {ClickableCard} from '@astryxdesign/core/ClickableCard';
|
|
13
|
-
import {CheckboxInput} from '@astryxdesign/core/CheckboxInput';
|
|
14
|
-
import {Collapsible} from '@astryxdesign/core/Collapsible';
|
|
15
|
-
import {Divider} from '@astryxdesign/core/Divider';
|
|
16
|
-
import {Grid} from '@astryxdesign/core/Grid';
|
|
17
|
-
import {Icon} from '@astryxdesign/core/Icon';
|
|
18
|
-
import {List, ListItem} from '@astryxdesign/core/List';
|
|
19
|
-
import {ProgressBar} from '@astryxdesign/core/ProgressBar';
|
|
20
|
-
import {HStack, VStack, StackItem} from '@astryxdesign/core/Stack';
|
|
21
|
-
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
22
|
-
import {Timestamp} from '@astryxdesign/core/Timestamp';
|
|
23
|
-
import {Token} from '@astryxdesign/core/Token';
|
|
24
|
-
import {useToast} from '@astryxdesign/core/Toast';
|
|
25
|
-
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
26
|
-
import {
|
|
27
|
-
BanknotesIcon,
|
|
28
|
-
BookOpenIcon,
|
|
29
|
-
BuildingOfficeIcon,
|
|
30
|
-
CalendarDaysIcon,
|
|
31
|
-
ChatBubbleLeftRightIcon,
|
|
32
|
-
ClipboardDocumentCheckIcon,
|
|
33
|
-
ComputerDesktopIcon,
|
|
34
|
-
LightBulbIcon,
|
|
35
|
-
InformationCircleIcon,
|
|
36
|
-
MagnifyingGlassIcon,
|
|
37
|
-
ShieldCheckIcon,
|
|
38
|
-
StarIcon,
|
|
39
|
-
UserGroupIcon,
|
|
40
|
-
WrenchScrewdriverIcon,
|
|
41
|
-
} from '@heroicons/react/24/outline';
|
|
42
|
-
import {StarIcon as StarIconSolid} from '@heroicons/react/24/solid';
|
|
43
|
-
|
|
44
|
-
type Destination = {
|
|
45
|
-
id: string;
|
|
46
|
-
section: string;
|
|
47
|
-
title: string;
|
|
48
|
-
summary: string;
|
|
49
|
-
icon: typeof StarIcon;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const DESTINATIONS: Destination[] = [
|
|
53
|
-
{
|
|
54
|
-
id: 'helpdesk',
|
|
55
|
-
section: 'Tools',
|
|
56
|
-
title: 'IT help desk',
|
|
57
|
-
summary: 'Request a laptop, access or a fix.',
|
|
58
|
-
icon: ComputerDesktopIcon,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: 'expenses',
|
|
62
|
-
section: 'Tools',
|
|
63
|
-
title: 'Expenses',
|
|
64
|
-
summary: 'Submit receipts and track repayments.',
|
|
65
|
-
icon: BanknotesIcon,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'rooms',
|
|
69
|
-
section: 'Tools',
|
|
70
|
-
title: 'Room booking',
|
|
71
|
-
summary: 'Find and reserve a meeting room.',
|
|
72
|
-
icon: CalendarDaysIcon,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: 'directory',
|
|
76
|
-
section: 'Teams',
|
|
77
|
-
title: 'People directory',
|
|
78
|
-
summary: 'Look up a colleague, team or office.',
|
|
79
|
-
icon: UserGroupIcon,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 'offices',
|
|
83
|
-
section: 'Teams',
|
|
84
|
-
title: 'Offices',
|
|
85
|
-
summary: 'Addresses, hours and visitor rules.',
|
|
86
|
-
icon: BuildingOfficeIcon,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: 'courses',
|
|
90
|
-
section: 'Learning',
|
|
91
|
-
title: 'Courses',
|
|
92
|
-
summary: 'Required training and optional classes.',
|
|
93
|
-
icon: LightBulbIcon,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: 'handbook',
|
|
97
|
-
section: 'Learning',
|
|
98
|
-
title: 'Handbook',
|
|
99
|
-
summary: 'How we work, in one place.',
|
|
100
|
-
icon: BookOpenIcon,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: 'security',
|
|
104
|
-
section: 'Policies',
|
|
105
|
-
title: 'Security basics',
|
|
106
|
-
summary: 'Passwords, devices and data handling.',
|
|
107
|
-
icon: ShieldCheckIcon,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: 'benefits',
|
|
111
|
-
section: 'Policies',
|
|
112
|
-
title: 'Benefits',
|
|
113
|
-
summary: 'Health, leave and retirement plans.',
|
|
114
|
-
icon: ClipboardDocumentCheckIcon,
|
|
115
|
-
},
|
|
116
|
-
];
|
|
117
|
-
|
|
118
|
-
const SECTIONS = ['Tools', 'Teams', 'Learning', 'Policies'];
|
|
119
|
-
|
|
120
|
-
type Step = {id: string; label: string; description: string};
|
|
121
|
-
|
|
122
|
-
const STEPS: Step[] = [
|
|
123
|
-
{
|
|
124
|
-
id: 'profile',
|
|
125
|
-
label: 'Complete your profile',
|
|
126
|
-
description: 'Add a photo, your team and your office.',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: 'laptop',
|
|
130
|
-
label: 'Set up your laptop',
|
|
131
|
-
description: 'Sign in, turn on disk encryption and install updates.',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: 'security',
|
|
135
|
-
label: 'Finish security training',
|
|
136
|
-
description: 'A 20-minute course with a short quiz.',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: 'buddy',
|
|
140
|
-
label: 'Meet your onboarding buddy',
|
|
141
|
-
description: 'Book a 30-minute intro call.',
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
id: 'benefits',
|
|
145
|
-
label: 'Choose your benefits',
|
|
146
|
-
description: 'Enroll within your first 30 days.',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: 'team',
|
|
150
|
-
label: 'Join your team channels',
|
|
151
|
-
description: 'Say hello and find your first project.',
|
|
152
|
-
},
|
|
153
|
-
];
|
|
154
|
-
|
|
155
|
-
const RECENT = [
|
|
156
|
-
{id: 'r1', title: 'Expenses', at: '2026-03-30T15:10:00Z'},
|
|
157
|
-
{id: 'r2', title: 'Handbook', at: '2026-03-30T09:42:00Z'},
|
|
158
|
-
{id: 'r3', title: 'Room booking', at: '2026-03-29T17:05:00Z'},
|
|
159
|
-
];
|
|
160
|
-
|
|
161
|
-
const ANNOUNCEMENTS = [
|
|
162
|
-
{
|
|
163
|
-
id: 'a1',
|
|
164
|
-
title: 'New hire orientation moves to Tuesdays',
|
|
165
|
-
date: '2026-03-28',
|
|
166
|
-
tag: 'Events',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
id: 'a2',
|
|
170
|
-
title: 'Benefits enrollment closes April 30',
|
|
171
|
-
date: '2026-03-25',
|
|
172
|
-
tag: 'Benefits',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
id: 'a3',
|
|
176
|
-
title: 'Updated travel policy is live',
|
|
177
|
-
date: '2026-03-20',
|
|
178
|
-
tag: 'Policy',
|
|
179
|
-
},
|
|
180
|
-
];
|
|
181
|
-
|
|
182
|
-
const railPanel: CSSProperties = {
|
|
183
|
-
position: 'sticky',
|
|
184
|
-
top: 24,
|
|
185
|
-
alignSelf: 'start',
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export default function WelcomePortalPage() {
|
|
189
|
-
const showToast = useToast();
|
|
190
|
-
const isMobile = useMediaQuery('(max-width: 768px)');
|
|
191
|
-
const [query, setQuery] = useState('');
|
|
192
|
-
const [done, setDone] = useState<Set<string>>(
|
|
193
|
-
() => new Set(['profile', 'laptop', 'security']),
|
|
194
|
-
);
|
|
195
|
-
const [pinned, setPinned] = useState<Set<string>>(
|
|
196
|
-
() => new Set(['expenses', 'handbook']),
|
|
197
|
-
);
|
|
198
|
-
const stepRefs = useRef<Record<string, HTMLInputElement | null>>({});
|
|
199
|
-
|
|
200
|
-
// Demo only: replace these toasts with the calls that perform each action.
|
|
201
|
-
const demo = (body: string, uniqueID: string) => showToast({body, uniqueID});
|
|
202
|
-
|
|
203
|
-
const toggleStep = (id: string, isDone: boolean) =>
|
|
204
|
-
setDone(prev => {
|
|
205
|
-
const next = new Set(prev);
|
|
206
|
-
if (isDone) {
|
|
207
|
-
next.add(id);
|
|
208
|
-
} else {
|
|
209
|
-
next.delete(id);
|
|
210
|
-
}
|
|
211
|
-
return next;
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
const togglePin = (id: string) =>
|
|
215
|
-
setPinned(prev => {
|
|
216
|
-
const next = new Set(prev);
|
|
217
|
-
if (next.has(id)) {
|
|
218
|
-
next.delete(id);
|
|
219
|
-
} else {
|
|
220
|
-
next.add(id);
|
|
221
|
-
}
|
|
222
|
-
return next;
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
const nextStep = STEPS.find(step => !done.has(step.id));
|
|
226
|
-
|
|
227
|
-
const continueSetup = () => {
|
|
228
|
-
if (!nextStep) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
const target = stepRefs.current[nextStep.id];
|
|
232
|
-
target?.scrollIntoView({behavior: 'smooth', block: 'center'});
|
|
233
|
-
target?.focus({preventScroll: true});
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
const matches = useMemo(() => {
|
|
237
|
-
const q = query.trim().toLowerCase();
|
|
238
|
-
if (!q) {
|
|
239
|
-
return DESTINATIONS;
|
|
240
|
-
}
|
|
241
|
-
return DESTINATIONS.filter(d =>
|
|
242
|
-
`${d.title} ${d.summary} ${d.section}`.toLowerCase().includes(q),
|
|
243
|
-
);
|
|
244
|
-
}, [query]);
|
|
245
|
-
|
|
246
|
-
const openDestination = (d: Destination) =>
|
|
247
|
-
demo(`Demo: ${d.title} would open here.`, `open-${d.id}`);
|
|
248
|
-
|
|
249
|
-
const favorites = DESTINATIONS.filter(d => pinned.has(d.id));
|
|
250
|
-
|
|
251
|
-
const header = (
|
|
252
|
-
<VStack gap={4}>
|
|
253
|
-
<VStack gap={1}>
|
|
254
|
-
<Heading level={1} type="display-2">
|
|
255
|
-
Welcome back, Alex
|
|
256
|
-
</Heading>
|
|
257
|
-
<Text type="body" color="secondary">
|
|
258
|
-
Tools, teams and guides for your work, in one place.
|
|
259
|
-
</Text>
|
|
260
|
-
</VStack>
|
|
261
|
-
<TextInput
|
|
262
|
-
label="Search tools, teams and guides"
|
|
263
|
-
isLabelHidden
|
|
264
|
-
placeholder="Search tools, teams and guides"
|
|
265
|
-
startIcon={MagnifyingGlassIcon}
|
|
266
|
-
value={query}
|
|
267
|
-
onChange={setQuery}
|
|
268
|
-
hasClear
|
|
269
|
-
width="100%"
|
|
270
|
-
/>
|
|
271
|
-
</VStack>
|
|
272
|
-
);
|
|
273
|
-
|
|
274
|
-
const startHere = (
|
|
275
|
-
<Card>
|
|
276
|
-
<VStack gap={4}>
|
|
277
|
-
<HStack gap={3} vAlign="center" wrap="wrap">
|
|
278
|
-
<StackItem size="fill">
|
|
279
|
-
<Heading level={2}>Start here</Heading>
|
|
280
|
-
</StackItem>
|
|
281
|
-
<Button
|
|
282
|
-
label={nextStep ? 'Continue' : 'All done'}
|
|
283
|
-
variant="primary"
|
|
284
|
-
isDisabled={!nextStep}
|
|
285
|
-
onClick={continueSetup}
|
|
286
|
-
/>
|
|
287
|
-
</HStack>
|
|
288
|
-
<ProgressBar
|
|
289
|
-
label="Onboarding progress"
|
|
290
|
-
value={done.size}
|
|
291
|
-
max={STEPS.length}
|
|
292
|
-
hasValueLabel
|
|
293
|
-
formatValueLabel={(value, max) => `${value} of ${max} done`}
|
|
294
|
-
/>
|
|
295
|
-
<VStack gap={3}>
|
|
296
|
-
{STEPS.map(step => (
|
|
297
|
-
<CheckboxInput
|
|
298
|
-
key={step.id}
|
|
299
|
-
ref={el => {
|
|
300
|
-
stepRefs.current[step.id] = el;
|
|
301
|
-
}}
|
|
302
|
-
label={step.label}
|
|
303
|
-
description={step.description}
|
|
304
|
-
value={done.has(step.id)}
|
|
305
|
-
onChange={checked => toggleStep(step.id, checked)}
|
|
306
|
-
/>
|
|
307
|
-
))}
|
|
308
|
-
</VStack>
|
|
309
|
-
</VStack>
|
|
310
|
-
</Card>
|
|
311
|
-
);
|
|
312
|
-
|
|
313
|
-
const destinationCard = (d: Destination) => {
|
|
314
|
-
const isPinned = pinned.has(d.id);
|
|
315
|
-
return (
|
|
316
|
-
<ClickableCard
|
|
317
|
-
key={d.id}
|
|
318
|
-
label={`Open ${d.title}`}
|
|
319
|
-
onClick={() => openDestination(d)}>
|
|
320
|
-
<HStack gap={3} vAlign="start">
|
|
321
|
-
<Icon icon={d.icon} size="md" />
|
|
322
|
-
<StackItem size="fill">
|
|
323
|
-
<VStack gap={1}>
|
|
324
|
-
<Text type="body" weight="semibold">
|
|
325
|
-
{d.title}
|
|
326
|
-
</Text>
|
|
327
|
-
<Text type="supporting" color="secondary">
|
|
328
|
-
{d.summary}
|
|
329
|
-
</Text>
|
|
330
|
-
</VStack>
|
|
331
|
-
</StackItem>
|
|
332
|
-
<IconButton
|
|
333
|
-
label={isPinned ? `Unpin ${d.title}` : `Pin ${d.title}`}
|
|
334
|
-
variant="ghost"
|
|
335
|
-
size="sm"
|
|
336
|
-
icon={<Icon icon={isPinned ? StarIconSolid : StarIcon} />}
|
|
337
|
-
onClick={() => togglePin(d.id)}
|
|
338
|
-
/>
|
|
339
|
-
</HStack>
|
|
340
|
-
</ClickableCard>
|
|
341
|
-
);
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
const destinations = (
|
|
345
|
-
<VStack gap={6}>
|
|
346
|
-
{matches.length === 0 ? (
|
|
347
|
-
<Card variant="gray">
|
|
348
|
-
<VStack gap={1}>
|
|
349
|
-
<Text type="body" weight="semibold">
|
|
350
|
-
No matches for “{query}”
|
|
351
|
-
</Text>
|
|
352
|
-
<Text type="supporting" color="secondary">
|
|
353
|
-
Try another word, or ask the help desk.
|
|
354
|
-
</Text>
|
|
355
|
-
</VStack>
|
|
356
|
-
</Card>
|
|
357
|
-
) : (
|
|
358
|
-
SECTIONS.map(section => {
|
|
359
|
-
const items = matches.filter(d => d.section === section);
|
|
360
|
-
if (items.length === 0) {
|
|
361
|
-
return null;
|
|
362
|
-
}
|
|
363
|
-
const grid = (
|
|
364
|
-
<Grid columns={{minWidth: 240, max: 3}} gap={3}>
|
|
365
|
-
{items.map(destinationCard)}
|
|
366
|
-
</Grid>
|
|
367
|
-
);
|
|
368
|
-
return isMobile ? (
|
|
369
|
-
<Collapsible
|
|
370
|
-
key={section}
|
|
371
|
-
trigger={<Heading level={2}>{section}</Heading>}>
|
|
372
|
-
{grid}
|
|
373
|
-
</Collapsible>
|
|
374
|
-
) : (
|
|
375
|
-
<VStack key={section} gap={3}>
|
|
376
|
-
<Heading level={2}>{section}</Heading>
|
|
377
|
-
{grid}
|
|
378
|
-
</VStack>
|
|
379
|
-
);
|
|
380
|
-
})
|
|
381
|
-
)}
|
|
382
|
-
</VStack>
|
|
383
|
-
);
|
|
384
|
-
|
|
385
|
-
const favoritesBlock = (
|
|
386
|
-
<VStack gap={2}>
|
|
387
|
-
<Text type="label">Favorites</Text>
|
|
388
|
-
{favorites.length === 0 ? (
|
|
389
|
-
<Text type="supporting" color="secondary">
|
|
390
|
-
Pin a destination to keep it here.
|
|
391
|
-
</Text>
|
|
392
|
-
) : isMobile ? (
|
|
393
|
-
<HStack gap={2} wrap="wrap">
|
|
394
|
-
{favorites.map(d => (
|
|
395
|
-
<Token
|
|
396
|
-
key={d.id}
|
|
397
|
-
label={d.title}
|
|
398
|
-
onClick={() => openDestination(d)}
|
|
399
|
-
/>
|
|
400
|
-
))}
|
|
401
|
-
</HStack>
|
|
402
|
-
) : (
|
|
403
|
-
<List density="compact">
|
|
404
|
-
{favorites.map(d => (
|
|
405
|
-
<ListItem
|
|
406
|
-
key={d.id}
|
|
407
|
-
label={d.title}
|
|
408
|
-
startContent={<Icon icon={d.icon} size="sm" />}
|
|
409
|
-
onClick={() => openDestination(d)}
|
|
410
|
-
/>
|
|
411
|
-
))}
|
|
412
|
-
</List>
|
|
413
|
-
)}
|
|
414
|
-
</VStack>
|
|
415
|
-
);
|
|
416
|
-
|
|
417
|
-
const recentBlock = (
|
|
418
|
-
<VStack gap={2}>
|
|
419
|
-
<Text type="label">Recently visited</Text>
|
|
420
|
-
<List density="compact">
|
|
421
|
-
{RECENT.map(item => (
|
|
422
|
-
<ListItem
|
|
423
|
-
key={item.id}
|
|
424
|
-
label={item.title}
|
|
425
|
-
endContent={
|
|
426
|
-
<Text type="supporting" color="secondary">
|
|
427
|
-
<Timestamp value={item.at} format="date_time" />
|
|
428
|
-
</Text>
|
|
429
|
-
}
|
|
430
|
-
onClick={() =>
|
|
431
|
-
demo(`Demo: ${item.title} would open here.`, `recent-${item.id}`)
|
|
432
|
-
}
|
|
433
|
-
/>
|
|
434
|
-
))}
|
|
435
|
-
</List>
|
|
436
|
-
</VStack>
|
|
437
|
-
);
|
|
438
|
-
|
|
439
|
-
const announcementsBlock = (
|
|
440
|
-
<VStack gap={2}>
|
|
441
|
-
<Text type="label">Announcements</Text>
|
|
442
|
-
<List density="compact">
|
|
443
|
-
{ANNOUNCEMENTS.map(item => (
|
|
444
|
-
<ListItem
|
|
445
|
-
key={item.id}
|
|
446
|
-
label={item.title}
|
|
447
|
-
description={
|
|
448
|
-
<Timestamp value={`${item.date}T12:00:00Z`} format="date" />
|
|
449
|
-
}
|
|
450
|
-
endContent={<Badge label={item.tag} variant="blue" />}
|
|
451
|
-
onClick={() =>
|
|
452
|
-
demo(
|
|
453
|
-
`Demo: the “${item.title}” post would open here.`,
|
|
454
|
-
`news-${item.id}`,
|
|
455
|
-
)
|
|
456
|
-
}
|
|
457
|
-
/>
|
|
458
|
-
))}
|
|
459
|
-
</List>
|
|
460
|
-
</VStack>
|
|
461
|
-
);
|
|
462
|
-
|
|
463
|
-
const helpBlock = (
|
|
464
|
-
<Card variant="gray">
|
|
465
|
-
<VStack gap={3}>
|
|
466
|
-
<HStack gap={2} vAlign="center">
|
|
467
|
-
<Icon icon={InformationCircleIcon} size="md" />
|
|
468
|
-
<Text type="body" weight="semibold">
|
|
469
|
-
Need help?
|
|
470
|
-
</Text>
|
|
471
|
-
</HStack>
|
|
472
|
-
<Text type="supporting" color="secondary">
|
|
473
|
-
Can't find something? Ask and someone will point you to it.
|
|
474
|
-
</Text>
|
|
475
|
-
<HStack gap={2} wrap="wrap">
|
|
476
|
-
<Button
|
|
477
|
-
label="Ask a question"
|
|
478
|
-
variant="secondary"
|
|
479
|
-
icon={<Icon icon={ChatBubbleLeftRightIcon} />}
|
|
480
|
-
onClick={() =>
|
|
481
|
-
demo('Demo: a question form would open here.', 'ask')
|
|
482
|
-
}
|
|
483
|
-
/>
|
|
484
|
-
<Button
|
|
485
|
-
label="Report a problem"
|
|
486
|
-
variant="ghost"
|
|
487
|
-
icon={<Icon icon={WrenchScrewdriverIcon} />}
|
|
488
|
-
onClick={() =>
|
|
489
|
-
demo('Demo: a help desk ticket would start here.', 'ticket')
|
|
490
|
-
}
|
|
491
|
-
/>
|
|
492
|
-
</HStack>
|
|
493
|
-
</VStack>
|
|
494
|
-
</Card>
|
|
495
|
-
);
|
|
496
|
-
|
|
497
|
-
return (
|
|
498
|
-
<Layout
|
|
499
|
-
height="auto"
|
|
500
|
-
contentWidth={1200}
|
|
501
|
-
end={
|
|
502
|
-
isMobile ? undefined : (
|
|
503
|
-
<LayoutPanel
|
|
504
|
-
isScrollable={false}
|
|
505
|
-
label="Your shortcuts"
|
|
506
|
-
role="complementary"
|
|
507
|
-
style={railPanel}>
|
|
508
|
-
<VStack gap={6}>
|
|
509
|
-
{favoritesBlock}
|
|
510
|
-
<Divider />
|
|
511
|
-
{recentBlock}
|
|
512
|
-
<Divider />
|
|
513
|
-
{announcementsBlock}
|
|
514
|
-
{helpBlock}
|
|
515
|
-
</VStack>
|
|
516
|
-
</LayoutPanel>
|
|
517
|
-
)
|
|
518
|
-
}
|
|
519
|
-
content={
|
|
520
|
-
<LayoutContent isScrollable={false} padding={isMobile ? 4 : 8}>
|
|
521
|
-
<VStack gap={8}>
|
|
522
|
-
{header}
|
|
523
|
-
{isMobile && favoritesBlock}
|
|
524
|
-
{startHere}
|
|
525
|
-
{destinations}
|
|
526
|
-
{isMobile && (
|
|
527
|
-
<VStack gap={6}>
|
|
528
|
-
{recentBlock}
|
|
529
|
-
{announcementsBlock}
|
|
530
|
-
{helpBlock}
|
|
531
|
-
</VStack>
|
|
532
|
-
)}
|
|
533
|
-
</VStack>
|
|
534
|
-
</LayoutContent>
|
|
535
|
-
}
|
|
536
|
-
/>
|
|
537
|
-
);
|
|
538
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export const doc = {
|
|
5
|
-
type: 'page',
|
|
6
|
-
name: 'Welcome portal',
|
|
7
|
-
displayName: 'Welcome portal',
|
|
8
|
-
description:
|
|
9
|
-
'Employee intranet home: a greeting and a search box that narrows the sectioned grids of tool, team, learning and policy cards in place (with an empty state when nothing matches), and a "Start here" onboarding checklist where ticking a step updates the progress bar and Continue jumps to the next open step. A sticky side rail holds starred favorites, a sample recently visited list, dated announcements and a help card. On narrow screens the destination sections become collapsible and the rail\'s blocks move into the main column.',
|
|
10
|
-
keywords: [
|
|
11
|
-
'intranet',
|
|
12
|
-
'onboarding',
|
|
13
|
-
'checklist',
|
|
14
|
-
'new hire',
|
|
15
|
-
'self-service',
|
|
16
|
-
'favorites',
|
|
17
|
-
'shortcuts',
|
|
18
|
-
'announcements',
|
|
19
|
-
],
|
|
20
|
-
isReady: false,
|
|
21
|
-
icons: {
|
|
22
|
-
BanknotesIcon: 'money',
|
|
23
|
-
BookOpenIcon: 'book',
|
|
24
|
-
BuildingOfficeIcon: 'building',
|
|
25
|
-
CalendarDaysIcon: 'calendar',
|
|
26
|
-
ChatBubbleLeftRightIcon: 'conversation',
|
|
27
|
-
ClipboardDocumentCheckIcon: 'clipboard',
|
|
28
|
-
ComputerDesktopIcon: 'desktop',
|
|
29
|
-
InformationCircleIcon: 'info',
|
|
30
|
-
LightBulbIcon: 'lightbulb',
|
|
31
|
-
MagnifyingGlassIcon: 'search',
|
|
32
|
-
ShieldCheckIcon: 'shield',
|
|
33
|
-
StarIcon: 'star',
|
|
34
|
-
UserGroupIcon: 'users',
|
|
35
|
-
WrenchScrewdriverIcon: 'wrench',
|
|
36
|
-
},
|
|
37
|
-
category: 'Content - Portal',
|
|
38
|
-
};
|