Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow all valid input types #1648

Merged
merged 1 commit into from
Jun 5, 2023
Merged

fix: allow all valid input types #1648

merged 1 commit into from
Jun 5, 2023

Conversation

ahuth
Copy link
Contributor

@ahuth ahuth commented Jun 3, 2023

Summary:

Allow all valid input type attributes.

Needed so the type conform.input returns matches EDS's. Without this, we run into type errors with the latest version of React's types -> https://github.com/chanzuckerberg/edu-stack/pull/129/files#r1215506643

Test Plan:

  • Wrote automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, but I want to keep the details secret
  • Manually tested my changes, and here are the details:
    • Create an alpha publish and try out in edu-stack or traject as a sanity check if changes affect build or deploy, or are breaking, such as token changes, widely used component updates, hooks changes, and major dependency upgrades.

This makes working with conform smoother, because that library
can use all valid input types.

Without this we get a type error, because our EDS list was
incomplete.
@codecov
Copy link

codecov bot commented Jun 3, 2023

Codecov Report

Merging #1648 (77d33a1) into next (201c95f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             next    #1648   +/-   ##
=======================================
  Coverage   93.29%   93.29%           
=======================================
  Files         222      222           
  Lines        2955     2955           
  Branches      717      717           
=======================================
  Hits         2757     2757           
  Misses        181      181           
  Partials       17       17           
Impacted Files Coverage Δ
src/components/Input/Input.tsx 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

github-actions bot commented Jun 3, 2023

size-limit report 📦

Path Size
components 95.01 KB (0%)
styles 36.43 KB (0%)

@ahuth ahuth requested a review from a team June 3, 2023 13:15
@ahuth ahuth changed the title Allow all valid input types fix: allow all valid input types Jun 5, 2023
@ahuth ahuth merged commit e674741 into next Jun 5, 2023
@ahuth ahuth deleted the ah-input-types branch June 5, 2023 12:05
@booc0mtaco
Copy link
Contributor

I wonder why it was a subset? 🤔

@ahuth
Copy link
Contributor Author

ahuth commented Jun 5, 2023

I'm guessing the React type is new, so previously we didn't have something shared/general to use. Haven't confirmed that, though.

@booc0mtaco booc0mtaco mentioned this pull request Jun 21, 2023
booc0mtaco added a commit that referenced this pull request Jun 21, 2023
## [12.2.0](v12.1.0...v12.2.0) (2023-06-21)


### Features

* deprecate color-other-eraser token ([#1640](#1640)) ([55a78e2](55a78e2))
* **Text:** add support for caption-md and caption-lg ([53fd4e0](53fd4e0))


### Bug Fixes

* allow all valid input types ([#1648](#1648)) ([e674741](e674741))
* **InputField:** fix alignment and color for required marker ([#1654](#1654)) ([1c3b1db](1c3b1db))
* make menu, popover, select ssr friendly ([#1660](#1660)) ([eac8829](eac8829))
* **Menu:** reset menu item hover and defer to popover ([#1653](#1653)) ([f329e4d](f329e4d))
* **ProgressBar:** align label and caption with design ([#1655](#1655)) ([9de0d6b](9de0d6b))
* **Tooltip:** use caption-lg for tooltip text ([f0772c7](f0772c7))
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.

4 participants