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

CNV-54179: Improve folder select #2340

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

avivtur
Copy link
Member

@avivtur avivtur commented Jan 6, 2025

📝 Description

Show create option when at all times, and fix text of create option.

🎥 Demo

After:
fixed-folder-select
fixed-folder-select2

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jan 6, 2025

@avivtur: This pull request references CNV-54179 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set.

In response to this:

📝 Description

Show create option when at all times, and fix text of create option.

🎥 Demo

After:
fixed-folder-select
fixed-folder-select2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Jan 6, 2025
@pcbailey
Copy link
Member

pcbailey commented Jan 6, 2025

It's just my opinion, but 'Create folder ""' looks weird in the screenshot.

@avivtur
Copy link
Member Author

avivtur commented Jan 6, 2025

It's just my opinion, but 'Create folder ""' looks weird in the screenshot.

@pcbailey Suggestions?

@avivtur avivtur force-pushed the folder-create-fix branch from 3e947d6 to 18fb54b Compare January 6, 2025 16:02
@metalice
Copy link
Member

metalice commented Jan 7, 2025

opinion, but 'Create folder ""' looks weird in the screenshot.

can we hide it if no string entered?

Copy link
Member

Choose a reason for hiding this comment

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

i can see there is an occurrency like

      if (value === CREATE_NEW) {

Should we put

   if ([CREATE_NEW, NOT_FOUND].includes(value)

??

Copy link
Member Author

Choose a reason for hiding this comment

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

where this should go?

Copy link
Member

Choose a reason for hiding this comment

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

@avivtur - please go over this comment and adjust if needed in a followup pr

@avivtur
Copy link
Member Author

avivtur commented Jan 9, 2025

opinion, but 'Create folder ""' looks weird in the screenshot.

can we hide it if no string entered?

this was the state before this PR, unless you start entering input, that's why we wanted to improve it so the user would know he can create a folder

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jan 13, 2025
Copy link
Contributor

openshift-ci bot commented Jan 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avivtur, metalice

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit b6a1884 into kubevirt-ui:main Jan 13, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants