-
Notifications
You must be signed in to change notification settings - Fork 84
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
Optimize & Consolidate Bundle Sidebar & Bundle View #4150
Conversation
3622eae
to
05fb8e9
Compare
frontend/src/components/worksheets/BundleDetail/BundleDependencies.jsx
Outdated
Show resolved
Hide resolved
frontend/src/components/worksheets/BundleDetail/BundlePageLink.jsx
Outdated
Show resolved
Hide resolved
frontend/src/components/worksheets/BundleDetail/BundleStateTable/BundleStateBox.jsx
Outdated
Show resolved
Hide resolved
return Math.abs(Math.round(time)); | ||
} | ||
|
||
getTimePassed() { |
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.
Can we render the time field (which is time spent actually running)? Time since created is also meaningful, but sometimes not the thing you want. Maybe there's a way to render both? In general, maybe the thing to do is to render a total time and the time spent in the current stage?
Also, if we have a function for rendering a duration, could we factor this out? Ideally, it would match the one in formatting.py
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.
I have removed the time-since-creation logic altogether. I feel like having that plus running time may be confusing to the user.
I have added times under the running
state and preparing
state. Appending times to the other states seemed like the logic required wouldn't be worth the payoff but plz lmk your thoughts.
Note: Times are also rendered in the More Details
section for users to reference later if needed.
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.
Logically this is great. Would it be possible to move the times to the (right) side of the states, so that the state flowchart doesn't jump around when times are added?
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.
@percyliang certainly. Updated 👍
Screen.Recording.2022-07-24.at.3.41.49.PM.mov
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 is great - much cleaner and more uniform and helpful!
Just a few minor comments:
- The help icon next to each field is very faint.
- UUID maybe should go at the top before name.
- Bundle page could appear in the upper right corner like a NE arrow that looks like it'll expand things.
- Store should be after Size, logically
- Allowed Failed, Exclude Patterns can go after all the Request fields.
- The fields could better match the rendering when you create a new run (especially the grouping of the resources) - could we share a component?
- In the help text for State, we should write the state again (e.g., "staged: ...") so it's clear we're talking about the highlighted state. Maybe when you mouse over the states, they should show a description too.
My feedback: #4153 |
I have modified the labels to align with the labels in the new run form. I have also added field groupings.
Note that since |
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.
Great work!
Reasons for making this change
This change optimizes the UI for viewing bundle data in the worksheet view as well as the standalone bundle view. Now both views leverage the same
BundleDetail
component, which has been improved from a UI perspective.Related issues
#4131
Bundle Detail Demo
Screen.Recording.2022-07-22.at.12.38.04.PM.mov
Bundle View Demo
Screen.Recording.2022-07-22.at.12.48.13.PM.mov
Checklist