Skip to content

[COMMS-935] Maintenance: Reuse Primer clipboard-copy element for activity copy-link items - #24485

Open
akabiru wants to merge 2 commits into
devfrom
maintenance/reuse-clipboard-copy-activity-links
Open

[COMMS-935] Maintenance: Reuse Primer clipboard-copy element for activity copy-link items#24485
akabiru wants to merge 2 commits into
devfrom
maintenance/reuse-clipboard-copy-activity-links

Conversation

@akabiru

@akabiru akabiru commented Jul 28, 2026

Copy link
Copy Markdown
Member

https://community.openproject.org/wp/COMMS-935

The activities tab shipped a dedicated Stimulus controller whose whole job was one navigator.clipboard.writeText call, even though the copy-link action menus elsewhere (meetings, storages, SAML) already use Primer's clipboard-copy element for exactly this. The item and revision menu entries now render as clipboard-copy with the URL as their value, so the controller and the wrapper data attributes that fed it are gone.

That also repairs the revision entry: its copy item referenced the item controller, which was never mounted on the revision wrapper, so clicking it did nothing. It now copies the absolute revision URL.

Added a component spec for the actions menu, which had no coverage before.

The activities tab carried its own Stimulus controller for a single
navigator.clipboard call, duplicating the clipboard-copy element the
action menus elsewhere already use. Dropping it also fixes the revision
entry's copy item, which pointed at a controller never mounted on its
wrapper.
@akabiru akabiru self-assigned this Jul 28, 2026
@akabiru akabiru added this to the 17.8.x milestone Jul 28, 2026
@myabc

myabc commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@akabiru nice!

@akabiru
akabiru marked this pull request as ready for review July 29, 2026 12:56
@akabiru akabiru changed the title Maintenance: Reuse Primer clipboard-copy element for activity copy-link items [COMMS-935] Maintenance: Reuse Primer clipboard-copy element for activity copy-link items Jul 29, 2026
@akabiru
akabiru requested review from a team and myabc July 29, 2026 12:59
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploying openproject with PullPreview

Field Value
Latest commit d234091
Job deploy
Status ✅ Deploy successful
Preview URL https://pr-24485-reuse-clipboard-c-ip-128-140-89-31.my.opf.run:443

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants