Add ability to jump to a section/chart in the dashboard

Aperta
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Start at the /dashboard/hardware route and inspect how the dashboard renders the chart element with the plugins-metric-overview-2 id and handles URL hashes. Verify the behavior with the example hash URL; done means opening that URL loads the dashboard and automatically scrolls to the requested chart.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs requirements

I am looking at the /dashboard/hardware page, and find one of the charts pretty interesting. There doesn't seem to be a way for me to copy an exact link to that chart and send it to a friend. By trolling the DOM, I can see we have a <div id="plugins-metric-overview-2">...</div> element that has an id of "plugin-metric-overview-2" on it. So, in theory, I could just jump to that section immediately by using the following URL:

https://moz-ensemble.herokuapp.com/dashboard/hardware#plugins-metric-overview-2

Oddly, that doesn't work. Not sure if it's something to do with our router. Or maybe fact the page is trying to jump down to a section before React has fully rendered all of the DOM out. Regardless, the page does a reload when I add a hash to the URL, and the page doesn't auto-scroll to my desired fascinating chart.

Lingua principale
JavaScript
Stelle
21
Fork
7
Merge medio
6g 3h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/ensemble

Tutte le issue di mozilla/ensemble

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.