Close a project from the All Projects list

Abierto
#208 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
mobile-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Kotlin
Estrellas
146
Forks
35
Merge medio
7 h 41 min
PR fusionados (30 d)
221

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de anomalyco/opencode-android

Todos los issues de anomalyco/opencode-android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.