@cosmicdrift/kumiko-renderer-web 0.122.4 → 0.122.5
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": "@cosmicdrift/kumiko-renderer-web",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.5",
|
|
4
4
|
"description": "Web-platform bindings for @cosmicdrift/kumiko-renderer. HTML default-primitives, browser history-based navigation, EventSource-backed live events, and a one-call createKumikoApp that mounts the whole stack via react-dom.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"./styles.css": "./src/styles.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.122.
|
|
20
|
-
"@cosmicdrift/kumiko-headless": "0.122.
|
|
21
|
-
"@cosmicdrift/kumiko-renderer": "0.122.
|
|
19
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.122.5",
|
|
20
|
+
"@cosmicdrift/kumiko-headless": "0.122.5",
|
|
21
|
+
"@cosmicdrift/kumiko-renderer": "0.122.5",
|
|
22
22
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
23
23
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
24
24
|
"@radix-ui/react-label": "^2.1.8",
|
|
@@ -224,6 +224,23 @@ describe("NavTree", () => {
|
|
|
224
224
|
expect(container.querySelectorAll("svg").length).toBe(2);
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
+
test("tag + key (custom-fields / api-tokens) lösen auf ein Icon auf", () => {
|
|
228
|
+
const schema = {
|
|
229
|
+
featureName: "showcase",
|
|
230
|
+
entities: {},
|
|
231
|
+
screens: [
|
|
232
|
+
{ id: "fields", type: "entityList", entity: "x", columns: [] },
|
|
233
|
+
{ id: "tokens", type: "entityList", entity: "x", columns: [] },
|
|
234
|
+
],
|
|
235
|
+
navs: [
|
|
236
|
+
{ id: "fields", label: "Felder", screen: "fields", order: 10, icon: "tag" },
|
|
237
|
+
{ id: "tokens", label: "Tokens", screen: "tokens", order: 20, icon: "key" },
|
|
238
|
+
],
|
|
239
|
+
} as FeatureSchema;
|
|
240
|
+
const { container } = render(<NavTree schema={schema} />);
|
|
241
|
+
expect(container.querySelectorAll("svg").length).toBe(2);
|
|
242
|
+
});
|
|
243
|
+
|
|
227
244
|
test("unbekannter icon-Key fällt sauber auf den Dot zurück (kein svg)", () => {
|
|
228
245
|
const schema = {
|
|
229
246
|
featureName: "showcase",
|
package/src/layout/nav-tree.tsx
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
Folder,
|
|
38
38
|
Gauge,
|
|
39
39
|
Home,
|
|
40
|
+
KeyRound,
|
|
40
41
|
Layers,
|
|
41
42
|
LayoutDashboard,
|
|
42
43
|
LineChart,
|
|
@@ -49,6 +50,7 @@ import {
|
|
|
49
50
|
Shield,
|
|
50
51
|
Sparkles,
|
|
51
52
|
Table,
|
|
53
|
+
Tag,
|
|
52
54
|
TrendingUp,
|
|
53
55
|
User,
|
|
54
56
|
Users,
|
|
@@ -115,6 +117,8 @@ const NAV_ICONS: Readonly<Record<string, typeof Folder>> = {
|
|
|
115
117
|
users: Users,
|
|
116
118
|
user: User,
|
|
117
119
|
search: Search,
|
|
120
|
+
tag: Tag,
|
|
121
|
+
key: KeyRound,
|
|
118
122
|
};
|
|
119
123
|
|
|
120
124
|
export type NavTreeProps = {
|