feat(edit-content): enhanced locale selector for content editing sidebar#36053
feat(edit-content): enhanced locale selector for content editing sidebar#36053adrianjm-dotCMS wants to merge 1 commit into
Conversation
|
Claude finished @adrianjm-dotCMS's task in 4m 20s —— View job PR Review: feat(edit-content): enhanced locale selector
Findings1. Null bindings passed to required inputs — committed code doesn't match the author's response The reviewer asked about null locale bindings during loading (oidacra's last comment). The author replied they'd use [defaultLocale]="defaultLocale"
[currentLocale]="currentLocale"Both 2.
setLocaleSelectorTab(tab: 'all' | 'translated' | 'pending'): void {The reviewer asked for a 3.
readonly $canManageLocales = toSignal(this.#currentUserService.isPortletInMenu('locales'), {
initialValue: false
});
4. Simple view: two separate When the locale that's currently selected ( 5. Search query is component-local, If the user types a search string and then navigates away (destroying the component), the search is lost on return. The tab, however, is restored from the store. This is probably the desired behavior but is worth documenting as intentional, since a user might expect both to persist equally. Backend changes look correct — flag registered in Summary: Items 1 and 2 are the most concrete — they're follow-ups the author committed to in review replies but the code doesn't reflect. Items 3–5 are lower severity and may be acceptable as-is. |
32196a7 to
cba3267
Compare
f58e8a5 to
ccd1a0e
Compare
…ebar ### Proposed Changes - Added a new to provide an enhanced view for managing locales, supporting both simple and enhanced views based on the number of locales. - Integrated the new component into the existing sidebar, allowing for a more user-friendly interface when switching locales. - Updated the to include a method for checking if a portlet is present in the user's menu. - Enhanced unit tests to cover the new locale selector functionality and ensure proper rendering and interaction. ### Additional Info - The new locale selector is designed to improve user experience by providing a more intuitive way to manage and switch between locales. - Feature flag added to control the visibility of the new selector.
Summary
Closes #35889
Adds a new
dot-edit-content-sidebar-locales-selectorcomponent that replaces the existing locale list in the edit-content sidebar with an improved UX, gated behindFEATURE_FLAG_LOCALE_SELECTOR_V2.Screen.Recording.2026-06-10.at.2.50.39.PM.mov
Two display modes
Additional features
DotCurrentUserService.hasAccessToPortlet)p-button [link]for the manage locales actionFeatureFlagName.java, exposed viaConfigurationResource, and seeded indotmarketing-config.propertiesLanguage.propertiesTest plan
switchLocaleand updates the form language/localesyarn nx test edit-content --testPathPattern=dot-edit-content-sidebar-locales-selectordot-edit-content-sidebar-localesrenders as before🤖 Generated with Claude Code