-
Notifications
You must be signed in to change notification settings - Fork 5
Cleanup TaskDetails #1464
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
Cleanup TaskDetails #1464
Conversation
cf86a9d to
6c22aea
Compare
6c22aea to
f1fefa5
Compare
| if (!hasExecutionData) { | ||
| return null; | ||
| } | ||
| } = useFetchContainerExecutionState(executionId, backendUrl); |
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.
NIT: by using useSuspenseQuery and withSuspenseWrapper you can clean up skeleton and error logic.
useFetchContainerExecutionState seems to be used only in this component, so refactoring is straight forward.
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.
The code here has changed a fair amount, so it's worth taking another look and seeing if this NIT is still relevant
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 think it is still relevant, not blocking though
maxy-shpfy
left a comment
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.
See some regression in Component Details Dialog.
Screen Recording 2025-12-03 at 4.52.59 PM.mov (uploaded via Graphite)
f1fefa5 to
17c6996
Compare
17c6996 to
748d25b
Compare
748d25b to
4f787bc
Compare
e08a5ab to
49d4edd
Compare
4f787bc to
ef11837
Compare
49d4edd to
533c465
Compare
ef11837 to
04c9d4b
Compare
80a0367 to
8aed7ce
Compare
8d6e5bd to
9f12c4f
Compare
8aed7ce to
da919d7
Compare
9f12c4f to
5257308
Compare
da919d7 to
d36c503
Compare
5257308 to
5231971
Compare
d36c503 to
6630e43
Compare
5231971 to
2a594fc
Compare
src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskNodeCard/TaskNodeCard.tsx
Outdated
Show resolved
Hide resolved
maxy-shpfy
left a comment
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.
Screen Recording 2025-12-18 at 8.37.56 AM.mov (uploaded via Graphite)
I see a problem with
return <div key={JSON.stringify(action)}>{action}</div>;
in ActionBlock
| const downloadYamlFromComponentText = ( | ||
| componentSpec: ComponentSpec, | ||
| displayName: string, | ||
| ) => { | ||
| const code = componentSpecToText(componentSpec); | ||
| downloadStringAsFile(code, `${displayName}.yaml`, "text/yaml"); | ||
| }; | ||
|
|
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.
does this exist somewhere else?
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 don't think so? But you may be confused because iirc one of @maxy-shpfy's open PRs also implements a similar method.
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'm not aware of similar methods. I dont see any bad signals coming from this method
2a594fc to
8633795
Compare
6630e43 to
87a8b15
Compare
8633795 to
a14d94e
Compare
|
^ I think I have fixed this - let me know if not! |
maxy-shpfy
left a comment
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.
Now it LGTM!
0bf0e98 to
9c9af85
Compare
a14d94e to
1bdd5d3
Compare
1bdd5d3 to
540b3d3
Compare
9c9af85 to
14f0476
Compare
540b3d3 to
2d25276
Compare

Description
Move
TaskDetailsonto UI primitives & ContextPanel Blocks.To simplify this and provide better code quality, the links and urls have been split out of
Detailsinto their ownGithubDetailscomponent, as has also been done with the action buttons ->Actionscomponent.Related Issue and Pull requests
https://github.com/Shopify/oasis-frontend/issues/401
Type of Change
Checklist
Screenshots (if applicable)
Before:
After:
Test Instructions
No change to app functionality. UI update only. Confirm that the interface works and shows info as expected.
Additional Comments