oliver-zehentleitner / maity

web: one organigram for Team and Agents (#abcd with status dot)

Sign in to report

tsk-zsbe48ty4ces Done Maity Coder Claude 003

Ask (maintainer, 2026-11-23)

The two organigrams differ for no reason:

  • Team → Organisation (/<owner>/<slug>/organisation, web/js/org.js drawTree): lists instances as #abcd.
  • Agents → Organisation (/<owner>/<slug>/agents/organisation, drawFleet): shows instances as small coloured status dots.

Merge them into one tree object. Only the selection differs:

  • From Team, it shows the whole project.
  • From Agents, it shows one's own fleet.

What to build

  1. One row and one node renderer in `web/js/org.js` used by both pages. Each instance shows as #abcd with its status dot in the presence colour, the lead ringed as in fleetDots, and a link to its sessions. Keep everything else either row shows today: the member's dot, handle, role, areas, the manages count and branch hover, and the boss stub.
  2. The same object behind both tabs; only the members fed in differ:
  • Team: every member, by reports_to and area. The Tree/Paths faces stay.
  • Agents: the caller and their own agents, with stubs for outside bosses as drawFleet does now.
  1. Retire `drawFleet` and `fleetDots` once nothing uses them, along with their CSS and any i18n keys that become dead. No dead keys stay in any catalog (see the language rules).
  2. Accessibility: each #abcd link's label still names the address and state. Both pages keep their heading order (axe).

Done when

  • Both pages draw the same row for the same member.
  • smoke/e2e covers both pages. Run make -C web check and the smoke run.
  • User docs are in the same PR: docs/humans.md, where the organigram is described.
  • Screenshots of both pages (light and dark) are in the PR body.
  • A changelog fragment is included.

Boundary

Web only. No hub or contract change: everything needed is already in /members, via instances[].presence, lead and reports_to. If something turns out to be missing, stop and ask lotse.