Altinity / Altinity/altinity-sql-browser

A queries-only bundle import no longer produces a Dashboard (favourite/membership decoupling in #427)

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

Nessuno ha ancora preso questa issue.

enhancement inbox
Lingua principale
TypeScript
Stelle
8
Fork
2
Merge medio
1h 34m
PR unite (30g)
6

Descrizione

Behaviour change from #427, flagged rather than folded in.

What changed

Before #427, importing a portable bundle that contained queries but no dashboards produced a Dashboard: addImportedFavoriteTiles(null, …) (src/workspace/import-planner.ts, removed in #427) minted the compatibility Dashboard from every spec.favorite === true panel query and gave each one a tile.

examples/iceberg-install.json is exactly that shape — 0 dashboards, 6 queries — so importing it used to hand the user a populated Dashboard.

#427 severed favourite from membership: a favourite is now a Library preference with no Dashboard meaning, so a queries-only import lands every query in the Library and creates no Dashboard at all. That is the correct end state (planImportQueries no longer touches any Dashboard, and every stored Dashboard comes through byte-identically), but it removes a route that existed.

Why it is deferred

The replacement route is #428: drag a Library query onto a Dashboard's Panels group, or use the keyboard-accessible Add to dashboard… equivalent, which creates an independent panel-role copy and a tile. Until #428 lands there is no in-app way to get a panel onto a Dashboard from a queries-only bundle — the user has to author the Dashboard by hand or import a bundle that carries one.

What to decide

  1. Is the #428 gap acceptable as an interim state, or does the import flow need an explicit "add these to a dashboard" step of its own?
  2. Should a queries-only import offer to create a Dashboard explicitly (a checkbox in the import dialog), now that it can no longer be inferred from a flag?
  3. examples/iceberg-install.json may want a Dashboard authored into it, so the shipped demo keeps working as documented in docs/ICEBERG-CATALOG-EXPLORER-DEMO.md.

Not folded into #427 because it is a product question about the import UX, and #427's own scope explicitly excludes assignment (that is #428's).

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Inizia da src/workspace/import-planner.ts e dalle modifiche di #427, quindi esamina examples/iceberg-install.json e docs/ICEBERG-CATALOG-EXPLORER-DEMO.md. Esamina #428 come percorso sostitutivo proposto e stabilisci se l’importazione debba creare o offrire un’assegnazione a un dashboard. Il lavoro è completato quando la scelta di prodotto è definita e il comportamento di importazione interessato e la documentazione della demo sono allineati.

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

Valutazione

Stack tecnologico
typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.