-
Notifications
You must be signed in to change notification settings - Fork 166
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
Convert Log Viewer to PF Log Viewer #2184
Convert Log Viewer to PF Log Viewer #2184
Conversation
...d/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightTabs.tsx
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Outdated
Show resolved
Hide resolved
This solution has text overlapping issue, when drawer size gets smaller. We can avoid this problem by increasing the minSize of Drawer. Please share some suggestions or ideas you might have. Screencast.from.2023-11-20.17-55-51.webm |
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be rebased against the PF5 changes.
The resizing effort is alright... I think we may want to find a nicer way to manage it in the long run because it definitely looks very hacky right not.
I think we need to probably discuss the whole need for the Log tab to be selected. This seems like a technical issue you're having and trying to bend the UX to fit it -- where I assume we can figure out a proper technical solution to avoid it.
...rc/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightContent.tsx
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/LogsTab.tsx
Outdated
Show resolved
Hide resolved
Hi @ppadti , what is the current minSize of the drawer? |
current minSize of the drawer is 400px. |
…ng issue (#1) * Switch default tab back to input/output Signed-off-by: Mike Turley <[email protected]> * Conditionally render only the active tab, remove now-unneccessary tabContentProps function Signed-off-by: Mike Turley <[email protected]> --------- Signed-off-by: Mike Turley <[email protected]>
Everything looks good but the logs aren't scrolling to the bottom for me. Screen.Recording.2024-01-09.at.2.11.19.AM.mov |
I am not able to reproduce this issue. @DaoDaoNoCode could you please check whether this issue exist, while reviewing the PR. |
Hi @ppadti, the updates look good! I remember when seeing your demo during our meeting, the search box remains the same width both for the default status and focus status. Is that been changed or do I get a wrong memory here? Another question is do the spaces between the components follow the standard pattern? I feel like these two spaces are not equal to each other. But that could be my illusion. |
@yih-wang I have updated the maxwidth for search item to 250px, when it is expanded. I didn't quiet get what default status means. Is it only the search icon that we display without yeah the spaces are not equal. Because the steps, search and pause/resume item stays in one |
@DaoDaoNoCode This is the issue I mentioned/demoed in the last office hours call. This is a known issue. @ppadti has created a PF issue for this. |
PF Issue: patternfly/react-log-viewer#56 |
@yih-wang I have updated the spaces between toolbar items as we discussed. Let me know if this alignment and spacing is fine. |
...rc/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightContent.tsx
Outdated
Show resolved
Hide resolved
...d/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightTabs.tsx
Show resolved
Hide resolved
...end/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/runLogs/DownloadDropdown.tsx
Outdated
Show resolved
Hide resolved
@ppadti please update the GIFs and screenshots in the PR description too. |
870e0bb
to
58d0493
Compare
Co-authored-by: Mike Turley <[email protected]>
anything not working as expected is a PF bug (drawer resizing issue, highlighted text). everything else is working as expected. needs UX approval and advisor /lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from the PF issues identified here which can probably be considered out of scope of this PR as long as we have issues to follow up on them.
...rc/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightContent.tsx
Show resolved
Hide resolved
...rc/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightContent.tsx
Show resolved
Hide resolved
Changes have been addressed.
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: manaswinidas, mturley 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 |
0441a89
into
opendatahub-io:f/pipelines-enhancement
Closes: RHOAIENG-258 and RHOAIENG-1095
Description
This PR aims to change the existing Log viewer to PF Log viewer. Also this PR includes
UX Design: https://www.figma.com/proto/rJjOtl3nxpW6BAcl0MZr4y/Pipeline-log-viewer?page-id=62%3A1895&type=design&node-id=1075-5045&viewport=1226%2C-14994%2C0.33&t=BbsTwCedaJMiJaRo-1&scaling=min-zoom&starting-point-node-id=1075%3A5045&show-proto-sidebar=1&mode=design
Gifs:
Screencast.from.2024-01-16.22-27-04.webm
Screencast.from.2024-01-16.22-28-20.webm
Screencast.from.2024-01-16.16-31-09.webm
Screenshots:
When the drawer is at its default width.
Log viewer when Drawer is at minSize.
When search bar is expanded
Log viewer when "No logs available"
How Has This Been Tested?
Test Impact
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main