All problems

Gallery Panel Summaries Omit Counters for States With No Panels

Level 2 · node · API · Fixed response keys for state counts

Scenario

A fictional small gallery displays exhibition panel readiness by room. The dashboard reads a fixed set of three counters, but some rooms show blanks instead of numbers. Trace the repository, aggregation, and response flow.

Requirements

Room summaries must always return the three keys queued, mounted, and resting. Use zero when a state has no panels and ignore nonstandard states.

Acceptance criteria

  • Return the correct counts for states with panels.
  • Include standard states without panels with a count of zero.
  • Return all three standard states even for an empty room.
  • Do not expose legacy nonstandard states as counter keys.
  • Count only panels in the requested room.