WORK-068
ID:WORK-068Status:done

Inspector Dimensions Audit

Priority:mediumComplexity:simpleMilestone:v0.9.0
claude/align-sidenav-styling-4MuxV View source

Criteria completion

No incremental history — criteria tracking started on Apr 17.

Branches 3
History 3
  1. ef043bd
    Content editedby Claude
    feat(cli): add --audit-dimensions to refrakt inspect (WORK-068)
  2. a129a9e
    Content editedby Claude
    Assign all new work items (WORK-051–068) to v0.9.0 milestone
  3. a333007
    Created (done)by Claude
    Add work items for SPEC-024 (Metadata) and SPEC-025 (Universal Theming)

Summary

Add a --audit-dimensions flag to refrakt inspect that verifies universal theming dimension coverage: surface assignments, density theming, section anatomy theming, interactive state theming, and media slot theming. Flags community runes missing surface assignments and any dimension values without corresponding theme CSS.

Acceptance Criteria

  • refrakt inspect --audit-dimensions shows surface assignments with rune counts and unassigned runes
  • Audit shows density coverage across all three levels
  • Audit shows section anatomy coverage for all 6 section roles
  • Audit shows interactive state coverage
  • Audit shows media slot coverage for all 5 slot types
  • Community runes with dimensions but no surface assignment are flagged
  • --json flag works with --audit-dimensions

Approach

Extend the inspector audit. Walk all rune configs collecting dimension declarations. Walk theme CSS collecting [data-density], [data-section], [data-state], [data-media] selectors. Cross-reference and report gaps.

References

  • SPEC-025 (Universal Theming Dimensions — Inspector Audit)