feat(timeline): save named timeline views per workspace

Aperta
#401 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
14/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
nextjs, postgresql, react, typescript

Direzione di ricerca

Read #377 (option 9) and #119 first, then src/lib/timeline/query.ts to see how timelineHref serialises filters, and src/lib/palette/commands.ts for the existing jump targets. The blocking step is the options table: pick storage shape, RLS policies and permission model, and where views surface. Done means a recorded decision plus a saved view that restores its exact URL filters, with pgTAP coverage for member/nonmember/anonymous and a Playwright save-and-restore test.

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

Descrizione

area: timeline enhancement priority: P3 size: M

Context

Original option 9 of #377 ("Named, shareable views"), deferred by the #377 review. URLs already share a view (timelineHref, src/lib/timeline/query.ts) and the command palette already jumps to a provider or type timeline (src/lib/palette/commands.ts). What is new is saving a named filter set per workspace, such as "Production" or "Payments".

Plan

Not specified yet. Needs a decision on:

  1. Storage: a new table with RLS and policies in the same migration, scoped to workspace, and who may create, rename, and delete a view.
  2. Overlap with the per-member preferences in #119.
  3. Where views appear: timeline header, command palette, or both.

Acceptance criteria

  • Options table on this issue with Eddie's choice recorded, including the overlap with #119.
  • A saved view restores exactly the URL filters it was saved with, and a member of another workspace cannot read its name.

Files and areas

New migration and RLS, src/lib/timeline/query.ts, timeline page, command palette. Non-goal: changing URL sharing.

Verification

pgTAP tests for RLS (member, nonmember, anonymous); Playwright for save and restore.

Model: anthropic/claude-opus-5-5 | Reasoning effort: not exposed by harness

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
6h 56m
PR unite (30g)
136

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 eddiejaoude/StackDash

Tutte le issue di eddiejaoude/StackDash

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.