Skip to content

refactor(site): demui PortForwardButton and popover view - #27786

Merged
jakehwll merged 1 commit into
mainfrom
jakehwll/demui-portforwardbutton
Aug 3, 2026
Merged

refactor(site): demui PortForwardButton and popover view#27786
jakehwll merged 1 commit into
mainfrom
jakehwll/demui-portforwardbutton

Conversation

@jakehwll

@jakehwll jakehwll commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Migrate the port-forward popover off MUI and Emotion onto shadcn Select/FormField and Tailwind.

Replaces FormControl, Select, MenuItem, TextField, Stack, and Link usage in PortForwardButton / PortForwardPopoverView, and updates the popover stories to match.

Migrate the port-forward popover off MUI and Emotion onto shadcn Select/FormField and Tailwind.

Replaces FormControl, Select, MenuItem, TextField, Stack, and Link usage in `PortForwardButton` / `PortForwardPopoverView`, and updates the popover stories to match.
@jakehwll
jakehwll marked this pull request as ready for review August 3, 2026 11:40

@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: 88bfab222a

ℹ️ 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 +242 to +244
disabled
title="This workspace template does not allow sharing ports outside of its organization."
>

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 Restore discoverable explanations for disabled share levels

When a template caps sharing at organization or authenticated, these options are disabled. SelectItem applies data-[disabled]:pointer-events-none, and Radix skips disabled options during keyboard navigation, so users cannot hover or focus the item to expose its native title. This removes the explanatory tooltip that existed before the migration; expose the restriction through a focusable tooltip target or persistent visible text.

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

Useful? React with 👍 / 👎.

Comment on lines +144 to +155
const isPortShareProtocol = (
value: string,
): value is WorkspaceAgentPortShareProtocol =>
value === "http" || value === "https";

const isPortShareLevel = (
value: string,
): value is WorkspaceAgentPortShareLevel =>
WorkspaceAgentPortShareLevels.some((level) => level === value);

const isListeningPortProtocol = (value: string): value is "http" | "https" =>
value === "http" || value === "https";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How many of these helpers do we need

@jakehwll jakehwll Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Type-casting sucks 😔 AI is trying to be safe here, I can't blame it

@jakehwll
jakehwll merged commit 497ab9e into main Aug 3, 2026
32 of 33 checks passed
@jakehwll
jakehwll deleted the jakehwll/demui-portforwardbutton branch August 3, 2026 15:13
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 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