Skip to content

Member tour "find your way": role-aware tour of a workspace's real data #1407

Backlog

Description

@athvin

Why

Someone joining an existing workspace doesn't need to build anything. Their colleagues already did. What they need is orientation: where the real records are, how a duplicate group was decided, and what their role lets them do.

Making a member walk through "create a dataset" would be wrong. For a viewer it would be impossible, and it would litter a shared workspace with sample data.

What the user sees

A shorter tour over the workspace's real data. Steps the role can't do are never shown, and steps whose screen is empty are skipped rather than faked.

  1. "This is Acme's workspace." The home page and the dataset switcher.
  2. Golden records. Open one real record and read its lineage.
  3. Duplicates. How one real group was formed, with the match evidence.
  4. Review queue (steward and above). Decide one real pending pair. If the queue is empty, it says "When pairs need a human, they'll appear here".
  5. Runs. The most recent run, and what it changed.
  6. Admin tools (admin only). Members ("invite a colleague"), API keys and the config studio. These are pointed at, never edited by the tour.
  7. Who to ask. The workspace's admins, by name.

How

  1. Steps are written for the Tour engine: in-app coachmarks that follow real actions #1405 engine. Each carries:
    • a minimum role (viewer, steward or admin);
    • a skip-if condition: no golden records, no duplicate groups, no runs, or an empty queue for step 4's decide variant.
  2. Role. Decide the role from the caller's effective role in that org, using the same rank the guards use (ROLE_RANK in frontend/src/lib/bff/proxy.ts). A step above the caller's role is left out entirely. It is never shown and then disabled.
  3. No writes for viewers. The viewer path must not make a single non-GET request. For stewards, step 4's decision is the only write, and it's a real review decision the steward chose to make.
  4. Picking real data. Every pick is read-only, and if nothing qualifies, the step is skipped:
    • the first golden record with more than one source record (step 2);
    • the largest duplicate group (step 3);
    • the oldest pending review (step 4);
    • the latest run (step 5).
  5. The dataset. Use the member's current dataset: the er_last_ds_<org> cookie, or the dispatcher's choice. If the workspace has no datasets at all, the tour becomes three steps: the workspace, who to ask, and done.
  6. Copy names the workspace and the people, for example "Dana and Lee are admins here", and follows the copy voice rules.

Acceptance criteria

  • Functional tests on the acme-dev fixture run the tour as a viewer, a steward and an admin. Each sees exactly its step list:
    • viewer: 1, 2, 3, 5, 7;
    • steward: 1–5, 7;
    • admin: all seven.
  • The viewer's tour sends no non-GET requests. Assert this on Playwright's request log.
  • An empty review queue shows step 4's empty variant. An org with no runs skips step 5.
  • A workspace with no datasets gives the three-step tour.
  • No sample data or dataset is ever created by the member tour.
  • Completion sets completed_at for (user, org, member) only.
  • Axe has no serious violations at any step.

Out of scope

  • Teaching admins to configure matching.
  • Inviting from inside the tour; it only points at Members.

Depends on

#1400 (members exist), #1404 and #1405.

Where to start

  • frontend/src/lib/bff/proxy.ts: ROLE_RANK at L13.
  • frontend/src/lib/nav.ts.
  • frontend/src/app/(tenant)/[org]/[ds]/: records, duplicates, reviews and runs.
  • frontend/tests/functional/helpers.ts, for the fixture orgs and roles.

Estimate: 1.0 engineer-weeks.


Part of the E31 epic (#1396) (linked as parent). Decisions recorded 2026-11-28 with the owner.

Activity

  1. added
    post-mvp
    on Nov 29, 2026
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

    post-mvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions