Skip to content

Add minimize/maximize buttons to PR blocks #50

Closed

Description

@tdlm

I've done this in my own extension but I figure it might help some other people if I contribute it to yours (assuming you're interested).

I used jQuery for mine but it can easily be made in plain JS: https://github.com/tdlm/tdlm-github-tools/blob/master/background.js

Essentially this lets you minimize/maximize PR blocks by clicking on individual blocks or by clicking buttons at the top, like so:

Minimize/Maximize Blocks

Either way, it wouldn't be tough to add but it's something I use every day.

Activity

  1. nikolay commented on Mar 2, 2016

    @nikolay

    👍

  2. remarkablemark commented on Mar 2, 2016

    @remarkablemark

    +1

  3. hkdobrev commented on Mar 2, 2016

    @hkdobrev
    Contributor

    I'm curious why do you need that. Looking at this I have a different idea - expanding and collapsing diff contexts. Why do you need to collapse files in the diffs? When I'm looking at a big diff I usually use the diffstat links as table of contents.

  4. tdlm commented on Mar 2, 2016

    @tdlm
    ContributorAuthor

    @hkdobrev I don't need it; it's just sort of a way to minimize visual clutter when I've looked at something already. A lot of what this plugin does is the same in that respect. For example, moving the +1 votes to the sidebar. Unnecessary but very nice.

  5. hkdobrev commented on Mar 2, 2016

    @hkdobrev
    Contributor

    minimize visual clutter when I've looked at something already

    Got it now. Makes sense during a large code review where you review the changes file-by-file.

  6. tdlm commented on Mar 2, 2016

    @tdlm
    ContributorAuthor

    @hkdobrev Exactly!

  7. paulmolluzzo commented on Mar 2, 2016

    @paulmolluzzo
    Contributor

    @tdlm I actually saw your repo about a week or so ago. (Maybe a different one, but very similar in functionality.) Neat!

    This repo has Sprint, which is similar to jQuery, so I bet most of it will port easily.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions