Repository navigation
feat(members): offer the analyst role on invite and role change - #2549
Conversation
Observer joins the roles the Members page assigns, so the invite and role pickers offer it and the role change prompt says what it can do. Member stays the default for a new invite. A role key the page does not know now shows as Observer, matching how the API reads it. The role has to exist on the auth instance before it can be assigned.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This comment has been minimized.
This comment has been minimized.
# Conflicts: # packages/domain/src/policy/policy.test.ts # packages/domain/src/policy/roles.ts
Maple review🟢 Confidence 10/10 · safe to merge. Analyst joins the one list every picker reads, and the invite default stays Adds the analyst role to
Before merge
Still open from earlier reviews
|
|
Merged with 2 steps from "Before merge" still open. If they are done, tick them on the review comment; if not, now is the time.
|
Fourth layer of the Analyst role, on top of #2547. The Members page now offers it.
What changed
Screenshots
Role picker, before and after:
The confirm strip says what the role is for:
Verified
packages/domain: policy tests, 16 passed.apps/web:org-membership.test.ts, 9 passed. Cases: an unknown role key shows as Analyst, root still shows as Member, and the role change prompt names the analyst role and says it builds dashboards./lab/memberspage driven in a headless browser for the screenshots above.org:analystin its default role set, created through the provider's API.Before merge
Create
org:analyst(name "Analyst", no system permissions, in the default role set) on the production auth instance. Until it exists, assigning Analyst there fails. Also confirm production has no role keys beyond admin, member and engineer: any other key now reads as analyst.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.