Skip to content

ODC-7802: Remove custom Drawer and Tabs from web-terminal #15077

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

logonoff
Copy link
Member

@logonoff logonoff commented May 21, 2025

https://issues.redhat.com/browse/ODC-7802

changes:

  • the copy/pasted PF tabs component in @console/app has been removed
  • the custom Drawer component based on react-draggable has been removed
  • you can now middle click "Terminal {x}" tabs to close them (like browser tabs)
  • in mobile view, the terminal now expands to full-height. this is default PatternFly behaviour and AFAIK cannot be overwritten
  • the terminal now animates when opening and closing
  • a tooltip was added to the web terminal toggle button in the masthead

after:

image

tech debt, adding labels:

/label px-approved
/label docs-approved

qe approval:
/assign @sanketpathak @yapei

code review:
/assign @vikram-raj @TheRealJon

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 21, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 21, 2025

@logonoff: This pull request references ODC-7802 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 story to target the "4.20.0" version, but no target version was set.

In response to this:

https://issues.redhat.com/browse/ODC-7802

changes:

  • the copy/pasted PF tabs component in @console/app has been removed
  • the custom Drawer component based on react-draggable has been removed
  • you can now middle click "Terminal {x}" tabs to close them (like browser tabs)
  • in mobile view, the terminal now expands to full-height. this is default PatternFly behaviour and AFAIK cannot be overwritten
  • the terminal now animates when opening and closing
  • you can no longer resize the web terminal when it is minimized
  • a tooltip was added to the web terminal toggle button in the masthead

after:

image

tech debt, adding labels:

/label px-approved
/label docs-approved

qe approval:
/assign @sanketpathak @yapei

code review:
/assign @vikram-raj @TheRealJon

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 px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels May 21, 2025
Copy link
Contributor

openshift-ci bot commented May 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff

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-ci openshift-ci bot added component/core Related to console core functionality component/shared Related to console-shared approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 21, 2025
@logonoff logonoff force-pushed the ODC-7802-webterminal branch 2 times, most recently from 74acc85 to a2ee144 Compare May 22, 2025 01:29
@openshift-ci openshift-ci bot added the component/dev-console Related to dev-console label May 22, 2025
@logonoff logonoff force-pushed the ODC-7802-webterminal branch 2 times, most recently from 52180ca to 293e48a Compare May 22, 2025 12:20
@logonoff logonoff force-pushed the ODC-7802-webterminal branch from 293e48a to a39c616 Compare May 22, 2025 12:25
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 22, 2025

@logonoff: This pull request references ODC-7802 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 story to target the "4.20.0" version, but no target version was set.

In response to this:

https://issues.redhat.com/browse/ODC-7802

changes:

  • the copy/pasted PF tabs component in @console/app has been removed
  • the custom Drawer component based on react-draggable has been removed
  • you can now middle click "Terminal {x}" tabs to close them (like browser tabs)
  • in mobile view, the terminal now expands to full-height. this is default PatternFly behaviour and AFAIK cannot be overwritten
  • the terminal now animates when opening and closing
  • you can no longer resize the web terminal when it is minimized
  • a tooltip was added to the web terminal toggle button in the masthead

after:

image

tech debt, adding labels:

/label px-approved
/label docs-approved

qe approval:
/assign @sanketpathak @yapei

code review:
/assign @vikram-raj @TheRealJon

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.

@logonoff
Copy link
Member Author

/retest

@yapei
Copy link
Contributor

yapei commented May 26, 2025

Tested the PR and found two possible regressions

  • Minimize terminal will close all opened Terminals which I think should be unexpected, recording
  • command line terminal occupies the whole screen on mobile view, and there is no Minimize terminal button and not able to close the terminal recording

@logonoff
Copy link
Member Author

logonoff commented May 28, 2025

hi @yapei,

thanks for checking the PR! the first issue is definitely a regression, which should be fixed now. I also made further changes so that you can resize the web terminal even if it's minimized (like how it was before)

the second issue regarding the web terminal taking up the whole screen is unfortunately a design choice by PatternFly--in their drawer component any drawer will automatically take up the entire mobile viewport. because of this, you cannot minimize or resize drawers in mobile, so i intentionally removed the button because it would not work. we can consult with UX to see if disabling the button instead is better if you would like

code review:
/assign @rhamilto

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 28, 2025

@logonoff: This pull request references ODC-7802 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 story to target the "4.20.0" version, but no target version was set.

In response to this:

https://issues.redhat.com/browse/ODC-7802

changes:

  • the copy/pasted PF tabs component in @console/app has been removed
  • the custom Drawer component based on react-draggable has been removed
  • you can now middle click "Terminal {x}" tabs to close them (like browser tabs)
  • in mobile view, the terminal now expands to full-height. this is default PatternFly behaviour and AFAIK cannot be overwritten
  • the terminal now animates when opening and closing
  • a tooltip was added to the web terminal toggle button in the masthead

after:

image

tech debt, adding labels:

/label px-approved
/label docs-approved

qe approval:
/assign @sanketpathak @yapei

code review:
/assign @vikram-raj @TheRealJon

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.

Copy link
Contributor

openshift-ci bot commented May 29, 2025

@logonoff: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-console 7dddebc link unknown /test e2e-gcp-console

Full PR test history. Your PR dashboard.

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

@yapei
Copy link
Contributor

yapei commented May 29, 2025

@logonoff

the second issue regarding the web terminal taking up the whole screen is unfortunately a design choice by PatternFly--in their drawer component any drawer will automatically take up the entire mobile viewport. because of this, you cannot minimize or resize drawers in mobile, so i intentionally removed the button because it would not work
sounds reasonable! thanks for confirmation

tested with the latest changes and now everything works well as expected
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label May 29, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 29, 2025

@logonoff: This pull request references ODC-7802 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 story to target the "4.20.0" version, but no target version was set.

In response to this:

https://issues.redhat.com/browse/ODC-7802

changes:

  • the copy/pasted PF tabs component in @console/app has been removed
  • the custom Drawer component based on react-draggable has been removed
  • you can now middle click "Terminal {x}" tabs to close them (like browser tabs)
  • in mobile view, the terminal now expands to full-height. this is default PatternFly behaviour and AFAIK cannot be overwritten
  • the terminal now animates when opening and closing
  • a tooltip was added to the web terminal toggle button in the masthead

after:

image

tech debt, adding labels:

/label px-approved
/label docs-approved

qe approval:
/assign @sanketpathak @yapei

code review:
/assign @vikram-raj @TheRealJon

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.

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/shared Related to console-shared docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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.

7 participants