@nvidia/foundations-css 0.0.0-stage → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/LICENSE.md +203 -0
- package/NOTICE.md +62 -0
- package/README.md +61 -2
- package/dist/base/a11y.css +1 -0
- package/dist/base/all.js +1225 -0
- package/dist/base/anchor.css +1 -0
- package/dist/base/base-external.css +15 -0
- package/dist/base/base-for-aem-only.css +15 -0
- package/dist/base/base.css +15 -0
- package/dist/base/fonts-external.css +1 -0
- package/dist/base/fonts.css +1 -0
- package/dist/base/icons.css +15 -0
- package/dist/base/motion.css +1 -0
- package/dist/base/reset.css +1 -0
- package/dist/base/theme-dark.css +1 -0
- package/dist/base/theme-density.css +1 -0
- package/dist/base/theme-light.css +1 -0
- package/dist/base/theme-only-dark.css +1 -0
- package/dist/base/top-layer-reset.css +1 -0
- package/dist/base/variables.css +1 -0
- package/dist/components/accordion.css +1 -0
- package/dist/components/all.css +1 -0
- package/dist/components/all.js +16789 -0
- package/dist/components/anchor.css +1 -0
- package/dist/components/animated-chevron.css +1 -0
- package/dist/components/app-bar.css +1 -0
- package/dist/components/attachment.css +1 -0
- package/dist/components/audio.css +1 -0
- package/dist/components/autocomplete.css +1 -0
- package/dist/components/avatar-group.css +1 -0
- package/dist/components/avatar.css +1 -0
- package/dist/components/badge.css +1 -0
- package/dist/components/banner.css +1 -0
- package/dist/components/block.css +1 -0
- package/dist/components/breadcrumbs.css +1 -0
- package/dist/components/button.css +1 -0
- package/dist/components/card.css +1 -0
- package/dist/components/carousel.css +1 -0
- package/dist/components/chat-bubble.css +1 -0
- package/dist/components/checkbox.css +1 -0
- package/dist/components/code-snippet.css +1 -0
- package/dist/components/collapsible.css +1 -0
- package/dist/components/combobox.css +1 -0
- package/dist/components/command.css +1 -0
- package/dist/components/context-menu.css +1 -0
- package/dist/components/date-picker.css +1 -0
- package/dist/components/divider.css +1 -0
- package/dist/components/dropdown.css +1 -0
- package/dist/components/flex.css +1 -0
- package/dist/components/form-field.css +1 -0
- package/dist/components/grid-item.css +1 -0
- package/dist/components/grid.css +1 -0
- package/dist/components/group.css +1 -0
- package/dist/components/halo.css +1 -0
- package/dist/components/hero.css +1 -0
- package/dist/components/horizontal-nav.css +1 -0
- package/dist/components/hover-card.css +1 -0
- package/dist/components/inline-notice.css +1 -0
- package/dist/components/input-shell.css +1 -0
- package/dist/components/jump-nav.css +1 -0
- package/dist/components/kbd.css +1 -0
- package/dist/components/key-value-editor.css +1 -0
- package/dist/components/key-value-group.css +1 -0
- package/dist/components/label.css +1 -0
- package/dist/components/legend.css +1 -0
- package/dist/components/list.css +1 -0
- package/dist/components/menu-bar.css +1 -0
- package/dist/components/menu.css +1 -0
- package/dist/components/meter.css +1 -0
- package/dist/components/modal.css +1 -0
- package/dist/components/notification.css +1 -0
- package/dist/components/otp-input.css +1 -0
- package/dist/components/page-header.css +1 -0
- package/dist/components/pagination.css +1 -0
- package/dist/components/panel.css +1 -0
- package/dist/components/popover.css +1 -0
- package/dist/components/primitive.css +1 -0
- package/dist/components/progress-bar.css +1 -0
- package/dist/components/radio-group.css +1 -0
- package/dist/components/range-slider.css +1 -0
- package/dist/components/rating.css +1 -0
- package/dist/components/reaction-group.css +1 -0
- package/dist/components/resizable.css +1 -0
- package/dist/components/segmented-control.css +1 -0
- package/dist/components/segmented-meter.css +1 -0
- package/dist/components/select.css +1 -0
- package/dist/components/severity.css +1 -0
- package/dist/components/side-panel.css +1 -0
- package/dist/components/skeleton.css +1 -0
- package/dist/components/slider.css +1 -0
- package/dist/components/spinner.css +1 -0
- package/dist/components/status-indicator.css +1 -0
- package/dist/components/status-message.css +1 -0
- package/dist/components/stepper.css +1 -0
- package/dist/components/switch.css +1 -0
- package/dist/components/table.css +1 -0
- package/dist/components/tabs.css +1 -0
- package/dist/components/tag-group.css +1 -0
- package/dist/components/tag.css +1 -0
- package/dist/components/terminal-line.css +1 -0
- package/dist/components/text-area.css +1 -0
- package/dist/components/text-content.css +1 -0
- package/dist/components/text.css +1 -0
- package/dist/components/toast.css +1 -0
- package/dist/components/toaster.css +1 -0
- package/dist/components/toggle-button-group.css +1 -0
- package/dist/components/toggle-button.css +1 -0
- package/dist/components/tooltip.css +1 -0
- package/dist/components/tree-nav.css +1 -0
- package/dist/components/upload.css +1 -0
- package/dist/components/vertical-nav.css +1 -0
- package/dist/css-sizes.js +1289 -0
- package/dist/index.cjs +3049 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +3022 -0
- package/dist/plugins/tailwind-theme.css +505 -0
- package/dist/plugins/tailwind3-theme.js +683 -0
- package/dist/plugins/variables-sass.sass +415 -0
- package/dist/themes/kui11/_theme-selectors.css +1 -0
- package/dist/themes/kui11/accordion.css +1 -0
- package/dist/themes/kui11/app-bar.css +1 -0
- package/dist/themes/kui11/avatar.css +1 -0
- package/dist/themes/kui11/badge.css +1 -0
- package/dist/themes/kui11/banner.css +1 -0
- package/dist/themes/kui11/base.css +1 -0
- package/dist/themes/kui11/breadcrumbs.css +1 -0
- package/dist/themes/kui11/button.css +1 -0
- package/dist/themes/kui11/card.css +1 -0
- package/dist/themes/kui11/checkbox.css +1 -0
- package/dist/themes/kui11/components.css +1 -0
- package/dist/themes/kui11/date-picker.css +1 -0
- package/dist/themes/kui11/form-field.css +1 -0
- package/dist/themes/kui11/hero.css +1 -0
- package/dist/themes/kui11/horizontal-nav.css +1 -0
- package/dist/themes/kui11/input-shell.css +1 -0
- package/dist/themes/kui11/label.css +1 -0
- package/dist/themes/kui11/menu.css +1 -0
- package/dist/themes/kui11/modal.css +1 -0
- package/dist/themes/kui11/notification.css +1 -0
- package/dist/themes/kui11/page-header.css +1 -0
- package/dist/themes/kui11/pagination.css +1 -0
- package/dist/themes/kui11/popover.css +1 -0
- package/dist/themes/kui11/progress-bar.css +1 -0
- package/dist/themes/kui11/radio-group.css +1 -0
- package/dist/themes/kui11/range-slider.css +1 -0
- package/dist/themes/kui11/side-panel.css +1 -0
- package/dist/themes/kui11/slider.css +1 -0
- package/dist/themes/kui11/spinner.css +1 -0
- package/dist/themes/kui11/status-message.css +1 -0
- package/dist/themes/kui11/switch.css +1 -0
- package/dist/themes/kui11/table.css +1 -0
- package/dist/themes/kui11/tabs.css +1 -0
- package/dist/themes/kui11/tag.css +1 -0
- package/dist/themes/kui11/text-area.css +1 -0
- package/dist/themes/kui11/text-input.css +1 -0
- package/dist/themes/kui11/text.css +1 -0
- package/dist/themes/kui11/toast.css +1 -0
- package/dist/themes/kui11/tooltip.css +1 -0
- package/dist/themes/kui11/vertical-nav.css +1 -0
- package/dist/themes/kui11.base.css +1 -0
- package/dist/themes/kui11.base.js +935 -0
- package/dist/themes/kui11.components.css +1 -0
- package/dist/themes/kui11.components.js +2564 -0
- package/dist/themes/kui11.css +1 -0
- package/dist/themes/theme-partials.js +458 -0
- package/dist/utilities/all.js +442 -0
- package/dist/utilities/typography-utils.css +1 -0
- package/package.json +106 -3
- package/scripts/sync-skills.mjs +237 -0
- package/skills/kaizen-ui-html-css/SKILL.md +295 -0
- package/skills/kaizen-ui-html-css/assets/color-primitives-hex.md +141 -0
- package/skills/kaizen-ui-html-css/references/blocks/chat-input.md +94 -0
- package/skills/kaizen-ui-html-css/references/blocks/notification-center.md +320 -0
- package/skills/kaizen-ui-html-css/references/blocks/timeline.md +579 -0
- package/skills/kaizen-ui-html-css/references/components/Accordion.md +88 -0
- package/skills/kaizen-ui-html-css/references/components/Anchor.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/AnimatedChevron.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/AppBar.md +129 -0
- package/skills/kaizen-ui-html-css/references/components/Attachment.md +306 -0
- package/skills/kaizen-ui-html-css/references/components/Audio.md +21 -0
- package/skills/kaizen-ui-html-css/references/components/Autocomplete.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/Avatar.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/AvatarGroup.md +38 -0
- package/skills/kaizen-ui-html-css/references/components/Badge.md +121 -0
- package/skills/kaizen-ui-html-css/references/components/Banner.md +49 -0
- package/skills/kaizen-ui-html-css/references/components/Block.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/Breadcrumbs.md +42 -0
- package/skills/kaizen-ui-html-css/references/components/Button.md +43 -0
- package/skills/kaizen-ui-html-css/references/components/ButtonGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/Card.md +39 -0
- package/skills/kaizen-ui-html-css/references/components/Carousel.md +53 -0
- package/skills/kaizen-ui-html-css/references/components/ChatBubble.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/Checkbox.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/CodeSnippet.md +33 -0
- package/skills/kaizen-ui-html-css/references/components/Collapsible.md +56 -0
- package/skills/kaizen-ui-html-css/references/components/Combobox.md +66 -0
- package/skills/kaizen-ui-html-css/references/components/Command.md +100 -0
- package/skills/kaizen-ui-html-css/references/components/ContextMenu.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/DatePicker.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/Divider.md +77 -0
- package/skills/kaizen-ui-html-css/references/components/Dropdown.md +94 -0
- package/skills/kaizen-ui-html-css/references/components/Flex.md +33 -0
- package/skills/kaizen-ui-html-css/references/components/FormField.md +35 -0
- package/skills/kaizen-ui-html-css/references/components/Grid.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/Group.md +92 -0
- package/skills/kaizen-ui-html-css/references/components/Halo.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/Hero.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/HorizontalNav.md +34 -0
- package/skills/kaizen-ui-html-css/references/components/HoverCard.md +23 -0
- package/skills/kaizen-ui-html-css/references/components/Inline.md +49 -0
- package/skills/kaizen-ui-html-css/references/components/InlineNotice.md +96 -0
- package/skills/kaizen-ui-html-css/references/components/InputShell.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/JumpNav.md +36 -0
- package/skills/kaizen-ui-html-css/references/components/Kbd.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/KeyValueEditor.md +275 -0
- package/skills/kaizen-ui-html-css/references/components/KeyValueGroup.md +35 -0
- package/skills/kaizen-ui-html-css/references/components/Label.md +86 -0
- package/skills/kaizen-ui-html-css/references/components/Legend.md +148 -0
- package/skills/kaizen-ui-html-css/references/components/List.md +143 -0
- package/skills/kaizen-ui-html-css/references/components/Menu.md +103 -0
- package/skills/kaizen-ui-html-css/references/components/MenuBar.md +91 -0
- package/skills/kaizen-ui-html-css/references/components/Meter.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/Modal.md +60 -0
- package/skills/kaizen-ui-html-css/references/components/Notification.md +48 -0
- package/skills/kaizen-ui-html-css/references/components/NumberInput.md +15 -0
- package/skills/kaizen-ui-html-css/references/components/OtpInput.md +51 -0
- package/skills/kaizen-ui-html-css/references/components/PageHeader.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/Pagination.md +63 -0
- package/skills/kaizen-ui-html-css/references/components/Panel.md +133 -0
- package/skills/kaizen-ui-html-css/references/components/Popover.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/ProgressBar.md +187 -0
- package/skills/kaizen-ui-html-css/references/components/RadioGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/RangeSlider.md +62 -0
- package/skills/kaizen-ui-html-css/references/components/Rating.md +69 -0
- package/skills/kaizen-ui-html-css/references/components/ReactionGroup.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/Resizable.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/SegmentedControl.md +36 -0
- package/skills/kaizen-ui-html-css/references/components/SegmentedMeter.md +200 -0
- package/skills/kaizen-ui-html-css/references/components/Select.md +39 -0
- package/skills/kaizen-ui-html-css/references/components/Severity.md +25 -0
- package/skills/kaizen-ui-html-css/references/components/SidePanel.md +42 -0
- package/skills/kaizen-ui-html-css/references/components/Skeleton.md +24 -0
- package/skills/kaizen-ui-html-css/references/components/Slider.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/Spinner.md +63 -0
- package/skills/kaizen-ui-html-css/references/components/Stack.md +17 -0
- package/skills/kaizen-ui-html-css/references/components/StatusIndicator.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/StatusMessage.md +78 -0
- package/skills/kaizen-ui-html-css/references/components/Stepper.md +57 -0
- package/skills/kaizen-ui-html-css/references/components/Switch.md +96 -0
- package/skills/kaizen-ui-html-css/references/components/Table.md +566 -0
- package/skills/kaizen-ui-html-css/references/components/Tabs.md +67 -0
- package/skills/kaizen-ui-html-css/references/components/Tag.md +194 -0
- package/skills/kaizen-ui-html-css/references/components/TagGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/TerminalLine.md +69 -0
- package/skills/kaizen-ui-html-css/references/components/Text.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/TextArea.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/TextContent.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/TextInput.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/TimeInput.md +17 -0
- package/skills/kaizen-ui-html-css/references/components/Toast.md +41 -0
- package/skills/kaizen-ui-html-css/references/components/Toaster.md +19 -0
- package/skills/kaizen-ui-html-css/references/components/ToggleButton.md +47 -0
- package/skills/kaizen-ui-html-css/references/components/ToggleButtonGroup.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/Tooltip.md +45 -0
- package/skills/kaizen-ui-html-css/references/components/TreeNav.md +58 -0
- package/skills/kaizen-ui-html-css/references/components/Upload.md +90 -0
- package/skills/kaizen-ui-html-css/references/components/VerticalNav.md +65 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/CHART_DATA_COLORS.md +56 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/COLORS.md +148 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/COLOR_PRIMITIVES.md +31 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/EFFECTS_AND_LAYOUT.md +50 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/SPACING_SCALE.md +36 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/TYPOGRAPHY.md +44 -0
- package/skills/kaizen-ui-html-css/references/guides/CONFIGURATION.md +42 -0
- package/skills/kaizen-ui-html-css/references/guides/HTML_STRUCTURE.md +134 -0
- package/skills/kaizen-ui-html-css/references/patterns/activity-feed.md +132 -0
- package/skills/kaizen-ui-html-css/references/patterns/confirmations.md +133 -0
- package/skills/kaizen-ui-html-css/references/patterns/data-display.md +127 -0
- package/skills/kaizen-ui-html-css/references/patterns/data-visualization.md +73 -0
- package/skills/kaizen-ui-html-css/references/patterns/element-visibility.md +83 -0
- package/skills/kaizen-ui-html-css/references/patterns/empty-states.md +116 -0
- package/skills/kaizen-ui-html-css/references/patterns/entity-cards.md +172 -0
- package/skills/kaizen-ui-html-css/references/patterns/error-states.md +163 -0
- package/skills/kaizen-ui-html-css/references/patterns/feedback.md +77 -0
- package/skills/kaizen-ui-html-css/references/patterns/filters.md +167 -0
- package/skills/kaizen-ui-html-css/references/patterns/forms.md +215 -0
- package/skills/kaizen-ui-html-css/references/patterns/key-value-display.md +195 -0
- package/skills/kaizen-ui-html-css/references/patterns/loading.md +104 -0
- package/skills/kaizen-ui-html-css/references/patterns/navigation.md +154 -0
- package/skills/kaizen-ui-html-css/references/patterns/ranked-lists.md +60 -0
- package/skills/kaizen-ui-html-css/references/patterns/search.md +46 -0
- package/skills/kaizen-ui-html-css/references/patterns/settings.md +106 -0
- package/skills/kaizen-ui-html-css/references/patterns/stat-blocks.md +71 -0
- package/skills/kaizen-ui-html-css/references/templates/browse-page.md +92 -0
- package/skills/kaizen-ui-html-css/references/templates/dashboard.md +356 -0
- package/skills/kaizen-ui-html-css/references/templates/detail-page.md +424 -0
- package/skills/kaizen-ui-html-css/references/templates/detail-placement.md +68 -0
- package/skills/kaizen-ui-html-css/references/templates/error-page.md +82 -0
- package/skills/kaizen-ui-html-css/references/templates/form-page.md +256 -0
- package/skills/kaizen-ui-html-css/references/templates/layout-principles.md +152 -0
- package/skills/kaizen-ui-html-css/references/templates/list-view.md +229 -0
- package/skills/kaizen-ui-html-css/references/templates/page-modification.md +33 -0
- package/skills/kaizen-ui-html-css/references/templates/page-shell.md +225 -0
- package/skills/kaizen-ui-html-css/references/templates/workspace-page.md +427 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
# Detail Page (Template Reference)
|
|
2
|
+
|
|
3
|
+
For pages that display an entity's current state/information.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
Refer to [detail-placement.md](./detail-placement.md) to determine if you need a standalone detail page, a side panel, or both.
|
|
8
|
+
|
|
9
|
+
In general, use a detail page when:
|
|
10
|
+
|
|
11
|
+
- URL represents a single entity (e.g., `/{entity-type}/{id}`)
|
|
12
|
+
- Primary user intent is understanding current state
|
|
13
|
+
- Content is read-only or mostly read-only
|
|
14
|
+
|
|
15
|
+
## Content Layout
|
|
16
|
+
|
|
17
|
+
Once you've decided the entity warrants a standalone page, the next decision is _how to lay out the page body_. This is a **content-driven decision**, not a template choice.
|
|
18
|
+
|
|
19
|
+
Detail pages use the 80rem (1280px) maximum width from the shared page shell.
|
|
20
|
+
|
|
21
|
+
### Layout signals
|
|
22
|
+
|
|
23
|
+
| Signal | Favors multi-column | Favors single-column / stacked grid |
|
|
24
|
+
| ----------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
25
|
+
| **Content types on the page** | Heterogeneous — primary editable data + metadata + status + summaries belong in spatially distinct regions | Homogeneous — all metadata, all identity, or all similar-weight sections |
|
|
26
|
+
| **Content volume** | Enough content to fill both columns without forced emptiness | Sparse (~10 or fewer flat fields) or one section clearly dominates |
|
|
27
|
+
| **Viewport use** | Content would otherwise leave significant whitespace at ≥1024px | Content fits comfortably stacked without awkward gaps |
|
|
28
|
+
| **Scan pattern** | Parallel scanning aids comprehension (user compares primary to metadata) | Sequential / single-path reading |
|
|
29
|
+
|
|
30
|
+
**When the signals are mixed, default to stacked with a responsive grid.** Forcing columns onto ambiguous content is a more visible failure than stacking content that could have worked in columns.
|
|
31
|
+
|
|
32
|
+
### Two valid layout patterns
|
|
33
|
+
|
|
34
|
+
#### Pattern A — Stacked / responsive grid (default for KV-heavy bodies)
|
|
35
|
+
|
|
36
|
+
Use when content is homogeneous (mostly identity + light state), the entity is sparse, or one section clearly dominates.
|
|
37
|
+
|
|
38
|
+
Single column with a responsive KV grid. Group content by section with headings.
|
|
39
|
+
|
|
40
|
+
#### Pattern B — Two-column (primary / secondary)
|
|
41
|
+
|
|
42
|
+
Use when there's a clearly dominant "primary" section (core function, active workload, heavy data) and a distinct secondary section (metadata, configuration, reference). Content types are **heterogeneous** — typically a chart, diagram, transcript, or workflow on the primary side and a metadata/config sidebar on the secondary side.
|
|
43
|
+
|
|
44
|
+
**Check content balance before committing.** Pattern B assumes the primary column holds the _heaviest_ content. If, after sketching the page, the right (secondary) column accumulates more sections than the left, the assumption is wrong — either rebalance the content map, or use Pattern A.
|
|
45
|
+
|
|
46
|
+
### Tabbed views
|
|
47
|
+
|
|
48
|
+
Use tabs when the page has 2+ distinct content categories that each warrant their own view and require different mental models. Place the tab pattern above the primary content.
|
|
49
|
+
|
|
50
|
+
**Containment of tab content.** Tabs do **not** add containment. Content inside each tab adopts whatever containment its content type normally uses:
|
|
51
|
+
|
|
52
|
+
- A KV grid → no container, headings + spacing only
|
|
53
|
+
- A table → renders directly inside the tab area; do **not** add a redundant container
|
|
54
|
+
- A chart widget → use one labeled visual container
|
|
55
|
+
|
|
56
|
+
## Status surfacing — default + fallback patterns
|
|
57
|
+
|
|
58
|
+
Detail pages have two distinct status surfaces, and they answer different questions:
|
|
59
|
+
|
|
60
|
+
| Surface | What it answers | Pattern |
|
|
61
|
+
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------- |
|
|
62
|
+
| **Entity's primary status** ("is this thing OK?") | The single semantic state — Healthy, Degraded, Pending, Active, Failed | **Badge inline with the page heading** |
|
|
63
|
+
| **Live operational metrics** ("what's it doing right now?") | Short-lived, frequently-changing measurements — utilization, allocation, freshness, last-updated | **Mini-tile grid** below the page heading |
|
|
64
|
+
|
|
65
|
+
**Default detail-page status surface = heading Badge + mini-tile grid.** Use both unless the entity has neither a meaningful primary status nor operational metrics to surface.
|
|
66
|
+
|
|
67
|
+
### Why both, not one or the other
|
|
68
|
+
|
|
69
|
+
The primary status is _categorical and semantic_. It belongs with the heading because it qualifies the entity name (the user reads "dfw-hgx-h100-prod, **Degraded**" as a single phrase about identity). The mini-tile grid is _quantitative and operational_ — the metrics the user scans before acting.
|
|
70
|
+
|
|
71
|
+
### Mini-tile composition (required when surface is used)
|
|
72
|
+
|
|
73
|
+
Each mini-tile uses a 3-line composition: metric label / value (with optional denominator) / supporting context. The supporting context line is **required** — it tells the user how to interpret the value (temporal scope, denominators, salient identifiers).
|
|
74
|
+
|
|
75
|
+
See [data-display.md](../patterns/data-display.md) for tile typography. Detail-page-specific composition: arrange tiles in a responsive CSS Grid row that starts at one column and adds columns as space permits. For five tiles, target two columns around 36rem, three around 48rem, and five around 62rem while keeping every tile readable.
|
|
76
|
+
|
|
77
|
+
### Sparse-entity fallback
|
|
78
|
+
|
|
79
|
+
If the entity has neither a meaningful primary status nor enough metrics to fill 3+ tiles, fall back to **inline KV fields** within the body — render `Status` as one field among several.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Regions — composable building blocks
|
|
84
|
+
|
|
85
|
+
### Identity (mandatory)
|
|
86
|
+
|
|
87
|
+
Use [PageHeader](../components/PageHeader.md) for identity. Place breadcrumbs with the heading; never use a standalone Back button.
|
|
88
|
+
|
|
89
|
+
Detail pages use the default (non-floating) page header container and put the breadcrumb `nav` first inside `nv-page-header-content`.
|
|
90
|
+
|
|
91
|
+
**Primary action styling:** use the [Button](../components/Button.md) brand treatment for positive actions such as Edit, Deploy, Save, and Run. Use the danger treatment plus the [confirmation pattern](../patterns/confirmations.md) for destructive actions.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Content hierarchy heuristic
|
|
96
|
+
|
|
97
|
+
Assign content by asking: **What question does this field answer?**
|
|
98
|
+
|
|
99
|
+
| Question | Where it goes | Prominence |
|
|
100
|
+
| ------------------------ | ------------------------------------------------------------------------------------- | ------------------------------------------------- |
|
|
101
|
+
| Is it working? | Status-surfacing pattern (badge in header / mini-tile grid / inline KV badge) | Visually distinct via `Badge` with semantic color |
|
|
102
|
+
| What does it do? | Primary section (Pattern A top section or Pattern B primary column) | Most space |
|
|
103
|
+
| Where does it run? | Secondary section (Pattern A sibling section or Pattern B secondary column) | Supporting context |
|
|
104
|
+
| What limits apply? | Secondary section | Reference info |
|
|
105
|
+
| Details I rarely need? | Collapsed section | Revealed on demand |
|
|
106
|
+
| What happened over time? | Separate tab. Refer to [activity-feed.md](../patterns/activity-feed.md) for guidance. | Logs, history, events |
|
|
107
|
+
|
|
108
|
+
## HTML and CSS examples
|
|
109
|
+
|
|
110
|
+
### Stacked detail
|
|
111
|
+
|
|
112
|
+
Default detail-page body for KV-heavy entities. Outer shell is owned by layout-principles.md.
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-2xl">
|
|
116
|
+
<header class="nv-page-header-root">
|
|
117
|
+
<div class="nv-page-header-container">
|
|
118
|
+
<div class="nv-page-header-content">
|
|
119
|
+
<nav aria-label="Breadcrumb">
|
|
120
|
+
<ol class="nv-breadcrumbs-root">
|
|
121
|
+
<li class="nv-breadcrumbs-item">
|
|
122
|
+
<a href="/">Home</a>
|
|
123
|
+
<span class="nv-breadcrumbs-separator" aria-hidden="true">
|
|
124
|
+
<i class="nv-icon nv-icon-chevron-right"></i>
|
|
125
|
+
</span>
|
|
126
|
+
</li>
|
|
127
|
+
<li class="nv-breadcrumbs-item">
|
|
128
|
+
<a href="/clusters">Clusters</a>
|
|
129
|
+
<span class="nv-breadcrumbs-separator" aria-hidden="true">
|
|
130
|
+
<i class="nv-icon nv-icon-chevron-right"></i>
|
|
131
|
+
</span>
|
|
132
|
+
</li>
|
|
133
|
+
<li class="nv-breadcrumbs-item nv-breadcrumbs-item--active" aria-current="page">dfw-hgx-h100-prod</li>
|
|
134
|
+
</ol>
|
|
135
|
+
</nav>
|
|
136
|
+
<div class="nv-page-header-header">
|
|
137
|
+
<div class="nv-page-header-heading">
|
|
138
|
+
<div class="nv-flex nv-flex--align-center nv-primitive--gap-density-md">
|
|
139
|
+
<h1>dfw-hgx-h100-prod</h1>
|
|
140
|
+
<span class="nv-badge nv-badge--kind-solid nv-badge--color-yellow">Degraded</span>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<p class="nv-page-header-description">
|
|
144
|
+
<span style="color: var(--text-color-secondary)">Production H100 inference cluster — DFW region.</span>
|
|
145
|
+
</p>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="nv-page-header-footer">
|
|
149
|
+
<button type="button" class="nv-button nv-button--kind-tertiary">Edit</button>
|
|
150
|
+
<button type="button" class="nv-button nv-button--kind-primary nv-button--color-brand">Deploy</button>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</header>
|
|
154
|
+
|
|
155
|
+
<div class="nv-grid nv-primitive--gap-density-2xl" style="grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr))">
|
|
156
|
+
<section class="nv-panel-root nv-panel-root--elevation-high nv-panel-root--shadow" style="padding: var(--spacing-density-xl)">
|
|
157
|
+
<div class="nv-panel-content">
|
|
158
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
159
|
+
<span class="nv-text nv-text--body-regular-sm">Utilization</span>
|
|
160
|
+
<span class="nv-text nv-text--label-semibold-2xl">88%</span>
|
|
161
|
+
<span class="nv-text nv-text--body-regular-sm" style="color: var(--text-color-secondary)">Last 1hr average</span>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</section>
|
|
165
|
+
<section class="nv-panel-root nv-panel-root--elevation-high nv-panel-root--shadow" style="padding: var(--spacing-density-xl)">
|
|
166
|
+
<div class="nv-panel-content">
|
|
167
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
168
|
+
<span class="nv-text nv-text--body-regular-sm">Allocated GPUs</span>
|
|
169
|
+
<span class="nv-text nv-text--label-semibold-2xl">428 / 512</span>
|
|
170
|
+
<span class="nv-text nv-text--body-regular-sm" style="color: var(--text-color-secondary)">84 free</span>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</section>
|
|
174
|
+
<section class="nv-panel-root nv-panel-root--elevation-high nv-panel-root--shadow" style="padding: var(--spacing-density-xl)">
|
|
175
|
+
<div class="nv-panel-content">
|
|
176
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
177
|
+
<span class="nv-text nv-text--body-regular-sm">Healthy nodes</span>
|
|
178
|
+
<span class="nv-text nv-text--label-semibold-2xl">62 / 64</span>
|
|
179
|
+
<span class="nv-text nv-text--body-regular-sm" style="color: var(--text-color-secondary)">2 in maintenance</span>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</section>
|
|
183
|
+
<section class="nv-panel-root nv-panel-root--elevation-high nv-panel-root--shadow" style="padding: var(--spacing-density-xl)">
|
|
184
|
+
<div class="nv-panel-content">
|
|
185
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
186
|
+
<span class="nv-text nv-text--body-regular-sm">Active requests</span>
|
|
187
|
+
<span class="nv-text nv-text--label-semibold-2xl">7</span>
|
|
188
|
+
<span class="nv-text nv-text--body-regular-sm" style="color: var(--text-color-secondary)">REQ-1024, REQ-1025, …</span>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</section>
|
|
192
|
+
<section class="nv-panel-root nv-panel-root--elevation-high nv-panel-root--shadow" style="padding: var(--spacing-density-xl)">
|
|
193
|
+
<div class="nv-panel-content">
|
|
194
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
195
|
+
<span class="nv-text nv-text--body-regular-sm">Last metric</span>
|
|
196
|
+
<span class="nv-text nv-text--label-semibold-2xl">12s ago</span>
|
|
197
|
+
<span class="nv-text nv-text--body-regular-sm" style="color: var(--text-color-secondary)">Inside trust window</span>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</section>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<div class="nv-tabs-root">
|
|
204
|
+
<div class="nv-tabs-list nv-tabs-list--kind-primary" role="tablist">
|
|
205
|
+
<div class="nv-tabs-scroll-container">
|
|
206
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="true" tabindex="0" data-active>
|
|
207
|
+
<span class="nv-tabs-trigger-visible">Overview</span>
|
|
208
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Overview</span>
|
|
209
|
+
</button>
|
|
210
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="false" tabindex="-1">
|
|
211
|
+
<span class="nv-tabs-trigger-visible">Events</span>
|
|
212
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Events</span>
|
|
213
|
+
</button>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-3xl">
|
|
219
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xl">
|
|
220
|
+
<span class="nv-text nv-text--body-bold-lg">Cluster information</span>
|
|
221
|
+
<div class="nv-grid nv-primitive--gap-density-2xl" style="grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr))">
|
|
222
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
223
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Region</span>
|
|
224
|
+
<span class="nv-text nv-text--body-semibold-md">us-east-1</span>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
227
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">GPU type</span>
|
|
228
|
+
<span class="nv-text nv-text--body-semibold-md">H100 80GB SXM5</span>
|
|
229
|
+
</div>
|
|
230
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
231
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Nodes</span>
|
|
232
|
+
<span class="nv-text nv-text--body-semibold-md">64</span>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
235
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Owner</span>
|
|
236
|
+
<span class="nv-text nv-text--body-semibold-md">Inference platform</span>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
239
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Network</span>
|
|
240
|
+
<span class="nv-text nv-text--body-semibold-md">InfiniBand HDR</span>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
243
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Storage</span>
|
|
244
|
+
<span class="nv-text nv-text--body-semibold-md">DDN EXAScaler</span>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xl">
|
|
249
|
+
<span class="nv-text nv-text--body-bold-lg">Scheduling & lifecycle</span>
|
|
250
|
+
<div class="nv-grid nv-primitive--gap-density-2xl" style="grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr))">
|
|
251
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
252
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Scheduler</span>
|
|
253
|
+
<span class="nv-text nv-text--body-semibold-md">Slurm 23.11</span>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
256
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Default QoS</span>
|
|
257
|
+
<span class="nv-text nv-text--body-semibold-md">normal</span>
|
|
258
|
+
</div>
|
|
259
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
260
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Max walltime</span>
|
|
261
|
+
<span class="nv-text nv-text--body-semibold-md">7 days</span>
|
|
262
|
+
</div>
|
|
263
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
264
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Job concurrency</span>
|
|
265
|
+
<span class="nv-text nv-text--body-semibold-md">32</span>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
268
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Allocation policy</span>
|
|
269
|
+
<span class="nv-text nv-text--body-semibold-md">Fair share</span>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-xs">
|
|
272
|
+
<span class="nv-text nv-text--label-regular-sm" style="color: var(--text-color-secondary)">Created</span>
|
|
273
|
+
<span class="nv-text nv-text--body-semibold-md">Aug 14, 2023</span>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Two-column detail
|
|
282
|
+
|
|
283
|
+
```html
|
|
284
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-2xl">
|
|
285
|
+
<style>
|
|
286
|
+
.detail-page-columns {
|
|
287
|
+
grid-template-columns: 1fr;
|
|
288
|
+
justify-content: center;
|
|
289
|
+
}
|
|
290
|
+
@media (min-width: 992px) {
|
|
291
|
+
.detail-page-columns {
|
|
292
|
+
grid-template-columns: minmax(0, 954px) 302px;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
</style>
|
|
296
|
+
<header class="nv-page-header-root">
|
|
297
|
+
<div class="nv-page-header-container">
|
|
298
|
+
<div class="nv-page-header-content">
|
|
299
|
+
<nav aria-label="Breadcrumb">
|
|
300
|
+
<ol class="nv-breadcrumbs-root">
|
|
301
|
+
<li class="nv-breadcrumbs-item">
|
|
302
|
+
<a href="/">Home</a>
|
|
303
|
+
<span class="nv-breadcrumbs-separator" aria-hidden="true">
|
|
304
|
+
<i class="nv-icon nv-icon-chevron-right"></i>
|
|
305
|
+
</span>
|
|
306
|
+
</li>
|
|
307
|
+
<li class="nv-breadcrumbs-item">
|
|
308
|
+
<a href="/clusters">Clusters</a>
|
|
309
|
+
<span class="nv-breadcrumbs-separator" aria-hidden="true">
|
|
310
|
+
<i class="nv-icon nv-icon-chevron-right"></i>
|
|
311
|
+
</span>
|
|
312
|
+
</li>
|
|
313
|
+
<li class="nv-breadcrumbs-item nv-breadcrumbs-item--active" aria-current="page">dfw-hgx-h100-prod</li>
|
|
314
|
+
</ol>
|
|
315
|
+
</nav>
|
|
316
|
+
<div class="nv-page-header-header">
|
|
317
|
+
<div class="nv-page-header-heading">
|
|
318
|
+
<div class="nv-flex nv-flex--align-center nv-primitive--gap-density-lg">
|
|
319
|
+
<h1>dfw-hgx-h100-prod</h1>
|
|
320
|
+
<span class="nv-badge nv-badge--kind-solid nv-badge--color-yellow">Degraded</span>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="nv-page-header-footer">
|
|
326
|
+
<button type="button" class="nv-button nv-button--kind-tertiary">Edit</button>
|
|
327
|
+
<button type="button" class="nv-button nv-button--kind-primary nv-button--color-brand">Deploy</button>
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</header>
|
|
331
|
+
<div class="nv-tabs-root">
|
|
332
|
+
<div class="nv-tabs-list nv-tabs-list--kind-primary" role="tablist">
|
|
333
|
+
<div class="nv-tabs-scroll-container">
|
|
334
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="true" tabindex="0" data-active>
|
|
335
|
+
<span class="nv-tabs-trigger-visible">Overview</span>
|
|
336
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Overview</span>
|
|
337
|
+
</button>
|
|
338
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="false" tabindex="-1">
|
|
339
|
+
<span class="nv-tabs-trigger-visible">Nodes</span>
|
|
340
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Nodes</span>
|
|
341
|
+
</button>
|
|
342
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="false" tabindex="-1">
|
|
343
|
+
<span class="nv-tabs-trigger-visible">Allocations</span>
|
|
344
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Allocations</span>
|
|
345
|
+
</button>
|
|
346
|
+
<button type="button" class="nv-tabs-trigger" role="tab" aria-selected="false" tabindex="-1">
|
|
347
|
+
<span class="nv-tabs-trigger-visible">Events</span>
|
|
348
|
+
<span class="nv-tabs-trigger-invisible" aria-hidden="true">Events</span>
|
|
349
|
+
</button>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
<div class="nv-grid nv-primitive--gap-density-2xl detail-page-columns">
|
|
354
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-3xl" style="min-inline-size: 0">
|
|
355
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
356
|
+
<span class="nv-text nv-text--body-bold-lg">Running PyTorch Using Docker</span>
|
|
357
|
+
<span class="nv-text nv-text--body-regular-md"
|
|
358
|
+
>Use this container when the workflow needs a supported PyTorch runtime with CUDA, NCCL, and common data-science libraries already configured.</span
|
|
359
|
+
>
|
|
360
|
+
</div>
|
|
361
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
362
|
+
<span class="nv-text nv-text--body-bold-lg">Before you start</span>
|
|
363
|
+
<span class="nv-text nv-text--body-regular-md"
|
|
364
|
+
>Verify Docker, NVIDIA Container Toolkit, and driver compatibility before running GPU workloads. Keep setup guidance in the primary column because it is part of the user's reading
|
|
365
|
+
flow.</span
|
|
366
|
+
>
|
|
367
|
+
</div>
|
|
368
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-lg">
|
|
369
|
+
<span class="nv-text nv-text--body-bold-lg">Example command</span>
|
|
370
|
+
<div class="nv-code-snippet-root nv-code-snippet-root--copy-inline" style="min-inline-size: 0; max-inline-size: 100%">
|
|
371
|
+
<div class="nv-code-snippet-code" style="min-inline-size: 0; max-inline-size: 100%">
|
|
372
|
+
<code style="white-space: nowrap"> docker run --gpus all --rm -it nvcr.io/nvidia/pytorch:24.06-py3 </code>
|
|
373
|
+
</div>
|
|
374
|
+
<button type="button" class="nv-button nv-button--kind-tertiary nv-button--size-small nv-code-snippet-copy-button nv-code-snippet-copy-button--inline" aria-label="Copy code">
|
|
375
|
+
<i class="nv-icon nv-icon-copy-generic" aria-hidden="true"></i>
|
|
376
|
+
</button>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
</div>
|
|
380
|
+
<aside style="inline-size: 100%">
|
|
381
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-2xl">
|
|
382
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-md">
|
|
383
|
+
<span class="nv-text nv-text--body-bold-md">Metadata</span>
|
|
384
|
+
<dl class="nv-key-value-group-root nv-key-value-group-root--orientation-vertical" data-orientation="vertical">
|
|
385
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
386
|
+
<dt class="nv-key-value-group-key">Publisher</dt>
|
|
387
|
+
<dd class="nv-key-value-group-value">NVIDIA</dd>
|
|
388
|
+
</div>
|
|
389
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
390
|
+
<dt class="nv-key-value-group-key">Version</dt>
|
|
391
|
+
<dd class="nv-key-value-group-value">24.06</dd>
|
|
392
|
+
</div>
|
|
393
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
394
|
+
<dt class="nv-key-value-group-key">Framework</dt>
|
|
395
|
+
<dd class="nv-key-value-group-value">PyTorch</dd>
|
|
396
|
+
</div>
|
|
397
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
398
|
+
<dt class="nv-key-value-group-key">Updated</dt>
|
|
399
|
+
<dd class="nv-key-value-group-value">Dec 31, 2345</dd>
|
|
400
|
+
</div>
|
|
401
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
402
|
+
<dt class="nv-key-value-group-key">License</dt>
|
|
403
|
+
<dd class="nv-key-value-group-value">Enterprise</dd>
|
|
404
|
+
</div>
|
|
405
|
+
<div class="nv-key-value-group-item nv-key-value-group-item--orientation-horizontal" data-orientation="horizontal">
|
|
406
|
+
<dt class="nv-key-value-group-key">Support</dt>
|
|
407
|
+
<dd class="nv-key-value-group-value">Included</dd>
|
|
408
|
+
</div>
|
|
409
|
+
</dl>
|
|
410
|
+
</div>
|
|
411
|
+
<div class="nv-flex nv-flex--direction-col nv-primitive--gap-density-md">
|
|
412
|
+
<span class="nv-text nv-text--body-bold-md">Tags</span>
|
|
413
|
+
<div class="nv-flex nv-flex--wrap-wrap nv-primitive--gap-density-md">
|
|
414
|
+
<span class="nv-tag nv-tag--kind-outline" data-readonly>Container</span>
|
|
415
|
+
<span class="nv-tag nv-tag--kind-outline" data-readonly>PyTorch</span>
|
|
416
|
+
<span class="nv-tag nv-tag--kind-outline" data-readonly>GPU</span>
|
|
417
|
+
<span class="nv-tag nv-tag--kind-outline" data-readonly>Docker</span>
|
|
418
|
+
</div>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
</aside>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Detail placement
|
|
2
|
+
|
|
3
|
+
Side panel, standalone page, or both.
|
|
4
|
+
|
|
5
|
+
A decision guide for where a single entity's detail lives in the IA. Answer two questions, read off the outcome, then follow only the section your outcome points to.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Step 1 — Does the detail outgrow a panel?
|
|
10
|
+
|
|
11
|
+
**Yes** if _any_ of these are true:
|
|
12
|
+
|
|
13
|
+
- Entity has **nested sub-resources** (child records, related entities, logs, events)
|
|
14
|
+
- Entity accumulates **history or activity** over time (status changes, comments, runs)
|
|
15
|
+
- Detail requires **complex inline actions** (multi-step forms, threaded comments, long-running workflows)
|
|
16
|
+
- Content needs **tabs** (e.g. Details / Logs / History)
|
|
17
|
+
- A **narrow viewport (< 720px)** is a primary target
|
|
18
|
+
|
|
19
|
+
Otherwise the content is **flat** (no sub-resources, no history, no tabs) and fits a panel.
|
|
20
|
+
|
|
21
|
+
## Step 2 — Is the entity consumed from a list?
|
|
22
|
+
|
|
23
|
+
**Yes** if _any_ of these are true:
|
|
24
|
+
|
|
25
|
+
- User reviews items **sequentially** from a list (triage, queue processing)
|
|
26
|
+
- User needs **list context while reviewing** (filters, position in queue, comparison across records)
|
|
27
|
+
- **Different personas** use the same entity at different depths
|
|
28
|
+
|
|
29
|
+
Otherwise the entity is reached directly (search, deep link, single record).
|
|
30
|
+
|
|
31
|
+
## Outcome
|
|
32
|
+
|
|
33
|
+
| | From a list — **No** | From a list — **Yes** |
|
|
34
|
+
| ------------------------ | ------------------------ | --------------------------------- |
|
|
35
|
+
| **Outgrows panel — No** | Standalone page (simple) | **Side panel only** |
|
|
36
|
+
| **Outgrows panel — Yes** | **Standalone page** | **Both** (progressive disclosure) |
|
|
37
|
+
|
|
38
|
+
If the signals are mixed or ambiguous, ask the user. Do not silently choose — the decision has lasting information-architecture consequences.
|
|
39
|
+
|
|
40
|
+
> The sections below apply **only if your outcome includes a side panel** (Side panel only or Both). If your outcome is a standalone page, you're done.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Progressive disclosure (panel → page)
|
|
45
|
+
|
|
46
|
+
Applies to the **Both** outcome.
|
|
47
|
+
|
|
48
|
+
1. **List row** — scannable summary: name, status, key attribute, timestamp.
|
|
49
|
+
2. **Side panel** — glanceable detail not in the list: full metadata, status context, operator actions. Opens as a right overlay without leaving the list; the list stays primary.
|
|
50
|
+
3. **Full page** — everything: complete history, activity thread, related entities, complex actions, tabs.
|
|
51
|
+
|
|
52
|
+
When both exist, the side panel must include a **"View full details"** link to the standalone page.
|
|
53
|
+
|
|
54
|
+
## What goes in the panel vs. the page
|
|
55
|
+
|
|
56
|
+
| Content | Side panel | Full page |
|
|
57
|
+
| -------------------------------------------- | ------------------ | -------------------- |
|
|
58
|
+
| Identity (name, ID, type) | ✓ | ✓ |
|
|
59
|
+
| Status + key timestamps | ✓ | ✓ (mini-tile grid) |
|
|
60
|
+
| Core metadata (team, requester, capacity) | ✓ | ✓ |
|
|
61
|
+
| Latest operator note or message | ✓ (most recent) | ✓ (full thread) |
|
|
62
|
+
| Status history / activity timeline | ✗ | ✓ |
|
|
63
|
+
| Actions (approve, decline, reply) | Quick actions only | Full action set |
|
|
64
|
+
| Related entities (linked cluster, inventory) | Link only | Inline or expandable |
|
|
65
|
+
| Collapsible configuration sections | ✗ | ✓ |
|
|
66
|
+
| Tabs (Details, Logs, History) | ✗ | ✓ |
|
|
67
|
+
|
|
68
|
+
**Rule of thumb:** "what is this and what's its current state?" → panel. "what happened, why, and what should I do about it?" → full page.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Error Page (Template Reference)
|
|
2
|
+
|
|
3
|
+
For full-page error states where the user cannot do anything on the requested route. Used for 404 (page not found), 500 (server error), 403 (forbidden), 401 (sign-in required), and similar terminal failures.
|
|
4
|
+
|
|
5
|
+
For non-full-page errors — region failures, page-level banners, inline validation, transient action failures — see [error-states.md](../patterns/error-states.md) → Decision 1 (scope). This layout is only for the **full-page** scope.
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- The route itself is invalid, gone, or inaccessible (404, 410)
|
|
10
|
+
- The user is not authorized to view the resource (403, 401)
|
|
11
|
+
- The server cannot serve any content for this route right now (500, 503, terminal outage)
|
|
12
|
+
- The user must leave this URL to recover — retry-in-place won't help
|
|
13
|
+
|
|
14
|
+
**Not for:**
|
|
15
|
+
|
|
16
|
+
- A panel or table that failed to load while the rest of the page works → [error-states.md](../patterns/error-states.md) Decision 1 → container-level
|
|
17
|
+
- A page-level outage where chrome and other regions remain functional → [error-states.md](../patterns/error-states.md) Decision 1 → page-level banner
|
|
18
|
+
- Form-field validation → [error-states.md](../patterns/error-states.md) Decision 1 → inline
|
|
19
|
+
- An action the user just initiated that failed → [error-states.md](../patterns/error-states.md) Decision 1 → transient
|
|
20
|
+
|
|
21
|
+
## Region rules
|
|
22
|
+
|
|
23
|
+
Error pages should still be rendered within the page shell.
|
|
24
|
+
|
|
25
|
+
### Main — centered both axes
|
|
26
|
+
|
|
27
|
+
Ensure content fills the remaining viewport vertically and centers in both axes. Cap the `StatusMessage` region at 640px.
|
|
28
|
+
|
|
29
|
+
## Anti-patterns (KUI-specific)
|
|
30
|
+
|
|
31
|
+
| Anti-pattern | Why it's wrong | Do this instead |
|
|
32
|
+
| -------------------------------- | ------------------------------------------------------- | -------------------------------------------------------------- |
|
|
33
|
+
| Standalone "Back" button | A loose button competes with the primary affordance | Use an inline home link, or one primary sign-in button for 401 |
|
|
34
|
+
| Search input on 403 or 5xx | Search won't change permissions or fix the server | Omit search on those variants |
|
|
35
|
+
| Auto-redirecting after N seconds | Users may not have read the message; takes control away | Static page; let the user choose |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Variants
|
|
40
|
+
|
|
41
|
+
| Status | Heading | Body | Primary action |
|
|
42
|
+
| ------ | -------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
|
|
43
|
+
| 404 | Page not found | The page you're looking for doesn't exist or has been moved. | Native "Back to home" link; search is optional |
|
|
44
|
+
| 403 | Access denied | You don't have permission to view this resource. Request access if you believe this is a mistake. | Native "Back to home" link |
|
|
45
|
+
| 401 | Sign in required | You need to be signed in to view this page. | Primary "Sign in" button |
|
|
46
|
+
| 500 | Something went wrong | We hit an unexpected error. Try again, and if the problem persists, contact support. | "Try again" button |
|
|
47
|
+
|
|
48
|
+
## HTML and CSS examples
|
|
49
|
+
|
|
50
|
+
### Page not found
|
|
51
|
+
|
|
52
|
+
Error-page body inside the stacked shell from layout-principles.md: centered status code and 640px status message, plus an optional 420px search input for 404-style discovery failures.
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<div class="nv-flex nv-flex--direction-col nv-flex--align-center nv-primitive--gap-density-2xl" style="inline-size: 100%">
|
|
56
|
+
<div class="nv-status-message-root" style="inline-size: 100%; max-inline-size: 640px">
|
|
57
|
+
<div class="nv-status-message-media">
|
|
58
|
+
<span style="color: var(--text-color-primary); font-weight: var(--font-weight-bold)">404</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="nv-status-message-header">
|
|
61
|
+
<div class="nv-status-message-heading">Page not found</div>
|
|
62
|
+
<div class="nv-status-message-subheading">
|
|
63
|
+
<span>
|
|
64
|
+
The page you were looking for could not be found.
|
|
65
|
+
<br />
|
|
66
|
+
You can return to the
|
|
67
|
+
<a href="/" class="nv-anchor">homepage</a>
|
|
68
|
+
, search, or
|
|
69
|
+
<a href="/help" class="nv-anchor">get help</a>
|
|
70
|
+
if you can't find what you're looking for.
|
|
71
|
+
</span>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<label class="nv-input-shell nv-text-input-root" style="inline-size: 100%; max-inline-size: 420px">
|
|
76
|
+
<svg viewBox="0 0 16 16" width="1em" height="1em" fill="none" aria-hidden="true">
|
|
77
|
+
<path fill="currentColor" d="M6.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M2 6.5a4.5 4.5 0 1 1 8.016 2.809l4.338 4.338-.707.707-4.338-4.338A4.5 4.5 0 0 1 2 6.5"></path>
|
|
78
|
+
</svg>
|
|
79
|
+
<input type="search" placeholder="Search..." aria-label="Search the site" />
|
|
80
|
+
</label>
|
|
81
|
+
</div>
|
|
82
|
+
```
|