-
Notifications
You must be signed in to change notification settings - Fork 26
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(magnifying glass): use the magnifying glass to find the first choice to see on the map #1600
base: release/16.x
Are you sure you want to change the base?
feat(magnifying glass): use the magnifying glass to find the first choice to see on the map #1600
Conversation
Pourrais-tu nous indiquer comment qu'on peut tester les changements? R: Pour faire marcher la loupe, il faut activer à true dans ces deux lignes du fichier search-bar.component.ts : this.showSearchButton = configValue !== undefined ? configValue : false; à true https://vscode.dev/github/infra-geo-ouverte/igo2-lib/blob/nv_search_first_element_by_magnifying_glass/packages/geo/src/lib/search/search-bar/search-bar.component.ts#L88 |
packages/geo/src/lib/search/search-results/search-results.component.ts
Outdated
Show resolved
Hide resolved
packages/geo/src/lib/search/search-results/search-results-add-button.component.ts
Show resolved
Hide resolved
Corrections et modifications on été effectuées. Disponibles pour révision. |
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.
Deux questionnements sinon ça me semble beau 👍
@pelord ready for your review |
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.
…ice to see in the map
8b4451e
to
10db31b
Compare
25a67af
to
745f5cf
Compare
@pelord, ready for review/test |
745f5cf
to
754da18
Compare
pourquoi pas pousser dans next? |
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.
Clarifier comment gérer les resultats asynchrone? Les services qui sont plus lent? P-etre tester avec un debouncetime random entre 500 et 2000 ms?
* When the user clicks on the magnifying glass and | ||
* this find the first object on the map | ||
*/ | ||
selectFirstElement() { |
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.
Qu'est-ce qui arrive si les résultats ne sont pas tous arrivés lorsque l'utilisateur clique le bouton?
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.
rien ne s'est passé, s'il y a un résultat, le résultat avec le score le plus élevé sera mis en évidence
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.
Mais disons q'un utilisateur clique sur le boutin ou fait enter, mais que seul des résultats partiels sont disponible?
Quelle est l'échelle relative comparable entre les résultats? Comment comparer des résultats? Regarde computeTermSimilarity
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.
chaque résultat a un score donc en utilise le score pour la comparaison
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.
Le score est-il comparable entre les services de recherche?
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.
il faudrait idéalement que ce soit sur une échelle absolue et non pas relative, comme pour iCherche
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.
le code existant bien tester avec iCherche, le résultats de recherche donne le même objet, donc le score existe si le résultat est une couche ou Feature.
existe-t-il un autre service où je peux tester?
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.
nominatim?
@@ -15,28 +15,33 @@ | |||
: undefined | |||
" | |||
[value]="term$ | async" | |||
(keydown.enter)="selectFirstElement()" |
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.
Est-ce que le keydown.enter ne devrait pas re-trigger la recherche également?
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.
- sélectionner le 1er résultat?
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.
oui sélectionner le résultat avec le score le plus élevé
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.
Je crois que enter devrait redéclancher la recherche.
Please check if the PR fulfills these requirements
What is the current behavior? (You can also link to an open issue here)
N/A
What is the new behavior?
The magnifying glass will find the first score that best matches the search to view it on the map
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications:
N/A
Other information: