@godxjp/ui 32.7.0 → 32.7.2
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/DESIGN.md +2 -1
- package/README.md +1 -1
- package/agent/DESIGN.md +2 -1
- package/agent/START-HERE.md +1 -1
- package/agent/components/ListRow.json +1 -0
- package/agent/components.json +1 -0
- package/agent/index.json +3 -3
- package/agent/llms.txt +4 -4
- package/dist/components/data-display/data-table.js +2 -11
- package/dist/components/data-display/list-row.js +60 -1
- package/dist/contracts/measurement.json +1 -1
- package/dist/lib/truncation.d.ts +14 -0
- package/dist/lib/truncation.js +14 -0
- package/dist/styles/data-display-layout.css +12 -0
- package/dist/styles/focus-ring.css +1 -0
- package/dist/styles/layers.json +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/scripts/_agent-setup.mjs +5 -3
- package/scripts/ui-audit.mjs +7 -3
package/package.json
CHANGED
package/scripts/_agent-setup.mjs
CHANGED
|
@@ -187,8 +187,9 @@ Follow this every time you create or change a page, component or form.
|
|
|
187
187
|
2. **Route.** \`route_consumer_task "<task>"\` → \`compose-a-screen\` for app screens. The
|
|
188
188
|
marketing skills (soft, minimalist, brutalist, gpt-tasteskill, imagegen-*) are for landing
|
|
189
189
|
pages only.
|
|
190
|
-
3. **Exemplar.** \`get_exemplar\`
|
|
191
|
-
|
|
190
|
+
3. **Exemplar.** \`get_exemplar\` for the closest archetype (call it with no argument for the
|
|
191
|
+
list: list, detail, editor/form, reader/document, settings, dashboard, approval-queue). Match
|
|
192
|
+
its structure; it is the visual target.
|
|
192
193
|
4. **Discover, then look up.** \`search_components "<area>"\` first, \`get_component <Name>\`
|
|
193
194
|
second — \`get_component\` cannot find a name you do not already have (a consumer hand-rolled
|
|
194
195
|
the shipped \`OrgSwitcher\` and \`TopbarItem\` this way). Code already in this repo is not the
|
|
@@ -226,7 +227,8 @@ ${STAMP(KIT_VERSION)}
|
|
|
226
227
|
Before any JSX for a screen:
|
|
227
228
|
1. Read \`node_modules/@godxjp/ui/DESIGN.md\` (MCP \`get_design\`).
|
|
228
229
|
2. \`route_consumer_task\` → \`compose-a-screen\`; \`search_components\` before hand-rolling anything.
|
|
229
|
-
3. \`get_exemplar\` (
|
|
230
|
+
3. \`get_exemplar\` (no argument lists the archetypes: list, detail, editor, reader, settings,
|
|
231
|
+
dashboard, approval-queue) — match its structure.
|
|
230
232
|
|
|
231
233
|
After building:
|
|
232
234
|
4. \`npx @godxjp/ui audit <files>\` — zero errors.
|
package/scripts/ui-audit.mjs
CHANGED
|
@@ -109,8 +109,12 @@ function changedFiles() {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
const parts = [
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
// `--relative` (gh#1296): `git diff` names paths from the REPO root, `ls-files` from the cwd.
|
|
113
|
+
// Run from a workspace package (pages/) the root-relative names failed the existsSync below
|
|
114
|
+
// and were dropped, so 16 changed .tsx read as "no .tsx/.jsx changed" — a false clean.
|
|
115
|
+
// `--relative` makes both cwd-relative and limits them to the package being audited.
|
|
116
|
+
run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", mergeBase.trim(), "--"]),
|
|
117
|
+
run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", "--cached"]),
|
|
114
118
|
run(["ls-files", "--others", "--exclude-standard"]),
|
|
115
119
|
];
|
|
116
120
|
if (parts.some((out) => out === null)) {
|
|
@@ -2551,7 +2555,7 @@ if (filesScanned === 0 && !changedNoFiles) {
|
|
|
2551
2555
|
// Dưới `--changed`, NÓI RA base đã so. Một base sai không làm chương trình chết — nó cho ra một
|
|
2552
2556
|
// con số hợp lý, và đó là thứ duy nhất người đọc có thể dùng để nghi ngờ (gh#948).
|
|
2553
2557
|
if (CHANGED && changed?.base) {
|
|
2554
|
-
console.log(`${C.dim}
|
|
2558
|
+
console.log(`${C.dim}compared with: ${changed.base}${C.reset}`);
|
|
2555
2559
|
}
|
|
2556
2560
|
// Bỏ file trong im lặng là cách một gate thu hẹp dần mà không ai thấy (cùng lý do với dòng
|
|
2557
2561
|
// `so với:` ngay trên). Nói ra số file và lãnh thổ đã dùng.
|