refactor(post-form): derive disclosure default from rendered markup
initDisclosure hardcoded blueprint defaults into a field-name regex (/\[published\]$/) to decide which toggle state counts as a deviation worth auto-expanding "More options". Read each toggle's default from the HTML `checked` attribute instead — Grav's toggle template stamps it on the default option, and prefill/edit only ever set the live `.checked` property — so a future default-ON advanced toggle Just Works. Rebuilt bundle. Code review F4 (maintainability). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mpdu3Dt1iVoozHwAMyjrbn
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user