Skip to content

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Dec 2, 2025

Description

Move TaskDetails onto UI primitives & ContextPanel Blocks

Related Issue and Pull requests

Type of Change

  • Cleanup/Refactor

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

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

Copy link
Collaborator Author

camielvs commented Dec 2, 2025

@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from cf86a9d to 6c22aea Compare December 2, 2025 23:54
@camielvs camielvs marked this pull request as ready for review December 2, 2025 23:56
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 6c22aea to f1fefa5 Compare December 3, 2025 20:35
@camielvs camielvs requested a review from Mbeaulne December 3, 2025 20:47
if (!hasExecutionData) {
return null;
}
} = useFetchContainerExecutionState(executionId, backendUrl);
Copy link
Collaborator

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(
Copy link
Collaborator

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 = () => {
Copy link
Collaborator

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(
Copy link
Collaborator

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?

Copy link
Collaborator

@maxy-shpfy maxy-shpfy left a 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)

@camielvs camielvs mentioned this pull request Dec 4, 2025
3 tasks
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from f1fefa5 to 17c6996 Compare December 4, 2025 21:26
@camielvs camielvs marked this pull request as draft December 4, 2025 21:44
@camielvs camielvs changed the base branch from master to graphite-base/1464 December 4, 2025 21:52
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 17c6996 to 748d25b Compare December 4, 2025 21:52
@camielvs camielvs changed the base branch from graphite-base/1464 to 12-04-add_ui_blocks_to_context_panel December 4, 2025 21:53
@camielvs camielvs mentioned this pull request Dec 4, 2025
4 tasks
@camielvs camielvs changed the base branch from 12-04-add_ui_blocks_to_context_panel to graphite-base/1464 December 4, 2025 21:59
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 748d25b to 4f787bc Compare December 4, 2025 21:59
@camielvs camielvs changed the base branch from graphite-base/1464 to 12-04-cleanup_executiondetails December 4, 2025 21:59
@camielvs camielvs mentioned this pull request Dec 4, 2025
3 tasks
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 4f787bc to ef11837 Compare December 4, 2025 22:29
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from 49d4edd to 533c465 Compare December 4, 2025 22:44
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from ef11837 to 04c9d4b Compare December 4, 2025 22:44
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from cd9af2c to da5cc4e Compare December 10, 2025 21:28
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from aa47905 to 8a01b0d Compare December 10, 2025 21:29
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from da5cc4e to 357442f Compare December 11, 2025 00:23
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch 2 times, most recently from 10df8cb to 113b8c5 Compare December 11, 2025 00:34
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch 2 times, most recently from 2ec7056 to 0d5df0e Compare December 11, 2025 00:36
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from 113b8c5 to 16212fb Compare December 11, 2025 00:36
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 0d5df0e to de10ea2 Compare December 11, 2025 00:51
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from 16212fb to ddf0ce3 Compare December 11, 2025 00:51
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch 2 times, most recently from f02a8a8 to 894609c Compare December 11, 2025 01:02
url={taskSpec.componentRef.url}
onDelete={callbacks.onDelete}
status={status}
hasDeletionConfirmation={false}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from ddf0ce3 to ef66839 Compare December 11, 2025 20:26
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 894609c to d1c04fd Compare December 11, 2025 20:26
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from ef66839 to ad96688 Compare December 11, 2025 23:09
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch 2 times, most recently from 654f141 to 215a2fd Compare December 12, 2025 00:44
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from ad96688 to c8b7768 Compare December 12, 2025 00:44
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from 215a2fd to de8701b Compare December 12, 2025 22:08
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from c8b7768 to 00ae3d5 Compare December 12, 2025 22:08
@camielvs camielvs force-pushed the 12-02-cleanup_taskdetails branch from de8701b to c316dac Compare December 13, 2025 00:23
@camielvs camielvs force-pushed the 12-04-cleanup_executiondetails branch from 00ae3d5 to bde6c26 Compare December 13, 2025 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants