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

Recherche ajout loupe #1183

Closed
wants to merge 24 commits into from
Closed

Recherche ajout loupe #1183

wants to merge 24 commits into from

Conversation

MSPKarengeo
Copy link
Contributor

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?

add behavior when searching for characters and clicking on the magnifying glass to search for a first item on the map. The enter key has the same behavior

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:
N/A

Other information:

@MSPKarengeo
Copy link
Contributor Author

the glass (la loupe) is in true to show the behavoir on the button and the keydown.

Copy link
Contributor

@PhilippeLafreniere18 PhilippeLafreniere18 left a comment

Choose a reason for hiding this comment

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

Don't forget to never push the package-lock file (only if a new library or an updated package is installed)

@PhilippeLafreniere18 PhilippeLafreniere18 changed the base branch from master to next February 16, 2023 19:37
@PhilippeLafreniere18 PhilippeLafreniere18 added ready to merge in progress In progress // Développement en cours and removed ready to merge labels Mar 2, 2023
@PhilippeLafreniere18 PhilippeLafreniere18 added ready to merge and removed in progress In progress // Développement en cours labels Mar 8, 2023
Copy link
Member

@pelord pelord left a comment

Choose a reason for hiding this comment

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

When hitting enter, the results is selected and unselected few ms after.
chrome_2023-03-15_10-19-35

@pelord
Copy link
Member

pelord commented Apr 21, 2023

@karengeo Ready for review?

@MSPKarengeo
Copy link
Contributor Author

yes, Im sorry I didn,t see your message. It was ready two weeks ago.

Copy link
Member

@pelord pelord left a comment

Choose a reason for hiding this comment

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

you must find a more generic method to handle first results ;(

@MSPKarengeo
Copy link
Contributor Author

I have simplified the method and for the search by coordinates I also insert a way to see the coordinate without problems.

@MSPKarengeo MSPKarengeo requested a review from pelord May 11, 2023 18:18

//Function to reverse the value of the parameter
function reverseString(coordReInv) {
return coordReInv;
Copy link
Contributor

Choose a reason for hiding this comment

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

The function returns coordReInv which is what is provided to the function. Necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because the changes on design tool makes a slight change to the coordinate order. For this reason, when a search was performed, it was not executed. By reversing the coordinate values IGO can clearly understand that they are coordinates and focus them properly as desired.

if(result){
this.store.state.update(result,{focused:true,selected:true},true);
}else{
reverseString(coordInv);
Copy link
Contributor

@LAMM26 LAMM26 May 31, 2023

Choose a reason for hiding this comment

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

Necessary? See comment above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because when a coordinate search is performed we will not have a list of options with score , the value will be exact. For this reason, I proposed it this way, if there is any way to improve it, ideas are welcome

@alecarn
Copy link
Collaborator

alecarn commented Feb 6, 2024

Replaced by #1600

@alecarn alecarn closed this Feb 6, 2024
@alecarn alecarn deleted the recherche-ajout-loupe branch August 14, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recherche - Ajout de la loupe dans la barre de recherche (optionnel)
6 participants