Skip to content

Viewer: collapsible detail blocks with item counts #58

Description

@EYH0602

Background

Gap analysis vs the deployed ara-hub viewer (https://www.agenticresearch.sh/ara/AmberLJC/ara-paperbench/artifacts/speedrun/nanogpt-speedrun).

Problem

Every block in the detail pane (.block cards, crates/ara-viewer/src/detail.rs) is always fully expanded. Table-heavy artifacts repeat large exhibits on many nodes — the nanogpt-speedrun artifact repeats a 21-row + 6-row table on ~10 nodes — making the detail pane a wall of tables with the reasoning content buried between them.

The hub wraps each block in <details>/<summary> with a right-aligned count tag (e.g. "result · 2"), so readers can collapse heavy blocks.

Proposal

Convert .block sections (evidence, result, built on, sources, typed fields) into collapsible sections, default open, with an item-count tag in the summary row (claims count, exhibits count, etc.). Persist collapse state per node at most — no global persistence needed.

Acceptance

  • Each detail block can be collapsed/expanded, default open
  • Summary row shows an item count where meaningful
  • Keyboard accessible (native <details> or equivalent ARIA)
  • Screenshot/DOM test coverage

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions