Commit f31e33c
refactor(uve): remove duplicate copy URL button from editor toolbar (#35518)
## Parent Issue
Closes #35517
## Summary
The UVE editor was rendering the same "copy page URL" popover in two
places:
- the top editor toolbar (`pi pi-copy`, next to the bookmark star)
- the browser URL pill (`pi pi-link`, on the pill that shows the URL
itself)
Both buttons opened the same `$pageURLS` popover and called the same
toast. The pill version was added in #35417 when the URL pill itself was
introduced. Since the URL now lives on the pill, the copy control
belongs there — the toolbar one is pure duplication.
This PR removes the toolbar copy button and cleans up the symbols that
became unused.
## Changes
- `dot-uve-toolbar.component.html` — drop the `<p-button>` +
`<p-popover>` block
- `dot-uve-toolbar.component.ts` — remove `ClipboardModule`,
`PopoverModule`, `$pageURLS`, `copyUrlPopoverPt`, `triggerCopyToast`,
and the `createFullURL` import
- `edit-ema-editor.component.*` — unchanged; the pill copy button stays
## Test plan
- [x] `yarn nx lint portlets-edit-ema-portlet` — clean (only
pre-existing warnings in another file)
- [x] `yarn nx test portlets-edit-ema-portlet` — 63 suites, 1331 passed,
5 skipped
- [ ] Manual smoke: open a page in UVE, confirm the copy button on the
URL pill still copies and toasts; confirm the toolbar no longer has the
duplicate
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5905fa2 commit f31e33c
2 files changed
Lines changed: 1 addition & 78 deletions
File tree
- core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar
Lines changed: 0 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 19 | | |
58 | 20 | | |
59 | 21 | | |
| |||
Lines changed: 1 addition & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
49 | | - | |
50 | | - | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
| |||
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 123 | | |
141 | 124 | | |
142 | 125 | | |
| |||
150 | 133 | | |
151 | 134 | | |
152 | 135 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 136 | | |
163 | 137 | | |
164 | 138 | | |
| |||
336 | 310 | | |
337 | 311 | | |
338 | 312 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 313 | | |
353 | 314 | | |
354 | 315 | | |
| |||
0 commit comments