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.jsdrawTree): 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
- One row and one node renderer in `web/js/org.js` used by both pages. Each instance shows as
#abcdwith its status dot in the presence colour, the lead ringed as infleetDots, and a link to its sessions. Keep everything else either row shows today: the member's dot, handle, role, areas, themanagescount and branch hover, and the boss stub. - The same object behind both tabs; only the members fed in differ:
- Team: every member, by
reports_toand area. The Tree/Paths faces stay. - Agents: the caller and their own agents, with stubs for outside bosses as
drawFleetdoes now.
- 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).
- Accessibility: each
#abcdlink'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 checkand 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.