Skip to content

Delete 68 legacy image files no longer referenced anywhere - #13329

Merged
lokesh merged 8 commits into
internetarchive:masterfrom
lokesh:icons/chore/delete-legacy-images
Aug 25, 2026
Merged

Delete 68 legacy image files no longer referenced anywhere#13329
lokesh merged 8 commits into
internetarchive:masterfrom
lokesh:icons/chore/delete-legacy-images

Conversation

@lokesh

@lokesh lokesh commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #12955 (unified icon system).

Deletes 68 image files that are no longer referenced by any template, JS, CSS or Python:

  • 21 were replaced by sprite icons in Add unified icon system #12955 — sort and pager arrows in the editions table, the header hamburger, the login eye toggle, and so on.
  • 47 had already been dead for years. The first 29 turned up while auditing the replaced group; a second pass over static/images/ found 18 more (old carousel arrows, waiting.gif, wmd-buttons.png, colorbox sprites, and similar).

Verified against current master that none of the 68 filenames appears in any template, JS, CSS or Python file. The service-worker matcher test fixture that pointed at one of the deleted files now uses a surviving image; that one-line test change is the only non-deletion in the diff.

21 of these were replaced by sprite icons in internetarchive#12955; the other 29 have
had no references in the codebase for years and turned up while auditing.
Verified none of the 50 is referenced from any template, JS, CSS or
Python on the icon-system branch.

Split out of internetarchive#12955 so that PR carries no binary content: GitHub's .diff
omits binary data, so a patch deploy of a PR containing binary deletions
aborts unless it passes --exclude=static/images/*. This one never needs
to reach testing, so the flag stops mattering.

Merge after internetarchive#12955.

Claude-Session: https://claude.ai/code/session_01Lv9GuFfV3JRG7hmKGmN1t4
@lokesh
lokesh force-pushed the icons/chore/delete-legacy-images branch from c1cde8d to 2f8af29 Compare August 21, 2026 22:57
The delete/remove control on list pages was an anchor with a sprite-image
trashcan; it now uses ol-button with the trash icon, which lets the last of
the legacy image files go. On a list's own page the button moves into the
CTA column under the lending button and dropper, so the dropper's ad-hoc
margin and its 50px reservation for the absolutely positioned control give
way to a single flex gap owning the rhythm.

Claude-Session: https://claude.ai/code/session_01NmxEn3FtZunApjLZAW78wo

@accesslint accesslint Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 1 issue across 1 rule.

Reviewed by AccessLint, which checks every pull request for accessibility issues.

<div class="clearfix"></div>

<ul id="listResults" class="list-books clearfix $cond(layout == 'grid', 'list-books--grid')">
<ul id="listResults" class="list-books list-seeds clearfix $cond(layout == 'grid', 'list-books--grid')">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WCAG 1.3.1: <ul> contains direct text content. Wrap in <li> or <style>.

<ul> and <ol> must only contain <li>, <script>, <template>, or <style> as direct children.

Details

Screen readers announce list structure ('list with 5 items') based on proper markup. Placing non-<li> elements directly inside <ul> or <ol> breaks this structure. Wrap content in <li> elements, or if you need wrapper divs for styling, apply styles to <li> elements directly and remove the wrapper (e.g., change <ul>``<div>item</div>``</ul> to <ul>``<li>item</li>``</ul>).

@lokesh lokesh changed the title Delete 50 legacy image files replaced by the icon system Delete 50 legacy image files; replace the list-delete trashcan with ol-button Aug 25, 2026
The grid variant applied to every .list-books--grid (search results,
author pages, reading log), not just list seeds.

Claude-Session: https://claude.ai/code/session_01RtTEd3rAHJYz3zKi3zUWwD
Restores the list templates, JS, and CSS to master and keeps
back_list-trash.png, whose last reference lives until internetarchive#13425 lands.
This PR is back to being a pure deletion of unreferenced files.

Claude-Session: https://claude.ai/code/session_01RtTEd3rAHJYz3zKi3zUWwD
@lokesh lokesh changed the title Delete 50 legacy image files; replace the list-delete trashcan with ol-button Delete 69 legacy image files no longer referenced anywhere Aug 25, 2026
@lokesh
lokesh marked this pull request as ready for review August 25, 2026 05:34
@lokesh
lokesh requested a review from RayBB August 25, 2026 05:43
@lokesh lokesh added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Aug 25, 2026
The audit grep missed the %20-encoded url() in buttonCta.css:39, so
deleting the file would blank the open-access audiobook button icon.
It goes once that button is on the sprite (icons/chore/phase2-icon-set).

Claude-Session: https://claude.ai/code/session_01RtTEd3rAHJYz3zKi3zUWwD
@lokesh lokesh changed the title Delete 69 legacy image files no longer referenced anywhere Delete 68 legacy image files no longer referenced anywhere Aug 25, 2026
@RayBB RayBB self-assigned this Aug 25, 2026
@github-project-automation github-project-automation Bot moved this to Waiting Review/Merge from Staff in Ray's Project Aug 25, 2026

@RayBB RayBB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I did a pretty thorough check and cannot find any usages anywhere so I think we're good to go. Also put on testing for good measure.

@lokesh
lokesh merged commit 7be8017 into internetarchive:master Aug 25, 2026
4 of 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 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] On Testing

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants