@appdirect/design-system 0.0.18 → 0.0.20
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/README.md +21 -0
- package/bin/ad-sync-agents.mjs +542 -0
- package/dist/ComplexComponents/DashboardWidget/DashboardWidget.js +15 -51
- package/dist/ComplexComponents/DashboardWidget/DashboardWidget.tsx +91 -139
- package/dist/ComplexComponents/KeyInsight/index.ts +1 -1
- package/dist/DESIGN.md +49 -7
- package/dist/agent-kit/README.md +11 -0
- package/dist/agent-kit/manifest.json +81 -0
- package/dist/agent-kit/micro-ui/CLAUDE.md +1 -0
- package/dist/agent-kit/micro-ui/micro-ui.AGENTS.md +62 -0
- package/dist/agent-kit/rules/accessibility.mdc +46 -0
- package/dist/agent-kit/rules/module-federation.mdc +30 -0
- package/dist/agent-kit/rules/react-stack.mdc +73 -0
- package/dist/agent-kit/rules/testing.mdc +44 -0
- package/dist/agent-kit/skills/design-feature/SKILL.md +205 -0
- package/dist/agent-kit/skills/developer-handoff/SKILL.md +192 -0
- package/dist/agent-kit/skills/figma-mcp-integration/SKILL.md +134 -0
- package/dist/agent-kit/skills/figma-to-page/SKILL.md +24 -0
- package/dist/agent-kit/skills/mantine-combobox/SKILL.md +73 -0
- package/dist/agent-kit/skills/mantine-combobox/references/api.md +199 -0
- package/dist/agent-kit/skills/mantine-combobox/references/patterns.md +279 -0
- package/dist/agent-kit/skills/mantine-custom-components/SKILL.md +112 -0
- package/dist/agent-kit/skills/mantine-custom-components/references/api.md +407 -0
- package/dist/agent-kit/skills/mantine-custom-components/references/patterns.md +431 -0
- package/dist/agent-kit/skills/mantine-form/SKILL.md +103 -0
- package/dist/agent-kit/skills/mantine-form/references/api.md +313 -0
- package/dist/agent-kit/skills/mantine-form/references/patterns.md +310 -0
- package/dist/agent-kit/skills/prototype-page/SKILL.md +82 -0
- package/dist/contracts/DashboardWidget.json +92 -0
- package/dist/contracts/index.json +6 -1
- package/dist/css/mantine.css +172 -6
- package/dist/css/tokens.css +54 -4
- package/dist/skills/design-feature/SKILL.md +205 -0
- package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +76 -1
- package/dist/stories/index.json +4 -1
- package/package.json +8 -4
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../contracts/ds-component-contract.v1.json",
|
|
3
|
+
"id": "DashboardWidget",
|
|
4
|
+
"kind": "complex",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"purpose": "Dashboard card with a title row, optional header controls, a flexible content slot, and a footer that stays in flow so equal-height rows align.",
|
|
7
|
+
"importFrom": [
|
|
8
|
+
"@appdirect/design-system"
|
|
9
|
+
],
|
|
10
|
+
"mantineCounterpart": null,
|
|
11
|
+
"anatomy": [
|
|
12
|
+
"card",
|
|
13
|
+
"header",
|
|
14
|
+
"title",
|
|
15
|
+
"content",
|
|
16
|
+
"footer"
|
|
17
|
+
],
|
|
18
|
+
"api": {
|
|
19
|
+
"props": {
|
|
20
|
+
"title": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": true
|
|
23
|
+
},
|
|
24
|
+
"children": {
|
|
25
|
+
"type": "ReactNode",
|
|
26
|
+
"required": true
|
|
27
|
+
},
|
|
28
|
+
"editable": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"panelNotification": {
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"headerSelect": {
|
|
35
|
+
"type": "object"
|
|
36
|
+
},
|
|
37
|
+
"footerLinks": {
|
|
38
|
+
"type": "array"
|
|
39
|
+
},
|
|
40
|
+
"spacing": {
|
|
41
|
+
"enum": [
|
|
42
|
+
"xs",
|
|
43
|
+
"sm",
|
|
44
|
+
"md",
|
|
45
|
+
"lg",
|
|
46
|
+
"xl"
|
|
47
|
+
],
|
|
48
|
+
"default": "lg"
|
|
49
|
+
},
|
|
50
|
+
"interactive": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
"selected": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"composition": {
|
|
61
|
+
"mustUseFor": [
|
|
62
|
+
"dashboard metric and summary cards"
|
|
63
|
+
],
|
|
64
|
+
"mustNotRebuildFrom": [
|
|
65
|
+
"Card + Title + Select"
|
|
66
|
+
],
|
|
67
|
+
"internalPrimitives": [
|
|
68
|
+
"Card",
|
|
69
|
+
"Title",
|
|
70
|
+
"Text",
|
|
71
|
+
"Switch",
|
|
72
|
+
"Select",
|
|
73
|
+
"Menu",
|
|
74
|
+
"ActionIcon",
|
|
75
|
+
"Alert"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"enforcement": {
|
|
79
|
+
"deterministic": [
|
|
80
|
+
"importFrom",
|
|
81
|
+
"kind",
|
|
82
|
+
"mantineCounterpart",
|
|
83
|
+
"api.props.title.required",
|
|
84
|
+
"api.props.children.required"
|
|
85
|
+
],
|
|
86
|
+
"semantic": [
|
|
87
|
+
"purpose",
|
|
88
|
+
"composition.mustUseFor",
|
|
89
|
+
"composition.mustNotRebuildFrom"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.20",
|
|
3
3
|
"contracts": [
|
|
4
4
|
{
|
|
5
5
|
"id": "Alert",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"kind": "wrapper",
|
|
22
22
|
"source": "Buttons/Button.contract.json"
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
"id": "DashboardWidget",
|
|
26
|
+
"kind": "complex",
|
|
27
|
+
"source": "ComplexComponents/DashboardWidget/DashboardWidget.contract.json"
|
|
28
|
+
},
|
|
24
29
|
{
|
|
25
30
|
"id": "DataTable",
|
|
26
31
|
"kind": "complex",
|
package/dist/css/mantine.css
CHANGED
|
@@ -611,13 +611,19 @@
|
|
|
611
611
|
color: var(--ad-color-state-disabled-text);
|
|
612
612
|
}
|
|
613
613
|
.mantine-Checkbox-icon {
|
|
614
|
-
color: var(--ad-
|
|
614
|
+
color: var(--ad-white);
|
|
615
615
|
}
|
|
616
616
|
.mantine-Checkbox-label {
|
|
617
617
|
font-size: var(--ad-font-sizes-sm);
|
|
618
618
|
font-weight: var(--ad-font-weights-regular);
|
|
619
619
|
color: var(--ad-color-text-default);
|
|
620
620
|
}
|
|
621
|
+
.mantine-Checkbox-root[data-label-position="right"] .mantine-Checkbox-label {
|
|
622
|
+
padding-inline-start: var(--ad-spacing-sm);
|
|
623
|
+
}
|
|
624
|
+
.mantine-Checkbox-root[data-label-position="left"] .mantine-Checkbox-label {
|
|
625
|
+
padding-inline-end: var(--ad-spacing-sm);
|
|
626
|
+
}
|
|
621
627
|
/* === Chip === */
|
|
622
628
|
.mantine-Chip-label[data-variant="outline"]:not([data-checked]):not([data-disabled]) {
|
|
623
629
|
background: var(--ad-color-bg-default);
|
|
@@ -854,6 +860,128 @@
|
|
|
854
860
|
.mantine-Container-root[data-size="xl"] {
|
|
855
861
|
--container-size: 1320px;
|
|
856
862
|
}
|
|
863
|
+
/* === DashboardWidget === */
|
|
864
|
+
.ad-DashboardWidget.mantine-Card-root {
|
|
865
|
+
display: flex;
|
|
866
|
+
flex-direction: column;
|
|
867
|
+
height: 100%;
|
|
868
|
+
min-height: 0;
|
|
869
|
+
box-sizing: border-box;
|
|
870
|
+
padding: var(--ad-spacing-sm) var(--ad-spacing-lg) var(--ad-spacing-none);
|
|
871
|
+
}
|
|
872
|
+
.ad-DashboardWidget[data-interactive] {
|
|
873
|
+
cursor: var(--ad-cursor-pointer);
|
|
874
|
+
}
|
|
875
|
+
.ad-DashboardWidget.mantine-Paper-root[data-interactive]:hover {
|
|
876
|
+
box-shadow: var(--ad-shadows-md);
|
|
877
|
+
}
|
|
878
|
+
.ad-DashboardWidget.mantine-Card-root.mantine-Paper-root[data-with-border][data-selected] {
|
|
879
|
+
background: var(--ad-color-brand-light);
|
|
880
|
+
border-color: var(--ad-color-border-primary);
|
|
881
|
+
}
|
|
882
|
+
.ad-DashboardWidget-body {
|
|
883
|
+
display: flex;
|
|
884
|
+
flex-direction: column;
|
|
885
|
+
flex: 1 1 auto;
|
|
886
|
+
min-height: 0;
|
|
887
|
+
gap: var(--ad-spacing-lg);
|
|
888
|
+
}
|
|
889
|
+
.ad-DashboardWidget-body[data-spacing="xs"] {
|
|
890
|
+
gap: var(--ad-spacing-xs);
|
|
891
|
+
}
|
|
892
|
+
.ad-DashboardWidget-body[data-spacing="sm"] {
|
|
893
|
+
gap: var(--ad-spacing-sm);
|
|
894
|
+
}
|
|
895
|
+
.ad-DashboardWidget-body[data-spacing="md"] {
|
|
896
|
+
gap: var(--ad-spacing-md);
|
|
897
|
+
}
|
|
898
|
+
.ad-DashboardWidget-body[data-spacing="lg"] {
|
|
899
|
+
gap: var(--ad-spacing-lg);
|
|
900
|
+
}
|
|
901
|
+
.ad-DashboardWidget-body[data-spacing="xl"] {
|
|
902
|
+
gap: var(--ad-spacing-xl);
|
|
903
|
+
}
|
|
904
|
+
.ad-DashboardWidget-header {
|
|
905
|
+
display: flex;
|
|
906
|
+
flex-shrink: 0;
|
|
907
|
+
align-items: center;
|
|
908
|
+
justify-content: space-between;
|
|
909
|
+
}
|
|
910
|
+
.ad-DashboardWidget-titleGroup {
|
|
911
|
+
display: flex;
|
|
912
|
+
align-items: center;
|
|
913
|
+
gap: var(--ad-spacing-xs);
|
|
914
|
+
min-width: 0;
|
|
915
|
+
}
|
|
916
|
+
.ad-DashboardWidget .ad-DashboardWidget-title.mantine-Title-root {
|
|
917
|
+
font-size: var(--ad-headings-sizes-h4-font-size);
|
|
918
|
+
font-weight: var(--ad-headings-font-weight);
|
|
919
|
+
}
|
|
920
|
+
.ad-DashboardWidget-controls {
|
|
921
|
+
display: flex;
|
|
922
|
+
align-items: center;
|
|
923
|
+
flex-shrink: 0;
|
|
924
|
+
gap: var(--ad-spacing-sm);
|
|
925
|
+
}
|
|
926
|
+
.ad-DashboardWidget-switch {
|
|
927
|
+
display: flex;
|
|
928
|
+
align-items: center;
|
|
929
|
+
gap: var(--ad-spacing-xs);
|
|
930
|
+
}
|
|
931
|
+
.ad-DashboardWidget-content {
|
|
932
|
+
display: flex;
|
|
933
|
+
flex-direction: column;
|
|
934
|
+
flex: 1 1 auto;
|
|
935
|
+
min-height: 0;
|
|
936
|
+
overflow-x: hidden;
|
|
937
|
+
overflow-y: auto;
|
|
938
|
+
justify-content: safe center;
|
|
939
|
+
align-items: stretch;
|
|
940
|
+
padding-block: var(--ad-spacing-none);
|
|
941
|
+
padding-inline-end: 4px;
|
|
942
|
+
}
|
|
943
|
+
.ad-DashboardWidget-footer {
|
|
944
|
+
display: flex;
|
|
945
|
+
flex-shrink: 0;
|
|
946
|
+
align-items: center;
|
|
947
|
+
box-sizing: border-box;
|
|
948
|
+
margin-inline: calc(var(--ad-spacing-lg) * -1);
|
|
949
|
+
background: var(--ad-color-bg-default);
|
|
950
|
+
padding-inline: var(--ad-spacing-lg);
|
|
951
|
+
padding-block: var(--ad-spacing-sm);
|
|
952
|
+
gap: var(--ad-spacing-xs);
|
|
953
|
+
}
|
|
954
|
+
.ad-DashboardWidget[data-selected] .ad-DashboardWidget-footer {
|
|
955
|
+
background: var(--ad-color-brand-light);
|
|
956
|
+
}
|
|
957
|
+
.ad-DashboardWidget-footerLinks {
|
|
958
|
+
display: flex;
|
|
959
|
+
align-items: center;
|
|
960
|
+
gap: var(--ad-spacing-xs);
|
|
961
|
+
}
|
|
962
|
+
.ad-DashboardWidget-footerLink {
|
|
963
|
+
display: inline-flex;
|
|
964
|
+
align-items: center;
|
|
965
|
+
gap: var(--ad-spacing-xs);
|
|
966
|
+
font: inherit;
|
|
967
|
+
color: var(--ad-color-text-link);
|
|
968
|
+
background: var(--ad-color-transparent);
|
|
969
|
+
padding: var(--ad-spacing-none);
|
|
970
|
+
border-width: var(--ad-border-width-none);
|
|
971
|
+
border-style: var(--ad-border-style-none);
|
|
972
|
+
cursor: var(--ad-cursor-pointer);
|
|
973
|
+
}
|
|
974
|
+
.ad-DashboardWidget-footerLink .mantine-Text-root {
|
|
975
|
+
color: inherit;
|
|
976
|
+
}
|
|
977
|
+
.ad-DashboardWidget-footerLink[data-disabled] {
|
|
978
|
+
color: var(--ad-color-state-disabled-text);
|
|
979
|
+
opacity: 1;
|
|
980
|
+
cursor: var(--ad-cursor-not-allowed);
|
|
981
|
+
}
|
|
982
|
+
.ad-DashboardWidget-footerSpacer {
|
|
983
|
+
height: 21px;
|
|
984
|
+
}
|
|
857
985
|
/* === Divider === */
|
|
858
986
|
.mantine-Divider-root {
|
|
859
987
|
--divider-color: var(--ad-color-border-default);
|
|
@@ -1611,13 +1739,19 @@
|
|
|
1611
1739
|
color: var(--ad-color-state-disabled-text);
|
|
1612
1740
|
}
|
|
1613
1741
|
.mantine-Radio-icon {
|
|
1614
|
-
color: var(--ad-
|
|
1742
|
+
color: var(--ad-white);
|
|
1615
1743
|
}
|
|
1616
1744
|
.mantine-Radio-label {
|
|
1617
1745
|
font-size: var(--ad-font-sizes-sm);
|
|
1618
1746
|
font-weight: var(--ad-font-weights-regular);
|
|
1619
1747
|
color: var(--ad-color-text-default);
|
|
1620
1748
|
}
|
|
1749
|
+
.mantine-Radio-root[data-label-position="right"] .mantine-Radio-label {
|
|
1750
|
+
padding-inline-start: var(--ad-spacing-sm);
|
|
1751
|
+
}
|
|
1752
|
+
.mantine-Radio-root[data-label-position="left"] .mantine-Radio-label {
|
|
1753
|
+
padding-inline-end: var(--ad-spacing-sm);
|
|
1754
|
+
}
|
|
1621
1755
|
/* === SegmentedControl === */
|
|
1622
1756
|
.mantine-SegmentedControl-root {
|
|
1623
1757
|
background: var(--ad-color-bg-tinted);
|
|
@@ -1670,7 +1804,33 @@ fieldset:disabled .mantine-SegmentedControl-label,
|
|
|
1670
1804
|
padding-block: 10px;
|
|
1671
1805
|
font-size: var(--ad-font-sizes-md);
|
|
1672
1806
|
}
|
|
1673
|
-
/* === Select ===
|
|
1807
|
+
/* === Select === */
|
|
1808
|
+
.mantine-Select-input[data-variant="unstyled"] {
|
|
1809
|
+
background: var(--ad-color-transparent);
|
|
1810
|
+
border-width: var(--ad-border-width-none);
|
|
1811
|
+
border-style: var(--ad-border-style-none);
|
|
1812
|
+
border-color: var(--ad-color-transparent);
|
|
1813
|
+
padding-inline-start: var(--ad-spacing-none);
|
|
1814
|
+
padding-block: var(--ad-spacing-none);
|
|
1815
|
+
}
|
|
1816
|
+
.mantine-Select-input[data-variant="unstyled"]:not([data-error]):not([data-disabled]),
|
|
1817
|
+
.mantine-Select-input[data-variant="unstyled"]:not([data-error]):not([data-disabled]):hover {
|
|
1818
|
+
border-color: var(--ad-color-transparent);
|
|
1819
|
+
background: var(--ad-color-transparent);
|
|
1820
|
+
}
|
|
1821
|
+
.mantine-Select-input[data-variant="unstyled"]:focus,
|
|
1822
|
+
.mantine-Select-input[data-variant="unstyled"]:focus-visible {
|
|
1823
|
+
border-color: var(--ad-color-transparent);
|
|
1824
|
+
outline-color: var(--ad-color-transparent);
|
|
1825
|
+
outline-width: var(--ad-border-width-none);
|
|
1826
|
+
outline-style: var(--ad-border-style-none);
|
|
1827
|
+
background: var(--ad-color-transparent);
|
|
1828
|
+
}
|
|
1829
|
+
.mantine-Select-input[data-variant="unstyled"][data-disabled],
|
|
1830
|
+
.mantine-Select-input[data-variant="unstyled"]:disabled {
|
|
1831
|
+
border-color: var(--ad-color-transparent);
|
|
1832
|
+
background: var(--ad-color-transparent);
|
|
1833
|
+
}
|
|
1674
1834
|
/* === Slider === */
|
|
1675
1835
|
.mantine-Slider-root {
|
|
1676
1836
|
--slider-color: var(--ad-color-brand-primary);
|
|
@@ -1780,7 +1940,7 @@ fieldset:disabled .mantine-Slider-mark[data-filled] {
|
|
|
1780
1940
|
}
|
|
1781
1941
|
.mantine-Switch-input:checked + .mantine-Switch-track {
|
|
1782
1942
|
background: var(--ad-color-status-success);
|
|
1783
|
-
color: var(--ad-
|
|
1943
|
+
color: var(--ad-white);
|
|
1784
1944
|
}
|
|
1785
1945
|
.mantine-Switch-input:focus-visible + .mantine-Switch-track {
|
|
1786
1946
|
outline-color: var(--ad-action-primary-focus-ring);
|
|
@@ -1794,7 +1954,7 @@ fieldset:disabled .mantine-Slider-mark[data-filled] {
|
|
|
1794
1954
|
cursor: var(--ad-cursor-not-allowed);
|
|
1795
1955
|
}
|
|
1796
1956
|
.mantine-Switch-thumb {
|
|
1797
|
-
background: var(--ad-
|
|
1957
|
+
background: var(--ad-white);
|
|
1798
1958
|
}
|
|
1799
1959
|
.mantine-Switch-input:disabled + * > .mantine-Switch-thumb,
|
|
1800
1960
|
.mantine-Switch-input[data-disabled] + * > .mantine-Switch-thumb {
|
|
@@ -1802,9 +1962,15 @@ fieldset:disabled .mantine-Slider-mark[data-filled] {
|
|
|
1802
1962
|
}
|
|
1803
1963
|
.mantine-Switch-label {
|
|
1804
1964
|
font-size: var(--ad-font-sizes-sm);
|
|
1805
|
-
font-weight: var(--ad-font-weights-
|
|
1965
|
+
font-weight: var(--ad-font-weights-regular);
|
|
1806
1966
|
color: var(--ad-color-text-default);
|
|
1807
1967
|
}
|
|
1968
|
+
.mantine-Switch-root[data-label-position="right"] .mantine-Switch-label {
|
|
1969
|
+
padding-inline-start: var(--ad-spacing-sm);
|
|
1970
|
+
}
|
|
1971
|
+
.mantine-Switch-root[data-label-position="left"] .mantine-Switch-label {
|
|
1972
|
+
padding-inline-end: var(--ad-spacing-sm);
|
|
1973
|
+
}
|
|
1808
1974
|
/* === Table === */
|
|
1809
1975
|
.mantine-Table-table {
|
|
1810
1976
|
background: var(--ad-color-bg-default);
|
package/dist/css/tokens.css
CHANGED
|
@@ -722,11 +722,19 @@
|
|
|
722
722
|
--ad-dashboard-widget-root-padding-x: 20px;
|
|
723
723
|
--ad-dashboard-widget-root-padding-top: 12px;
|
|
724
724
|
--ad-dashboard-widget-root-padding-bottom: 0px;
|
|
725
|
-
--ad-dashboard-widget-
|
|
725
|
+
--ad-dashboard-widget-root-interactive-cursor: pointer;
|
|
726
|
+
--ad-dashboard-widget-root-interactive-hover-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.05), 0px 20px 25px -5px rgba(0, 0, 0, 0.05), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
727
|
+
--ad-dashboard-widget-root-interactive-selected-bg: color-mix(in srgb, #326FDE 10%, transparent);
|
|
728
|
+
--ad-dashboard-widget-root-interactive-selected-border: #326FDE;
|
|
729
|
+
--ad-dashboard-widget-sections-gap: 20px;
|
|
726
730
|
--ad-dashboard-widget-header-title-gap: 10px;
|
|
727
731
|
--ad-dashboard-widget-header-controls-gap: 12px;
|
|
728
732
|
--ad-dashboard-widget-header-switch-label-gap: 10px;
|
|
733
|
+
--ad-dashboard-widget-header-title-font-size: 18px;
|
|
734
|
+
--ad-dashboard-widget-header-title-font-weight: 700;
|
|
729
735
|
--ad-dashboard-widget-content-scrollbar-gutter: 4px;
|
|
736
|
+
--ad-dashboard-widget-content-padding-y: 0px;
|
|
737
|
+
--ad-dashboard-widget-content-align: center;
|
|
730
738
|
--ad-dashboard-widget-footer-bg: #ffffff;
|
|
731
739
|
--ad-dashboard-widget-footer-padding-x: 20px;
|
|
732
740
|
--ad-dashboard-widget-footer-padding-y: 12px;
|
|
@@ -734,6 +742,12 @@
|
|
|
734
742
|
--ad-dashboard-widget-footer-empty-height: 21px;
|
|
735
743
|
--ad-dashboard-widget-footer-link-fg: #326FDE;
|
|
736
744
|
--ad-dashboard-widget-footer-link-disabled-fg: #adb5bd;
|
|
745
|
+
--ad-dashboard-widget-footer-link-cursor: pointer;
|
|
746
|
+
--ad-dashboard-widget-footer-link-disabled-cursor: not-allowed;
|
|
747
|
+
--ad-dashboard-widget-footer-link-bg: rgba(0,0,0,0);
|
|
748
|
+
--ad-dashboard-widget-footer-link-padding: 0px;
|
|
749
|
+
--ad-dashboard-widget-footer-link-border-width: 0px;
|
|
750
|
+
--ad-dashboard-widget-footer-link-border-style: none;
|
|
737
751
|
--ad-divider-root-border-color: #ced4da;
|
|
738
752
|
--ad-divider-root-border-style: solid;
|
|
739
753
|
--ad-divider-label-font-size: 12px;
|
|
@@ -1303,6 +1317,17 @@
|
|
|
1303
1317
|
--ad-segmented-control-sizes-xl-padding-x: 20px;
|
|
1304
1318
|
--ad-segmented-control-sizes-xl-padding-y: 10px;
|
|
1305
1319
|
--ad-segmented-control-sizes-xl-font-size: 16px;
|
|
1320
|
+
--ad-select-unstyled-bg: rgba(0,0,0,0);
|
|
1321
|
+
--ad-select-unstyled-border-width: 0px;
|
|
1322
|
+
--ad-select-unstyled-border-style: none;
|
|
1323
|
+
--ad-select-unstyled-border-color: rgba(0,0,0,0);
|
|
1324
|
+
--ad-select-unstyled-padding-start: 0px;
|
|
1325
|
+
--ad-select-unstyled-padding-y: 0px;
|
|
1326
|
+
--ad-select-unstyled-hover-border-color: rgba(0,0,0,0);
|
|
1327
|
+
--ad-select-unstyled-focus-border-color: rgba(0,0,0,0);
|
|
1328
|
+
--ad-select-unstyled-focus-outline-color: rgba(0,0,0,0);
|
|
1329
|
+
--ad-select-unstyled-focus-outline-width: 0px;
|
|
1330
|
+
--ad-select-unstyled-focus-outline-style: none;
|
|
1306
1331
|
--ad-slat-root-sections-gap: 10px;
|
|
1307
1332
|
--ad-slat-row-padding: 12px;
|
|
1308
1333
|
--ad-slat-row-gap: 12px;
|
|
@@ -1389,7 +1414,7 @@
|
|
|
1389
1414
|
--ad-switch-thumb-disabled-bg: #f8f9fa;
|
|
1390
1415
|
--ad-switch-root-gap: 12px;
|
|
1391
1416
|
--ad-switch-label-font-size: 14px;
|
|
1392
|
-
--ad-switch-label-font-weight:
|
|
1417
|
+
--ad-switch-label-font-weight: 400;
|
|
1393
1418
|
--ad-switch-label-color: #000000;
|
|
1394
1419
|
--ad-switch-label-required-gap: 4px;
|
|
1395
1420
|
--ad-switch-label-required-color: #fa5252;
|
|
@@ -2295,11 +2320,19 @@
|
|
|
2295
2320
|
--ad-dashboard-widget-root-padding-x: 20px;
|
|
2296
2321
|
--ad-dashboard-widget-root-padding-top: 12px;
|
|
2297
2322
|
--ad-dashboard-widget-root-padding-bottom: 0px;
|
|
2298
|
-
--ad-dashboard-widget-
|
|
2323
|
+
--ad-dashboard-widget-root-interactive-cursor: pointer;
|
|
2324
|
+
--ad-dashboard-widget-root-interactive-hover-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.05), 0px 20px 25px -5px rgba(0, 0, 0, 0.05), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
2325
|
+
--ad-dashboard-widget-root-interactive-selected-bg: color-mix(in srgb, #326FDE 15%, transparent);
|
|
2326
|
+
--ad-dashboard-widget-root-interactive-selected-border: #1971c2;
|
|
2327
|
+
--ad-dashboard-widget-sections-gap: 20px;
|
|
2299
2328
|
--ad-dashboard-widget-header-title-gap: 10px;
|
|
2300
2329
|
--ad-dashboard-widget-header-controls-gap: 12px;
|
|
2301
2330
|
--ad-dashboard-widget-header-switch-label-gap: 10px;
|
|
2331
|
+
--ad-dashboard-widget-header-title-font-size: 18px;
|
|
2332
|
+
--ad-dashboard-widget-header-title-font-weight: 700;
|
|
2302
2333
|
--ad-dashboard-widget-content-scrollbar-gutter: 4px;
|
|
2334
|
+
--ad-dashboard-widget-content-padding-y: 0px;
|
|
2335
|
+
--ad-dashboard-widget-content-align: center;
|
|
2303
2336
|
--ad-dashboard-widget-footer-bg: #2e2e2e;
|
|
2304
2337
|
--ad-dashboard-widget-footer-padding-x: 20px;
|
|
2305
2338
|
--ad-dashboard-widget-footer-padding-y: 12px;
|
|
@@ -2307,6 +2340,12 @@
|
|
|
2307
2340
|
--ad-dashboard-widget-footer-empty-height: 21px;
|
|
2308
2341
|
--ad-dashboard-widget-footer-link-fg: #4dabf7;
|
|
2309
2342
|
--ad-dashboard-widget-footer-link-disabled-fg: #696969;
|
|
2343
|
+
--ad-dashboard-widget-footer-link-cursor: pointer;
|
|
2344
|
+
--ad-dashboard-widget-footer-link-disabled-cursor: not-allowed;
|
|
2345
|
+
--ad-dashboard-widget-footer-link-bg: rgba(0,0,0,0);
|
|
2346
|
+
--ad-dashboard-widget-footer-link-padding: 0px;
|
|
2347
|
+
--ad-dashboard-widget-footer-link-border-width: 0px;
|
|
2348
|
+
--ad-dashboard-widget-footer-link-border-style: none;
|
|
2310
2349
|
--ad-divider-root-border-color: #424242;
|
|
2311
2350
|
--ad-divider-root-border-style: solid;
|
|
2312
2351
|
--ad-divider-label-font-size: 12px;
|
|
@@ -2876,6 +2915,17 @@
|
|
|
2876
2915
|
--ad-segmented-control-sizes-xl-padding-x: 20px;
|
|
2877
2916
|
--ad-segmented-control-sizes-xl-padding-y: 10px;
|
|
2878
2917
|
--ad-segmented-control-sizes-xl-font-size: 16px;
|
|
2918
|
+
--ad-select-unstyled-bg: rgba(0,0,0,0);
|
|
2919
|
+
--ad-select-unstyled-border-width: 0px;
|
|
2920
|
+
--ad-select-unstyled-border-style: none;
|
|
2921
|
+
--ad-select-unstyled-border-color: rgba(0,0,0,0);
|
|
2922
|
+
--ad-select-unstyled-padding-start: 0px;
|
|
2923
|
+
--ad-select-unstyled-padding-y: 0px;
|
|
2924
|
+
--ad-select-unstyled-hover-border-color: rgba(0,0,0,0);
|
|
2925
|
+
--ad-select-unstyled-focus-border-color: rgba(0,0,0,0);
|
|
2926
|
+
--ad-select-unstyled-focus-outline-color: rgba(0,0,0,0);
|
|
2927
|
+
--ad-select-unstyled-focus-outline-width: 0px;
|
|
2928
|
+
--ad-select-unstyled-focus-outline-style: none;
|
|
2879
2929
|
--ad-slat-root-sections-gap: 10px;
|
|
2880
2930
|
--ad-slat-row-padding: 12px;
|
|
2881
2931
|
--ad-slat-row-gap: 12px;
|
|
@@ -2962,7 +3012,7 @@
|
|
|
2962
3012
|
--ad-switch-thumb-disabled-bg: #3b3b3b;
|
|
2963
3013
|
--ad-switch-root-gap: 12px;
|
|
2964
3014
|
--ad-switch-label-font-size: 14px;
|
|
2965
|
-
--ad-switch-label-font-weight:
|
|
3015
|
+
--ad-switch-label-font-weight: 400;
|
|
2966
3016
|
--ad-switch-label-color: #C9C9C9;
|
|
2967
3017
|
--ad-switch-label-required-gap: 4px;
|
|
2968
3018
|
--ad-switch-label-required-color: #e03131;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-feature
|
|
3
|
+
description: >-
|
|
4
|
+
Designs or reviews an AppDirect admin screen as a product designer, read-only.
|
|
5
|
+
Produces a design spec (flow, layout, button hierarchy, states, copy, data)
|
|
6
|
+
checked against AGENTS.md, DESIGN.md and ds-enforce, or severity-ranked review
|
|
7
|
+
findings. Use when asked to design, plan, or critique a feature, screen, form,
|
|
8
|
+
table, or flow; to choose a pattern, overlay, or button hierarchy; or before
|
|
9
|
+
add-feature builds from a written description (add-feature is optional — only
|
|
10
|
+
in the prototype platform). Not for Figma-to-code (use figma-to-page), bug
|
|
11
|
+
fixes, or small styling tweaks to existing code.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Design a feature (AppDirect UX)
|
|
15
|
+
|
|
16
|
+
You are a senior product designer on AppDirect admin UIs: operators doing real work on dense data. Own the UX decisions. Propose the primary action, placement, hierarchy, states, and copy. Cite the source behind each call: an `AGENTS.md` or DESIGN.md section, a precedent path, or "designer call" when no rule exists. Never invent a DESIGN.md section. Push back when a request needs two primary actions, a modal for a non-blocking task, a pattern the design system lacks, or a colour with no `--ad-*` token: name the rule and offer the closest supported pattern. Never write code or edit files.
|
|
17
|
+
|
|
18
|
+
Two skill modes: **design** (default) and **review**. Design ends with a spec the user must approve before anyone builds. Review ends with severity-ranked findings and no edits. If the request covers several screens, list them and design the first only.
|
|
19
|
+
|
|
20
|
+
## Stay read-only (required)
|
|
21
|
+
|
|
22
|
+
This skill never writes code or files. Stay read-only for the whole run.
|
|
23
|
+
|
|
24
|
+
- Cursor, top-level chat, Agent mode: call `SwitchMode` with `target_mode_id: "plan"` and say design-feature is read-only. If the user declines or the tool is missing, continue read-only in the current mode. Do not stop.
|
|
25
|
+
- Already in Plan mode, running as a subagent, or in a host without `SwitchMode` (Claude Code, Codex): do not switch. Stay read-only.
|
|
26
|
+
- Do not create, edit, or delete any file while this skill runs, including scaffolding, spec files, or mocks.
|
|
27
|
+
- The skill ends when the user approves the spec. If a calling skill (for example `add-feature`) continues, that skill switches to Agent mode before it edits files. If nothing called you, wait for the user to ask for implementation. Reply "approved" (or your changes) — do not start the build from the plan UI; `add-feature` or a separate Agent request handles implementation.
|
|
28
|
+
|
|
29
|
+
## Product facts
|
|
30
|
+
|
|
31
|
+
Read before asking: the request, `standalone/standalone.config.ts` (persona, edition, namespace, menus) when present, `prototype.json`, and the target page if it exists. Valid personas and editions are in `src/mocks/bootstrap/personas.ts` when that file exists.
|
|
32
|
+
|
|
33
|
+
Then send one message that states what you found and asks only for what is missing, multiple choice where possible (`AskQuestion` when available). Allow at most one follow-up round. Needed:
|
|
34
|
+
|
|
35
|
+
- The job and what is out of scope
|
|
36
|
+
- The entity and its main fields, or "unknown — propose them"
|
|
37
|
+
- Destructive or bulk actions
|
|
38
|
+
- Who must not do this (permissions), and whether they should see it disabled or not at all
|
|
39
|
+
|
|
40
|
+
Persona, edition, and menu default to the config values when present. Say so and move on. If the user answers "you decide", assume, label the assumption, and continue.
|
|
41
|
+
|
|
42
|
+
## Research (in this order — do not skip ahead)
|
|
43
|
+
|
|
44
|
+
Work the ladder top-down. Prefer an earlier step when it answers the job. Later steps inform gaps; they do not override AppDirect rules.
|
|
45
|
+
|
|
46
|
+
### 1. Established AppDirect pattern (first)
|
|
47
|
+
|
|
48
|
+
Stop here when a clear in-house pattern exists. Write why later steps were skipped under Sources.
|
|
49
|
+
|
|
50
|
+
1. **Rules.** `AGENTS.md` wins in app and prototype repos. Then DESIGN.md: `docs/DESIGN.md` or repo-root `DESIGN.md` in consumers; `apps/design-system/DESIGN.md` in this repo. Read: `Components › Buttons` (and ActionIcon), `Components › Overlays`, `Components › Combobox`, Alert vs Notification under `Components › DataDisplay`, `DataTable patterns`, `List page composition`, `Components › Navigation` (Stepper, BackBreadcrumb), `Layout & Spacing`, and Do's and Don'ts. DESIGN.md "Consumption rules" are for package authors; in apps, imports follow `AGENTS.md`. Adoption is decided by `@appdirect/ds-enforce` (`mantineDisallowed` in `eslint/contracts.json`), not by a list in `AGENTS.md`.
|
|
51
|
+
2. **Precedent.** How AppDirect already solves the same job: pages in the current micro UI or prototype, neighbouring items in the same menu (`standalone/mocks/navigation/<namespace>.json`) for label wording, Title Case, and placement. Other prototypes (`prototypes/*/*/prototype.json`) only when that tree is in the workspace; if not, say so and rely on this app's pages and menu. Match precedent unless it breaks DESIGN.md; say when it does.
|
|
52
|
+
3. **Stories.** `@appdirect/design-system` `dist/stories/index.json` (or stories source in this repo), for composition only.
|
|
53
|
+
4. **Figma.** Load the `figma-mcp-integration` skill before any Figma MCP call. ADDS Admin Mantine Core (file key `rXvD5jPC1i02ZIma87Qcbl`), read-only, when 1–3 are silent. Prefer marker annotations and the Table Control Panel page. Ignore generic `utilities/doc-section` prose.
|
|
54
|
+
|
|
55
|
+
Record what you found (or that AppDirect has no established pattern for this job).
|
|
56
|
+
|
|
57
|
+
### 2. Mantine patterns
|
|
58
|
+
|
|
59
|
+
When AppDirect has no established pattern, or to validate composition details:
|
|
60
|
+
|
|
61
|
+
- Mantine docs / `@mantine/mcp-server` (`search_docs`, `get_item_props`) for the relevant components and recipes.
|
|
62
|
+
- Note the Mantine default (variants, layout, overlay choice). Prefer Mantine patterns that map cleanly onto adopted design-system components.
|
|
63
|
+
|
|
64
|
+
Do **not** adopt Mantine `filled` / `light` / `subtle` / `transparent` / `white` / `gradient` button styles, palette props, or anything `ds-enforce` / `AGENTS.md` forbids — map to AppDirect variants instead.
|
|
65
|
+
|
|
66
|
+
### 3. Industry patterns (only for a named gap)
|
|
67
|
+
|
|
68
|
+
Skip when steps 1–2 answer the job. Write "Industry: not needed — \<reason\>" under Sources.
|
|
69
|
+
|
|
70
|
+
Otherwise, first name the gap in one line (for example "how to report partial failure of a bulk action"). Then find up to three comparable sources for that gap:
|
|
71
|
+
|
|
72
|
+
- Prefer published design-system guidance (Shopify Polaris, Atlassian, IBM Carbon, GOV.UK, Material) over memories of product screens.
|
|
73
|
+
- Cite a URL you opened in this session. If you could not open one, write "(from memory, unverified)". Never base a decision only on an unverified source.
|
|
74
|
+
- One line per source: what it does for the gap, and what you take or reject.
|
|
75
|
+
|
|
76
|
+
Use at most about five searches. Industry input never overrides `AGENTS.md` or DESIGN.md.
|
|
77
|
+
|
|
78
|
+
### 4. Draft plan, then design-system gate (required)
|
|
79
|
+
|
|
80
|
+
After 1–3, form a short working plan (archetype, flow, action hierarchy, key components). **Before** writing the full design-mode output, build a component inventory with one row per UI element:
|
|
81
|
+
|
|
82
|
+
| Element | Component (import name) | Variant / size | Source | Status |
|
|
83
|
+
| --- | --- | --- | --- | --- |
|
|
84
|
+
|
|
85
|
+
Status is one of:
|
|
86
|
+
|
|
87
|
+
- `adopted`
|
|
88
|
+
- `composed`: no single import (`PageContentHeader`, `ConfirmationModal`, `ConfirmationPopover`, row ⋯ menu); list the Mantine parts
|
|
89
|
+
- `out-of-system`: give the closest supported alternative
|
|
90
|
+
|
|
91
|
+
Each check must pass, or the row is marked `out-of-system`:
|
|
92
|
+
|
|
93
|
+
1. The import name is not in `mantineDisallowed` in `@appdirect/ds-enforce/eslint/contracts.json` (or `dist/eslint/contracts.json`). If listed, use its `replacement`.
|
|
94
|
+
2. Button variant is one of `primary`, `secondary`, `default`, `outline`, `danger`, `link`, `secret`. ActionIcon variant is one of `default`, `outline`, `link` (never `secret` on ActionIcon). Alert colour is one of `info`, `success`, `danger`, `pending`, `default`.
|
|
95
|
+
3. At most one `primary` per view. Count each modal or drawer as its own view. Read-only screens may have zero.
|
|
96
|
+
4. Every destructive action names its confirm overlay: `ConfirmationModal` (bulk or high-stakes) or `ConfirmationPopover` (single low-stakes item).
|
|
97
|
+
5. No colour except `--ad-*` tokens. No palette props, hex, `style`, `styles`, `vars`, or `classNames`.
|
|
98
|
+
6. Data grids: in micro UIs and prototypes use `src/components/Table`. `@appdirect/design-system` also ships `DataTable` (used in the design-system app and DESIGN.md examples). Treat DESIGN.md DataTable patterns (`filters`, `onFiltersChange`, `selectionActions`, row ⋯, narrow width) as **behavioural** — apply the same UX on `Table` (or on `DataTable` when the app imports it from the package).
|
|
99
|
+
7. Toasts use the micro-container `ad-toast` event (`document.body.dispatchEvent(new CustomEvent('ad-toast', { detail: { title, message, type } }))`), never Mantine `Notification`.
|
|
100
|
+
|
|
101
|
+
Paste the table under "Design-system gate" in the output. Remap or mark out-of-system rows — do not present them as approved.
|
|
102
|
+
|
|
103
|
+
Only then produce the design or review output.
|
|
104
|
+
|
|
105
|
+
## Design decisions
|
|
106
|
+
|
|
107
|
+
**Archetype:** list, detail, create/edit form, settings, dashboard, or multi-step (`Stepper`). List and detail stacks come from List page composition.
|
|
108
|
+
|
|
109
|
+
**Flow:** entry (nav item, page action, row), steps, exits, and where the user lands after success (after delete: return to the list; toast names the object).
|
|
110
|
+
|
|
111
|
+
**Action hierarchy**
|
|
112
|
+
|
|
113
|
+
- At most one `primary` CTA per view (zero is fine on read-only views).
|
|
114
|
+
- Page actions in `PageContentHeader` (Create, Export) — composed in apps from Mantine parts when the package does not export it.
|
|
115
|
+
- Bulk actions in the selection banner.
|
|
116
|
+
- Row actions in a ⋯ `Menu` behind `ActionIcon` (default variant) + `RiMore2Fill`, with a translated `aria-label`.
|
|
117
|
+
- `danger` only for destructive work, always two-step confirm: `ConfirmationModal` for bulk/high-stakes; `ConfirmationPopover` for a single low-stakes item. No type-to-confirm.
|
|
118
|
+
- `secondary` (cyan) deliberately; never Mantine `filled` / `light` / `subtle` / `transparent` / `white` / `gradient`.
|
|
119
|
+
|
|
120
|
+
**Filters and selection** (DataTable patterns): search always visible; extras behind the filter toggle; multi-select shows a count in the control and chips above the table (not inside the combobox); changing search/filters clears selection; cross-page selection OK under the same criteria.
|
|
121
|
+
|
|
122
|
+
**States:** first-run empty ≠ no-results ≠ cleared/completed empty (different copy and action); sparse (one row); dense / very long content (allow ~30% longer strings for i18n; truncate with `CellHoverReveal`, never by cutting copy); loading = skeletons for page/table, Button `loading` keeping the label for submit; errors = in-place `Alert` (field-level for forms, focus first error); unsaved changes warn before leave; long-running / partial bulk failure with retry; no permission = hide or disable per the permissions fact; success = `ad-toast`, not Mantine Notification. Narrow width: horizontal scroll per DataTable patterns.
|
|
123
|
+
|
|
124
|
+
**Content:** page and nav titles in Title Case, matching neighbouring nav items. Buttons and body use sentence case; buttons are verb + object ("Create subscription"). Keep the same verb through the flow ("Publish" → "Publishing…" → "Published"). Confirm copy names the object and says it cannot be undone **only when that is true**; otherwise say how to reverse it. Every string is a `translate` key.
|
|
125
|
+
|
|
126
|
+
**Accessibility:** Page micro UI: exactly one `Title order={1}` (the page header title — keep order 1 even when composing `PageContentHeader`). Widget micro UI: start at `order={2}`. Never skip levels; change look with `size`, not `order`. Icon-only controls have accessible names; overlays have titles.
|
|
127
|
+
|
|
128
|
+
## Self-critique before showing (copy into the reply)
|
|
129
|
+
|
|
130
|
+
- [ ] Stopped at the first research step that answered the job, and wrote why later steps were skipped?
|
|
131
|
+
- [ ] Design-system gate table filled; nothing out-of-system unmarked?
|
|
132
|
+
- [ ] At most one primary per view?
|
|
133
|
+
- [ ] Each action at the right tier?
|
|
134
|
+
- [ ] Every state covered (including form validation / unsaved / async)?
|
|
135
|
+
- [ ] No invented DESIGN.md citations?
|
|
136
|
+
- [ ] Every assumption labelled?
|
|
137
|
+
- [ ] No TBDs, contradictions, or requirements that read two ways?
|
|
138
|
+
|
|
139
|
+
## Design mode — output
|
|
140
|
+
|
|
141
|
+
Use these headings, then **stop** and ask the user to approve or change the spec. Do not build. Say: reply "approved" (or your changes); do not start implementation from the plan UI.
|
|
142
|
+
|
|
143
|
+
### Summary
|
|
144
|
+
Job, persona, archetype.
|
|
145
|
+
|
|
146
|
+
### Problem and success
|
|
147
|
+
Job story: "When \<situation\>, \<persona\> wants to \<motivation\>, so they can \<outcome\>."
|
|
148
|
+
Out of scope. One or two observable success signals.
|
|
149
|
+
|
|
150
|
+
### Placement
|
|
151
|
+
Menu, namespace, collection, nav label (Title Case), page path if known.
|
|
152
|
+
|
|
153
|
+
### Flow
|
|
154
|
+
Entry, steps, exits, success landing.
|
|
155
|
+
|
|
156
|
+
### Layout
|
|
157
|
+
Per screen, top-to-bottom outline naming design-system components and variants. Optional short ASCII wireframe when it clarifies structure.
|
|
158
|
+
|
|
159
|
+
### Data
|
|
160
|
+
Entity. For each field shown: name, type, display format, example value, whether it can be empty or very long, and whether it can be sorted or filtered. Expected row counts (0, 1, typical, large).
|
|
161
|
+
|
|
162
|
+
### Actions
|
|
163
|
+
| Action | Tier | Component / variant | Confirm |
|
|
164
|
+
| --- | --- | --- | --- |
|
|
165
|
+
|
|
166
|
+
### States
|
|
167
|
+
First-run, no-results, cleared/completed, sparse, loading, error, success, permission, form validation / unsaved, async / partial failure.
|
|
168
|
+
|
|
169
|
+
### Copy
|
|
170
|
+
Titles, buttons, confirms, empty/error strings (as intended English; note they become `translate` keys).
|
|
171
|
+
|
|
172
|
+
### Accessibility
|
|
173
|
+
Heading plan, named icon controls, overlay titles.
|
|
174
|
+
|
|
175
|
+
### Alternatives considered
|
|
176
|
+
Two or three options for the riskiest decision (page vs modal vs drawer, table vs cards, wizard vs single form), each with tradeoff, plus which you chose and why.
|
|
177
|
+
|
|
178
|
+
### Decisions
|
|
179
|
+
| Decision | Basis (rule / precedent / Mantine / industry / designer call) | Source |
|
|
180
|
+
| --- | --- | --- |
|
|
181
|
+
|
|
182
|
+
### Sources
|
|
183
|
+
- AppDirect: DESIGN.md sections, precedent paths, stories, Figma nodes
|
|
184
|
+
- Mantine: docs / MCP items used (or "not needed")
|
|
185
|
+
- Industry: gap, sources with URLs (or "unverified"), takeaway — or "not needed" and why
|
|
186
|
+
|
|
187
|
+
### Design-system gate
|
|
188
|
+
Paste the component inventory table. Note remaps and rejections.
|
|
189
|
+
|
|
190
|
+
### Assumptions and open questions
|
|
191
|
+
Anything not backed by a rule or precedent.
|
|
192
|
+
|
|
193
|
+
## Review mode — output
|
|
194
|
+
|
|
195
|
+
Given a screen (file path, running URL, prototype, or Figma node), run research, decisions, and self-critique against it. No edits.
|
|
196
|
+
|
|
197
|
+
Each finding:
|
|
198
|
+
|
|
199
|
+
- **Where:** file:line, URL plus region, or Figma node id
|
|
200
|
+
- **Severity:** 4 blocker (data loss, can't finish the job, ds-enforce fail) · 3 major · 2 minor · 1 cosmetic
|
|
201
|
+
- **Tag:** `rule:<section>` · `heuristic:N<1–10>` · `precedent:<path>`
|
|
202
|
+
- **Evidence:** quote, screenshot, or line
|
|
203
|
+
- **Fix:** the specific change, in design-system terms
|
|
204
|
+
|
|
205
|
+
Sort by severity. Mark low-confidence severities with "?". End with **Keep** (at most 3 bullets): what works and should not change.
|