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

Standardize Styling for Search Inside Results #9660

Conversation

merwhite11
Copy link
Collaborator

@merwhite11 merwhite11 commented Jul 30, 2024

Closes #9479

Technical

Merged in #9734 and combined the fulltext-suggestion-snippet.less to fulltext-snippet.less.

When this PR gets merged in, there will be a merge conflict in page-user.less where the snippet styling files are being imported.

I will need to resolve the conflict so that both FulltextSuggestionSnippet.html and FulltextSnippet.html are styled by fulltext-snippet.less from this PR.

Testing

I tested this by using a sample data json and a reference to the json in dev env: jimchamp/openlibrary@master...jimchamp:openlibrary:sandbox-fulltext-search-results#diff-fb7667454719879be914be81c253b5dd9fc0dcbdb6afaada791b5091e80e8ec2

I input the test data to the web container by running these commands:
docker compose exec -e PYTHONPATH=. web bash ./scripts/copydocs.py /books/OL24966433M ./scripts/copydocs.py /books/OL32090209M ./scripts/copydocs.py /books/OL24375865M ./scripts/copydocs.py /books/OL24204364M ./scripts/copydocs.py /books/OL7522718M

The test search term is 'a cricket in the night'

Screenshot

Screenshot 2024-07-30 at 12 08 24 PM

Stakeholders

@mekarpeles

@merwhite11 merwhite11 force-pushed the 9479/standardize-search-inside-results branch from 6fb07e1 to b30affd Compare July 30, 2024 20:41
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.42%. Comparing base (ce16a79) to head (39a31cd).
Report is 379 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9660      +/-   ##
==========================================
+ Coverage   16.06%   16.42%   +0.36%     
==========================================
  Files          90       92       +2     
  Lines        4769     4907     +138     
  Branches      832      856      +24     
==========================================
+ Hits          766      806      +40     
- Misses       3480     3565      +85     
- Partials      523      536      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@merwhite11 merwhite11 marked this pull request as draft August 20, 2024 20:40
@merwhite11 merwhite11 force-pushed the 9479/standardize-search-inside-results branch 7 times, most recently from a68ba33 to 7f16afd Compare August 20, 2024 23:56
@merwhite11 merwhite11 force-pushed the 9479/standardize-search-inside-results branch from 79ce73c to 0b6b08f Compare August 21, 2024 00:01
@merwhite11 merwhite11 marked this pull request as ready for review August 21, 2024 00:14
@mekarpeles
Copy link
Member

We may have a bug we need to work through :)
https://testing.openlibrary.org/search/inside?q=test+search&debug=true

@mekarpeles mekarpeles added the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Aug 29, 2024
@github-actions github-actions bot removed the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Aug 29, 2024
@merwhite11
Copy link
Collaborator Author

merwhite11 commented Aug 30, 2024

@mekarpeles

Re: debug I am having an issue loading the test data in to web using the script provided in the Testing description above. Do I need to be on testing to reproduce the bug you're showing?

Refactor: I'm realizing I should create a 'FulltextQuoatation' macro that can be shared between FulltextSuggestionSnippet and FulltextSnippet lines 16-24.

@mekarpeles mekarpeles merged commit 637c3ea into internetarchive:master Sep 18, 2024
5 checks passed
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.

Standardize and Clean Search Inside Results
3 participants