fix: Edit Content Type cancel + Tags portlet parity gaps (#36298)#36299
Open
hmoreras wants to merge 3 commits into
Open
fix: Edit Content Type cancel + Tags portlet parity gaps (#36298)#36299hmoreras wants to merge 3 commits into
hmoreras wants to merge 3 commits into
Conversation
… through fade The Cancel button (data-testid="dotDialogCancelAction") on the Edit Content Type dialog did nothing in Edit mode because its action handler called onDialogHide() — route cleanup only — and never set show.set(false). Create mode appeared to work only because gotoPortlet navigated away. Separately, @if (show()) destroyed the form synchronously when show() flipped, producing a flash of empty dialog while p-dialog faded out. Cancel now sets show.set(false). A new renderForm signal decouples form rendering from dialog visibility and is only flipped false in onDialogHide(), which p-dialog fires after the close animation completes. Refs #36298 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Restore parity with the legacy JSP tag manager: 1. Show Global Tags — toolbar checkbox (data-testid: tag-show-global-checkbox) wired to a new showGlobal store signal. DotTagsService.getTagsPaginated forwards the existing v2/tags ?global=true param so SYSTEM_HOST tags become visible alongside the current site's tags. Without this, admins could not audit or clean up legacy global tags like "2013", "2014" — the v2 endpoint defaults global=false. 2. Export the full filtered set — new exportAll() store method paginates the current filter (filter + site + showGlobal + sort honored) and downloads as CSV. The previous portlet could only export the on-screen selection. Export UI is consolidated into a single p-splitButton (tag-export-split-btn) mirroring the Add button: main click runs Export Selected; the dropdown exposes Export Selected and Export All. Export All is disabled when the filter fits on one page, kept visible for discoverability. Selection persists across pagination, filter, sort, and Show Global toggles so the user's picks survive page navigation. CSV builder retains spreadsheet-formula sanitization. New i18n keys: tags.export.selected, tags.show.global. Refs #36298 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
12 tasks
Contributor
🤖 Bedrock Review —
|
Contributor
|
Claude finished @hmoreras's task in 1m 3s —— View job Rollback Safety Analysis
Result: ✅ Safe To RollbackAll 11 changed files are frontend-only (Angular/TypeScript + two additive
Label added: AI: Safe To Rollback |
- Use $-prefix for new signals ($renderForm, $exportMenuItems) per ANGULAR_STANDARDS.md. - Add edit-mode Cancel + $renderForm lifecycle tests in dot-content-types-edit to guard the regression fix for #36298 (previously only create mode was covered). - DRY request params in dot-tags-list.store via buildBaseParams() so loadTags and exportAll share the same filter/site/global/sort shape. - Drop unreachable EXPORT_PAGE_SIZE fallback and add a totalRecords==0 no-op guard in exportAll(). - Format two spec files with prettier (fixes the format-test CI failure from the prior commit). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
🤖 Bedrock Review —
|
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.
Summary
Closes #36298. Two regressions in the Angular-migrated admin portlets, bundled.
show.set(false)). Form stays mounted through p-dialog's close animation, so no more flash of an empty frame fading out.global=trueto/api/v2/tagssoSYSTEM_HOSTtags become visible (admins can finally audit/clean up legacy global tags). Export is collapsed into a single split-button: main click = Export Selected; dropdown adds Export All, which fetches the full filtered set across pages and is disabled when the filter already fits on one page. Selection persists across pagination/filter/sort so picks survive page navigation.Test plan
SYSTEM_HOSTtags and updates the requestScreenshare.-.2026-06-23.4_40_50.PM.mp4