Skip to content

close-as-unplanned broken on new issue UI #9267

Not planned

Description

@fregante

Context: #7856

[we might] have to use the UI on behalf of the user because we no longer have the good ol' form element 😒

For example in #7893 this meant opening the dropdown menu and simulating a click on the Edit item.

Here I'd expect the dropdown arrow to be hidden and a new custom button to be added. When the button is clicked, we show the arrow, open it, click "close as not planned", then click the new "close" button.

Screenshot

I wonder if it's just easier to do it via API and call triggerConversationUpdate (which is also likely broken on the new issue view), but I think that as long as every part here is selectable, it's actually not too difficult:

async function editReactComment({delegateTarget: editButton}: DelegateEvent<MouseEvent, HTMLButtonElement>): Promise<void> {
(editButton.nextElementSibling as HTMLButtonElement).click();
await delay(1); // Allow the dropdown to open
document
.activeElement! // The focus is now on the first item in the dropdown
.parentElement! // Select the list element
.querySelector('[aria-keyshortcuts="e"]')! // Find the edit item
.click();
}

Test URL

This page

Activity

  1. fregante commented on Apr 25, 2026

    @fregante
    MemberAuthor

    Since the dropdown now includes a third option, we might not be able to replicate the old UI at all.

    I really wish GitHub would just do away with these weird button-switch combos and save us one click.

    1. Open dropdown
    2. Click one of the option
    3. Immediately apply it without having to click the updated button

    I don’t think Refined GitHub should change this behavior without changing the dropdown, it might be unexpected.

    Maybe we can use a similar dropdown to the new "Resolve conflicts" one:

    1. Always click the dropdown
    2. Pick an item

    This would make every action into 2 clicks, including the current default "close as completed". The mobile app already works this way.

  2. rsyring commented on Apr 26, 2026

    @rsyring

    Get rid of the current button and expand it into button group? Close as: [Completed | Not Planned | Duplicate]

    Show explanations on hover? Or not at all? Someone using this extension probably knows enough about GitHub to not need those options explained?

  3. fregante commented on Apr 26, 2026

    @fregante
    MemberAuthor

    We can see how it looks. Probably we have to leave the native dropdown on mobile though because there's not enough space for 4 buttons.

  4. fregante commented on Nov 27, 2026

    @fregante
    MemberAuthor

    Well it's not happening

    Screenshot 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions