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

Issues/show top records search #846

Closed

Conversation

rajatpandey441
Copy link
Contributor

@rajatpandey441 rajatpandey441 commented Nov 25, 2023

Description

Made changes in two files:

Search.js
Allowing to construct query when entered text is blank rather than throwing error

AutoCompleteAsync.tsx
Changes to hit api and show top 10 records when text is blank

Related Issues

#832

Steps to Test

  1. Click on Invoice
  2. New Invoice
  3. Click on Client field
  4. Previously you were seeing no records but after this PR, you will see 10 records existing in database

This solution is generic as per the requirement and it will work on every search field

Screenshots (if applicable)

On Invoice page Before
image

On Invoice page After
image

On offer page After
image

Checklist

  • I have tested these changes
  • I have updated the relevant documentation
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the codebase
  • My changes generate no new warnings or errors
  • The title of my pull request is clear and descriptive

Sorry, something went wrong.

No need to throw error when there is no input because we will show first 10 records
@rajatpandey441 rajatpandey441 deleted the issues/show-top-records-search branch November 25, 2023 21:59
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.

None yet

1 participant