Skip to content

refactor(site): demui CreateTemplatePage build logs drawer - #27798

Closed
jakehwll wants to merge 1 commit into
mainfrom
jakehwll/drawer-demui
Closed

jakehwll wants to merge 1 commit into
mainfrom
jakehwll/drawer-demui

Conversation

@jakehwll

@jakehwll jakehwll commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Adds a shared shadcn/Vaul Drawer primitive and migrates Create Template BuildLogsDrawer off MUI.

Keeps the desktop panel at 800px and uses min(800px, 100%) so it stays within the viewport on mobile. Includes Storybook coverage for the new component exports.

Comment thread site/package.json
@jakehwll
jakehwll requested a review from jeremyruppel August 3, 2026 15:43

@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: c616fa0ec4

ℹ️ 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 +48 to +50
onOpenChange={(isOpen) => {
if (!isOpen) {
onClose();

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 interaction coverage for the migrated close path

The controlled close behavior now depends on Vaul invoking onOpenChange(false), but every existing BuildLogsDrawer.stories.tsx story lacks a play function, while the new generic stories only open an uncontrolled drawer and never exercise this callback. Add a build-log drawer story that closes it through the X button and another supported dismissal path, then verifies onClose, so regressions in this migration are covered.

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

Useful? React with 👍 / 👎.

@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown

DEVEX-251

@jeremyruppel

Copy link
Copy Markdown
Contributor

@jakehwll we should probably take Codex's suggestion and author some stories with play() functions for the drawer. Please let me know once CI is green and I'll stamp!

@aslilac aslilac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm quite worried by this:

https://github.com/emilkowalski/vaul

This repo is unmaintained. I might come back to it at some point, but not in the near future. This was and always will be a hobby project and I simply don't have the time or will to work on it right now.

this is the only place in the ui where we have this specific kind of "drawer" concept, so I'm wondering...

  • could we just get an agent to whip up something dead simple that covers exactly this one case well?
  • could we use a different but close enough component we've already got? maybe reuse the same equivalent from the template version editor page?
  • does base-ui provide something appropriate here that we could use?

@jakehwll

Copy link
Copy Markdown
Contributor Author

Closing in favor of #28009

@jakehwll jakehwll closed this Aug 11, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 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.

3 participants