Skip to content

Missing Approve and Reject buttons in review #1646

Closed

Description

@endorama

Hello, thank you for this project.

Today while trying to review a PR I struggled finding the Approve and Reject buttons: they were missing from the review popup completely. I then tried to disable the add-quick-review-buttons feature, and discovered that was due to them being disabled (I was the PR opener and we have some protection in place to avoid PR owners merging their PRs without approval).

This behaviour is intended, as demonstrated by line
https://github.com/sindresorhus/refined-github/blob/6f8490f76384d84f146436775eb58067896abbee/source/features/add-quick-review-buttons.js#L31-L32
which exclude radios in disabled state.

To have a nicer user experience in such cases I think would be helpful to move disabled radios to buttons in disabled state, using the provided help text GitHub adds to the radios.

The HTML structure for the disabled radios has a aria-label containing the popup text

<div class="form-checkbox mx-3 my-2">
    <label class="d-block text-gray-light tooltipped tooltipped-ne tooltipped-no-delay tooltipped-left" 
           aria-label="Pull request authors can’t approve their own pull request">
    <input type="radio" name="pull_request_review[event]" value="approve" disabled="">
    Approve
    <p class="text-normal text-gray-light">Submit feedback and approve merging these changes.</p>
    </label>
</div>

I can provide a PR to enhance this behaviour is you are ok with that.

Thanks a lot!

Activity

  1. fregante commented on Nov 30, 2018

    @fregante
    Member

    Not a bad idea.

    For reference, this is what it looks like normally

    screenshot 2018-11-30 at 23 09 01

  2. endorama commented on Nov 30, 2018

    @endorama
    Author
  3. added
    small
    and removed on Feb 13, 2019
  4. added a commit that references this issue on Feb 14, 2019
    5c43a8c
  5. Guy-Del-Mistro commented on Apr 15, 2022

    @Guy-Del-Mistro
  6. locked and limited conversation to collaborators on Apr 16, 2022
  7. fregante commented on Apr 16, 2022

    @fregante
    Member

    This is not an official GitHub help board.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions