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

👻 use pf5 select for set-targets #1526

Merged

Conversation

gitdallas
Copy link
Collaborator

Also pulled the select out of the text-content wrapper which was throwing off some styles.

@gitdallas gitdallas requested a review from ibolton336 November 8, 2023 20:38
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (6e4ae05) 40.49% compared to head (177a9ad) 39.41%.
Report is 1 commits behind head on main.

Files Patch % Lines
...lient/src/app/components/SimpleSelectTypeahead.tsx 0.00% 7 Missing ⚠️
...pages/applications/analysis-wizard/set-targets.tsx 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1526      +/-   ##
==========================================
- Coverage   40.49%   39.41%   -1.08%     
==========================================
  Files         145      146       +1     
  Lines        4638     4775     +137     
  Branches     1087     1138      +51     
==========================================
+ Hits         1878     1882       +4     
- Misses       2746     2879     +133     
  Partials       14       14              
Flag Coverage Δ
client 39.41% <10.00%> (-1.08%) ⬇️
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gitdallas gitdallas force-pushed the chore/1242-set-target-use-new-select branch from b015961 to 97fd352 Compare November 9, 2023 14:17
@gitdallas gitdallas requested a review from ibolton336 November 13, 2023 19:10
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

The typeahead isn't working quite right with the search string. Looks like the search string can disappear but still be applied:

screencast-localhost_9000-2023.11.20-14_14_42.webm

</TextContent>
<SimpleSelectTypeahead
Copy link
Member

Choose a reason for hiding this comment

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

Should the SimpleSelectTypeahead actually be contained within the above TextContent to match the location of the previous SimpleSelect?

Copy link
Member

Choose a reason for hiding this comment

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

... Nope. If the new component is inside the TextContent, the drop down menu renders weird:
image

outside of the TextContent it is fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, this is related to my comment at the top of this PR

@gitdallas gitdallas requested a review from sjd78 November 20, 2023 19:45
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

The typeahead filter is now working as expect.

There is one minor annoyance now. When blurring, the filter gets cleared, the select menu gets re-rendered to show all values and then it closes:

screencast-localhost_9000-2023.11.20-15_16_40.webm

Any way to close the menu and then reset the filter so the menu doesn't flash all values before closing?

@gitdallas
Copy link
Collaborator Author

gitdallas commented Nov 20, 2023

interesting... i don't have it running to test and have been rolled onto another project for now. i'll see if i can look tomorrow.. maybe just clearing on open will be good instead... hopefully don't need to resort to setTimeout

Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks @gitdallas

@ibolton336 ibolton336 requested a review from sjd78 November 21, 2023 20:23
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

Latest change makes the dropdown much better behaved.

@gitdallas gitdallas merged commit c8990d4 into konveyor:main Nov 22, 2023
6 checks passed
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.

3 participants