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

Add TypeScript types to the xTile family of components #13536 #13631

Merged
merged 7 commits into from
Jun 16, 2023

Conversation

kubijo
Copy link
Contributor

@kubijo kubijo commented Apr 20, 2023

Closes #13542, #13536, #13537

Changelog

New

  • Add TypeScript types to Tile, SelectableTile, ExpandableTile, TileAboveTheFoldContent, TileBelowTheFoldContent

@kubijo kubijo requested a review from a team as a code owner April 20, 2023 09:31
@kubijo kubijo changed the title Add TypeScript types to ExpandableTile #13536 Add TypeScript types to the xTile family of components #13536 Apr 20, 2023
@netlify
Copy link

netlify bot commented Apr 20, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit c2a4ccf
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/648c7d67279815000795bcdc
😎 Deploy Preview https://deploy-preview-13631--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kubijo kubijo force-pushed the types/ExpandableTile branch 2 times, most recently from 69b7d42 to 02baaab Compare April 21, 2023 12:02
@netlify
Copy link

netlify bot commented Apr 22, 2023

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit c2a4ccf
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/648c7d670f16ad0008d8ebeb
😎 Deploy Preview https://deploy-preview-13631--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, I'm doing some research on the name & value props to confirm we're good to remove but in the meantime, looks like some CI checks are failing and also I think we should add the light prop to the components' interface. See https://github.com/carbon-design-system/carbon/blob/main/packages/react/src/components/ComboBox/ComboBox.tsx#L170
TIA!

packages/react/src/components/Tile/Tile.tsx Outdated Show resolved Hide resolved
@kubijo kubijo force-pushed the types/ExpandableTile branch from 482fd81 to 8842ea6 Compare May 9, 2023 16:04
@tay1orjones
Copy link
Member

@kubijo thanks for your work so far on this one. There's some remaining feedback to address here I think and status checks are failing.

Copy link
Collaborator

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

This is most of the way there, looks like there's one outstanding comment @kubijo #13631 (comment). Other than that LGTM

@kubijo kubijo force-pushed the types/ExpandableTile branch 2 times, most recently from 1ec242e to 2af4627 Compare June 9, 2023 18:21
@kubijo kubijo force-pushed the types/ExpandableTile branch from 2af4627 to 2f5e54a Compare June 12, 2023 19:43
Copy link
Collaborator

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

LGTM!

@kodiakhq kodiakhq bot merged commit fbdc9b5 into carbon-design-system:main Jun 16, 2023
wkeese added a commit to wkeese/carbon that referenced this pull request Nov 18, 2024
Refs carbon-design-system#13537, carbon-design-system#13631.

Update PropTypes so "name" and "value" are reported as deprecated.
(The description already included @deprecated, but that's different.)

More importantly, stop marking "value" as required.
Properties cannot be deprecated and required at the same time.
wkeese added a commit to wkeese/carbon that referenced this pull request Nov 18, 2024
Refs carbon-design-system#13537, carbon-design-system#13631.

Update PropTypes so "name" and "value" are reported as deprecated.
(The description already included @deprecated, but that's different.)

More importantly, stop marking "value" as required.
Properties cannot be deprecated and required at the same time.
github-merge-queue bot pushed a commit that referenced this pull request Nov 19, 2024
* fix(selectable-tile): don't require deprecated property "value"

Refs #13537, #13631.

Update PropTypes so "name" and "value" are reported as deprecated.
(The description already included @deprecated, but that's different.)

More importantly, stop marking "value" as required.
Properties cannot be deprecated and required at the same time.

* fix(selectable-tile): remove deprecated properties from test

Refs #13537, #13631.
wkeese added a commit to wkeese/carbon that referenced this pull request Nov 22, 2024
I previously fixed PropTypes but forgot to update the Typescript declaration.

Fixes carbon-design-system#16977.
Refs carbon-design-system#13537, carbon-design-system#13631.
wkeese added a commit to wkeese/carbon that referenced this pull request Nov 22, 2024
I previously fixed PropTypes but forgot to update the Typescript declaration.

Fixes carbon-design-system#16977.
Refs carbon-design-system#13537, carbon-design-system#13631.
github-merge-queue bot pushed a commit that referenced this pull request Dec 3, 2024
I previously fixed PropTypes but forgot to update the Typescript declaration.

Fixes #16977.
Refs #13537, #13631.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add TypeScript types to Tile, TileAboveTheFoldContent, TileBelowTheFoldContent
4 participants