@umituz/web-dashboard 11.2.0 → 11.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-dashboard",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "Installable app skeleton for the fleet — layouts, analytics (dependency-free SVG charts), calendar, onboarding flow permissions/module registry; udb-* stylesheet on design-system tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -129,6 +129,11 @@ describe('ListPage', () => {
|
|
|
129
129
|
expect(screen.queryByText('Lobby Camera')).toBeNull();
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
+
it('renders the notice slot between header and toolbar', () => {
|
|
133
|
+
mount({ notice: <div role="alert">offline note</div> });
|
|
134
|
+
expect(screen.getByRole('alert').textContent).toBe('offline note');
|
|
135
|
+
});
|
|
136
|
+
|
|
132
137
|
it('honours label overrides', () => {
|
|
133
138
|
mount({
|
|
134
139
|
search: { terms: (row) => row.name },
|
|
@@ -22,6 +22,7 @@ export function ListPage<T>({
|
|
|
22
22
|
kicker,
|
|
23
23
|
meta,
|
|
24
24
|
actions,
|
|
25
|
+
notice,
|
|
25
26
|
data,
|
|
26
27
|
columns,
|
|
27
28
|
search,
|
|
@@ -67,6 +68,8 @@ export function ListPage<T>({
|
|
|
67
68
|
actions={actions}
|
|
68
69
|
/>
|
|
69
70
|
|
|
71
|
+
{notice}
|
|
72
|
+
|
|
70
73
|
{hasToolbar && (
|
|
71
74
|
<FilterBar
|
|
72
75
|
search={
|