Close a project from the All Projects list

Aperta
#208 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
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
mobile-dev

Direzione di ricerca

Start in ProjectPickerSheet and ProjectList in feature/session/src/main/kotlin/ai/opencode/feature/session/DraftProjects.kt, then trace where state.filteredProjects is built. Add a device-local hidden-project set that filters both the All Projects list and the recent projects above the message box, persisted across restarts. Done when a swiped project stays hidden after refresh and restart, and the server data is untouched. Open questions on swipe direction, undo and unhiding need maintainer input first.

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

Descrizione

Summary

In the All Projects sheet, I want to swipe a project row away to close it. A closed
project disappears from the lists on this device only. The server keeps the project.

Current behavior

  1. Tap All Projects above the message box. The project sheet opens.
  2. The sheet lists every project the server knows. Tapping a row picks that project
    for the new session.
  3. There is no way to close a project from this list. Projects I no longer use stay
    in the list forever.

Requested behavior

  • Swipe a project row away to close it. The row slides out and the rows below it
    slide up, the way list rows in the drawer do.
  • A closed project disappears from the All Projects list.
  • A closed project also disappears from the recent projects shown above the message
    box.
  • The device saves the closed state, so the project does not come back after a
    refresh, a reconnect, or an app restart.
  • The server is not changed. Closing a project only hides it on this device.

Open questions

  • Swipe direction: left, right, or both, as the drawer does?
  • Is there a way to undo a close right after the swipe, for example an Undo button?
  • Is there a way to unhide a project later, or is a closed project hidden for good
    on that device?
  • If I choose the same folder again through Choose Folder..., does the project
    come back?

Notes for maintainers

  • The sheet is ProjectPickerSheet in
    feature/session/src/main/kotlin/ai/opencode/feature/session/DraftProjects.kt.
    Its rows are built in ProjectList.
  • The list comes from state.filteredProjects, which the server sends. The hidden
    set on the device must take precedence over that list, or closed projects return
    on the next refresh.
  • The iOS app does not have this feature. This is an Android-first feature, so
    docs/parity needs a new row that says so.
Lingua principale
Kotlin
Stelle
146
Fork
35
Merge medio
7h 41m
PR unite (30g)
221

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 anomalyco/opencode-android

Tutte le issue di anomalyco/opencode-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.