Skip to content

Update User Credentials page to match current UI - #938

Open
mtuchi wants to merge 1 commit into
mainfrom
user-credentials-gaps
Open

mtuchi wants to merge 1 commit into
mainfrom
user-credentials-gaps

Conversation

@mtuchi

@mtuchi mtuchi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Short Description

Brings the User Credentials page in line with the current app and documents credential transfer and deletion, which no page covered.

Details

Checked against OpenFn/lightning main at 2133506. Changes to docs/manage-users/user-credentials.md:

  • The Credentials page is opened from the user menu. There is no "User Settings" (layout_components.ex:163, menu.ex:103).
  • Edit is reached through the Actions menu. The page also mentions the environment tabs in the edit form and links to /build/sandboxes.md#environments.
  • New Transfer a Credential section: email of the new owner, who must be a member of every project that uses it; confirmation email; Revoke Transfer while pending (transfer_credential_modal.ex, user_notifier.ex:467-511).
  • New Delete a Credential section: removed from jobs and projects at once; secrets scrubbed after a cooling-off period; Cancel deletion / Delete now (credential_deletion_modal.ex, credential_index_component.ex).
  • Button label is Save Credential. Headings start at ##. Prettier applied.

yarn generate-adaptors && yarn build passes, with no new link or anchor warnings.

Left for a person

  • static/img/lightning_edit_user_credential.webp shows the old table (a "New Credential" button, a "Production" column, inline Edit | Delete). It needs recapturing. Agents don't retake screenshots.

Not done (Could change, not requested)

  • A warning that removing a project's access makes that project's workflows fail.
  • An orientation line on the OAuth Clients and Keychain Credentials tables and the Add new menu.
  • Alt text that describes the images.

Question for reviewers

  • The edit form has a second Transfer Ownership section (an Owner dropdown), shown only when allow_credential_transfer is passed (credential_form_component.ex:1028). I documented only Actions > Transfer. Should the docs cover the other route?
identify-gaps report

Covered docs/manage-users/user-credentials.md against OpenFn/lightning main 2133506. 0 Must, 6 Should, 4 Could, 1 Question.

Should

  • :7,13 calls Credentials a page "of your profile" / "User Settings"; it's a user-menu item (layout_components.ex:163).
  • :24 "after clicking Edit"; Edit is in the Actions menu.
  • Missing: transfer ownership.
  • Missing: deleting a credential.
  • :24 no mention of environment tabs (credential_form_component.ex:877-997).
  • :19 screenshot lightning_edit_user_credential.webp out of date.

Could

  • :37 Save credential → Save Credential.
  • Removing project access warning; OAuth Clients / Keychain tables; Add new menu.
  • House style: ### without ##; list spacing; trailing space.
  • Alt text names screens rather than describing them.

Questions

  • Edit-form Transfer Ownership section shown only with allow_credential_transfer.

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to
know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

🤖 Generated with Claude Code

Fix navigation wording, use the Actions menu for Edit, mention credential
environments, and add sections on transferring and deleting a credential.
Checked against OpenFn/lightning main 2133506.

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

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant