Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Reopening the interlinearizer forgets which project the draft belongs to

Aperta
#538 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start in src/components/InterlinearizerLoader.tsx at the useWebViewState('activeProject') reference, then trace how the host opens sessions and supplies interlinearProjectId. Reproduce the listed tab close and reopen steps on the same source. Done means the reopened view shows the original project as active and Save writes edits to it.

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

Descrizione

After opening a project, closing the interlinearizer tab and opening it again restores the draft's content but no active project. The project picker shows no Active badge, and Save behaves like Save As. The user has to open the project again to save to it, and that replaces the draft with the saved content.

The active project is kept only in WebView state ('activeProject' in InterlinearizerLoader). That survives a tab restore but not a new tab. The draft is stored per source and doesn't record which project it was loaded from.

Steps: open a project, make an edit, close the interlinearizer tab, then open the interlinearizer on the same source.

Expected: the reopened view shows the same project as active, and Save writes to it.

Where: src/components/InterlinearizerLoader.tsx (useWebViewState('activeProject')). Remembering the active project per source in the host would also give openSession's interlinearProjectId a source of truth.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
1g 15h
PR unite (30g)
63

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 sillsdev/interlinearizer-extension

Tutte le issue di sillsdev/interlinearizer-extension

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.