-
Notifications
You must be signed in to change notification settings - Fork 19
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 1275390 autocomplete trotinette attributs #604
Feat 1275390 autocomplete trotinette attributs #604
Conversation
matthias-goupil
commented
May 29, 2024
Q | A |
---|---|
Branch? | master for features / current stable version branch for bug fixes |
Tickets | #... |
License | OSL-3.0 |
f622f94
to
884e7d6
Compare
Coverage report for commit: 46beda6 Summary - Lines: 86.66% ⏹️ | Methods: 84.40% ⏹️
Backend Coverage compared to target branch |
Frontend Coverage of this branch
Minimum allowed coverage is Generated by 🐒 cobertura-action against 46beda6 |
? 'Oui' | ||
: option.option.label} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace 'Oui' by 'Yes' example app is in english
front/example-app/src/types/facet.ts
Outdated
|
||
export interface IFacetAutocomplete extends Omit<IGraphqlAggregation, 'type'> { | ||
fieldType: AggregationType | ||
type: 'aggregation' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me the type should be 'attribute' ?
if (aggregation.type === 'checkbox') { | ||
aggregationOptions = aggregation.options | ||
} else if (aggregation.type === 'boolean') { | ||
aggregationOptions = aggregation.options.filter( | ||
(option) => option.value === '1' | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a switch case is more relevant here ?
beef66c
to
f7d452d
Compare
f7d452d
to
46beda6
Compare