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

Show page thumbnails in pages list #221

Merged
merged 9 commits into from
Sep 5, 2023
Merged

Show page thumbnails in pages list #221

merged 9 commits into from
Sep 5, 2023

Conversation

SuaYoo
Copy link
Contributor

@SuaYoo SuaYoo commented Aug 28, 2023

Resolves #199

Changes

  • Shows thumbnail screenshot of the page if thumbnail exists. If thumbnail doesn't exist, falls back to favicon, with final fallback of an empty space.
  • Removes index number from sidebar page list.
  • Converts pageentry and pages to typescript

Testing

  1. Run crawl in browsertrix cloud and download WACZ
  2. Load file in local RWP. Verify thumbnails are shown
  3. Click page to collapse page list to sidebar. Verify thumbnails are still visible
  4. Regression test favicons:
    a. Manually crawl pages with AWP extension
    b. Load file in local RWP. Verify favicons are shown

Follow-ups

If none of the pages in a list has a thumbnail or favicon, the page list shows an empty column. Could be addressed in a hacky way, but it'd be preferred to add thumbnail metadata to the wacz JSON, so that the pages component can hide the column altogether if there are no thumbnails. Alternatively, we could show a nicely designed placeholder image.

Screenshots

Home page:
Screenshot 2023-08-29 at 10 16 04 AM

With date query:
Screenshot 2023-08-29 at 10 16 16 AM

Sidebar:
Screenshot 2023-08-29 at 10 16 37 AM

Sidebar with date query:
Screenshot 2023-08-29 at 10 17 08 AM

@SuaYoo SuaYoo changed the title Page thumbnails Show page thumbnails in pages list Aug 29, 2023
@SuaYoo SuaYoo requested a review from ikreymer August 29, 2023 17:32
@SuaYoo SuaYoo marked this pull request as ready for review August 29, 2023 17:34
@SuaYoo SuaYoo linked an issue Sep 5, 2023 that may be closed by this pull request
4 tasks
@SuaYoo SuaYoo mentioned this pull request Sep 5, 2023
23 tasks
@ikreymer
Copy link
Member

ikreymer commented Sep 5, 2023

Looks great!

@ikreymer ikreymer merged commit 8753cf5 into dev-2.0.0 Sep 5, 2023
4 checks passed
@ikreymer ikreymer deleted the page-thumbnails branch September 5, 2023 23:20
SuaYoo added a commit that referenced this pull request Sep 6, 2023
* convert pages / pageentry to ts
* render page icon
* adjust for smaller screen
* show favicon even if thumbnail exists
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.

Show thumbnail screenshots in pages list
2 participants