Close a project from the All Projects list

Đang mở
#208 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
mobile-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Kotlin
Star
146
Fork
35
Merge trung bình
7 giờ 41 phút
Pull request đã merge (30 ngày)
221

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode-android

Tất cả issue của anomalyco/opencode-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.