Skip to content

OPE-108: Remove project from home #433

Closed

Description

@ivanfenenko

Let users remove an added project from the home Session List (the inverse of Add Project — a project can be added but never removed).

What to build

  • A × on every project filter chip in the Session List dock.
  • Tap × → confirm dialog ("Remove “X” from home? Its sessions stay on the server.") → Remove.
  • Project leaves the dock and its sessions leave the time ladder; filter falls back to All; snackbar confirms.
  • Removing the last project lands on the existing empty state.
  • Pure client-side curation: drop the worktree from the persisted addedWorktrees list for the active server URL. No server API. Sessions stay on the server; re-adding the path restores it.

Scope decisions (from prototype)

  • Session List home mode only. Project Session Selector is ignored for now.
  • Winner: × on chips (prototype variant C). A (dock overflow) hard no; B (chip long-press) scrapped; D/E explored and rejected.
  • Confirm dialog: destructive-primary (OpenCodeDialog gets a destructive option) — confirm during implementation.
  • Persistence: new removeWorktree(serverBaseUrl, worktree) on ConnectionProfileStore (DataStore Android / UserDefaults iOS).

Prototype

  • Artifact: docs/features/remove-project/prototype/ + published URLs (see README/VERDICT).
  • Run: npm run prototype:remove-project → http://localhost:5182/?variant=C

Acceptance criteria

  • × on each project filter chip (Session List dock) on iOS and Android
  • Confirm dialog before removal; Remove is destructive-primary, Cancel dismisses
  • Removing a project clears its sessions from the ladder and drops the filter to All
  • Removing the last project shows the empty state
  • Removal persists across app relaunch (re-add restores)
  • Design-system: Filter Chip removable variant + gallery entry on both platforms
  • Unit tests: ConnectionProfileStore removeWorktree, home view model removal, component render

Imported from Linear OPE-108. Linear status: Done. Priority: Medium. Created 2026-08-05. Completed 2026-08-05.
Related: OPE-160, OPE-156.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    enhancement
    ios
    android
    priority: medium
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

androidenhancementiospriority: medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions