vienalatina/apps/board/tests
Claude 63dd19e451
Style the profile page, and drop the step before writing
Two bugs, both mine.

The profile page arrived unstyled because its CSS was in a <style>
block. default-src 'self' covers style-src, 'self' does not permit
inline, so the browser dropped the whole block without a word — the
photo loaded because img-src allows same-origin, which is what made the
screenshot look like a half-working page rather than a blocked one. The
third time this policy has silently made something inert, after two
rounds of inline event handlers. Moved to static/profile.css, where the
policy allows it, and test_templates.py now fails on an inline <style>
the way it already does on an inline onclick.

Private messages had an "Abrir conversación" button that created an
empty conversation and sent you to a page where you then had to type. It
bought nothing and littered the inbox with rows reading "Sin mensajes
todavía" for people nobody had written to. A conversation is now
addressed by the person — /privados/con/<member_id> — and the page
always carries the history and the box together. The row is created by
the first message, not by looking at somebody's name.

That also makes the access rule structural instead of checked. Every
lookup is scoped to the member doing the looking, so there is no query
that could return somebody else's correspondence, and the two helpers
that took a conversation id are gone. A third person opening the same
URL now sees their own empty conversation, which the tests assert
directly rather than asserting a 404.

281 tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-09-29 14:16:25 +00:00
..
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
conftest.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +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 Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
test_content.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +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_invites.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_members.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_messages.py Style the profile page, and drop the step before writing 2026-09-29 14:16:25 +00:00
test_migrations.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_profiles.py Phase D: public profiles, without risking the public site 2026-09-29 13:22:43 +00:00
test_templates.py Style the profile page, and drop the step before writing 2026-09-29 14:16:25 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00