8000 `actions-run-removal` - New feature by SunsetTechuila · Pull Request #8708 · refined-github/refined-github · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@SunsetTechuila
Copy link
Member
@SunsetTechuila SunsetTechuila commented Oct 12, 2025

@SunsetTechuila SunsetTechuila marked this pull request as ready for review October 13, 2025 08:07
@fregante fregante changed the title quick-delete-cancel-workflow: add new feature quick-delete-cancel-workflow - New feature Oct 13, 2025
rightControlsContainer.prepend(cancelForm);
}

rightControlsContainer.classList.toggle('d-flex', !!(cancelForm || deleteWorkflowButton));
Copy link
Member

Choose a reason for hiding this comment

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

Given the changes suggested, you're probably going to use something like:

wrapAll(<div className="d-flex flex-column"/>, contextMenuDetails, cancelForm, deleteWorkflowButton)

This way they're be wrapped if they exist. And if they don't, that's likely fine, no visual change with this extra element.

const deleteWorkflowButton = $('button', deleteWorkflowMenuItem);
transformIntoIconButton(deleteWorkflowButton, <TrashIcon />);
deleteWorkflowButton.classList.add('rgh-delete-workflow-run');
rightControlsContainer.prepend(deleteWorkflowMenuItem);
Copy link
Member Author
@SunsetTechuila SunsetTechuila Oct 13, 2025

Choose a reason for hiding this comment

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

it is prepended, and not appended, so that the cloned dialog opens instead of the one inside the context menu

}

if (cancelForm || deleteWorkflowMenuItem) {
rightControlsContainer.classList.add('d-flex', 'flex-column-reverse');
Copy link
Member Author
@SunsetTechuila SunsetTechuila Oct 13, 2025

Choose a reason for hiding this comment

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

flex-column-reverse because #8708 (comment)

@kidonng
Copy link
Member
kidonng commented Oct 13, 2025

can't think of a better name

quick-ci-actions? Unfortunately GitHub already call the feature "Actions" so we can't just use quick-<feature>-actions 😅

But definitely not -workflow. You cancel/delete the workflow runs, not the workflows themselves.

@SunsetTechuila
Copy link
Member Author

Maybe quick-workflow-run-actions. It's not very concise, but it's descriptive

@SunsetTechuila SunsetTechuila changed the title quick-delete-cancel-workflow - New feature quick-workflow-run-actions - New feature Oct 13, 2025
@fregante
Copy link
Member

I think we have another workflow feature. Technically it's deleting a run, so it should include that.

"quick-run-removal" or "quick-workflow-run-removal" but I prefer the 3-word version.

@SunsetTechuila
Copy link
Member Author

Unfortunately GitHub already call the feature "Actions" so we can't just use quick-<feature>-actions

We already have several features named like that

quick-workflow-run-removal

But what about cancellation?

@fregante
Copy link
Member
fregante commented Oct 14, 2025

Same same

Names don't have to be exact. See notes in wiki https://github.com/refined-github/refined-github/wiki/Contributing#feature-name

@SunsetTechuila SunsetTechuila changed the title quick-workflow-run-actions - New feature quick-workflow-run-removal - New feature Oct 19, 2025
@SunsetTechuila
Copy link
Member Author

renamed

@fregante
Copy link
Member
fregante commented Nov 4, 2025
Screenshot 6

@fregante fregante changed the title quick-workflow-run-removal - New feature actions-run-removal - New feature Nov 4, 2025
@fregante
Copy link
Member
fregante commented Nov 4, 2025

We have github-actions-indicators which applies to the same page. "GitHub" is kinda redundant so I dropped it.

@fregante fregante force-pushed the quick-delete-cancel-workflow branch from 7492c52 to 5f2f473 Compare November 4, 2025 08:20
@fregante
Copy link
Member
fregante commented Nov 4, 2025

quick-ci-actions?

I want to move away from "quick" since it's relatively redundant. Most features let you do things faster.

do you insist on removing the hover effect?

I attempted it but I agree it's better here and it matches the red shown in the dropdown.

@fregante
Copy link
Member
fregante commented Nov 4, 2025

fregante force-pushed

argh. Since when GitHub Desktop force pushes?! Didn't mean to do that

@SunsetTechuila SunsetTechuila force-pushed the quick-delete-cancel-workflow branch from b57e212 to b216181 Compare November 4, 2025 08:45
@fregante fregante merged commit e123ed3 into refined-github:main Nov 4, 2025
9 checks passed
@SunsetTechuila SunsetTechuila deleted the quick-delete-cancel-workflow branch November 4, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Provide a quick "cancel run" button on the workflow lists (Actions)

3 participants

0