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-2658: Introduce adaptive filters #392

Merged
merged 4 commits into from
May 19, 2022
Merged

Conversation

tischsoic
Copy link
Contributor

@tischsoic tischsoic commented Apr 8, 2022

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

Related PRs:

@tischsoic tischsoic self-assigned this Apr 8, 2022
@tischsoic tischsoic force-pushed the IBX-2658-adaptive-filters branch 2 times, most recently from e249408 to 0ce0213 Compare April 11, 2022 07:18
@tischsoic tischsoic requested review from GrabowskiM, lucasOsti and dew326 and removed request for GrabowskiM and lucasOsti April 11, 2022 07:19
src/bundle/Resources/public/js/scripts/adaptive.filters.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/adaptive.filters.js Outdated Show resolved Hide resolved
@@ -62,7 +73,8 @@
}

const lastItem = this.items[this.items.length - 1];
const isLastNonactiveItem = lastItem === activeItem ? i === this.items.length - 2 : i === this.items.length - 1;
const isLastNonactiveItem =
lastItem === activeItem ? i === itemsWithoutForce.length - 2 : i === itemsWithoutForce.length - 1;
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 don't like conditional expression inside ternary operator, imo it's hard to read and understand

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have a proposition on how to split it into a few lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW This fragment was also discussed in comments here: ezsystems/ezplatform-admin-ui#1780 (comment)

</div>
<div
class="
ibexa-adaptive-filters__toggler-wrapper
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if it has to be multiline, imo multiline is needed only if you add conditional expressions in class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be quite long when written in one line

@bogusez bogusez self-assigned this May 18, 2022
@dew326 dew326 merged commit e628576 into main May 19, 2022
@dew326 dew326 deleted the IBX-2658-adaptive-filters branch May 19, 2022 12:59
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.

7 participants