Skip to content

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Dec 10, 2025

Description

Action buttons in RunDetails follow the Action type style (rather than passing a straight ReactNode e.g. styled button). This ensures consistency of the interface, and makes it easy to implement new actions later.

This change requires some rework of the various RunDetails Buttons and the TaskImplementation. To formulate the actions list a new useRunActions hook was added. Tests for these components have been, similarly, moved into a new consolidated test file for the hook.

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.

Confirm that all buttons in RunActions look consistent and continue to function as expected.

Additional Comments

Copy link
Collaborator Author

camielvs commented Dec 10, 2025

@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 8737a95 to 73c5435 Compare December 10, 2025 22:50
@camielvs camielvs changed the base branch from 12-09-cleanup_rundetails to graphite-base/1524 December 10, 2025 23:41
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 73c5435 to f5b8ed7 Compare December 10, 2025 23:41
@camielvs camielvs changed the base branch from graphite-base/1524 to 12-10-rework_codeviewer_implementation December 10, 2025 23:41
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from f5b8ed7 to 0fdda14 Compare December 11, 2025 00:20
@camielvs camielvs changed the title Rework Action Buttons into new Action Framework Rework RunDetails Action Buttons into new Action Framework Dec 11, 2025
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 0fdda14 to 6ac7507 Compare December 11, 2025 00:23
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 1dd8730 to 0e92bae Compare December 11, 2025 00:34
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch 2 times, most recently from f1367b4 to 1c75c23 Compare December 11, 2025 00:36
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 0e92bae to 19707ab Compare December 11, 2025 00:36
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 1c75c23 to 22fcc25 Compare December 11, 2025 00:51
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 19707ab to 726344b Compare December 11, 2025 00:51
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 22fcc25 to 19bc578 Compare December 11, 2025 00:56
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 726344b to 5b89d37 Compare December 11, 2025 00:56
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 19bc578 to f8982e3 Compare December 11, 2025 01:02
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 5b89d37 to 5f2112e Compare December 11, 2025 01:02
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from f8982e3 to 442d3d8 Compare December 11, 2025 20:26
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 5f2112e to 0d02f62 Compare December 11, 2025 20:26
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 442d3d8 to b5bc3a7 Compare December 11, 2025 23:09
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 0d02f62 to 1714799 Compare December 11, 2025 23:09
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from f0775a7 to e56a33a Compare December 17, 2025 20:32
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch 2 times, most recently from cd10655 to d4c116a Compare December 17, 2025 20:34
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 9212073 to e92bc36 Compare December 17, 2025 20:56
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from d4c116a to 43689aa Compare December 17, 2025 20:56
Comment on lines +207 to +211
return {
actions,
isYamlFullscreen,
handleCloseYaml,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm against grouping actions into one hook. It is much better create multiple hooks or use useQuery and useMutation within specific components.

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.

I'm against grouping actions into one hook. It is much better create multiple hooks or use useQuery and useMutation within specific components.

@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from e92bc36 to 8c926e9 Compare December 18, 2025 16:03
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 43689aa to 1b8d745 Compare December 18, 2025 16:03
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 8c926e9 to bb051b9 Compare December 18, 2025 16:10
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 1b8d745 to 0b78866 Compare December 18, 2025 16:10
Copy link
Collaborator Author

Hmmm. The idea was to split out the logic from the UI, and improve readability + testability. I'm open to ideas - let's discuss in the New Year

@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 0b78866 to 6759ff2 Compare December 18, 2025 19:28
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from bb051b9 to 07f6759 Compare December 18, 2025 19:28
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 6759ff2 to 17a86e0 Compare December 18, 2025 19:34
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch 2 times, most recently from 176371b to 9d0f76f Compare December 18, 2025 20:36
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 17a86e0 to 77f593f Compare December 18, 2025 20:37
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 9d0f76f to 5fe4a59 Compare December 18, 2025 20:44
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 77f593f to 57ea5aa Compare December 18, 2025 20:44
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from 5fe4a59 to c929346 Compare December 18, 2025 20:50
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from 57ea5aa to f6b8aa2 Compare December 18, 2025 20:51
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from c929346 to a5ce09e Compare December 18, 2025 20:55
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from f6b8aa2 to b98cf0e Compare December 18, 2025 20:55
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch from a5ce09e to 47f036b Compare December 18, 2025 20:59
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from b98cf0e to f0ad36d Compare December 18, 2025 20:59
@camielvs camielvs force-pushed the 12-10-rework_codeviewer_implementation branch 2 times, most recently from 661532b to eba55a1 Compare December 18, 2025 21:03
@camielvs camielvs force-pushed the 12-10-rework_action_buttons_into_new_action_framework branch from f0ad36d to dd65777 Compare December 18, 2025 21:03
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.

3 participants