Close a project from the All Projects list

オープン
#208 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode-android のほかの issue

anomalyco/opencode-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。