AOSSIE-Org / AOSSIE-Org/PictoPy

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

未關閉
#802 4 則留言 1 個 reaction 已指派 1 人 已被 @JaYRaNa213 認領 在 GitHub 檢視
enhancement frontend
主要語言
Python
星號
283
分支
679
平均合併
7 天 2 小時
30 天內合併 PR
3

描述

### 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?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。