refined-github/refined-github

Restore `recently-pushed-branches-enhancements` feature

Offen

#6.295 geöffnet am 04.02.2023

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.423 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (22.918 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 18h) (44 gemergte PRs in 30 T)

Beschreibung

Description

We tried making that feature "look good" via CSS but we were limiting ourselves too much.

A better solution would be:

  1. Load fragment on pages that don't have it, like before
  2. Hide box via CSS (not display: none but more like .visuallyhidden, or else the next step won't work)
  3. Detect it via selector-observer
  4. Add a custom button somewhere in the header (e.g. a green PLUS next to the PRs tab)
  5. When clicked, show the whole element unchanged

This means:

  • We have total control over the display of the button
  • We never have to alter the style of the actual branch list

Screenshot

No response

Example URLs

https://github.com/refined-github/refined-github (hide native box) https://github.com/refined-github/refined-github/issues (load box and hide it)

Contributor Guide