vienalatina/apps/board/tests
Claude 790bd2230f
Share buttons, and a card that arrives with its picture
Seven buttons under the title of every post and again after the text —
the reader who decides on sight and the one who decides at the end are
different people.

Four are ordinary links and work with scripting off: WhatsApp, Facebook,
Bluesky and Mastodon all take a URL that opens their own composer. The
other three cannot be, and the reason is worth writing down rather than
rediscovering: Signal has no web intent at all — it is a share target in
the operating system's sheet and nowhere else — and Instagram accepts no
link from anybody, by design, which is why every site with an Instagram
share button is really offering a copied link. Both call
navigator.share() where it exists and copy the address where it does
not, beside a plain «Copiar enlace» that always works.

Mastodon has no central address: the composer lives on whichever server
the reader has an account on. It asks once, keeps the answer, and
without scripting falls back to the association's own server.

The icons are simplified marks in one visual language rather than the
official logo files — reproducing those from memory gives something
subtly wrong, and subtly wrong looks worse than plainly simple. Each
carries its name for a screen reader and in `title` for a cursor.

**And the half that was actually broken.** og:image pointed at the
original upload: a photograph off a phone, two to five megabytes.
WhatsApp fetches preview images on a tight budget and gives up on a file
that size, so the card arrived as a title and a link with a blank where
the picture should be. Hugo copies static/ and processes assets/, and
only the second can be resized — so config.yaml mounts static/uploads
and static/brand into assets/ as well, leaving every existing URL and
everything the editor commits untouched, and seo-head.html now builds
the card: 1200x630, filled from the middle, 93 KB measured against a
22 MB source. The logo fallback is fitted rather than filled and keeps
its own format, because a wordmark cropped to a landscape card loses its
ends and a transparent PNG turned into JPEG lands on a black square.

og:image:width and :height go out with it, from the generated file so
they cannot disagree with it. Several clients draw the small card rather
than the large one when they would have to fetch the image to find out
how big it is.

Three guards, each verified by reintroducing its own bug: a button that
needs the script says so in the markup; a hidden button is actually
hidden (`[hidden]` is a user-agent rule and `display: inline-flex` beat
it, so all seven showed and three did nothing); and every encoded link
is marked safeURL, without which Go's escaper encoded it a second time
and WhatsApp opened with %253A spelled out.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-09 08:47:42 +00:00
..
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
conftest.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
serialize_harness.js The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
test_auth.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_board.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_brand.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_content.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_deployment.py Hand the mail settings to the container, and rebuild on deploy 2026-09-25 18:42:39 +00:00
test_editor.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
test_events.py A calendar a phone can read, and tap targets a thumb can hit 2026-10-06 18:41:56 +00:00
test_invites.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_members.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_messages.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_migrations.py A post can say that a machine wrote it 2026-10-06 20:19:06 +00:00
test_navigation.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_profiles.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_reactions.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_submissions.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_templates.py Share buttons, and a card that arrives with its picture 2026-10-09 08:47:42 +00:00
test_tools.py Estado del sistema was lying about the backups 2026-10-06 14:03:30 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00