Skip to content

[docs] Users, profile, user lists and Facility General for 3.1 - #136

Draft
billjohnc wants to merge 9 commits into
mainfrom
claude/docs-users-profile-3-1-21da8e
Draft

billjohnc wants to merge 9 commits into
mainfrom
claude/docs-users-profile-3-1-21da8e

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Care 3.1 changed the screens behind several access-governance and facility pages on main, so those pages described 3.0. This PR brings them up to date for version 3.1 only, and adds two new pages:

  • User profile rebuilt (care_fe f6cdc24e0): the first tab is Profile (was "User Information"); password and two-factor moved to a Security tab; new Theme and Preferences tabs.
  • Add User / Edit User gained Languages and Qualifications (care_fe 7f76aa671, care 3af5d2804); the user model lost qualification, doctor_experience_commenced_on, doctor_medical_council_registration, weekly_working_hours and others.
  • Organization and responsibility user lists are tables with Change role and View (care_fe efe466e96); department lists are still cards with Edit.
  • Facility Settings → General (care_fe 9efb6d9d7, edc910ec1): Edit Facility Details is inside the Configurations menu; Features no longer shows on General (still in the form).
  • Reset password page (care_fe 86bfcd0c6): the button is Reset Password, with no Cancel.

Pages

New:

  • flows/access-governance/user/change-appearance.mdx: Change how Care looks (Theme tab)
  • flows/access-governance/user/change-language-and-preferences.mdx: Change your language and preferences (Preferences tab)

Updated (slugs kept, so no link breaks):

  • Concepts: access-governance/user, access-control, organization, responsibility
  • Reference: access-governance/user (fields removed in 3.1; communication, qualifications, role_org_ids; specs; endpoints)
  • Flows: user/create-user, edit-user-profile (now "Edit your profile"), change-password, turn-on-two-factor-authentication, search-for-user; access-control/assign-role-to-user, change-or-remove-user-role; responsibility/manage-responsibility-users, view-your-responsibilities; facility/facility/view-facility, update-facility-details
  • Small fixes: facility/facility/create-facility (Location Details instead of Latitude/Longitude), facility/department/add-users-to-department (permissions table)
  • Sidebar: the two new flows under User.

Not changed, on purpose:

  • user/deactivate-user-account and facility/facility/delete-facility: superuser-only. Both are stale (Delete Account is a superuser-only section of the Security tab; Delete Facility is in the Configurations menu; there is no Danger Zone). See questions 1 and 2.
  • concepts/access-governance/facility-organization.mdx: owned by [docs] Tag configuration expiry and facility organization tree for 3.1 #132. Its role list (lines 55 and 58) still names "Admin", which the facility role picker never offers.

Older drafts #61, #67, #68 and #72 touch access-governance and may be superseded by this PR.

How it was verified

  • Every statement was checked against care ddfd840 and care_fe 5e02f9a (latest develop on 29 Nov 2026), from code. On 30 Nov 2026 the pages were re-checked against care_fe abf394594 (latest develop on 30 Nov 2026) for the later changes that touch them: Create User now names an incomplete responsibility row (#17176); the Users list no longer has a Service Account status (#17337); user cards show the user's responsibilities (#16984). #16456 (department search, role preselected) changes nothing the pages say. The create-user and assign-role-to-user videos and screenshots create-user-1, -8 and assign-role-to-user-4, -5 now show the new user cards and the Link User forms without User Type. They were re-recorded on 30 Nov 2026 at care ddfd840 and care_fe abf394594 on the same stack. Following billjohnc's rules of 30 Nov, patient names, contact details and IDs are blurred while recording, and the narration reads each step as a sentence, without step numbers. Role lists were also checked at runtime (GET /api/v1/role/ on a local stack at the same commits).
  • Media: 13 flows have a narrated, subtitled video and screenshots (63 images, one per recorded step, with the control outlined). They were recorded on a local Care stack at the same commits, with invented people only. Every recording used an ordinary account (Facility Admin, Nurse, responsibility Admin); no superuser was used, not even to set up data. Each recording's API log was compared with its page's Permissions table: there were no 403s, and three gaps found this way were fixed (the public directory lists only public facilities; an edited facility keeps its saved geo organization; linking a new user to a department needs "Can Manage Users in a Facility Organization").
  • Not recorded: government-organization variants (no account on the stack belongs to a government organization, and adding one needs a superuser), department variants of the role pages, the forgotten-password resets (they need email or SMS), the cover photo, and the profile picture. These steps are documented from code only.
  • Each page went through a fresh-eyes review against the evidence. The build passes for every language (en, ml).

Differences from the house style, on purpose

  • Language: Simplified Technical English rules for steps, prerequisites and field tables; plain English for concept explanations.
  • Versions: written into 3.1 only, because only the 3.1 code was verified.
  • Permissions: each flow's table covers the whole path to the action (reaching the list, then the action), with where the permission must be held and the default roles. "Admin" is left out of facility and government role lists, because those pickers never offer it.
  • Narration: each video reads a short script, the step plus one short sentence of context from that page's own text, and the subtitles show what it says. The voices are AI-generated with ElevenLabs (model eleven_v4): cloned voices of Gauri and Bill, alternating flow by flow in sidebar order. Where a spoken line is longer than its step on screen, the video holds a settled frame and the subtitles are timed to match.

Left out because it could not be verified (open questions)

  1. Remove or keep the superuser-only page "Deactivate a user account"?
  2. Remove or keep the superuser-only page "Delete a facility"?
  3. Supplier organizations are reached only through the superuser Admin area, so the Supplier variants were removed from the assign-role and change-role pages. Is that right?
  4. Care has two default roles named "Admin". Role sync merges them into one "Admin" role, given only in responsibilities, which holds both permission sets. Intended? The pages describe what Care does today.
  5. What does "Reset using phone number" do on a deployment without SMS?
  6. Should the profile pages describe the Responsibility Assignments section and its Manage form?
  7. The wrong-password message in the two-factor dialogs (generic text today; see product issues).
  8. What a responsibility Member sees on the Patients page, and whether a user linked only through the facility's geo organization can open its General page, were not checked at runtime.

Product issues found (not filed)

Recorded here only, not filed on GitHub. High confidence:

  1. Two default roles are named "Admin" (care security/roles/role.py:57-67), and role sync matches roles by name (sync_permissions_roles.py:38-56). So the database has one "Admin" role, Responsibility context only, holding both permission sets (confirmed with GET /api/v1/role/). The facility and government pickers never offer Admin, and a responsibility Admin holds facility-level permissions, including "Can create User in care" and the unscoped "Can Create on Facility" check (authorization/facility.py:29-32).
  2. Two-factor verify error is always generic: TwoFactorAuth.tsx:109-110 reads errors.code, but care totp.py:99-101 returns error, so the dialog always says "Failed to verify code".
  3. /user shows a not-found page: it redirects to /users, which has no route (src/routes/_app/user.index.tsx:9).
  4. The username checklist allows ".", but the form rejects it (UserForm.tsx:873 vs :120; en.json:5593).
  5. Link User forms show an empty "User Type" (LinkFacilityUserSheet.tsx:177-183, LinkUserSheet.tsx:180-181).
  6. The profile's Manage button (Responsibility Assignments) shows to every viewer, but the backend refuses users without the organization permission (UserRoleOrganizationAccess.tsx:226-236).
  7. Facility Configurations menu and cover photo buttons check root-department permissions only (FacilityHome.tsx:60-63), but the backend also accepts "Can Update on Facility" held in the facility's geo organization (authorization/facility.py:35-38).
  8. A responsibility reached through a managing responsibility shows its Users list, but hides Link User, Change role and Add User, which the backend allows (authorization/organization.py:139-151 vs 73-82).

Medium or low:

  1. A wrong password in the two-factor dialogs returns 401 (mfa.py:63-64), and the dialog shows only generic text.
  2. Edit User cannot clear the government organization (UserForm.tsx:464; user spec.py:109).
  3. The backend accepts duplicate languages (user spec.py:95).
  4. A refused facility update says "You do not have permission to create Facilities" (facility.py:113).
  5. The department users search placeholder says "username", but the search also matches first and last names (FacilityOrganizationUsers.tsx:107).
  6. Link Department on the profile shows with no permission check (LinkUserToDepartmentSheet.tsx:98-102).
  7. Add User shows when you hold either create permission (user or service account) (OrganizationUsers.tsx:202).
  8. The user form calls GET /users//check_availability/ once with an empty username (404).
  9. Not yet checked at runtime: a second generic error after a backend validation error (UserForm.tsx:398-408), and a Responsibility row that cannot be removed once picked and cleared (UserRoleOrganizationAccess.tsx:70/85/118).

Also in this PR

  • Skill change: Moved to the consolidated Ezhuthachan skill update, Ezhuthachan: narrate without step numbers, blur for YouTube, and keep the 3.1 sessions' lessons #141. This PR no longer changes .claude/skills/.
  • Page list: chosen under the product team's "go ahead, play safe" at the confirm stage (the reviewer was away). Please check the page list and the questions above.
  • New personas, awaiting approval: Priya Nair (Nurse) and Dr. Sanjay Gupta (responsibility Admin) appear in the recordings, and Arun Menon is created on camera.

🤖 Generated with Claude Code

billjohnc and others added 4 commits November 29, 2026 01:13
3.1 rebuilt the user profile (Profile, Security, Theme and Preferences
tabs), added Languages and Qualifications to the Add and Edit User
forms, turned organization and responsibility user lists into tables
with Change role, and moved Edit Facility Details into the
Configurations menu. Pages on main described the 3.0 screens.

- Update the user, access-control, organization and responsibility
  concepts and the user reference (fields removed in 3.1, new
  qualifications and communication specs).
- Update create-user, edit-user-profile, change-password,
  turn-on-two-factor-authentication, search-for-user,
  assign-role-to-user, change-or-remove-user-role,
  manage-responsibility-users, view-your-responsibilities,
  view-facility, update-facility-details; small fixes to
  create-facility and add-users-to-department.
- Add "Change how Care looks" (Theme tab) and "Change your language
  and preferences" (Preferences tab), with sidebar entries.

Verified against care ddfd840 and care_fe 5e02f9a. Version 3.1 only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Screenshots from recordings on a local Care stack at care ddfd840 and
care_fe 5e02f9a (invented data only), one per recorded step, with the
control for the step outlined. Each recorded flow gets a video under
its Overview; the narrated videos and their subtitles follow in the
next commit.

Also from the recordings: the public facility directory lists only
facilities marked public; an edited facility keeps its saved geo
organization; linking a new user to a department needs "Can Manage
Users in a Facility Organization".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… screen

- playwright.config.ts and login.setup.ts save the sign-in as
  .auth/<EZ_USERNAME>.json, so one session can record flows as several
  roles (facility admin, nurse, responsibility admin) without
  overwriting each other's sign-in.
- example.demo.ts waits for networkidle before rec.ready(): after the
  first paint the app refreshes its token and shows the loading screen
  again, and videos opened on it. It also notes that picker popups
  share the dialog role, so side forms are found by their title.

Learned while recording the 3.1 users and profile pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 videos, one per recorded flow, each with a spoken script (the step
and one short sentence of context from the page) and subtitles of the
spoken words in the same .vtt the pages already reference. Voices are
AI-generated with ElevenLabs (eleven_v4), alternating flow by flow in
sidebar order: Gauri-eng and Bill-eng, cloned voices chosen by the
product team. Where a line is longer than its step, the video holds a
settled frame and the subtitles are timed to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e11d1ac
Status: ✅  Deploy successful!
Preview URL: https://1e9bc2cd.coredocs.pages.dev
Branch Preview URL: https://claude-docs-users-profile-3.coredocs.pages.dev

View logs

billjohnc and others added 3 commits November 30, 2026 16:23
…, and say that a row can be removed.

care_fe e3d74f91c (#17176)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Service accounts list has no Status column.

care_fe 21091124d (#17337)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow the user's responsibilities.

care_fe 8abcbc93a (#16984)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 21:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the new user cards and Link User forms

care_fe abf394594 (#16984, #17337)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant