Skip to content

[FEATURE] Add drag-and-drop reordering of chat sessions in sidebar #361

@adikulkarni006

Description

@adikulkarni006

Problem
Sessions in sidebar are currently displayed in a fixed order (e.g., by creation date). Users cannot manually reorder important sessions to the top.

Expected behavior

  • Drag any session up/down in the sidebar list.
  • Visual placeholder/drop indicator during drag.
  • After drop, the new order persists across page reloads.
  • Backend: Add order_index field to sessions table and a PATCH /api/sessions/reorder endpoint.

Technical hints

  • Frontend: frontend/src/components/Sidebar.jsx – use @dnd-kit/sortable or react-beautiful-dnd.
  • Backend: backend/routes/sessions.py – new endpoint, update db_service to support batch update of order indices.

Labels: enhancement, good-first-issue, SSoC26

Metadata

Metadata

Labels

BeginnerSSoC26Part of Social Summer of Code 2026

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions