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

chore(ui): migrate ComboBox component to typescript #589

Merged
merged 17 commits into from
Nov 18, 2024

Conversation

gjaskiewicz
Copy link
Contributor

Summary

Migrate combobox to TypeScript

Changes Made

  • Migrate Combobox to TypeScript
  • Migrate ComboboxOption to TypeScript

Related Issues

Testing Instructions

  1. npm i
  2. npm run storybook

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.

@gjaskiewicz gjaskiewicz requested review from franzheidl and a team as code owners November 6, 2024 10:28
Copy link
Contributor

github-actions bot commented Nov 6, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-11-18 13:11 UTC

@barsukov
Copy link
Contributor

barsukov commented Nov 6, 2024

You delete everything where is the changes? :) I mean if it is a draft or not finished please close the PR

@barsukov barsukov closed this Nov 6, 2024
@gjaskiewicz gjaskiewicz reopened this Nov 6, 2024
@gjaskiewicz
Copy link
Contributor Author

@barsukov @guoda-puidokaite can you take a look?

andypf
andypf previously approved these changes Nov 8, 2024
Copy link
Collaborator

@andypf andypf left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@barsukov barsukov left a comment

Choose a reason for hiding this comment

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

Few comments from my side

Copy link

changeset-bot bot commented Nov 8, 2024

🦋 Changeset detected

Latest commit: c76db3c

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

This PR includes changesets to release 1 package
Name Type
@cloudoperators/juno-ui-components Minor

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

Copy link
Contributor

@guoda-puidokaite guoda-puidokaite left a comment

Choose a reason for hiding this comment

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

A few things from my side

Copy link
Contributor

@guoda-puidokaite guoda-puidokaite left a comment

Choose a reason for hiding this comment

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

(Blocking)

Prettier issue in pipeline

@guoda-puidokaite guoda-puidokaite added ui-components All tasks related to juno-ui-components library package All tasks related to package under packages/ enhancement New feature or request labels Nov 11, 2024
Copy link
Contributor

@barsukov barsukov left a comment

Choose a reason for hiding this comment

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

Please also change index file, to return deprecated combobox cause it is still use a portal provider until we done with all related portal provider messages @guoda-puidokaite could you also check the warnings in console if it would be introduce here?

Copy link
Contributor

@guoda-puidokaite guoda-puidokaite left a comment

Choose a reason for hiding this comment

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

🙏

@andypf andypf dismissed barsukov’s stale review November 15, 2024 11:49

The request has been addressed.

andypf
andypf previously approved these changes Nov 15, 2024
Copy link
Contributor

@guoda-puidokaite guoda-puidokaite left a comment

Choose a reason for hiding this comment

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

(Blocking)

Discrepancies in Storybook (currently live on left, PR on right):

  1. ComboBoxOption: children missing in props
Screenshot 2024-11-15 at 14 49 29
  1. ComboBox: Breaking type change? The updated type for helptext, errortext and successtext is more restrictive than ReactNode. Could these be breaking changes?
Screenshot 2024-11-15 at 15 01 49 Screenshot 2024-11-15 at 15 02 08
  1. ComboBox: Are these function controls correct? Doesn't look right, but not sure. We didn't have any controls in the past. 🤷‍♀️
Screenshot 2024-11-15 at 14 56 35

Before requesting another review, please double check that the old Storybook has no regressions. 🙏 It's difficult, as there's so many props in this one! But we can do it with few eyes on it. 👀

@andypf
Copy link
Collaborator

andypf commented Nov 15, 2024

@gjaskiewicz Kindly address the issues identified by Guoda. It seems there are some regressions that need attention.

@gjaskiewicz
Copy link
Contributor Author

(Blocking)

Discrepancies in Storybook (currently live on left, PR on right):

  1. ComboBoxOption: children missing in props
Screenshot 2024-11-15 at 14 49 29 2. `ComboBox`: Breaking type change? The updated type for `helptext`, `errortext` and `successtext` is more restrictive than `ReactNode`. Could these be breaking changes?

Screenshot 2024-11-15 at 15 01 49 Screenshot 2024-11-15 at 15 02 08
3. ComboBox: Are these function controls correct? Doesn't look right, but not sure. We didn't have any controls in the past. 🤷‍♀️

Screenshot 2024-11-15 at 14 56 35 Before requesting another review, please double check that the old Storybook has no regressions. 🙏 It's difficult, as there's so many props in this one! But we can do it with few eyes on it. 👀

Checked storybook options one-by-one. Should be fine now.

Copy link
Contributor

@guoda-puidokaite guoda-puidokaite left a comment

Choose a reason for hiding this comment

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

Looks great, Thank You for the fixes! 🚀💪

Love that you added some descriptions to the docs for ComboBoxOptions, just made an observation on how we might be able to improve them. Change not required. 🙏

@andypf @barsukov, since this PR has so many comments, would be lovely if both of you could review too.

Copy link
Contributor

@barsukov barsukov left a comment

Choose a reason for hiding this comment

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

LGTM

@andypf andypf merged commit 0687bfa into main Nov 18, 2024
15 checks passed
@andypf andypf deleted the gjaskiewicz/refactor-combobox-ts branch November 18, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Migration package All tasks related to package under packages/ ui-components All tasks related to juno-ui-components library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants