Skip to content

Folders: rename and delete a custom folder from the sidebar #3

Backlog

Description

@Hitesh-Sisara

You can create a custom folder in the sidebar, but you can't rename or delete one. The server routes and the client hooks exist; nothing in the interface calls them.

What to build

A menu on each custom folder in the sidebar with Rename and Delete. Delete asks for confirmation and says what happens to the mail in the folder.

Where

  • app/components/mail/MailSidebar.tsx: renders the folders and imports only useCreateFolder and useFolders.
  • app/queries/folders.ts: useUpdateFolder and useDeleteFolder are ready to use.

Done when

  • A custom folder can be renamed and deleted from the sidebar, by mouse and by keyboard.
  • Built-in folders (Inbox, Sent, Drafts and the rest) have no such menu.
  • There is a test for the new behaviour.

Run it locally with npm run dev:demo (CONTRIBUTING.md).

Activity

  1. added
    enhancement
    good first issue
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions