Teams panel: explain roles, invite role picker, consistent role words, confirm lock and remove #101

Closed
opened 2026-10-03 06:38:02 +00:00 by jhgaylor · 0 comments
Owner

The Teams panel (web/src/ui/control.tsx) works, but it doesn't explain itself and has some sharp edges.

  • Empty state: only "Teams share their machines with their members." Nothing on roles, how a machine becomes a team machine, or that you approve every invitee.
  • Every member sees "add a machine with illogicald join … --team …", but only owners can approve that join.
  • Invite role is hard-coded: s.invite(t.team, "editor"), with no picker.
  • The invite link appears below all teams, not in the team it's for. Plain text (#99).
  • Role words disagree. Owner's select: "watches / drives / owner". Non-owners see raw viewer / editor. AdmitPrompt says "as editor". The Share dialog says "can watch / can drive".
  • Lock (owners only) applies on one click and drops every invite and pending request (teams.rs), with no explanation or confirm.
  • Remove member has no confirm (Devices does: "Really remove?").

Close it by

  • An intro on the empty state and above the list: watches sees the team's machines and panes; drives types, answers agents and sends follow-ups; owner adds machines, invites, changes roles. Plus "Machines join a team when an owner approves them for it."
  • The join command shown to owners only. Members see "Ask an owner to add a machine."
  • An invite role picker (default drives), with the link and its copy/share button inside that team's section.
  • One roleLabel() map used by Teams, AdmitPrompt, InvitePrompt and Share.
  • Confirms on Lock ("Lock: only owners reach the team's machines; open invites and requests are dropped") and on Remove.
The Teams panel (`web/src/ui/control.tsx`) works, but it doesn't explain itself and has some sharp edges. - **Empty state:** only "Teams share their machines with their members." Nothing on roles, how a machine becomes a team machine, or that you approve every invitee. - **Every member sees** "add a machine with `illogicald join … --team …`", but only owners can approve that join. - **Invite role is hard-coded:** `s.invite(t.team, "editor")`, with no picker. - **The invite link** appears below *all* teams, not in the team it's for. Plain text (#99). - **Role words disagree.** Owner's select: "watches / drives / owner". Non-owners see raw `viewer` / `editor`. `AdmitPrompt` says "as editor". The Share dialog says "can watch / can drive". - **Lock (owners only)** applies on one click and drops every invite and pending request (`teams.rs`), with no explanation or confirm. - **Remove member** has no confirm (Devices does: "Really remove?"). **Close it by** - An intro on the empty state and above the list: **watches** sees the team's machines and panes; **drives** types, answers agents and sends follow-ups; **owner** adds machines, invites, changes roles. Plus "Machines join a team when an owner approves them for it." - The join command shown to owners only. Members see "Ask an owner to add a machine." - An invite role picker (default *drives*), with the link and its copy/share button inside that team's section. - One `roleLabel()` map used by Teams, `AdmitPrompt`, `InvitePrompt` and Share. - Confirms on Lock ("Lock: only owners reach the team's machines; open invites and requests are dropped") and on Remove.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#101
No description provided.