-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue-29621: Excluding Hidden content types from the Widgets displayed #30517
Conversation
8477a3a
to
0a85a98
Compare
Quality Gate passedIssues Measures |
.../portlet/src/lib/edit-ema-editor/components/edit-ema-palette/store/edit-ema-palette.store.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but need docs and needs unit tests.
.../portlet/src/lib/edit-ema-editor/components/edit-ema-palette/store/edit-ema-palette.store.ts
Outdated
Show resolved
Hide resolved
The code LGTM but we need a unit test to merge it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erickgonzalez is this still needed it?
This pull request introduces several changes to the
DotPaletteStore
and related test files to enhance the handling of content types and widgets, including the filtering of hidden content types. The most important changes include adding theDotPropertiesService
for configuration management and refactoring the content type loading logic.Enhancements to
DotPaletteStore
:DotPropertiesService
to manage configuration settings and retrieve hidden content types (CONTENT_PALETTE_HIDDEN_CONTENT_TYPES
). ([[1]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556R9)
,[[2]](https://github.com/dotCMS/core/pull/30517/files#diff-5e9e57d14e6a9185a0988e2062be4028f862924c1b068ac9eddab73da058e94fR13-R20)
,[[3]](https://github.com/dotCMS/core/pull/30517/files#diff-5e9e57d14e6a9185a0988e2062be4028f862924c1b068ac9eddab73da058e94fL166-R169)
)getContenttypesData
method to useforkJoin
with multiple observables, including hidden content types, and improved the filtering logic to exclude hidden content types. ([core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/components/dot-palette/store/dot-palette.store.tsL252-L282](https://github.com/dotCMS/core/pull/30517/files#diff-5e9e57d14e6a9185a0988e2062be4028f862924c1b068ac9eddab73da058e94fL252-L282)
)Updates to tests:
DotPropertiesService
and verify the filtering of hidden content types indot-palette.store.spec.ts
andedit-ema-palette.store.spec.ts
. ([[1]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556R114-R136)
,[[2]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556R147)
,[[3]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556L185-R233)
,[[4]](https://github.com/dotCMS/core/pull/30517/files#diff-1440c725f71c6ba67d7a4847e983e63b1e7a3a4fe17042aafe9553a89ad19f22L46-R82)
,[[5]](https://github.com/dotCMS/core/pull/30517/files#diff-1440c725f71c6ba67d7a4847e983e63b1e7a3a4fe17042aafe9553a89ad19f22R119-R131)
,[[6]](https://github.com/dotCMS/core/pull/30517/files#diff-1440c725f71c6ba67d7a4847e983e63b1e7a3a4fe17042aafe9553a89ad19f22R141-R160)
)Refactoring:
[[1]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556R114-R136)
,[[2]](https://github.com/dotCMS/core/pull/30517/files#diff-8262303c46e34e159efdc68dec99a47ddf453302794be94483b1abee94c13556L185-R233)
,[[3]](https://github.com/dotCMS/core/pull/30517/files#diff-e60190c318aa61ddbc495b1c20398bb42e7baa8429b8241aa6964267f3ddd445L235-L259)
)These changes improve the overall functionality and maintainability of the
DotPaletteStore
by incorporating configuration management and enhancing the content type filtering logic.Video
issue-29621-Hide-Forms-from-Palette-1.mov
This PR fixes: #29621