Repository navigation
Backlog
Labels
post-mvpExpansion after the usable API workflow; no AppExchange prerequisite
Description
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.
- "This is Acme's workspace." The home page and the dataset switcher.
- Golden records. Open one real record and read its lineage.
- Duplicates. How one real group was formed, with the match evidence.
- 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".
- Runs. The most recent run, and what it changed.
- Admin tools (admin only). Members ("invite a colleague"), API keys and the config studio. These are pointed at, never edited by the tour.
- Who to ask. The workspace's admins, by name.
How
- 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.
- Role. Decide the role from the caller's effective role in that org, using the same rank the guards use (
ROLE_RANKinfrontend/src/lib/bff/proxy.ts). A step above the caller's role is left out entirely. It is never shown and then disabled. - 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.
- 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).
- 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. - 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-devfixture 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_atfor(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_RANKat 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.
Metadata
Metadata
Assignees
Labels
post-mvpExpansion after the usable API workflow; no AppExchange prerequisite
Activity