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

IBX-3654: Left menu and sections in edit form cleanup #542

Merged
merged 7 commits into from
Sep 16, 2022
Merged

Conversation

GrabowskiM
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-3654
Bug fix? partially
New feature? no
BC breaks? no
Tests pass? maybe
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review


const { id } = sectionGroup.dataset;
const hasGroupError = !!sectionGroup.querySelector('.is-invalid');
const correspodingMenuItem =
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const correspodingMenuItem =
const correspondingMenuItem =

};
const getLastSection = (sectionGroup) => {
const sections = sectionGroup.querySelectorAll('.ibexa-anchor-navigation__section');
return sections ? [...sections].at(-1) : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return sections ? [...sections].at(-1) : null;
return sections ? [...sections].at(-1) : null;

previousFirstVisibleSection = firstVisibleSection;

const targetId = firstVisibleSection.dataset.id;

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

doc.querySelector(`.ibexa-anchor-navigation-menu .ibexa-dropdown__item[data-value="${id}"]`);
const errorIconNode = correspodingMenuItem.querySelector('.ibexa-anchor-navigation-menu__item-error');
const dropdownWidget = doc.querySelector('.ibexa-anchor-navigation-menu .ibexa-dropdown');
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError);
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError);

@@ -1,159 +0,0 @@
(function (global, doc, ibexa) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This removal should be considered as BC break.

@GrabowskiM GrabowskiM requested a review from dew326 August 17, 2022 09:18
@bogusez
Copy link
Contributor

bogusez commented Sep 13, 2022

@GrabowskiM when I click on 'Content' on the left menu then all inputs disappear

edit: described issue affects all available contents except (user).

Screenshot 2022-09-13 at 09 37 46

Screenshot 2022-09-13 at 09 38 02

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
0.5% 0.5% Duplication

@webhdx webhdx merged commit 671e34d into main Sep 16, 2022
@webhdx webhdx deleted the form-menu-cleanup branch September 16, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants