Skip to content

[Phase C3] Render brief and style guide as human-readable cards #28

@terisuke

Description

@terisuke

Tracked under ADR 0002 — Phase C. Detail: implementation plan §C3.

Problem

The completed brief is rendered as JSON.stringify(brief, null, 2) (static/js/script.js:178) and the style guide as raw Markdown inside a <pre> (static/index.html:99). The user explicitly flagged this: accumulated knowledge must be visible in a human-readable form, not as JSON dumps.

Scope

Replace JSON dump with a card stack:

Brief card components:

  • Theme (heading)
  • Reader (chip)
  • Must-include (chip list)
  • Exclusions (chip list)
  • Opening episode (quote block)
  • Tone / stance (badge)
  • Expected reader action (callout)
  • Per-deep-dive answer accordion (collapsed by default; one accordion per deep-dive target with the parent question label as the accordion title)

Style guide card components:

  • First-person badge
  • Recurring themes (chip list)
  • Opening pattern (quote block)
  • Conclusion pattern (quote block)
  • Anti-patterns (warning callouts)
  • Article count and last-analysed timestamp

Both cards have an Edit affordance that updates the underlying brief/guide and persists to SQLite.

Acceptance criteria

  • No JSON visible to the end user during normal operation.
  • Editing a brief field updates the in-memory session and persists to SQLite.
  • Editing a style guide field versions the guide (does not destroy history) — depends on C1 versioning.
  • Cards are accessible (keyboard navigation, ARIA labels).
  • Cards work for all 5 formats (technical formats may add fields like target_stack badge).

Dependencies

  • C1 (SQLite for edit persistence), B5 (format-aware fields).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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