Store Inbox snooze and pins on the server, with event-based snooze

Aperta
#3,106 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with inboxSnooze.ts and the Inbox implementation linked in #3036; trace how snooze and pin state affects the Inbox and navigation count. Then read the watch event handling for events such as pull_request.merged and deployment.succeeded. Done means snooze and pins are stored per viewer on the server and matching events can reopen snoozed items across devices.

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

Descrizione

The dashboard Inbox (#3036) keeps snooze and pins in the browser only. Other devices and the nav count do not see them.

Current behavior

  • Snooze and pin state lives in the browser (inboxSnooze.ts). It is lost when you switch device, and it does not change the Inbox count in the nav.
  • Snooze only supports times.

Gap

  • Snoozed and pinned Review items should look the same on every device and in every count.
  • Many Junior asks only become actionable after an event, not at a time. Examples: a PR opens, a PR merges, a deployment finishes, or an Automation runs.

Proposal (raised by BYK): store snooze and pins per viewer on the server, and add "when" snooze conditions, in the spirit of Google Inbox's location-based snooze. Examples: "when automation X runs", "when this PR opens", "when this PR merges". Junior already delivers provider events such as pull_request.merged and deployment.succeeded to watches, so an event-based snooze could reopen the item when a matching event arrives.

Related: #3036, #3103.

via @BYK.

--

View Session [Sentry]

Lingua principale
TypeScript
Stelle
397
Fork
43
Merge medio
8h 28m
PR unite (30g)
764

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 getsentry/junior

Tutte le issue di getsentry/junior

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.