Skip to content

Frontend: no way to remove a project from the UI (daemon/CLI already support it) #218

@codebanditssss

Description

@codebanditssss

Gap

The daemon and CLI both support removing a project (DELETE /api/v1/projects/{id} / ao project rm <id>), but the Electron renderer has no UI to remove a project — there's no action anywhere in the sidebar or project view. Once a project is added, the only way to remove it is the CLI.

Found while click-testing the app for the launch.

Proposal

Surface project removal in the sidebar. Each project row already fades its session count on hover (group-hover/menu-item:opacity-0), leaving room for a hover action. Add a kebab (SidebarMenuAction showOnHover) that opens a small menu with Project settings and a destructive Remove project, wired to DELETE /api/v1/projects/{id}, optimistically removing the row and falling back to Home if the removed project was the active route.

(ao project rm only archives the registration — the repo on disk is untouched and it can be re-added — so this is safe/reversible.)

Acceptance

  • A "Remove project" action is reachable from each project row in the sidebar.
  • Removing updates the sidebar immediately and navigates Home if that project was open.
  • Backend/daemon unchanged (endpoint already exists).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions