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 select panel title #957

Closed
wants to merge 7 commits into from
Closed

Fix select panel title #957

wants to merge 7 commits into from

Conversation

dmaurya929
Copy link
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

@dmaurya929 dmaurya929 requested a review from rismehta October 30, 2023 09:29
@dmaurya929
Copy link
Contributor Author

Dependency on PR : adobe/aem-core-wcm-components#2568


title = title + " " + Granite.I18n.getVar(ns.editableHelper.getEditableDisplayableName(editable));

if (item && item.label && item.label.value) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might break for SITES components if form container is used inside SITES editor, you still have to also fallback to cq:panelTitle as done in the original implementation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already fallback condition on line 36


(function(ns) {

var PanelSelector = CQ.CoreComponents.PanelSelector;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add safe checks like this CQ?.CoreComponents?.PanelSelector

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check comments

@github-actions github-actions bot force-pushed the fix-selectpaneltitle branch from 01aaf28 to 926f9ac Compare February 28, 2024 05:54
@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 90 100 100 73

@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 100 100 73

@dmaurya929 dmaurya929 closed this Feb 28, 2024
@dmaurya929 dmaurya929 mentioned this pull request Feb 28, 2024
10 tasks
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.

3 participants