Skip to content

refactor: Hybrid chapter pages — index by default, inline text on demand #144

@williamzujkowski

Description

@williamzujkowski

Problem

Chapter pages like Title 6 Ch. 1 (341 sections) render ALL statutory text inline, causing slow loads and mobile layout issues.

Proposal (consensus 2-1)

Convert to hybrid: index view by default (LII pattern), "Read full chapter" toggle loads inline text on demand.

Default view (index)

  • Section list with links (like current title TOC but at chapter level)
  • Fast loads, clean mobile layout

Toggle view (inline text)

  • Current full-text experience preserved
  • Loaded on demand (client-side fetch or hidden HTML revealed)
  • Only for users who specifically want to read in flow

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendAstro static site

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions