feat(design): add advisory conformance check and local Studio - #8313
BillLeoutsakosvl346 wants to merge 69 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@cubic-dev-ai review this PR |
@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete. |
|
There was a problem hiding this comment.
All reported issues were addressed across 113 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
|
@cubic-dev-ai review this PR |
@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 114 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
|
@cubic-dev-ai review this PR |
@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 114 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
|
@cubic-dev-ai review this PR |
@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 119 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
|
Superseded by draft #8396, which carries the complete design tooling work and includes the latest staging merge. Continuing CI and reviewer follow-up there. |
Summary
scan.jsonfor Studio. No generated metadata file or freshness audit is required.tools/design-studio, outside Sim's deployed routes. An explicit refresh inventories every public EMCN visual export and every detected Extra; missing fixtures stay visible.apps/sim/scripts/, Monaco presentation, provider branding, and block identity palettes. Browser desktop screens remain in scope.Product appearance is unchanged. This draft targets
staging, supersedes #7827, and will not be merged automatically.Cleanup in this revision
contracts.generated.json, its writer and freshness check, and the diff check's artifact dependency. Source-derived metadata remains independently computed for the base and proposed revisions.SourceIndexbridge while keeping central recipe resolution. Inspection failures now carry an explicit marker rather than being inferred from diagnostic wording.Workflow
bun run check:design --base origin/staging --working-tree bun run check:design --base origin/staging --head HEAD bun run design:scan --repo . --working-tree --output /tmp/sim-design-scan bun run studio:refresh bun run studio:devThe diff checker includes staged, unstaged, and nonignored new product files. CI compares immutable commits. Full scans and Studio refreshes are explicit local commands and publish reports outside the checkout.
Verification
apps/sim/scripts/scope.Coverage limits
New public exports and finite variants are discovered automatically, but an export requiring props or providers may need a fixture adapter. Unsupported static flows remain
unchecked; a failed inspection is an error. A completed scan does not imply every Extra has a source-backed preview. Seescripts/design-conformance/README.mdandscripts/design-studio/README.md.Review follow-up
--format jsonor--output /tmp/design-check.jsonwhen the 20-item unchecked preview is abbreviated.scan.jsoninto Studio refresh. It checks the export, variant, direct use, and Extra handoff.Studio freshness follow-up (
97121492c2)scan.jsonversion 3 includes the working-tree source revision; immutable scans recordnull. The scanner, refresh command, and page loader now use one revision calculation.latest.json. Existing publications remain available on rejection.readymeans renderable, not necessarily source-backed.Central EMCN ownership follow-up (
8d6fcb44bf)packages/emcn/src/design-ownership.json: 18 reasoned decisions across ten components. Ordinary exports, variants, defaults, and styling slots remain source-derived. The ten component implementations now matchstagingbyte-for-byte; this change does not alter runtime rendering.scan.jsonpublishes the decisions with effective export metadata, so the scanner and Studio share the same ownership inventory. Authoring guidance now points to the central file..nextdirectory aside. An isolated local build of currentstagingpassed. This local/CI discrepancy remains unclassified; it did not affect the passing CI production build.Test layout follow-up (
6c3db54527)scripts/design-conformance/; Git records them as renames. The formergenerate-design-contracts.test.tsis nowgenerated-contracts.test.ts.scripts/openapikeeps its separate suite. Removed a stale lint/format glob for the deleted generator test path.Tooling layout follow-up (
66e1cd3abf)scripts/design-conformance/{shared,system,styling,controls,diff}/; tests live beside their owners. The full scanner and local Studio remain separate entry points.