Skip to content

Right column: merge the "Shared with me" groups into one #199

Backlog

Description

@bencode

What it does now

Each share link joined is its own group in the right column's Agents (web/src/shell/workbench/shared-with-me.tsx):

  • prefs.sharesJoined keeps one key per link joined (joinShare / leaveShare in web/src/core/prefs.ts).
  • SharedSpacesProvider (web/src/core/shared-spaces.tsx) opens one relay space per key.
  • SharedWithMe draws one SharedGroup per space, each with its own "Shared with me" heading, count and "…" → Remove menu.
  • A space whose machines are all offline is drawn greyed with "Their machine is offline, or the share has ended." It stays until removed by hand from that group's hover menu.

So every share someone sends adds another "Shared with me" heading, and ended ones pile up above the live ones:

Shared with me
  Their machine is offline, or the share has ended.
Shared with me 1
  Weis-MacBook-Pro 1
    <agent>

Proposal

One "Shared with me" heading for all shares, the count summed over the shares shown:

Shared with me 3
  Weis-MacBook-Pro 2
    <agent>
    <agent>
  Another-Mac 1
    <agent>
  2 ended  ▸            (folded; Remove per share, or Remove all)
  • Group the agents by owner machine across shares. Two shares from the same machine (same machine.id) go under one machine heading.
  • Fold the shares that have ended or are offline into one line at the bottom, not one heading each. Unfolded, each one shows when it was joined and has its own Remove.
  • Keep one connecting state for the whole section, not one per share.

Open questions

  • Should an ended share drop out by itself after a while (e.g. 7 days offline), or only when removed? The page can't tell "offline" from "share stopped".
  • Out of scope: the phone web does not show shared agents at all yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions