Skip to content

Conversation

@emggeorge
Copy link
Contributor

Addresses part of the feedback on this pull request. It is a part of the solution for issue #10933

Gets covers from cover and title endpoints from Internet Archive instead of specifying default.jpg.

Example:

cover endpoint: https://archive.org/download/mariachapdelaine00hemo/page/cover
title endpoint: https://archive.org/download/mariachapdelaine00hemo/page/title
default endpoint: https://archive.org/services/img/mariachapdelaine00hemo/full/pct:600/0/default.jpg

Technical

Testing

Screenshot

Screenshot 2025-07-25 204313

Stakeholders

@RayBB

@emggeorge emggeorge changed the title 10933/fix/use cover and title endpoints Use cover and title endpoints for IA cover upload Jul 26, 2025
@emggeorge emggeorge marked this pull request as ready for review July 28, 2025 13:07
@emggeorge
Copy link
Contributor Author

@RayBB Originally I had this as a draft because one change was failing tests, but after looking back at it I think the change made by pre-commit fixes it. If I'm misunderstanding this please let me know, but otherwise I think it is good to be reviewed.

@github-project-automation github-project-automation bot moved this to Waiting Review/Merge from Staff in Ray's Project Jul 28, 2025
@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Jul 29, 2025
@emggeorge
Copy link
Contributor Author

@RayBB Have you had a chance to look at this yet?

@cdrini cdrini moved this from Waiting Review/Merge from Staff to Waiting on Me in Ray's Project Aug 13, 2025
Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

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

@emggeorge thanks for your patience and following up.

Your changes are a really good start.

I went ahead and pushed up two changes (please review them):

  1. Using a for loop to generate the images and buttons
  2. Adding some css for a cap and centering so it looks a little more in line with our usual sytles.
Image

We typically don't have inline styles (style="") in the html. On this particular page you may have noticed we do have height hardcoded to stop the page from jumping around before the css loads. So, we should move your styles to cbox.less. Unfortunately, when I tried doing that the changes weren't reflecting in the UI after running make css and refreshing. So... I asked about it in Slack here. Hopefully someone will help uncover why this is. And if we don't find out soon I'll bring it up on the Tuesday call.

All that is to say, I don't think there's anything else for you to do here at the moment. But changes will be needed when we find out the problem.

Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

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

Jim champ let me know I should run make js for this particular file.

Anyway, I think this is good to go now and we need staff to give a final check.

@RayBB RayBB moved this from Waiting on Me to Waiting Review/Merge from Staff in Ray's Project Aug 15, 2025
@RayBB RayBB added Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. and removed Needs: Response Issues which require feedback from lead labels Aug 15, 2025
@RayBB RayBB requested a review from cdrini August 15, 2025 23:16
@emggeorge
Copy link
Contributor Author

@RayBB Thanks for your help and explanations! I'll keep those edits in mind next time I work on similar issues.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Aug 19, 2025
@cdrini cdrini merged commit a267d95 into internetarchive:master Aug 20, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Waiting Review/Merge from Staff to Done in Ray's Project Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Response Issues which require feedback from lead Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants