9eb1bf45

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Simplify MediaItem.Filenames() with an extension table and shared variant helper (#409)

Now that all resized variants share the same "-<width>px.jpg" naming,
the only per-type difference left in Filenames() is the full-size file
extension. Replace the extension switch with a lookup table and build
all three resized variants (display, desktop thumbnail, mobile
thumbnail) through one helper instead of three hand-written literals.

This adapts the better-filenames branch, whose per-type spec table is
no longer needed after the thumbnail suffix unification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/409

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 2s 12s 12s 15s 2s
Eval 11s 39s 39s 51s 0s
Build 28s 4m46s 1m41s 2m10s 11s
Deploy 2m10s 3m17s 3m17s 5m28s 0s
Suite 2s 8m56s 5m25s 5m28s 14s

Timeline

0s1m2m3m4m5m