Skip to content

DQ1 — SQ1 follow-up pair: honest read-failure surfacing + dead prop removal #25

Closed

Description

@Jacksondr5

Two small, related cleanups deferred out of the Squadron creation surface work (PR #35's lineage) with Director-accepted deferrals and named returns. This ticket is that return. Both live in the web sidebar's Squadron-scoping path.

1. Surface transient thread-home read failures honestly

When the sidebar is scoped to a selected Squadron, each thread's home Squadron is resolved via the participant-homes client read (POST /api/j5/a2a/client-reads/participant-homes). If that read fails transiently (network hiccup, server restart), the scoped sidebar currently renders the same as "this Squadron has no threads" — a silent empty list that lies about the world.

Required behavior (Director ruling, 2026-08-30): a transient read failure renders a named failure state — visibly distinct from a true empty Squadron — and recovers on the next successful read. Never silent-empty. This follows the standing product law that unknowns render explicitly, never guessed (see docs/j5/product/ui-conventions… — unknowns/never-guess is also stated in the feature docs the sidebar work cites).

2. Remove the vestigial projectIds on SquadronChoice

SquadronChoice still carries a projectIds field that became display-dead when the visibility ruling landed: a selected Squadron scope filters threads by their Registrar-recorded home, never by a folder/project proxy. Nothing renders from projectIds anymore. Remove the field and its plumbing end-to-end (type, producers, any test fixtures) rather than leaving a dead prop that invites a future folder-proxy regression — the repo rule is no dead code without a named consumer (docs/j5/process/working-in-the-repo.md).

Acceptance

  • With a Squadron selected: kill the server (or block the read) → the sidebar shows the named failure state, not an empty list; restore → threads reappear without a reload.
  • A genuinely empty Squadron still renders as empty (the two states must be visually and semantically distinct).
  • projectIds is gone from SquadronChoice and everything that fed it; typecheck and the focused web tests pass; no behavior change beyond the failure state.
  • Note: apps/web component tests are static-markup and cannot exercise the failure/recovery interaction — verify that path in a real client pass (see docs/j5/process/working-in-the-repo.md).

Both changes are j5/-owned surfaces; no upstream file edits are expected. If one turns out to be needed, it is an enumerated FORK.md integration case, not a drive-by.

Activity

  1. added
    dogfood-queue
    on Aug 31, 2026
  2. self-assigned this
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dogfood-queue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions