Skip to content

Conversation

iFlyTwice
Copy link

Implements session deletion feature with delete button on hover for each session card.

Addresses issue #305 where users requested the ability to delete unnecessary sessions.

Changes:

  • Backend: Added delete_session Rust command to remove .jsonl files and associated todo data
  • Frontend: Added deleteSession API method with proper error handling
  • UI: Added Trash2 icon delete button that appears on session card hover
  • UX: Added confirmation dialog before deletion to prevent accidents
  • State: Updated local state management to remove sessions immediately after deletion

Features:

  • Hover-to-reveal delete button for clean UI
  • Confirmation dialog with session details
  • Deletes both session file and associated todo data
  • Proper error handling and user feedback
  • Follows project coding standards and documentation guidelines

Testing:

  • Code compiles without errors
  • Follows project linting standards (cargo fmt, cargo clippy)
  • Comprehensive documentation added
  • UI integration tested

Fixes #305

Implements session deletion feature with delete button on hover for each session card.

Addresses issue winfunc#305 where users requested the ability to delete unnecessary sessions.

## Changes:
- **Backend**: Added  Rust command to remove .jsonl files and associated todo data
- **Frontend**: Added  API method with proper error handling
- **UI**: Added Trash2 icon delete button that appears on session card hover
- **UX**: Added confirmation dialog before deletion to prevent accidents
- **State**: Updated local state management to remove sessions immediately after deletion

## Features:
- Hover-to-reveal delete button for clean UI
- Confirmation dialog with session details
- Deletes both session file and associated todo data
- Proper error handling and user feedback
- Follows project coding standards and documentation guidelines

Fixes winfunc#305
@iFlyTwice
Copy link
Author

W UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

May I ask how to delete useless session?
1 participant