Skip to content

feat(cli): drive scan curation from Figma devStatus + v2 manifest#86

Open
nathanacurtis wants to merge 6 commits into
mainfrom
feature/scan-ready-replace
Open

feat(cli): drive scan curation from Figma devStatus + v2 manifest#86
nathanacurtis wants to merge 6 commits into
mainfrom
feature/scan-ready-replace

Conversation

@nathanacurtis
Copy link
Copy Markdown
Member

Summary

  • scan now drives curation from Figma's Ready for Dev signal: components with devStatus: READY_FOR_DEV are checked by default; libraries without any devStatus signal fall back to the legacy heuristic.
  • Rescans merge with the prior manifest — manual checkbox edits are preserved unless devStatus changed for a row (Figma wins). --keep-checks locks manual edits regardless; --reset-checks ignores the prior manifest entirely.
  • New v2 manifest format (markdown table with Dev Status column, **Scan format version:** header, **File last modified:**). Legacy v1 (checkbox-list) manifests are detected and migrated automatically by an isolated ManifestMigrationV1ToV2 module marked DELETE-WHEN for clean future removal.
  • Docs updated: cli/commands/scan.md, cli/getting-started.md, cli/workflows.md.

Test plan

  • Unit tests for ManifestParserV2, ManifestMigrationV1ToV2, deriveDefaultInclusion, mergeRows (20 new tests).
  • Existing ComponentDiscovery tests updated for the new devStatus field; new test verifies extraction + getFileLastModified().
  • Integration parity test updated to expect the v2 table format.
  • Full CLI suite: 194 passed, 2 skipped.
  • End-to-end against specs-testing Figma file:
    • Default merge after marking TEST PropBinding 1 as Ready for Dev: 1 updated by devStatus, 186 preserved — devStatus flip flowed through, prior manual checks preserved.
    • --reset-checks: 1 selected (only the READY_FOR_DEV row).
    • v1 → v2 auto-migration on first post-upgrade scan.

🤖 Generated with Claude Code

nathanacurtis and others added 6 commits May 6, 2026 17:17
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 2x page grid padding and nav–content gutter at wide viewports
- Increase sidebar item spacing (+4px) and padding (+2px → 8px)
- Remove distinct surface colors and borders between nav/sidebar/content
- Force dark mode and hide theme toggle
- Move GitHub and Figma Plugin links from header to top of sidebar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…format

Scan now reads each component's devStatus from the document tree and uses
READY_FOR_DEV as the default inclusion signal. Rescans merge with the prior
manifest, preserving manual checkbox edits unless devStatus changed for a
row (Figma wins). New flags:
  --keep-checks   preserve prior checks even when devStatus flips
  --reset-checks  ignore prior manifest entirely

Manifest format upgraded to v2 (table with Dev Status column, scan format
version header, file last modified). Legacy v1 checkbox-list manifests are
detected and migrated automatically; the migration code lives in an
isolated module (ManifestMigrationV1ToV2) marked DELETE-WHEN for clean
removal once v1 manifests are no longer in the wild.

Docs in site/cli/{commands/scan,getting-started,workflows} updated for the
new format, default rule, merge behavior, and flags.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Usage, Format, Authoring (Defaults, Rescan), Examples, Arguments, Options, Migration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Base automatically changed from release/schema-0.21.0+cli-0.14.0 to main May 15, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant