Close a project from the All Projects list

未關閉
#208 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
半天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
android, kotlin
領域
mobile-dev

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Kotlin
星號
146
分支
35
平均合併
7 小時 41 分鐘
30 天內合併 PR
221

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

anomalyco/opencode-android 的其他 Issue

查看 anomalyco/opencode-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。