Skip to content
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

Fix #25678: Allow editing of contentlet on detail page #26032

Merged
merged 73 commits into from
Sep 22, 2023

Conversation

zJaaal
Copy link
Contributor

@zJaaal zJaaal commented Sep 7, 2023

🤖 Generated by Copilot at 6269d5e

Summary

🐛🚀🧪

This pull request adds the feature of editing URL content map from the edit page state controller and the SEO component. It updates the DotTabButtonsComponent to handle dynamic options and improve the dropdowns functionality. It also adds tests, interfaces, and feature flags for the new feature and fixes some minor issues in the code.

Sing, O Muse, of the valiant code reviewers
Who scrutinized the pull request with care
And found the errors and the improvements
In the DotEditPageStateControllerComponent.

Walkthrough

  • Fix addTwoNumbers function to use addition instead of subtraction (link)
  • Add feature flag for editing URL content map and check its value in DotEditPageStateControllerComponent and DotEditPageStateControllerSeoComponent (link, link, link, link, link, link, link, link, link, link, link)
  • Add p-menu component to display the menu for editing URL content map in DotEditPageStateControllerComponent and DotEditPageStateControllerSeoComponent (link, link, link, link, link, link, link, link, link, link, link, link)
  • Update urlContentMap property of DotPageRenderParameters interface to include contentType and inode properties (link)
  • Update DotTabButtonsComponent to clone and update the options when they change and to toggle and reset the dropdowns icons accordingly (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Update DotEditPageStateControllerComponent and DotEditPageStateControllerSeoComponent to use id property instead of value property for the options and to include showDropdownButton property (link, link, link, link, link, link, link, link, link, link, link, link)
  • Update tests for DotEditPageStateControllerComponent and DotEditPageStateControllerSeoComponent to mock the HTTP requests, the DotContentletEditorService, the DotPropertiesService, and the DotHttpErrorManagerService (link, link, link, link, link, link, link, link, link, link, link, link)
  • Remove extra whitespace in the template of DotEditPageStateControllerComponent (link, link, link)
  • Remove variant input from DotEditPageStateControllerComponent in the test host component (link)
  • Add DotContentletEditorService as a provider for the test host component of DotEditPageToolbarSeoComponent (link)
  • Update mode input of DotTabButtonsComponent in the test host component to use activeId input instead (link, link)

Screenshots

Screen.Recording.2023-09-11.at.5.11.33.PM.mov

@zJaaal zJaaal linked an issue Sep 7, 2023 that may be closed by this pull request
@zJaaal zJaaal marked this pull request as draft September 7, 2023 20:46
@zJaaal zJaaal marked this pull request as ready for review September 11, 2023 20:18
@zJaaal zJaaal marked this pull request as ready for review September 20, 2023 16:56
@fmontes fmontes dismissed rjvelazco’s stale review September 22, 2023 13:10

Talked thought and decide against.

@fmontes fmontes enabled auto-merge (squash) September 22, 2023 15:27
auto-merge was automatically disabled September 22, 2023 15:37

Base branch was modified

@dotcms-sonarqube
Copy link

@dotcms-sonarqube
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fmontes fmontes merged commit ea7e202 into master Sep 22, 2023
21 of 24 checks passed
@fmontes fmontes deleted the 25678-allow-editing-of-contentlet-on-detail-page branch September 22, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow editing of contentlet on detail page
4 participants