Skip to content

Maintenance: Reuse Primer clipboard-copy element for activity copy-link items - #24485

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

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

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!

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