Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Oct 29, 2025

Issue

Why is this change needed?

This PR unifies the UI by replacing the native <select> element in PasteSessionFormPresenter with the existing FormatSelectDropdown component, addressing feedback from PR #3921. Additionally, it makes the dropdown content-sized instead of full-width per user request.

What changed?

Component Integration:

  • Replaced native <select> with FormatSelectDropdown component
  • Removed isFormatType helper function (no longer needed)
  • Removed formatSelectId from useId() hook
  • Wrapped dropdown in a div with formatDropdown class for content-sized width

CSS Changes:

  • Removed unused CSS classes: formatSelect, formatLabel, formatSelectorWrapper (39 lines removed)
  • Added formatDropdown class with align-self: flex-start and width: fit-content to prevent stretching in the flex container
image

⚠️ Important Review Points

  1. Disabled State Handling: The original native select had disabled={isPending} but FormatSelectDropdown doesn't accept a disabled prop. Please verify the dropdown is appropriately non-interactive when the form is in pending state.

  2. Label Removal: The "Schema Format" text label was removed since FormatSelectDropdown displays the selected format inline. Please confirm this is the desired UX.

  3. Width Behavior: The dropdown now uses width: fit-content with the component's existing min-width: 127px. If the minimum width should also be removed, please let me know.

  4. Visual Testing Needed: Changes were validated with lint/typecheck but not visually tested. Please verify in the preview:

    • Dropdown appearance and spacing look correct
    • Keyboard navigation still works
    • Accessibility remains intact

Link to Devin run: https://app.devin.ai/sessions/91b8ec857810412a9ddd095d321a8ebe
Requested by: @MH4GF ([email protected])

- Replace native <select> element with FormatSelectDropdown component
- Remove unused isFormatType helper function
- Remove unused formatSelectId from useId hook
- Remove unused CSS classes: formatSelect, formatLabel, formatSelectorWrapper
- Maintain existing functionality with selectedFormat and onFormatChange props

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@giselles-ai
Copy link

giselles-ai bot commented Oct 29, 2025

Finished running flow.

Step Status Updated(UTC)
1 Oct 29, 2025 9:27am
2 Oct 29, 2025 9:28am
3 Oct 29, 2025 9:28am

@vercel
Copy link

vercel bot commented Oct 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
liam-app Ready Ready Preview Comment Oct 31, 2025 7:12am
liam-assets Ready Ready Preview Comment Oct 31, 2025 7:12am
liam-docs Ready Ready Preview Comment Oct 31, 2025 7:12am
liam-erd-sample Ready Ready Preview Oct 31, 2025 7:12am
liam-storybook Ready Ready Preview Comment Oct 31, 2025 7:12am

@supabase
Copy link

supabase bot commented Oct 29, 2025

Updates to Preview Branch (devin/1761729947-use-format-select-dropdown) ↗︎

Deployments Status Updated
Database Fri, 31 Oct 2025 07:06:35 UTC
Services Fri, 31 Oct 2025 07:06:35 UTC
APIs Fri, 31 Oct 2025 07:06:35 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Fri, 31 Oct 2025 07:06:37 UTC
Migrations ⚠️ Fri, 31 Oct 2025 07:06:37 UTC
Seeding Fri, 31 Oct 2025 07:06:37 UTC
Edge Functions Fri, 31 Oct 2025 07:06:37 UTC

⚠️ Warning — Applied out-of-order migrations: [frontend/internal-packages/db/supabase/migrations/20250610120000_extend_add_project_with_schema_file_path.sql]


View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 29, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@giselles-ai
Copy link

giselles-ai bot commented Oct 29, 2025

Check changeset necessity

Status: NOT REQUIRED

Reason:

  • Changes are confined to frontend/apps/app, which maps to the ignored package "@liam-hq/app".
  • No modifications to target packages that require changesets: @liam-hq/cli, @liam-hq/erd-core, @liam-hq/schema, or @liam-hq/ui.
  • Although the UI changes are user-facing (replacing a native select with FormatSelectDropdown, label removal), they affect only the app and do not impact published packages or external consumers.
  • No API, performance, or behavioral changes in any publishable package.

Changeset (copy & paste):

# No changeset required — changes affect only the ignored package "@liam-hq/app".

- Wrap FormatSelectDropdown in a div with formatDropdown class
- Add CSS to set align-self: flex-start and width: fit-content
- This prevents the dropdown from stretching to full width in the flex container

Co-Authored-By: [email protected] <[email protected]>
@MH4GF MH4GF marked this pull request as ready for review November 4, 2025 02:19
@MH4GF MH4GF requested a review from a team as a code owner November 4, 2025 02:19
@MH4GF MH4GF requested review from NoritakaIkeda, Copilot, junkisai and sasamuku and removed request for a team November 4, 2025 02:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the native <select> element in PasteSessionForm with the existing FormatSelectDropdown component to unify the UI, and makes the dropdown content-sized instead of full-width.

Key changes:

  • Replaced native <select> with FormatSelectDropdown component
  • Removed 39 lines of unused CSS for the old select element
  • Made dropdown content-sized using width: fit-content

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
PasteSessionFormPresenter.tsx Replaced native select with FormatSelectDropdown component and removed helper function
PasteSessionFormPresenter.module.css Removed CSS classes for native select and added formatDropdown class for content-sized width

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@NoritakaIkeda NoritakaIkeda left a comment

Choose a reason for hiding this comment

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

That's a great refactoring! Thank you!

@NoritakaIkeda NoritakaIkeda added this pull request to the merge queue Nov 4, 2025
Merged via the queue into main with commit c9b95ed Nov 4, 2025
34 checks passed
@NoritakaIkeda NoritakaIkeda deleted the devin/1761729947-use-format-select-dropdown branch November 4, 2025 02:26
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.

3 participants