Skip to content

The HD pill on a picture read as a label, not an offer - #1968

Merged
wintermeyer merged 1 commit into
mainfrom
worktree-datensparsamkeit-hd
Sep 3, 2026
Merged

The HD pill on a picture read as a label, not an offer#1968
wintermeyer merged 1 commit into
mainfrom
worktree-datensparsamkeit-hd

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

In data-saving mode every picture and every clip carried a lone HD pill in
its corner. A word on a picture reads as a label of what you are looking at
just as readily as an offer of something better, so people who read it that
way never tapped it.

It is an SD | HD switch now: SD lit is the version on screen, HD dim the one
a tap away. Once the full version arrives the switch goes away rather than
flipping — the bytes are spent, so an SD side to go back to would save nothing.

One VutuvWeb.UI.quality_switch/1 serves both surfaces (picture/1 and
post_video/1), including the button, the 40px target and the label, so the
word on a clip cannot come to mean something else than on a photo. Its pill
class stays a literal in the markup: built by a function it is a per-instance
dynamic in the LiveView diff, measured at 102 bytes and 112 reductions per
picture — paid by the member who turned the mode on to save bytes. A test
keeps it on the same grey as the badge beside it.

Driven in a browser: real click swaps the picture in place without opening the
lightbox underneath, and the switch disappears.

An AI agent wrote this text in my name. I know that is problematic.

https://claude.ai/code/session_01DrezfTcL9MjLC4EJN2LWED

Im Datensparmodus stand in der Ecke jedes Bildes und jedes Clips ein einzelnes
„HD", und ein Wort auf einem Bild liest sich genauso gut als Beschriftung
dessen, was man gerade sieht; wer es so las, tippte nie darauf. An seiner
Stelle steht jetzt ein SD/HD-Schalter: SD leuchtet als die Fassung, die man
hat, HD daneben ist die, die noch nicht geholt wurde, und sobald sie da ist,
verschwindet der Schalter ganz, denn die Bytes sind ausgegeben und ein Weg
zurück nach SD spart nichts mehr. Bild und Clip teilen sich dafür eine
Komponente samt Knopf, Trefferfläche und Beschriftung, damit niemand lernen
muss, dass das Wort auf einem Video etwas anderes meint als auf einem Foto.
Die Klasse der Pille steht bewusst als Literal im Markup, weil eine per
Funktion gebaute Klasse pro Bild im LiveView-Diff landet, und ein Test hält
sie auf demselben Grau wie das Badge daneben.

Diesen Text hat ein KI-Agent in meinem Namen geschrieben. Ich weiß, dass das
problematisch ist.

Claude-Session: https://claude.ai/code/session_01DrezfTcL9MjLC4EJN2LWED
@wintermeyer
wintermeyer merged commit 95a7c3e into main Sep 3, 2026
1 check passed
@wintermeyer
wintermeyer deleted the worktree-datensparsamkeit-hd branch September 3, 2026 11:18
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.

1 participant