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

[Front Search] Better, stabler, cooler, stronger sort order for results #4212

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

philipperolet
Copy link
Contributor

@philipperolet philipperolet commented Mar 7, 2024

Improvement over the previous version, cf test cases

WIP: need to move the tests to a good place. I'm thinking

  • utils.test.ts in the same directory
  • npm run test in the build

Before

Screenshot from 2024-03-07 22-33-55

After

Screenshot from 2024-03-07 22-42-28

Risk & deploy plan

Assistant autocomplete in blast radius
=> Test on front edge

Improvement over the previous version, cf test case

WIP: still wondering where to put the tests
Copy link
Contributor

@fontanierh fontanierh left a comment

Choose a reason for hiding this comment

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

I don't understand everything and I think it could be commented a little more, but the results seem good to me !

return i === a.length ? j : -1;
}

function subFilterFirstIndex(a: string, b: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand what this does. Could you add a comment ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 made one as clear as I could, hope it's fine

Copy link
Contributor

@flvndvd flvndvd left a comment

Choose a reason for hiding this comment

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

Module extracting the tests, LGTM.

@philipperolet philipperolet merged commit da4cb4f into main Mar 8, 2024
4 checks passed
@philipperolet philipperolet deleted the better-fuzzy-search branch March 8, 2024 15:48
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.

3 participants