vienalatina/apps/board/tests
Claude 59b595170f
A calendar a phone can read, and tap targets a thumb can hit
The private calendar rendered as six hundred pixels of nothing on a phone.
The cause was two adjacent rules in board.css with opposite outcomes:

    .cal, .cal tbody, .cal tr, .cal td { display: block }   /* (0,1,1) */
    .cal__pad { display: none }                             /* (0,1,0) */
    .cal__day:not(:has(.cal__event)) { display: none }      /* (0,2,0) */

`.cal td` outranks `.cal__pad`, so every cell belonging to a neighbouring
month stayed on screen as a 92px empty box; `.cal__day:not(:has(…))`
outranks `.cal td`, so every real day disappeared. A month with no events
drew four blank boxes and nothing else, with correct HTML throughout —
which is why reading the file looked right and no test could see it.

Both calendars are now a column of every day of the month below 640px,
with the weekday beside the number (the column header is hidden there),
the days carrying something standing out, and a line saying so when the
month is empty. The public agenda gets the same shape deliberately: the
private calendar lists the public events, and a member moves between the
two. Every rule that decides `display` now names its cell's own class.

Measured rather than reasoned about, in headless Chromium at 320 and 390
across all 22 members-area screens and the public site in three languages:

  - padding cells 0px tall, 31 of 31 days drawn, no horizontal overflow
  - the ☰ ran off the right edge of a 320px Portuguese home page, because
    «Comunidade» is three letters longer than «Comunidad»; the bar now
    gives way at 360px
  - the navigation links were 37x17, the calendar's + was 7x15, the footer
    links 16px tall. A `pointer: coarse` block in each stylesheet raises
    them to 44, padding only, so the desktop is untouched. Links inside a
    sentence are left alone, as WCAG exempts them.

Registro de actividad and Contenido stop being a sideways-scrolling table
on a phone and stack one card per row, the two columns that do not
describe themselves labelled from `data-label`.

Guards: three stylesheet tests that compute specificity and run the
cascade for a padding cell, a day cell and the weekday label, in both
stylesheets — each verified by putting the shipped rules back. Plus three
request-level tests: an empty month says so and still draws its 31 days,
a month with events does not claim to be empty, and every day carries the
right weekday.

Members area only to deploy — no migration, no schema change — except the
agenda and the stylesheet, which reach the site through the pipeline.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-06 18:41:56 +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
test_auth.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_board.py The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +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 phone can use this site, and the way in is a button 2026-10-03 21:04:13 +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_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 superadministrator above the responsable 2026-10-06 11:55:41 +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 superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_templates.py A calendar a phone can read, and tap targets a thumb can hit 2026-10-06 18:41:56 +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