Skip to content

v0.1.1

@lhaig lhaig tagged this 08 Jul 21:11
Message rows push the clean URL /mail/{mailbox}/{uid} via hx-push-url, so a
browser refresh loads that URL as a full page. ShowMessage returned
MessagePage, which is only the content fragment (no layout/head/CSS) --
unlike MailboxPage which wraps in LayoutWithContent -- so a refresh
rendered unstyled.

Add MessageFullPage (layout + sidebar + #main-content wrapper, mirroring
MailboxPage) and return it for non-HTMX requests; HTMX clicks still get the
bare MessagePage swapped into #main-content. Adds a regression test
asserting the full-page response carries the stylesheet and the HTMX
response does not.
Assets 2
Loading