Add 'Copy ID to clipboard' action to work package context menus#23822
Open
wielinde wants to merge 3 commits into
Open
Add 'Copy ID to clipboard' action to work package context menus#23822wielinde wants to merge 3 commits into
wielinde wants to merge 3 commits into
Conversation
Adds a new context menu action that copies the work package's display_id (e.g. "PROJ-42" in semantic mode or "42" in classic mode) to the clipboard. The action appears: - In the work package table right-click context menu, below 'Copy link to clipboard' - In the work package split view and full view 'more' (three-dot) menu Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VgELPADVmKvFetVXqj1xKz
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
… menu The action was only wired up in the single context menu (split/full view) but PERMITTED_CONTEXT_MENU_ACTIONS is shared, so it also appeared in the table right-click menu without a handler — falling through to the default window.location.href branch with an undefined link. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VgELPADVmKvFetVXqj1xKz
Deploying openproject with ⚡ PullPreview
|
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
Two bugs prevented the hide logic from working: - The context menu template never checked item.hidden, rendering all items regardless of the flag - The table right-click (view) context menu never set hidden for the action at all, unlike the single context menu which already had the check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VgELPADVmKvFetVXqj1xKz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new context menu action that copies the work package's display_id
(e.g. "PROJ-42" in semantic mode or "42" in classic mode) to the clipboard.
The action appears:
Closes https://community.openproject.org/wp/STC-858