Skip to content

Conversation

@christoph-jerolimov
Copy link
Member

@christoph-jerolimov christoph-jerolimov commented Oct 12, 2022

Fixes:

  1. https://issues.redhat.com/browse/ODC-6786 Allow the user to hide perspectives using a form-driven experience
  2. https://issues.redhat.com/browse/ODC-6781 Allow the user to hide sub-catalogs in the developer catalog or the entire dev catalog using a form-driven experience
  3. Implements a form-driven experience also for Quick Starts, Developer Add Page actions, and ****.

Solution Description:
Implement cluster configuration extension and page that looks similar to user preferences.

Screenshots / Gifs for design review:

New action menu on "Console" (operator.openshift.io) resource:

image

General configurations:

image

Perspective options:

image

"Saved." alert when changing an option:

image

Filters are implemented with fuzzy search:

image

Projects configurations:

image

Developer configurations:

image

Unit test coverage report:

Test setup:

  1. Switch to the "Administrator" perspective
  2. Navigate to "Administration" > "Cluster Settings" and open the "Configuration" tab
  3. Navigate to "Console" (operator.openshift.io) in two tabs:
    1. Keep the YAML open and
    2. Open the (new) actions menu and select "Customize" in a second tab
  4. Change some options to customize the console
    1. The form auto-saves changes after 2 seconds and shows a green alert "Saved."
    2. The YAML should be updated immediately
    3. The console requires a new roll out, this can take some seconds (up to a minute) and requires you to reload the browser.

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci openshift-ci bot requested review from cajieh and dtaylor113 October 12, 2022 01:14
@christoph-jerolimov christoph-jerolimov changed the title ODC-6786: Add cluster configuration extension, page, and options for console customization [WIP] ODC-6786: Add cluster configuration extension, page, and options for console customization Oct 12, 2022
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/dev-console Related to dev-console do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. component/sdk Related to console-plugin-sdk component/shared Related to console-shared kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated labels Oct 12, 2022
@christoph-jerolimov
Copy link
Member Author

/uncc cyril-ui-developer dtaylor113
/cc @debsmita1 @lokanandaprabhu @invincibleJai

@openshift-ci openshift-ci bot requested review from debsmita1, invincibleJai and lokanandaprabhu and removed request for cajieh and dtaylor113 October 12, 2022 01:15
@christoph-jerolimov christoph-jerolimov force-pushed the cluster-configuration branch 2 times, most recently from 6b519f1 to ea992cc Compare October 12, 2022 23:39
@christoph-jerolimov christoph-jerolimov changed the title [WIP] ODC-6786: Add cluster configuration extension, page, and options for console customization ODC-6786: Add cluster configuration extension, page, and options for console customization Oct 12, 2022
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 12, 2022
@christoph-jerolimov
Copy link
Member Author

/cc @serenamarie125 @beaumorley

@invincibleJai
Copy link
Member

Thanks @jerolimov, this looks good 🎉

Had some observations which have listed below:

  1. Getting i18n error on console

image

  1. I disabled all QuickStarts and then whent to QuickStarts page and it showed as below, may be we can take as follow up to show proper empty screen as this is not related to this PR

image

  1. Getting 422 on moving catlog item from disabled to enabled for Helm Charts

image

catalogDisableHelmChart

  1. forntend job needs ❤️

Copy link
Member

Choose a reason for hiding this comment

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

nit: shall we remove the commented extensions and some of the commented lines below?

Comment on lines +15 to +19
Copy link
Member

Choose a reason for hiding this comment

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

do we need this?

Copy link
Member

Choose a reason for hiding this comment

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

title value is asd?

Copy link
Member

Choose a reason for hiding this comment

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

shall we add check on options?

@debsmita1
Copy link
Contributor

No heading for developer catalog types
Screenshot 2022-10-17 at 4 30 26 PM

@christoph-jerolimov
Copy link
Member Author

@debsmita1

No heading for developer catalog types

Fixed

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 17, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 17, 2022
@christoph-jerolimov christoph-jerolimov force-pushed the cluster-configuration branch 3 times, most recently from 9d9fb8c to 44f25d9 Compare October 18, 2022 09:01
@sanketpathak
Copy link
Contributor

@jerolimov saw this issue while sending quick starts from enabled to disabled regions
When one item got moved I tried to move the complete list but it didn't happen
Screencast from 10-18-2022 03:04:26 PM.webm

@christoph-jerolimov
Copy link
Member Author

@jerolimov saw this issue while sending quick starts from enabled to disabled regions

When one item got moved I tried to move the complete list but it didn't happen

Screencast.from.10-18-2022.03.04.26.PM.webm

After some investigation I found that this is an issue in the PF DualListSelector component.

I opened a PF bug report with an exact description how to reproduce this and a bug fix as well:
patternfly/patternfly-react#8268
patternfly/patternfly-react#8269

@sanketpathak
Copy link
Contributor

Verified on a cluster with cluster-bot
Screencast from 10-19-2022 10:58:59 PM.webm
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Oct 19, 2022
@christoph-jerolimov christoph-jerolimov force-pushed the cluster-configuration branch 2 times, most recently from 2178fc4 to 7f72825 Compare October 20, 2022 07:30
@debsmita1
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 20, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 20, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: debsmita1, jerolimov

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

The pull request process is described here

Details 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-ci
Copy link
Contributor

openshift-ci bot commented Oct 20, 2022

@jerolimov: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit ee068c1 into openshift:master Oct 20, 2022
@christoph-jerolimov christoph-jerolimov deleted the cluster-configuration branch August 7, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/dev-console Related to dev-console component/sdk Related to console-plugin-sdk component/shared Related to console-shared docs-approved Signifies that Docs has signed off on this PR kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants