plan/phase26-edit-history #125
Loading…
Reference in a new issue
No description provided.
Delete branch "plan/phase26-edit-history"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clicking "(edited)" on a message now opens a right-side drawer listing all prior bodies alongside the current one. The "(edited)" span becomes an hx-get button targeting #history-panel; a DELETE /history-panel route closes the drawer by swapping in an empty aside. Prior bodies resolve @username chips via a new `mentions_for_body` helper that queries auth.users directly, bypassing the denormalized `mentions` table. That table is reconciled to the current body, so a user unmentioned by a later edit has no row there to look up; going direct means the chip still renders in the prior entry. The current body continues to use the live-path `mentions_for_messages` for consistency with the room timeline. Template labels ("Edited <ts>", "Current", "Current - last edited <ts>") are pre-computed in the handler so the template stays branch-free and avoids introducing the first `{% match %}` in any template.