vienalatina/apps/board/tests
Pablo Volenski 91aa0c9a9e
Private messages live on the person, not in a tab
*Privados* was a section holding a list of conversations, and *Miembros* was a
page reached from the footer. That is backwards: the list of conversations is a
by-product and the people are the thing. So the navigation swaps them —
**Inicio · Muro · Miembros · Publicaciones · Calendario · Gestión** — the grid
becomes faces and names, and writing to somebody and reading what the two of
you have written each other both happen on their page.

`/comunidad/miembro/<usuario>` is new, keyed on the login so the address
matches the public one. It carries their photo, bio and links, a link out to
their public page when they have published one, the whole conversation with
them, the write box, block/unblock, and — for an admin — the controls that used
to be folded into every card in the directory. `conversation.html` and
`inbox.html` are gone; `member.html` replaces both.

The split between the two modules did not move. `messages.py` still owns every
rule about private messages — who may read a conversation, what counts as
having read it, when the conversation comes into being, who may write to whom —
and hands the page its contents through the new `history()`. What is left of
its routes are the ones that change something: a message sent, a block set or
lifted. `members.show` renders.

Not losing the unread badge is the part with a real design question in it, and
it takes four things: the badge moves to *Miembros*, each card carries its own
count, the cards with something unread sort to the top of the grid, and Inicio
keeps the panel it already had. Without the sort, the person waiting for an
answer is wherever the alphabet put them, which is the one thing the inbox did
that a grid of faces does not.

Names now link inside. `_person.html` used to link to somebody's *public* page
and only when they had published one, so most names on the wall were plain
text and there was no way to get from a post to writing to its author. Every
caller is behind the login, so it points at the members-area page instead —
with the tombstone as the one name with nothing behind it.

Old addresses redirect: `/comunidad/privados` to the directory,
`/comunidad/privados/con/<id>` to that person's page. The POST that sends a
message keeps its address, which is what the form on the new page uses.

512 tests pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-03 20:12:16 +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 The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +00:00
test_content.py Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +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 Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +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 Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
test_messages.py Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
test_migrations.py Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +00:00
test_navigation.py Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
test_profiles.py Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
test_reactions.py Publishing has never worked: one line, two wrong answers 2026-09-30 14:39:14 +00:00
test_submissions.py Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +00:00
test_templates.py Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00