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

Types/tabs #13635

Merged
merged 8 commits into from
Jun 20, 2023
Merged

Types/tabs #13635

merged 8 commits into from
Jun 20, 2023

Conversation

kubijo
Copy link
Contributor

@kubijo kubijo commented Apr 20, 2023

Closes #13540, #13541

Changelog

New

  • add typescript types to the Tabs components family

@kubijo kubijo requested a review from a team as a code owner April 20, 2023 13:36
@netlify
Copy link

netlify bot commented Apr 20, 2023

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c569bf3
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/6491a59322771c000824100d
😎 Deploy Preview https://deploy-preview-13635--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.

@netlify
Copy link

netlify bot commented Apr 20, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit c569bf3
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6491a5939ca3240008141241
😎 Deploy Preview https://deploy-preview-13635--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.

Copy link
Member

@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 looking good! Behavior works as expected, just a couple change requests

packages/react/src/components/Tab/Tab.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tab/Tab.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tab/Tab.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/Tabs.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/Tabs.tsx Outdated Show resolved Hide resolved
@tay1orjones
Copy link
Member

@kubijo thanks again for this! There's some remaining feedback to address here. I'd like to get this in but if it's stalled out we'll close after a few days.

@kubijo
Copy link
Contributor Author

kubijo commented Jun 7, 2023

@kubijo thanks again for this! There's some remaining feedback to address here. I'd like to get this in but if it's stalled out we'll close after a few days.

I've got a rebase conflict seemingly due to Tab.js being deleted here #13735
What's up with that? What do we do with my rewrites then?

@kubijo
Copy link
Contributor Author

kubijo commented Jun 7, 2023

As far as I can tell, someone moved a lot of code here and as a result, we're getting MANY new errors in the Tabs.tsx module (for example)… my patience with such a refactor is fleeting, and I really don't care for it…

Is there any chance of moving this to the author of those changes (them having the context of what was changed) and using this as a source of entropy?

@tay1orjones
Copy link
Member

tay1orjones commented Jun 15, 2023

@kubijo sorry for the churn, packages/react/src/components/Tab/index.js was deleted because it's not being used. It was legacy code behind a v11 feature flag that has been permanently set true. You've already done the typings for the correct/new Tab in Tabs.tsx

There's been some new features added to Tabs recently, but I think it would only impact typings for two new props, dismissable and onTabCloseRequest. The delta shouldn't be too large.

@kubijo
Copy link
Contributor Author

kubijo commented Jun 15, 2023

@kubijo sorry for the churn, packages/react/src/components/Tab/index.js was deleted because it's not being used. It was legacy code behind a v11 feature flag that has been permanently set true. You've already done the typings for the correct/new Tab in Tabs.tsx

There's been some new features added to Tabs recently, but I think it would only impact typings for two new props, dismissable and onTabCloseRequest. The delta shouldn't be too large.

Can someone on your side do the rebase, then? You (as in maintainers) should have a write access, I believe.

Copy link
Member

@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.

🚀

@tay1orjones
Copy link
Member

Thanks for your help @francinelucca!

@kodiakhq kodiakhq bot merged commit 90ebb84 into carbon-design-system:main Jun 20, 2023
18 checks passed
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 Tab, TabContent, TabList, TabPanel, TabPanels, Tabs
4 participants