Skip to content

Conversation

@ILDaviz
Copy link
Member

@ILDaviz ILDaviz commented Aug 19, 2025

Description
This merge request introduces a new reusable Vue component, ContextMenu, to provide quick contextual actions within the application. The goal is to improve the user experience by offering shortcuts accessible via right-click, with a style consistent with the application theme.

Implemented Changes
New Component: Created a new Vue 3 component that encapsulates the logic and display of a context menu.
UI Library Integration: Used the reka-ui library for the basic structure and event handling of the menu (ContextMenuRoot, ContextMenuItem, etc.).
Dynamic Theming: The component integrates with the Pinia useSettingsStore to dynamically apply the current theme colours (background, text, borders), ensuring visual consistency.
Styling: The style was implemented using Tailwind CSS classes and dynamic inline styles for state management (e.g. hover).

Notes for Review
The actions associated with the menu items (handleClick) are currently placeholders that display a simple alert. The specific logic for each action will be implemented in the next stages of development.

Note
https://reka-ui.com/docs/components/context-menu#with-separators

@ILDaviz ILDaviz changed the title [Draft] Add context menu component for change project tile name [Draft] Add context menu component for change project title name or add feature actions Aug 19, 2025
@ILDaviz
Copy link
Member Author

ILDaviz commented Aug 19, 2025

For now, I was thinking of implementing the following actions:

  1. Change the name of the tab
  2. Go to the project folder
  3. Close the tab

@saeedvaziry
Copy link
Member

Looking good 🤘

@ILDaviz ILDaviz changed the title [Draft] Add context menu component for change project title name or add feature actions Add context menu component for change project title name or add feature actions Aug 31, 2025
@ILDaviz ILDaviz changed the title Add context menu component for change project title name or add feature actions [Draft] Add context menu component for change project title name or add feature actions Aug 31, 2025
@ILDaviz ILDaviz changed the title [Draft] Add context menu component for change project title name or add feature actions Add context menu component for change project title name or add feature actions Sep 6, 2025
@ILDaviz ILDaviz changed the title Add context menu component for change project title name or add feature actions Feature Add context menu component for change project title name or add feature actions Sep 6, 2025
@saeedvaziry saeedvaziry merged commit c1fc1d7 into tweakphp:main Sep 6, 2025
4 checks passed
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.

2 participants