@agents-inc/cli 0.74.11 → 0.74.13
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 +24 -0
- package/README.md +3 -3
- package/dist/{chunk-NA6I5P5P.js → chunk-2PZ7LBFT.js} +1 -3
- package/dist/chunk-2PZ7LBFT.js.map +1 -0
- package/dist/{chunk-VILTRTBT.js → chunk-2YFC7IJ6.js} +4 -4
- package/dist/chunk-2YFC7IJ6.js.map +1 -0
- package/dist/{chunk-C6YLN4AW.js → chunk-4EPFKZB5.js} +18 -58
- package/dist/chunk-4EPFKZB5.js.map +1 -0
- package/dist/{chunk-2EXAK22V.js → chunk-6W4H2K3Z.js} +86 -55
- package/dist/chunk-6W4H2K3Z.js.map +1 -0
- package/dist/{chunk-M5IAGR5Z.js → chunk-746DCNGM.js} +3 -3
- package/dist/{chunk-TPXDHJDB.js → chunk-7Q6RMYR3.js} +3 -3
- package/dist/chunk-7Q6RMYR3.js.map +1 -0
- package/dist/{chunk-VYHRCFMD.js → chunk-7X4F4HCO.js} +16 -23
- package/dist/chunk-7X4F4HCO.js.map +1 -0
- package/dist/{chunk-YDBVG6RF.js → chunk-A5TTDOP4.js} +11 -21
- package/dist/chunk-A5TTDOP4.js.map +1 -0
- package/dist/{chunk-54AECXSH.js → chunk-ARGCINJC.js} +2 -2
- package/dist/{chunk-OV5UJWS5.js → chunk-CBXMOWQY.js} +2 -2
- package/dist/{chunk-PUZLP4SL.js → chunk-EWGFIBBU.js} +2 -2
- package/dist/{chunk-X6LXHVA6.js → chunk-GHBZ7NUI.js} +33 -24
- package/dist/chunk-GHBZ7NUI.js.map +1 -0
- package/dist/chunk-JNQKCZA3.js +28 -0
- package/dist/chunk-JNQKCZA3.js.map +1 -0
- package/dist/{chunk-NDKIFVR4.js → chunk-JQSJH72Q.js} +18 -9
- package/dist/{chunk-NDKIFVR4.js.map → chunk-JQSJH72Q.js.map} +1 -1
- package/dist/{chunk-IYA5PSXU.js → chunk-MYSIW4HY.js} +3 -3
- package/dist/{chunk-OINQ6OWM.js → chunk-NPMGVQM4.js} +2 -2
- package/dist/{chunk-FW5C245M.js → chunk-OZ4DXMRF.js} +27 -30
- package/dist/chunk-OZ4DXMRF.js.map +1 -0
- package/dist/{chunk-GG4BSB6S.js → chunk-P2FHS5IS.js} +2 -3
- package/dist/{chunk-GG4BSB6S.js.map → chunk-P2FHS5IS.js.map} +1 -1
- package/dist/{chunk-EWKUUWYY.js → chunk-Q3F36QZZ.js} +2 -2
- package/dist/{chunk-PN65K3LH.js → chunk-RKZFLLER.js} +2 -2
- package/dist/{chunk-YZUAXX7F.js → chunk-SASGCSBZ.js} +3 -6
- package/dist/chunk-SASGCSBZ.js.map +1 -0
- package/dist/{chunk-VIVOJASC.js → chunk-TKNPMYKJ.js} +5 -5
- package/dist/{chunk-HGTC76BX.js → chunk-V36FRPAU.js} +4 -2
- package/dist/chunk-V36FRPAU.js.map +1 -0
- package/dist/{chunk-XPRDNALD.js → chunk-W6NWOYMS.js} +2 -2
- package/dist/commands/build/plugins.js +2 -2
- package/dist/commands/build/stack.js +2 -2
- package/dist/commands/compile.js +2 -2
- package/dist/commands/config/index.js +2 -2
- package/dist/commands/config/path.js +1 -1
- package/dist/commands/config/show.js +2 -2
- package/dist/commands/diff.js +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/edit.js +24 -29
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +1 -1
- package/dist/commands/import/skill.js +1 -1
- package/dist/commands/info.js +1 -1
- package/dist/commands/init.js +20 -20
- package/dist/commands/list.js +1 -1
- package/dist/commands/new/agent.js +2 -2
- package/dist/commands/new/marketplace.js +2 -2
- package/dist/commands/new/skill.js +2 -2
- package/dist/commands/outdated.js +1 -1
- package/dist/commands/search.js +1 -1
- package/dist/commands/uninstall.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/validate.js +1 -1
- package/dist/components/wizard/category-grid.js +2 -2
- package/dist/components/wizard/category-grid.test.js +78 -77
- package/dist/components/wizard/category-grid.test.js.map +1 -1
- package/dist/components/wizard/checkbox-grid.js +2 -2
- package/dist/components/wizard/checkbox-grid.test.js +2 -2
- package/dist/components/wizard/domain-selection.js +5 -5
- package/dist/components/wizard/help-modal.js +1 -1
- package/dist/components/wizard/source-grid.js +2 -2
- package/dist/components/wizard/source-grid.test.js +5 -5
- package/dist/components/wizard/source-grid.test.js.map +1 -1
- package/dist/components/wizard/stack-selection.js +3 -3
- package/dist/components/wizard/step-agents.js +4 -4
- package/dist/components/wizard/step-agents.test.js +5 -5
- package/dist/components/wizard/step-agents.test.js.map +1 -1
- package/dist/components/wizard/step-build.js +6 -6
- package/dist/components/wizard/step-build.test.js +16 -18
- package/dist/components/wizard/step-build.test.js.map +1 -1
- package/dist/components/wizard/step-confirm.js +2 -2
- package/dist/components/wizard/step-confirm.test.js +4 -4
- package/dist/components/wizard/step-refine.js +2 -2
- package/dist/components/wizard/step-refine.test.js +2 -2
- package/dist/components/wizard/step-settings.js +3 -3
- package/dist/components/wizard/step-settings.test.js +6 -6
- package/dist/components/wizard/step-sources.js +7 -7
- package/dist/components/wizard/step-sources.test.js +17 -161
- package/dist/components/wizard/step-sources.test.js.map +1 -1
- package/dist/components/wizard/step-stack.js +7 -7
- package/dist/components/wizard/step-stack.test.js +12 -12
- package/dist/components/wizard/step-stack.test.js.map +1 -1
- package/dist/components/wizard/view-title.js +1 -2
- package/dist/components/wizard/wizard-layout.js +5 -5
- package/dist/components/wizard/wizard.js +19 -19
- package/dist/hooks/init.js +20 -20
- package/dist/{source-loader-WBDPZJEW.js → source-loader-42GVUFZA.js} +2 -4
- package/dist/{source-manager-RRGK4SBP.js → source-manager-WRZBOTEH.js} +2 -2
- package/dist/stores/wizard-store.js +2 -2
- package/dist/stores/wizard-store.test.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2EXAK22V.js.map +0 -1
- package/dist/chunk-AQYAVLZK.js +0 -20
- package/dist/chunk-AQYAVLZK.js.map +0 -1
- package/dist/chunk-C6YLN4AW.js.map +0 -1
- package/dist/chunk-FW5C245M.js.map +0 -1
- package/dist/chunk-HGTC76BX.js.map +0 -1
- package/dist/chunk-NA6I5P5P.js.map +0 -1
- package/dist/chunk-TPXDHJDB.js.map +0 -1
- package/dist/chunk-VILTRTBT.js.map +0 -1
- package/dist/chunk-VYHRCFMD.js.map +0 -1
- package/dist/chunk-X6LXHVA6.js.map +0 -1
- package/dist/chunk-YDBVG6RF.js.map +0 -1
- package/dist/chunk-YZUAXX7F.js.map +0 -1
- package/dist/plugins/dummy-skill/.claude-plugin/.content-hash +0 -1
- package/dist/plugins/dummy-skill/.claude-plugin/plugin.json +0 -13
- /package/dist/{chunk-M5IAGR5Z.js.map → chunk-746DCNGM.js.map} +0 -0
- /package/dist/{chunk-54AECXSH.js.map → chunk-ARGCINJC.js.map} +0 -0
- /package/dist/{chunk-OV5UJWS5.js.map → chunk-CBXMOWQY.js.map} +0 -0
- /package/dist/{chunk-PUZLP4SL.js.map → chunk-EWGFIBBU.js.map} +0 -0
- /package/dist/{chunk-IYA5PSXU.js.map → chunk-MYSIW4HY.js.map} +0 -0
- /package/dist/{chunk-OINQ6OWM.js.map → chunk-NPMGVQM4.js.map} +0 -0
- /package/dist/{chunk-EWKUUWYY.js.map → chunk-Q3F36QZZ.js.map} +0 -0
- /package/dist/{chunk-PN65K3LH.js.map → chunk-RKZFLLER.js.map} +0 -0
- /package/dist/{chunk-VIVOJASC.js.map → chunk-TKNPMYKJ.js.map} +0 -0
- /package/dist/{chunk-XPRDNALD.js.map → chunk-W6NWOYMS.js.map} +0 -0
- /package/dist/{source-loader-WBDPZJEW.js.map → source-loader-42GVUFZA.js.map} +0 -0
- /package/dist/{source-manager-RRGK4SBP.js.map → source-manager-WRZBOTEH.js.map} +0 -0
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
} from "../../chunk-XY3XDVMI.js";
|
|
28
28
|
import {
|
|
29
29
|
CategoryGrid
|
|
30
|
-
} from "../../chunk-
|
|
31
|
-
import "../../chunk-
|
|
30
|
+
} from "../../chunk-GHBZ7NUI.js";
|
|
31
|
+
import "../../chunk-P2FHS5IS.js";
|
|
32
32
|
import "../../chunk-AUNBGZS4.js";
|
|
33
|
-
import "../../chunk-
|
|
33
|
+
import "../../chunk-EWGFIBBU.js";
|
|
34
34
|
import "../../chunk-CBYRFAUN.js";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-6W4H2K3Z.js";
|
|
36
36
|
import "../../chunk-RRBWNEG3.js";
|
|
37
37
|
import {
|
|
38
38
|
BUILT_IN_MATRIX,
|
|
@@ -51,7 +51,7 @@ init_esm_shims();
|
|
|
51
51
|
import { jsx } from "react/jsx-runtime";
|
|
52
52
|
var createOption = (id, overrides = {}) => ({
|
|
53
53
|
id,
|
|
54
|
-
state: "normal",
|
|
54
|
+
state: { status: "normal" },
|
|
55
55
|
selected: false,
|
|
56
56
|
...overrides
|
|
57
57
|
});
|
|
@@ -69,8 +69,7 @@ var defaultCategories = [
|
|
|
69
69
|
"Framework",
|
|
70
70
|
[
|
|
71
71
|
createOption("web-framework-react", {
|
|
72
|
-
state: "recommended",
|
|
73
|
-
stateReason: "Popular choice"
|
|
72
|
+
state: { status: "recommended", reason: "Popular choice" }
|
|
74
73
|
}),
|
|
75
74
|
createOption("web-framework-vue-composition-api"),
|
|
76
75
|
createOption("web-framework-angular-standalone"),
|
|
@@ -83,18 +82,21 @@ var defaultCategories = [
|
|
|
83
82
|
"Styling",
|
|
84
83
|
[
|
|
85
84
|
createOption("web-styling-scss-modules", { selected: true }),
|
|
86
|
-
createOption("web-styling-tailwind", {
|
|
85
|
+
createOption("web-styling-tailwind", {
|
|
86
|
+
state: { status: "recommended", reason: "Modern utility-first CSS" }
|
|
87
|
+
}),
|
|
87
88
|
createOption("web-styling-cva"),
|
|
88
89
|
createOption("web-framework-nuxt")
|
|
89
90
|
],
|
|
90
91
|
{ required: true }
|
|
91
92
|
),
|
|
92
93
|
createCategory("web-client-state", "Client State", [
|
|
93
|
-
createOption("web-state-zustand", {
|
|
94
|
+
createOption("web-state-zustand", {
|
|
95
|
+
state: { status: "recommended", reason: "Simple and performant" }
|
|
96
|
+
}),
|
|
94
97
|
createOption("web-state-jotai"),
|
|
95
98
|
createOption("web-state-redux-toolkit", {
|
|
96
|
-
state: "discouraged",
|
|
97
|
-
stateReason: "Complex for most apps"
|
|
99
|
+
state: { status: "discouraged", reason: "Complex for most apps" }
|
|
98
100
|
}),
|
|
99
101
|
createOption("web-state-mobx")
|
|
100
102
|
]),
|
|
@@ -111,8 +113,7 @@ var categoriesWithFramework = [
|
|
|
111
113
|
"Framework",
|
|
112
114
|
[
|
|
113
115
|
createOption("web-framework-react", {
|
|
114
|
-
state: "recommended",
|
|
115
|
-
stateReason: "Popular choice",
|
|
116
|
+
state: { status: "recommended", reason: "Popular choice" },
|
|
116
117
|
selected: true
|
|
117
118
|
// Framework selected
|
|
118
119
|
}),
|
|
@@ -127,16 +128,22 @@ var categoriesWithFramework = [
|
|
|
127
128
|
"Styling",
|
|
128
129
|
[
|
|
129
130
|
createOption("web-styling-scss-modules"),
|
|
130
|
-
createOption("web-styling-tailwind", {
|
|
131
|
+
createOption("web-styling-tailwind", {
|
|
132
|
+
state: { status: "recommended", reason: "Modern utility-first CSS" }
|
|
133
|
+
}),
|
|
131
134
|
createOption("web-styling-cva"),
|
|
132
135
|
createOption("web-framework-nuxt")
|
|
133
136
|
],
|
|
134
137
|
{ required: true }
|
|
135
138
|
),
|
|
136
139
|
createCategory("web-client-state", "Client State", [
|
|
137
|
-
createOption("web-state-zustand", {
|
|
140
|
+
createOption("web-state-zustand", {
|
|
141
|
+
state: { status: "recommended", reason: "Simple and performant" }
|
|
142
|
+
}),
|
|
138
143
|
createOption("web-state-jotai"),
|
|
139
|
-
createOption("web-state-redux-toolkit", {
|
|
144
|
+
createOption("web-state-redux-toolkit", {
|
|
145
|
+
state: { status: "discouraged", reason: "Complex for most apps" }
|
|
146
|
+
}),
|
|
140
147
|
createOption("web-state-mobx")
|
|
141
148
|
])
|
|
142
149
|
];
|
|
@@ -290,7 +297,9 @@ describe("CategoryGrid component", () => {
|
|
|
290
297
|
const categories = [
|
|
291
298
|
createCategory("web-testing", "Test", [
|
|
292
299
|
createOption("web-forms-react-hook-form"),
|
|
293
|
-
createOption("web-forms-vee-validate", {
|
|
300
|
+
createOption("web-forms-vee-validate", {
|
|
301
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
302
|
+
})
|
|
294
303
|
])
|
|
295
304
|
];
|
|
296
305
|
const { lastFrame, unmount } = renderGrid({ categories });
|
|
@@ -313,7 +322,7 @@ describe("CategoryGrid component", () => {
|
|
|
313
322
|
const categories = [
|
|
314
323
|
createCategory("web-forms", "Forms", [
|
|
315
324
|
createOption("web-forms-react-hook-form", {
|
|
316
|
-
state: "normal",
|
|
325
|
+
state: { status: "normal" },
|
|
317
326
|
selected: false
|
|
318
327
|
})
|
|
319
328
|
])
|
|
@@ -326,7 +335,9 @@ describe("CategoryGrid component", () => {
|
|
|
326
335
|
it("should render discouraged skills with display name", () => {
|
|
327
336
|
const categories = [
|
|
328
337
|
createCategory("web-forms", "Forms", [
|
|
329
|
-
createOption("web-forms-react-hook-form", {
|
|
338
|
+
createOption("web-forms-react-hook-form", {
|
|
339
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
340
|
+
})
|
|
330
341
|
])
|
|
331
342
|
];
|
|
332
343
|
const { lastFrame, unmount } = renderGrid({ categories });
|
|
@@ -338,11 +349,11 @@ describe("CategoryGrid component", () => {
|
|
|
338
349
|
const categories = [
|
|
339
350
|
createCategory("web-forms", "Forms", [
|
|
340
351
|
createOption("web-forms-react-hook-form", {
|
|
341
|
-
state: "discouraged",
|
|
352
|
+
state: { status: "discouraged", reason: "Not recommended" },
|
|
342
353
|
selected: true
|
|
343
354
|
}),
|
|
344
355
|
createOption("web-forms-vee-validate", {
|
|
345
|
-
state: "discouraged",
|
|
356
|
+
state: { status: "discouraged", reason: "Not recommended" },
|
|
346
357
|
selected: false
|
|
347
358
|
})
|
|
348
359
|
])
|
|
@@ -356,7 +367,9 @@ describe("CategoryGrid component", () => {
|
|
|
356
367
|
it("should render discouraged skills with display name from store", () => {
|
|
357
368
|
const categories = [
|
|
358
369
|
createCategory("web-forms", "Forms", [
|
|
359
|
-
createOption("web-forms-react-hook-form", {
|
|
370
|
+
createOption("web-forms-react-hook-form", {
|
|
371
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
372
|
+
})
|
|
360
373
|
])
|
|
361
374
|
];
|
|
362
375
|
const { lastFrame, unmount } = renderGrid({ categories });
|
|
@@ -670,8 +683,12 @@ describe("CategoryGrid component", () => {
|
|
|
670
683
|
const onToggle = vi.fn();
|
|
671
684
|
const categories = [
|
|
672
685
|
createCategory("web-testing", "Test", [
|
|
673
|
-
createOption("web-forms-react-hook-form", {
|
|
674
|
-
|
|
686
|
+
createOption("web-forms-react-hook-form", {
|
|
687
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
688
|
+
}),
|
|
689
|
+
createOption("web-forms-vee-validate", {
|
|
690
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
691
|
+
})
|
|
675
692
|
])
|
|
676
693
|
];
|
|
677
694
|
const { stdin, unmount } = renderGrid({
|
|
@@ -705,7 +722,9 @@ describe("CategoryGrid component", () => {
|
|
|
705
722
|
const categories = [
|
|
706
723
|
createCategory("web-testing", "Test", [
|
|
707
724
|
createOption("web-forms-react-hook-form"),
|
|
708
|
-
createOption("web-forms-vee-validate", {
|
|
725
|
+
createOption("web-forms-vee-validate", {
|
|
726
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
727
|
+
}),
|
|
709
728
|
createOption("web-forms-zod-validation")
|
|
710
729
|
])
|
|
711
730
|
];
|
|
@@ -726,7 +745,9 @@ describe("CategoryGrid component", () => {
|
|
|
726
745
|
const categories = [
|
|
727
746
|
createCategory("web-testing", "Test", [
|
|
728
747
|
createOption("web-forms-react-hook-form"),
|
|
729
|
-
createOption("web-forms-vee-validate", {
|
|
748
|
+
createOption("web-forms-vee-validate", {
|
|
749
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
750
|
+
}),
|
|
730
751
|
createOption("web-forms-zod-validation")
|
|
731
752
|
])
|
|
732
753
|
];
|
|
@@ -747,8 +768,12 @@ describe("CategoryGrid component", () => {
|
|
|
747
768
|
const onFocusChange = vi.fn();
|
|
748
769
|
const categories = [
|
|
749
770
|
createCategory("web-testing", "Test", [
|
|
750
|
-
createOption("web-forms-react-hook-form", {
|
|
751
|
-
|
|
771
|
+
createOption("web-forms-react-hook-form", {
|
|
772
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
773
|
+
}),
|
|
774
|
+
createOption("web-forms-vee-validate", {
|
|
775
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
776
|
+
})
|
|
752
777
|
])
|
|
753
778
|
];
|
|
754
779
|
const { stdin, unmount } = renderGrid({
|
|
@@ -819,16 +844,18 @@ describe("CategoryGrid component", () => {
|
|
|
819
844
|
const output = lastFrame();
|
|
820
845
|
globalExpect(output).toContain("(recommended)");
|
|
821
846
|
});
|
|
822
|
-
it("should show
|
|
847
|
+
it("should not show label for selected skills when showLabels is true", () => {
|
|
823
848
|
const { lastFrame, unmount } = renderGrid({ showLabels: true });
|
|
824
849
|
cleanup = unmount;
|
|
825
850
|
const output = lastFrame();
|
|
826
|
-
globalExpect(output).toContain("(selected)");
|
|
851
|
+
globalExpect(output).not.toContain("(selected)");
|
|
827
852
|
});
|
|
828
|
-
it("should show Discouraged label when showLabels is true", () => {
|
|
853
|
+
it("should show Discouraged label when showLabels is true and skill is focused", () => {
|
|
829
854
|
const { lastFrame, unmount } = renderGrid({
|
|
830
855
|
categories: categoriesWithFramework,
|
|
831
|
-
showLabels: true
|
|
856
|
+
showLabels: true,
|
|
857
|
+
defaultFocusedRow: 2,
|
|
858
|
+
defaultFocusedCol: 2
|
|
832
859
|
});
|
|
833
860
|
cleanup = unmount;
|
|
834
861
|
const output = lastFrame();
|
|
@@ -842,11 +869,13 @@ describe("CategoryGrid component", () => {
|
|
|
842
869
|
globalExpect(output).not.toContain("(selected)");
|
|
843
870
|
globalExpect(output).not.toContain("(discouraged)");
|
|
844
871
|
});
|
|
845
|
-
it("should show discouraged label for discouraged
|
|
872
|
+
it("should show discouraged label for focused discouraged option when showLabels is true", () => {
|
|
846
873
|
const categories = [
|
|
847
874
|
createCategory("web-testing", "Test", [
|
|
848
|
-
createOption("web-forms-
|
|
849
|
-
|
|
875
|
+
createOption("web-forms-vee-validate", {
|
|
876
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
877
|
+
}),
|
|
878
|
+
createOption("web-forms-react-hook-form")
|
|
850
879
|
])
|
|
851
880
|
];
|
|
852
881
|
const { lastFrame, unmount } = renderGrid({ categories, showLabels: true });
|
|
@@ -860,8 +889,12 @@ describe("CategoryGrid component", () => {
|
|
|
860
889
|
const categories = [
|
|
861
890
|
createCategory("web-client-state", "State", [
|
|
862
891
|
createOption("web-state-jotai"),
|
|
863
|
-
createOption("web-state-zustand", {
|
|
864
|
-
|
|
892
|
+
createOption("web-state-zustand", {
|
|
893
|
+
state: { status: "recommended", reason: "Recommended choice" }
|
|
894
|
+
}),
|
|
895
|
+
createOption("web-state-redux-toolkit", {
|
|
896
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
897
|
+
}),
|
|
865
898
|
createOption("web-state-mobx")
|
|
866
899
|
])
|
|
867
900
|
];
|
|
@@ -917,7 +950,9 @@ describe("CategoryGrid component", () => {
|
|
|
917
950
|
const categoriesAfter = [
|
|
918
951
|
createCategory("web-client-state", "State", [
|
|
919
952
|
createOption("web-state-jotai"),
|
|
920
|
-
createOption("web-state-zustand", {
|
|
953
|
+
createOption("web-state-zustand", {
|
|
954
|
+
state: { status: "discouraged", reason: "Not recommended" }
|
|
955
|
+
}),
|
|
921
956
|
createOption("web-state-redux-toolkit")
|
|
922
957
|
])
|
|
923
958
|
];
|
|
@@ -1158,7 +1193,7 @@ describe("CategoryGrid component", () => {
|
|
|
1158
1193
|
const output = lastFrame();
|
|
1159
1194
|
globalExpect(output).toContain("(1 of 1)");
|
|
1160
1195
|
});
|
|
1161
|
-
it("should show
|
|
1196
|
+
it("should not show counter for non-exclusive categories", () => {
|
|
1162
1197
|
const categories = [
|
|
1163
1198
|
createCategory(
|
|
1164
1199
|
"web-testing",
|
|
@@ -1174,44 +1209,10 @@ describe("CategoryGrid component", () => {
|
|
|
1174
1209
|
const { lastFrame, unmount } = renderGrid({ categories });
|
|
1175
1210
|
cleanup = unmount;
|
|
1176
1211
|
const output = lastFrame();
|
|
1177
|
-
globalExpect(output).toContain("
|
|
1178
|
-
|
|
1179
|
-
it("should show '0 selected' for non-exclusive categories with no selection", () => {
|
|
1180
|
-
const categories = [
|
|
1181
|
-
createCategory(
|
|
1182
|
-
"web-testing",
|
|
1183
|
-
"Testing",
|
|
1184
|
-
[createOption("web-testing-vitest"), createOption("web-testing-playwright-e2e")],
|
|
1185
|
-
{ exclusive: false }
|
|
1186
|
-
)
|
|
1187
|
-
];
|
|
1188
|
-
const { lastFrame, unmount } = renderGrid({ categories });
|
|
1189
|
-
cleanup = unmount;
|
|
1190
|
-
const output = lastFrame();
|
|
1191
|
-
globalExpect(output).toContain("(0 selected)");
|
|
1192
|
-
});
|
|
1193
|
-
it("should always show selection counter", () => {
|
|
1194
|
-
const categories = [
|
|
1195
|
-
createCategory(
|
|
1196
|
-
"web-framework",
|
|
1197
|
-
"Framework",
|
|
1198
|
-
[createOption("web-framework-react", { selected: true })],
|
|
1199
|
-
{ exclusive: true }
|
|
1200
|
-
),
|
|
1201
|
-
createCategory(
|
|
1202
|
-
"web-testing",
|
|
1203
|
-
"Testing",
|
|
1204
|
-
[createOption("web-testing-vitest", { selected: true })],
|
|
1205
|
-
{ exclusive: false }
|
|
1206
|
-
)
|
|
1207
|
-
];
|
|
1208
|
-
const { lastFrame, unmount } = renderGrid({ categories });
|
|
1209
|
-
cleanup = unmount;
|
|
1210
|
-
const output = lastFrame();
|
|
1211
|
-
globalExpect(output).toContain("1 of 1");
|
|
1212
|
-
globalExpect(output).toContain("1 selected");
|
|
1212
|
+
globalExpect(output).not.toContain("selected)");
|
|
1213
|
+
globalExpect(output).not.toContain("of 1)");
|
|
1213
1214
|
});
|
|
1214
|
-
it("should show
|
|
1215
|
+
it("should only show counter for exclusive categories in mixed layout", () => {
|
|
1215
1216
|
const categories = [
|
|
1216
1217
|
createCategory(
|
|
1217
1218
|
"web-framework",
|
|
@@ -1237,7 +1238,7 @@ describe("CategoryGrid component", () => {
|
|
|
1237
1238
|
cleanup = unmount;
|
|
1238
1239
|
const output = lastFrame();
|
|
1239
1240
|
globalExpect(output).toContain("(1 of 1)");
|
|
1240
|
-
globalExpect(output).toContain("
|
|
1241
|
+
globalExpect(output).not.toContain("selected)");
|
|
1241
1242
|
});
|
|
1242
1243
|
});
|
|
1243
1244
|
});
|