Skip to content

Commit aaa6278

Browse files
committed
docs: point the table page to the page header
Where the create button goes now lives in the Layout page of the design system, which also covers pages with a title and no description. The pattern links to it instead of repeating the rule. Assisted-by: Claude Code:claude-opus-5.5
1 parent 43c9886 commit aaa6278

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎stories/PatternTablePage.stories.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const meta = {
167167
docs: {
168168
description: {
169169
component:
170-
'A page that lists objects in a table: the description of the page with the create button, the toolbar with search, filters and sorting, the table with the actions of each row and the paginator, and the loading and empty states. Without a description, the create button goes on the right of the toolbar, or above it on small screens. With no objects yet, the create button is only in the empty state. Its texts follow [Page header](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#page-header), [Table filters](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#table-filters) and [Empty states](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#empty-states) in the writing guidelines.'
170+
'A page that lists objects in a table: the description of the page with the create button, the toolbar with search, filters and sorting, the table with the actions of each row and the paginator, and the loading and empty states. Where the create button goes, with or without a title or a description, follows [Page header](https://nethesis.github.io/nebula-design-system/?page=layout#page-header) in the Layout page: this pattern shows it on the right of the description and, without a title or a description, in the toolbar. Its texts follow [Page header](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#page-header), [Table filters](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#table-filters) and [Empty states](https://nethesis.github.io/nebula-design-system/?page=writing-guidelines#empty-states) in the writing guidelines.'
171171
}
172172
}
173173
},
@@ -194,8 +194,8 @@ type Variant = 'table' | 'noItemsConfigured' | 'noItemsFound'
194194
// as controls; every label comes from the label set passed to renderTablePage().
195195
const tablePageTemplate = `<div>
196196
<!-- Description of the page, with the primary action on its right; on small screens the
197-
action goes after the description. Without a description, the action goes in the
198-
toolbar instead. With no contact yet, the action is only in the empty state, to keep
197+
action goes after the description. Without a title or a description, the action goes
198+
in the toolbar instead. With no contact yet, the action is only in the empty state, to keep
199199
one primary button in the page. -->
200200
<div v-if="withDescription" class="mb-8 grid gap-x-4 gap-y-2 sm:grid-cols-[1fr_auto] sm:items-center">
201201
<p class="max-w-2xl text-gray-600 dark:text-gray-400">
@@ -216,7 +216,7 @@ const tablePageTemplate = `<div>
216216
</div>
217217
<!-- table toolbar -->
218218
<div class="mb-6 flex flex-wrap items-center gap-4">
219-
<!-- without a description, the primary action: on its own row above the filters on small
219+
<!-- without a title or a description, the primary action: on its own row above the filters on small
220220
screens, on the right of the filters on large ones -->
221221
<div
222222
v-if="!withDescription && variant !== 'noItemsConfigured'"
@@ -454,7 +454,7 @@ export const NoItemsFound: Story = {
454454
render: renderTablePage(enLabels, 'noItemsFound')
455455
}
456456

457-
// A page without a description: the primary action moves to the toolbar
457+
// A page without a title or a description: the primary action moves to the toolbar
458458
export const WithoutDescription: Story = {
459459
name: 'Without description',
460460
args: { ariaLabel: 'Phonebook contacts' },

0 commit comments

Comments
 (0)