Delete 68 legacy image files no longer referenced anywhere - #13329
Conversation
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
c1cde8d to
2f8af29
Compare
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
There was a problem hiding this comment.
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')"> |
There was a problem hiding this comment.
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>).
The 17 lucide additions had ridden along in the ol-button commit with nothing consuming them; they now land via internetarchive#13424 instead. Claude-Session: https://claude.ai/code/session_01RtTEd3rAHJYz3zKi3zUWwD
The matcher test used the now-deleted barcode_scanner.svg as its sample path. Claude-Session: https://claude.ai/code/session_01RtTEd3rAHJYz3zKi3zUWwD
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
e91d622 to
bfcec93
Compare
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
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
RayBB
left a comment
There was a problem hiding this comment.
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.
Follow-up to #12955 (unified icon system).
Deletes 68 image files that are no longer referenced by any template, JS, CSS or Python:
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.