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: Count result #151

Merged
merged 14 commits into from
Jun 18, 2024
Merged

feat: Count result #151

merged 14 commits into from
Jun 18, 2024

Conversation

Valimp
Copy link
Collaborator

@Valimp Valimp commented Jun 11, 2024

What

Display count results on the search result page

@Valimp
Copy link
Collaborator Author

Valimp commented Jun 11, 2024

I have access to number of result only in search-results component
So i can display it only in this component or children components

@teolemon teolemon added ✨ enhancement New feature or request search results labels Jun 11, 2024
@Valimp Valimp marked this pull request as draft June 11, 2024 12:40
@Valimp
Copy link
Collaborator Author

Valimp commented Jun 12, 2024

@alexgarel handleResults() is not triggered when a search is launched. Any idea why ?

frontend/src/results-counter-display.ts Outdated Show resolved Hide resolved
import { SearchResultEvent } from './events';
import { SearchaliciousResultCtlMixin, SearchaliciousResultsCtlInterface } from './search-results-ctl';

@customElement('results-counter-display')
Copy link
Member

Choose a reason for hiding this comment

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

I start every component name with "searchalicious" to avoid clashes (webcomponents should have unique names).

frontend/public/off.html Outdated Show resolved Hide resolved
@Valimp Valimp marked this pull request as ready for review June 17, 2024 07:19
@Valimp Valimp requested a review from alexgarel June 17, 2024 10:34
@Valimp Valimp requested a review from alexgarel June 18, 2024 07:02
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.

Great.

@alexgarel alexgarel merged commit cc4e4b6 into main Jun 18, 2024
6 checks passed
@alexgarel alexgarel deleted the count-result branch June 18, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request search results
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants