Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 20, 2025

Note

Adds disabled handling to FileInput and fixes qa/data-qa wiring for FileInput and Select, with minor trigger/styling tweaks.

  • Components
    • FileInput (src/components/fields/FileInput/FileInput.tsx):
      • Add isDisabled support (disables input, wrapper mods).
      • Correct QA wiring: move qa to data-qa on <input>, add wrapper qa as FileInputWrapper, add data-input-type.
      • Style tweaks: hover/disabled fills, focus border, button fill; fix input overlay positioning (top: 0).
    • Select (src/components/fields/Select/Select.tsx):
      • Replace custom SelectTrigger with Item as="button"; set qa on trigger and add data-input-type="select".
      • Remove unused wrapper data-input-type; keep HiddenSelect without qa.
  • Changesets: Patch notes for adding FileInput disabled state and fixing QA props.

Written by Cursor Bugbot for commit c8e8c42. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

🦋 Changeset detected

Latest commit: c8e8c42

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 20, 2025

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

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Nov 20, 2025 10:04am
cube-ui-kit-cursor Ready Ready Preview Comment Nov 20, 2025 10:04am

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-063d13c.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

🏋️ Size limit report

Name Size Passed?
All 297.47 KB (+0.01% 🔺) Yes 🎉
Tree shaking (just a Button) 33.41 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 20.68 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

🧪 Storybook is successfully deployed!

name={name}
accept={accept}
data-qa={qa || 'FileInput'}
data-input-type="fileinput"
Copy link

Choose a reason for hiding this comment

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

Bug: Undocumented breaking change to FileInput QA selector

The qa prop was moved from the wrapper to the hidden input element. This undocumented breaking change prevents tests from asserting on visible text (filename) via the QA selector, as the text is in a sibling element. It also contradicts the PR title which focuses only on Select.

Fix in Cursor Fix in Web

name={name}
accept={accept}
data-qa={qa || 'FileInput'}
data-input-type="fileinput"
Copy link

Choose a reason for hiding this comment

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

Bug: Breaking change to FileInput QA structure affecting text assertions

The qa prop and data-input-type were moved from the FileInput wrapper to the hidden input element. This prevents tests from asserting on visible text (filename) via the main QA selector, as the text resides in a sibling element. This change is undocumented and contradicts the PR title which only focuses on Select.

Fix in Cursor Fix in Web

@tenphi tenphi merged commit 01567fc into main Nov 20, 2025
14 checks passed
@tenphi tenphi deleted the fix-select-qa-prop branch November 20, 2025 10:10
@github-actions github-actions bot mentioned this pull request Nov 20, 2025
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.

2 participants