-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: 12-04-cleanup_executiondetails
Are you sure you want to change the base?
Cleanup TaskDetails #1464
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
| }; | ||
|
|
||
| const handleCopyYaml = () => { | ||
| copyToYaml( |
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: copyToYamlis used ONLY in this place. I would co-locate it next to the usage.
| const pythonOriginalCode = | ||
| componentSpec?.metadata?.annotations?.original_python_code; | ||
|
|
||
| const stringToPythonCodeDownload = () => { |
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 be stable helper function outside of the Component.
| const { isCopied, isTooltipOpen, handleCopy, handleTooltipOpen } = | ||
| useCopyToClipboard(text); | ||
|
|
||
| const copyButton = useMemo( |
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.
Dont know why it should memoized compared to just being a JSX markup. NIT: if we want to keep content DRY - maybe it can be just a separate local component?
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
cd9af2c to
da5cc4e
Compare
aa47905 to
8a01b0d
Compare
da5cc4e to
357442f
Compare
10df8cb to
113b8c5
Compare
2ec7056 to
0d5df0e
Compare
113b8c5 to
16212fb
Compare
0d5df0e to
de10ea2
Compare
16212fb to
ddf0ce3
Compare
f02a8a8 to
894609c
Compare
| url={taskSpec.componentRef.url} | ||
| onDelete={callbacks.onDelete} | ||
| status={status} | ||
| hasDeletionConfirmation={false} |
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.
unused
ddf0ce3 to
ef66839
Compare
894609c to
d1c04fd
Compare
ef66839 to
ad96688
Compare
654f141 to
215a2fd
Compare
ad96688 to
c8b7768
Compare
215a2fd to
de8701b
Compare
c8b7768 to
00ae3d5
Compare
de8701b to
c316dac
Compare
00ae3d5 to
bde6c26
Compare

Description
Move
TaskDetailsonto UI primitives & ContextPanel BlocksRelated Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
No change to app functionality. UI update only. Confirm that the interface works and shows info as expected.
Additional Comments