Skip to content

refactor(site): tidy secrets list layout - #27917

Open
jakehwll wants to merge 1 commit into
mainfrom
jakehwll/tidy-secrets
Open

refactor(site): tidy secrets list layout#27917
jakehwll wants to merge 1 commit into
mainfrom
jakehwll/tidy-secrets

Conversation

@jakehwll

@jakehwll jakehwll commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Tighten the user secrets settings page layout.

Move the enable toggle into a leading column, truncate long descriptions, promote Add secret and docs into the settings header actions, and drop the redundant Refresh control now that mutations already invalidate the secrets query.

Old New
SECRETS_PAGE_OLD SECRETS_PAGE_NEW

Tighten the user secrets settings page layout.

Move the enable toggle into a leading column, truncate long descriptions, promote Add secret and docs into the settings header actions, and drop the redundant Refresh control now that mutations already invalidate the secrets query.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 412d6f6cac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

rel="noreferrer"
>
<SquareArrowOutUpRightIcon />
Read the docs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the Storybook play for the renamed docs link

The Loaded story still calls getByRole("link", { name: "View docs" }), so renaming this link to Read the docs makes its play function throw and breaks the page's Storybook test suite. Update the story alongside this user-visible behavior change.

AGENTS.md reference: site/AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Comment on lines +231 to +233
<span tabIndex={0} className="inline-flex">
<Switch
aria-label={stateLabel}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep each switch to one descriptive focus target

When a secret can be toggled, both this span and the inner switch are now tabbable, so keyboard users first land on an unnamed, inert wrapper with no tooltip and must press Tab again to reach the control. The switch is also named only Enabled or Disabled, making multiple rows indistinguishable to assistive technology. Keep the focusable wrapper only for the disabled targetless case and retain a secret-specific accessible name.

AGENTS.md reference: site/AGENTS.md:L18-L19

Useful? React with 👍 / 👎.

@jakehwll
jakehwll requested a review from designertyler August 6, 2026 13:10
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