[Bug]: Changing the sidebar project filter collapses an expanded Settled shelf back to 10 threads

Aperta Adatta ai principianti
#34,291 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da apps/web/src/components/Sidebar.tsx e controlla come settledTail viene inizializzato e reimpostato quando cambia projectScopeKey. Riproduci i passaggi dell’issue espandendo la sezione Settled, quindi modificando il filtro del progetto. Il lavoro è completato quando la sezione mantiene il numero di elementi espansi dopo la modifica del filtro; il payload non indica un file di test.

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

Descrizione

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Open the sidebar and expand the Settled shelf. It shows 10 settled threads.
  2. Click "Show 25 more" once or more, so the shelf shows more than 10.
  3. Change the project filter in the sidebar (add, remove or clear a project).
Expected behavior

The Settled shelf keeps the number of threads I expanded it to, now for the filtered projects.

Actual behavior

The Settled shelf goes back to 10 threads. To see the older threads again I have to click "Show 25 more" again after every filter change.

Cause

settledTail in apps/web/src/components/Sidebar.tsx stores the count with the projectScopeKey it was set for. When the project filter changes, projectScopeKey changes and the count resets to SETTLED_TAIL_INITIAL_COUNT (10):

if (settledTail.scopeKey !== projectScopeKey) {
  setSettledTail({ scopeKey: projectScopeKey, count: SETTLED_TAIL_INITIAL_COUNT });
}

Keeping the count across filter changes, or remembering it per filter, would fix this.

Impact

Minor bug or occasional failure

Version or commit

0.1.9-nightly.20261111.4515 (code read at main @ 49bab99)

Environment

macOS 26.2, T3 Code (Nightly) desktop app

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
10h 56m
PR unite (30g)
226

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.