AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: Right click action feature for image to perform many actions

Ouverte
#802 4 commentaires 1 réaction 1 personne assignée Réclamée par @JaYRaNa213 Voir sur GitHub
enhancement frontend
Langage dominant
Python
Étoiles
283
Forks
679
Merge moyen
7 j 2 h
PR mergées (30 j)
3

Description

### Describe the feature

# Add Context Menu (Right-Click) Actions for Images

## Description

Currently, PictoPy allows interaction with images mainly through hover-based UI actions.
This enhancement introduces a **right-click context menu** on image cards to provide quick access to common image actions, improving usability and delivering a more desktop-native experience—especially important for the offline Tauri application.

## Proposed Context Menu Actions

When a user right-clicks on an image, a context menu should appear with the following options:

- Add to Album
- Favourite / Unfavourite
- Rename Image
- Share Image
- Copy Image to Clipboard
- View Image Info
- Delete Image

## Behavior Details

- Context menu opens on right-click of an image card
- Clicking a menu item does **not** trigger image selection
- All actions work in an offline Tauri environment
- Clipboard copy uses `convertFileSrc` for Tauri compatibility
- Share action falls back to copying the image path if `navigator.share` is unavailable
- Some actions (Rename, Delete, Add to Album) currently display **“Coming Soon”** dialogs

## UI / UX Notes

- Uses the existing `ContextMenu` component
- Icons provided via `lucide-react`
- Keyboard accessible
- Visual styling consistent with current dark/light themes

## Screenshots

Image

## Screenshot 2
Image

Image

@rahulharpal1603 sir
please assign this issue to me

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

### Checklist before Submitting.

- [x] Have you updated docs for it?.
- [ ] Have you added unit tests?.
- [ ] Have you made sure unit tests pass?
- [x] Have you made sure code formatting is correct?
- [x] Does it contain any style related issues?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.