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

improve search #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

alok1304
Copy link

@alok1304 alok1304 commented Jan 2, 2025

Fixes #58

Task:

  1. Update stats wording after the search.
  2. Search box only searches for the license key or license name.
    I use the column-specific search API provided by DataTables. (source: https://datatables.net/reference/api/search())
  3. Showing search box on all pages.
    Override applied in static/jquery.mark-8.11.1.min.js to ensure the visibility of the search section.
    Adding this #search-section {display: flex !important;} in file static/jquery.mark-8.11.1.min.js.

Reference: #58

Also I attach my work in screenshot before and after.

  1. Update stats wording after the search.
  2. Search box only searches for the license key and license name.
  • Before:
    Screenshot 2025-01-02 220424
  • After:
    Screenshot 2025-01-02 220438

We can clearly see that in 1st screenshot it shows Showing 1 to 376 of 376 licenses. On 2nd screenshot we see that it shows Showing 51 licenses. Also we can see that here license is 51 because we only search for license key and name, not for all.

  1. Showing search box on all pages.
  • Before:
    Screenshot 2025-01-02 220545
  • After:
    Screenshot 2025-01-02 220457

1. Update stats wording after the search.
2. Search box only searches for the license key or license name.
3. Showing search box on all pages

Reference: aboutcode-org#58
Signed-off-by: Alok Kumar <[email protected]>
@alok1304
Copy link
Author

alok1304 commented Jan 2, 2025

@pombredanne can you please review this PR : )

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.

Improve search
1 participant