-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(edit-content) fix minors bugs Edit Content (#31065)
This pull request includes various changes to the `core-web` library, focusing on improving the sidebar component, updating the contentlet status pipe, and enhancing the workflow feature. Below are the most important changes: ### Sidebar Component Updates: * Updated `dot-edit-content-sidebar-information.component.html` to simplify tooltip logic by directly assigning `contentlet` properties to `pTooltip` attributes. [[1]](diffhunk://#diff-d405fda5d6cf673a187d9029aad2fcf309edd1623c2aafe15c1c27ea127af465L34-R35) [[2]](diffhunk://#diff-d405fda5d6cf673a187d9029aad2fcf309edd1623c2aafe15c1c27ea127af465L62-R58) [[3]](diffhunk://#diff-d405fda5d6cf673a187d9029aad2fcf309edd1623c2aafe15c1c27ea127af465L84-R76) * Added new tabs for "History" and "Settings" with placeholder content in `dot-edit-content-sidebar.component.html`. * Added `.temporal-content` class in `dot-edit-content-sidebar.component.scss` to style the placeholder content. ### Contentlet Status Pipe Enhancements: * Modified `contentlet-status.pipe.ts` to refine status determination logic, including handling for unchanged live content and draft content. * Updated `contentlet-status.pipe.spec.ts` to reflect changes in status logic and added a test case for undefined contentlets. [[1]](diffhunk://#diff-7fc1168bc6ee5a279a06cf623890f3335b0746dd9e9d55306e11f890bbd18081L48-R54) [[2]](diffhunk://#diff-7fc1168bc6ee5a279a06cf623890f3335b0746dd9e9d55306e11f890bbd18081R65-R71) ### Workflow Feature Enhancements: * Injected `DotWorkflowService` in `workflow.feature.ts` and updated the workflow feature to include workflow status fetching. [[1]](diffhunk://#diff-f0fcc051e3fcc31af6b92c498403b31849ebba4c0b02092e6c22049d74714d85L27-R28) [[2]](diffhunk://#diff-f0fcc051e3fcc31af6b92c498403b31849ebba4c0b02092e6c22049d74714d85R204) [[3]](diffhunk://#diff-f0fcc051e3fcc31af6b92c498403b31849ebba4c0b02092e6c22049d74714d85L285-R298) [[4]](diffhunk://#diff-f0fcc051e3fcc31af6b92c498403b31849ebba4c0b02092e6c22049d74714d85R310-R311) [[5]](diffhunk://#diff-f0fcc051e3fcc31af6b92c498403b31849ebba4c0b02092e6c22049d74714d85R331) * Updated `workflow.feature.spec.ts` to mock `DotWorkflowService` and verify the new workflow status logic. [[1]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L16-R17) [[2]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L26-R28) [[3]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L47-R49) [[4]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L59-R62) [[5]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L71-R74) [[6]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62R92) [[7]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62L159-R166) [[8]](diffhunk://#diff-b9408b979a77c9f9445c93e1dc4ea59af3b85d4d433234461cf392e5d99cff62R175) ### Miscellaneous: * Added `withDebug` feature to `edit-content.store.ts` for enhanced debugging capabilities. [[1]](diffhunk://#diff-2f1a1d6b895a7f80141dc1acc3663ee94e65a59e505fe3268a56e06c3e2a8f2cR9) [[2]](diffhunk://#diff-2f1a1d6b895a7f80141dc1acc3663ee94e65a59e505fe3268a56e06c3e2a8f2cL55-R57) * Simplified content state handling in `content.feature.ts` by directly using the provided step. ### Proposed Changes * fix the correct name of WF after the trigger action * fix the tooltip to truncated name * fix status pipe logic ### Checklist - [x] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info ** any additional useful context or info ** ### Screenshots Original | Updated :-------------------------:|:-------------------------: ** original screenshot ** | ** updated screenshot **
- Loading branch information
Showing
9 changed files
with
93 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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