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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNV-32370: Rearranging setting tab #1611

Merged

Conversation

metalice
Copy link
Member

馃摑 Description

Rearranging settings tabs and adding a new tab for features.
I am adding an option to disable/enable all features together.
Edit the useFeatuers hook to be more efficient and handle loading value better.

馃帴 Demo

rearrange

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Nov 16, 2023

@metalice: This pull request references CNV-32370 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 epic to target the "4.15.0" version, but no target version was set.

In response to this:

馃摑 Description

Rearranging settings tabs and adding a new tab for features.
I am adding an option to disable/enable all features together.
Edit the useFeatuers hook to be more efficient and handle loading value better.

馃帴 Demo

rearrange

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 kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Nov 16, 2023
Comment on lines 44 to 54
return {
canEditCpuLimits,
canEditInstancetypes,
canEditNicHotplug,
isEnabledCpuLimits,
isEnabledInstancetypes,
isEnabledNicHotplug,
loading: loadingCpuLimits || loadingInstanceTypes || loadingNicHotplug,
toggleCpuLimits,
toggleInstancetypes,
toggleNicHotplug,
Copy link
Member

Choose a reason for hiding this comment

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

maybe we can create an array of objects with canEdit, toggle, enabled, label, externalLink and id ? So that in the future, remove and add features will be easier?

Copy link
Member Author

Choose a reason for hiding this comment

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

u have a point, i changed the hook and rendering file, now it will be easy to add features, only add 2 things to the hook for each new feature

@metalice metalice force-pushed the CNV-32370-setting-layout branch 2 times, most recently from c051abe to de83cea Compare November 17, 2023 08:59
Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
@metalice metalice changed the title CNV-32370: Rearranging setting tab - part 1 CNV-32370: Rearranging setting tab Nov 19, 2023
@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Nov 20, 2023
Copy link
Contributor

openshift-ci bot commented Nov 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [metalice,upalatucci]

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 f40cf6f into kubevirt-ui:main Nov 20, 2023
9 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.

None yet

3 participants