Skip to content

refactor(site): replace MUI Stack, TextField, and Link with shared components - #27817

Merged
jakehwll merged 4 commits into
mainfrom
jakehwll/demui-various
Aug 5, 2026
Merged

refactor(site): replace MUI Stack, TextField, and Link with shared components#27817
jakehwll merged 4 commits into
mainfrom
jakehwll/demui-various

Conversation

@jakehwll

@jakehwll jakehwll commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

Continue the MUI → Tailwind/shadcn migration across a few auth and settings surfaces.

  • Create token form: MUI TextField/MenuItemFormField, Select, and Input (drops Emotion for section min-width)
  • Create organization form: TextFieldFormField / Textarea, matching the organization info form
  • SSO security section and external auth: MUI Link/TextField → shared Link, Input, and Label
  • Permission and IdP pill lists: MUI Stackflex flex-row gap-2
  • Minor link layout polish on Git device auth / external auth pages

Also removes the now-unused @emotion/css dependency from site/package.json (and the lockfile), which was the last usage of it. This fixes the knip CI lint failure ("Unused dependencies: @emotion/css").

…mponents

Continue the MUI → Tailwind/shadcn migration across a few auth and settings surfaces.

- Create token form: MUI `TextField`/`MenuItem` → `FormField`, `Select`, and `Input` (drops Emotion for section min-width)
- Create organization form: `TextField` → `FormField` / `Textarea`, matching the organization info form
- SSO security section and external auth: MUI `Link`/`TextField` → shared `Link`, `Input`, and `Label`
- Permission and IdP pill lists: MUI `Stack` → `flex flex-row gap-2`
- Minor link layout polish on Git device auth / external auth pages

@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: 320cd40d7c

ℹ️ 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".

Comment on lines +121 to +125
<Select
value={String(lifetimeDays)}
onValueChange={setLifetimeDays}
>
{customLifetimeDay.label}
</MenuItem>
</TextField>
<SelectTrigger id={lifetimeId} className="w-full">

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 Add an interaction story for the new lifetime selector

When this form replaces the MUI lifetime control with the Radix selector and conditionally reveals the custom expiration input, the existing CreateTokenPage story still only renders the default state and has no play function. Add a story interaction that opens the selector, chooses a preset and Custom, and verifies the expiration input appears so this user-visible control migration has the required behavioral coverage.

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

Useful? React with 👍 / 👎.

Comment thread site/src/pages/UserSettingsPage/SecurityPage/SingleSignOnSection.tsx Outdated
@jeremyruppel

Copy link
Copy Markdown
Contributor

CI lint is saying:

Unused dependencies (1)
@emotion/css  package.json:46:4
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 2.

are you telling me this PR removes the last of emotion?

@jakehwll

jakehwll commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

CI lint is saying:

Unused dependencies (1)
@emotion/css  package.json:46:4
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 2.

are you telling me this PR removes the last of emotion?

That is exactly what I'm telling you 🥳

@jakehwll
jakehwll requested a review from jeremyruppel August 4, 2026 16:11
@jakehwll
jakehwll merged commit 7a4ae26 into main Aug 5, 2026
30 checks passed
@jakehwll
jakehwll deleted the jakehwll/demui-various branch August 5, 2026 04:07
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants