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

feat: user can select a facet value eg category which is not yet displayed - fixes #125 #134

Conversation

Kout95
Copy link
Collaborator

@Kout95 Kout95 commented Jun 5, 2024

What

  • user can select a facet value eg category which is not yet displayed

Screenshot

image

image

Fix

  • Fix Checkbox behaviour

Part of

@Kout95 Kout95 linked an issue Jun 5, 2024 that may be closed by this pull request
@teolemon teolemon changed the title 125 user can select a facet value eg category which is not yet displayed fixes #125: user can select a facet value eg category which is not yet displayed Jun 5, 2024
@teolemon teolemon changed the title fixes #125: user can select a facet value eg category which is not yet displayed feat: user can select a facet value eg category which is not yet displayed - fixes #125 Jun 5, 2024
@teolemon teolemon added ✨ enhancement New feature or request side panel labels Jun 5, 2024
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch 2 times, most recently from 80d0deb to 2dbc6ea Compare June 6, 2024 18:32
@Kout95 Kout95 requested a review from alexgarel June 7, 2024 10:14
@Kout95 Kout95 marked this pull request as ready for review June 7, 2024 10:14
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch from be854c2 to 8319f42 Compare June 7, 2024 10:18
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

@Kout95, first thanks for this great PR.

Sorry I don't have the time to really review right know. I did a small test and found some problems.

frontend/src/search-facets.ts Outdated Show resolved Hide resolved
frontend/src/search-autocomplete.ts Outdated Show resolved Hide resolved
frontend/src/search-autocomplete.ts Show resolved Hide resolved
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch 2 times, most recently from 82e60c4 to be33d4f Compare June 8, 2024 08:40
@Kout95 Kout95 requested a review from alexgarel June 10, 2024 08:25
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

@Kout95, I leave my code review here for now, because I would like to have far more documentation (sorry but I find it painful to read as is).

At least document each method that is more than 3 lines long, always with the what (very short) and the why.

Thank you.

frontend/src/mixins/debounce.ts Outdated Show resolved Hide resolved
frontend/src/mixins/search-action.ts Show resolved Hide resolved
frontend/src/mixins/utils.ts Show resolved Hide resolved
frontend/src/search-autocomplete.ts Outdated Show resolved Hide resolved
frontend/src/search-autocomplete.ts Show resolved Hide resolved
frontend/src/search-autocomplete.ts Outdated Show resolved Hide resolved
frontend/src/search-autocomplete.ts Show resolved Hide resolved
frontend/src/search-autocomplete.ts Show resolved Hide resolved
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch from 01d26ac to 3c732d4 Compare June 11, 2024 07:17
@Kout95 Kout95 requested a review from alexgarel June 11, 2024 08:01
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch from 8980e2d to a0a8174 Compare June 11, 2024 08:31
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Thanks for the great work and refactoring.

Still some suggestions to accpet and some issues to fix.

Comment on lines +14 to +17
* A mixin class for debouncing function calls.
* It extends the LitElement class and adds debouncing functionality.
* It is used to prevent a function from being called multiple times in a short period of time.
* It is usefull to avoid multiple calls to a function when the user is typing in an input field.
Copy link
Member

Choose a reason for hiding this comment

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

Great comment :-)

frontend/src/mixins/taxonomies-ctl.ts Outdated Show resolved Hide resolved
frontend/src/mixins/taxonomies-ctl.ts Outdated Show resolved Hide resolved
frontend/src/mixins/taxonomies-ctl.ts Outdated Show resolved Hide resolved
frontend/src/mixins/taxonomies-ctl.ts Outdated Show resolved Hide resolved
frontend/src/search-facets.ts Show resolved Hide resolved
frontend/src/mixins/taxonomies-ctl.ts Outdated Show resolved Hide resolved
frontend/src/search-facets.ts Show resolved Hide resolved
frontend/src/search-checkbox.ts Outdated Show resolved Hide resolved
frontend/src/search-autocomplete.ts Show resolved Hide resolved
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch from 626f7cb to 9ed4e4b Compare June 12, 2024 08:40
@Kout95 Kout95 requested a review from alexgarel June 12, 2024 11:55
@Kout95 Kout95 force-pushed the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch from bfc0dc2 to 67c6fc7 Compare June 12, 2024 12:00
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Thank you @Kout95, let's merge !

Copy link
Member

Choose a reason for hiding this comment

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

Cool.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for moving.

@alexgarel alexgarel merged commit 10bc65d into main Jun 12, 2024
6 checks passed
@alexgarel alexgarel deleted the 125-user-can-select-a-facet-value-eg-category-which-is-not-yet-displayed branch June 12, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request side panel
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

User can select a facet value (eg category) which is not (yet) displayed
3 participants