ADR — PR #988
2026-05-20 10:00 — Update SettingsShell nav highlighting to use resolvedActiveId
Section titled “2026-05-20 10:00 — Update SettingsShell nav highlighting to use resolvedActiveId”- Comment: https://github.com/dboone31/erp-unlocked/pull/988#discussion_r1
- Priority: must-fix
- Decision: modify
- Rationale: Ensured nav highlighting and aria-current use the resolved active section ID for correct accessibility.
2026-05-20 10:05 — Relocate hiddenSections declaration into Astro frontmatter
Section titled “2026-05-20 10:05 — Relocate hiddenSections declaration into Astro frontmatter”- Comment: https://github.com/dboone31/erp-unlocked/pull/988#discussion_r2
- Priority: must-fix
- Decision: modify
- Rationale: Moved hiddenSections logic into frontmatter to prevent parsing errors.
2026-05-20 12:00 — Resolve activeId usage in SettingsShell
Section titled “2026-05-20 12:00 — Resolve activeId usage in SettingsShell”- Comment: https://github.com/dboone31/erp-unlocked/pull/988#discussion_r123456789
- Priority: must-fix
- Decision: modify
- Rationale: Fixed nav highlighting by using resolvedActiveId consistently for aria-current and active state checks.
2026-05-20 12:05 — Move hiddenSections into Astro frontmatter
Section titled “2026-05-20 12:05 — Move hiddenSections into Astro frontmatter”- Comment: https://github.com/dboone31/erp-unlocked/pull/988#discussion_r123456790
- Priority: must-fix
- Decision: modify
- Rationale: Placed hiddenSections declaration inside the Astro frontmatter block to avoid parsing errors.
2026-05-20 13:00 — Finalize CodeRabbit fixes
Section titled “2026-05-20 13:00 — Finalize CodeRabbit fixes”-
Comment: https://github.com/dboone31/erp-unlocked/pull/988#pullrequestreview-
-
Priority: must-fix
-
Decision: modify
-
Rationale: Completed required nav highlight and hiddenSections fixes per CodeRabbit feedback.
-
Comment: https://github.com/dboone31/erp-unlocked/pull/988#discussion_r123456790
-
Priority: must-fix
-
Decision: modify
-
Rationale: Placed hiddenSections declaration inside the Astro frontmatter block to avoid parsing errors.
2026-05-18 22:00 — Migrate SettingsShell to Nanostores
Section titled “2026-05-18 22:00 — Migrate SettingsShell to Nanostores”- Comment: N/A (proactive fix based on project-wide “Recurring CodeRabbit findings”)
- Priority: nice-to-have
- Decision: accept
- Rationale: Following the project mandate to prefer Nanostores over
useStatefor state management. CreatedsettingsStore.tsand movedactiveIdinto a shared atom to align with architectural standards and ensure consistency with sibling components.
2026-05-19 10:30 — Fix nav highlighting to use resolved active section ID
Section titled “2026-05-19 10:30 — Fix nav highlighting to use resolved active section ID”- Comment: CodeRabbit — SettingsShell nav highlighting (resolved active section id)
- Priority: must-fix
- Decision: accept
- Rationale: The nav highlighting was using the original activeId even when the resolved active section falls back, causing no item to receive aria-current=“page” and potentially breaking accessibility.
2026-05-19 10:30 — Move hiddenSections declaration into Astro frontmatter
Section titled “2026-05-19 10:30 — Move hiddenSections declaration into Astro frontmatter”- Comment: CodeRabbit — settings.astro hiddenSections frontmatter placement
- Priority: must-fix
- Decision: accept
- Rationale: The declaration was incorrectly placed outside the Astro frontmatter block, which would break parsing during page compile.
2026-05-19 14:30 — Verify SettingsShell nav highlighting uses resolvedActiveId
Section titled “2026-05-19 14:30 — Verify SettingsShell nav highlighting uses resolvedActiveId”- Comment: CodeRabbit — SettingsShell nav highlighting (resolved active section id) — verification pass
- Priority: must-fix
- Decision: accept
- Rationale: Verified that nav highlighting already uses
resolvedActiveIdconsistently for botharia-currentand active state checks, ensuring accessibility and visual state remain in sync.
2026-05-19 14:35 — Verify settings.astro hiddenSections placement
Section titled “2026-05-19 14:35 — Verify settings.astro hiddenSections placement”- Comment: CodeRabbit — settings.astro hiddenSections frontmatter placement — verification pass
- Priority: must-fix
- Decision: reject
- Rationale: The
hiddenSectionsdeclaration is already correctly placed within the Astro frontmatter block in the current branch. No action required.
2026-05-19 14:00 — Remove SECTIONS[0] fallback from active section resolution
Section titled “2026-05-19 14:00 — Remove SECTIONS[0] fallback from active section resolution”- Comment: CodeRabbit second review on PR #988
- Priority: nice-to-have
- Decision: accept
- Rationale: The
?? SECTIONS[0]fallback could reintroduce a section that was explicitly hidden when all visible sections are filtered out. Changed to?? nullwith explicit empty-state handling in the content area.
2026-05-19 14:00 — Replace ADR placeholder links with real PR URLs
Section titled “2026-05-19 14:00 — Replace ADR placeholder links with real PR URLs”- Comment: CodeRabbit second review on PR #988
- Priority: nice-to-have
- Decision: accept
- Rationale: The ADR contained placeholder links
(hypothetical link for ...)that were not valid GitHub URLs. Replaced with real PR review and files URLs.
2026-05-19 14:30 — Update SettingsShell variable naming for resolved active section
Section titled “2026-05-19 14:30 — Update SettingsShell variable naming for resolved active section”- Comment: CodeRabbit — SettingsShell variable naming for resolved active section
- Priority: must-fix
- Decision: modify
- Rationale: Renamed the resolved active section variable in
SettingsShell(and aligned references tohiddenSectionsfiltering) so the variable name accurately reflects that it represents the resolved active section ID afterhiddenSectionsfiltering — improving readability and making the relationship betweenhiddenSectionsand the active section explicit.