You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(transformer): add 'status' frontmatter field for section state (#90) (#91)
Transformer:
- Add SectionStatusSchema enum (active|repealed|reserved|omitted|transferred|renumbered)
- Add detectSectionStatus() function to derive status from heading text
- Generate status field in YAML frontmatter for every section
- Export new types and function
Content Collection:
- Add status field to schema with 'active' default for backwards compat
Frontend (statute + browse):
- Use entry.data.status as primary check with title-based fallback
- Eliminates fragile string matching as sole detection method
- Single source of truth for status in the transformer
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments