Skip to content

Add 'Copy ID to clipboard' action to work package context menus#23822

Open
wielinde wants to merge 3 commits into
devfrom
claude/work-package-copy-id-7hilgz
Open

Add 'Copy ID to clipboard' action to work package context menus#23822
wielinde wants to merge 3 commits into
devfrom
claude/work-package-copy-id-7hilgz

Conversation

@wielinde

@wielinde wielinde commented Jun 21, 2026

Copy link
Copy Markdown
Member

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

Closes https://community.openproject.org/wp/STC-858

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
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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
@github-actions

github-actions Bot commented Jun 21, 2026

Copy link
Copy Markdown

Deploying openproject with PullPreview

Field Value
Latest commit f92a507
Job deploy
Status ✅ Deploy successful
Preview URL https://pr-23822-work-package-co-ip-178-105-242-251.my.opf.run:443

View logs

@github-actions

Copy link
Copy Markdown

Warning

Flaky specs

  • rspec ./modules/wikis/spec/features/admin/internal_provider_spec.rb[1:1]
🤖 Ask Copilot to investigate

Copy 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.

@copilot The following spec(s) are flaky in CI (first seen on PR #23822, linked for reference only):

- `rspec ./modules/wikis/spec/features/admin/internal_provider_spec.rb[1:1]`

Treat this as a standalone task, unrelated to PR #23822. Create a new branch from origin/dev and open a new pull request targeting dev — do not stack it on PR #23822 or reuse that branch.

Follow the playbook in docs/development/testing/handling-flaky-tests/README.md to find the root cause and fix the underlying race — do not skip, delete, or weaken the spec to make it pass; disabling is a last resort per the playbook, and only with a bug ticket. Verify the fix by running the spec(s) repeatedly (e.g. `script/bulk_run_rspec --run-count 10`).

If you cannot reproduce the flake or are not confident in a fix after reasonable investigation, do not fabricate a change or skip the spec to force CI green. Instead, leave the pull request in draft and document what you tried, the suspected cause, and any leads in its description, then assign @wielinde to take over.

Once the fix is verified, title the PR after the spec(s) it fixes, and use the PR description to explain the root cause, how the change resolves it, and the before/after results. Label the PR `flaky-spec`, assign @wielinde, and request a review from @wielinde.
On every commit, set @wielinde as the sole co-author with a `Co-authored-by:` trailer (use their GitHub no-reply email so it links to their account), so it is traceable who dispatched the fix.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants