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-895: As an Editor, I want to see SubItems redesigned #1923

Merged
merged 18 commits into from
Sep 29, 2021

Conversation

tischsoic
Copy link
Contributor

@tischsoic tischsoic commented Sep 23, 2021

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

New look

Screenshot 2021-09-24 at 11 06 30

Screenshot 2021-09-24 at 11 06 40

Checklist:

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

@tischsoic tischsoic self-assigned this Sep 23, 2021
@@ -45,30 +24,13 @@
left: 0;
width: calculateRem(30px);
line-height: 0;
margin-top: -0.5px; // Fixes borders alignment on Safari and Edge
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: it seems that we no longer need this. Checked on latest Safari and Edge on HD and Retina displays.

@@ -1,5 +1,5 @@
(function(global, doc, $, eZ) {
const tables = doc.querySelectorAll('.ibexa-table');
const tablesWithAutomaticCheckbox = doc.querySelectorAll('.ibexa-table:not(.ibexa-table--no-automatic-main-checkbox)');
Copy link
Contributor

Choose a reason for hiding this comment

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

change automatic checkbox to bulk checkbox (as discussed in private)

@@ -1,5 +1,5 @@
(function(global, doc, $, eZ) {
const tables = doc.querySelectorAll('.ibexa-table');
const tablesWithAutomaticCheckbox = doc.querySelectorAll('.ibexa-table:not(.ibexa-table--no-automatic-main-checkbox)');
Copy link
Contributor

Choose a reason for hiding this comment

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

Also instead of .ibexa-table--no-bulk-checkbox use .ibexa-table--has-bulk-checkbox to align with cell--has-checkbox (also discuessed in private)

display: flex;
flex-direction: column;
padding: calculateRem(16px);
height: calculateRem(238px);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure we want to have fixed height? What if title or sth will be multiline?


attrs.disabled = true;
}
const label = Translator.trans(/*@Desc("Upload")*/ 'multi_file_upload_open_btn.label.2', {}, 'multi_file_upload');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 2 in id? That's very odd

@@ -30,7 +30,7 @@ const SORTKEY_MAP = {
priority: 'LocationPriority',
};
const TABLE_CELL_CLASS = 'c-table-view__cell';
const TABLE_HEAD_CLASS = `${TABLE_CELL_CLASS} ${TABLE_CELL_CLASS}--head`;
const TABLE_HEAD_CLASS = `ibexa-table__header-cell ${TABLE_CELL_CLASS} ${TABLE_CELL_CLASS}--head`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally I would remove TABLE_CELL_CLASS const, it makes these four places where it's used more unreadable, but it's only suggestion

@lucasOsti lucasOsti self-requested a review September 28, 2021 13:09
@sonarcloud
Copy link

sonarcloud bot commented Sep 29, 2021

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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants