The release builds and uploads with ygg/actions/static-publish, instead of
deploying static-server through kara.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each account gets an Edit button opening the add form pre-filled with
its settings; the password field is optional ("unchanged") and only a
new value replaces the stored one. Editing no longer rewrites the hosts
or login from the address, so a working setup isn't silently changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lists the mail accounts Tern syncs with their live sync status (polled
while open), message counts and the last error when one fails; adds an
account with the same address-derived defaults as the Android app; and
removes one after saying plainly that its synced mail goes with it.
With no account yet, the mail list points there and the form opens on
its own — until now the webapp had no way to connect a mailbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The webapp now deploys from its own release as a static-server Swarm
stack (deploy/static.yml, tern.mtps.pl on 11902) instead of driving the
server's deployment. It's built with VITE_TERN_API — the
TERN_API_URL repository variable, defaulting to
https://tern-api.mtps.pl — and sends REST calls and the live-update
socket there. Empty (development), it stays same-origin behind Vite's
proxy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gitea rejects an unparsable workflow without running anything, which
for release.yml only surfaces when a tag is pushed. Parsing them all in
CI catches it on master first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the release is published, a deploy job checks out the deployment
definition from tern-server at the same tag, confirms the server image
for that version exists, and runs it through ygg/actions/deploy. It
runs here because tags go out server-first and the single runner works
through them in order, so both artifacts exist by now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shell now follows the server's event stream over a WebSocket,
falling back to polling the same log (every 30 s) while it reconnects
with backoff, and reloading everything when the server says the cursor
can't be replayed. Lists, the outbox, sidebar and rules refresh on
their own events; the open conversation only reloads when its message
count changes, so flag and tag changes don't collapse it.
Mail the server marks as notifying shows an in-page notice while the
tab is in view, and otherwise counts in the tab title and — if the
reader opted in — raises an OS notification. The rule editor gains
Don't notify and Notify anyway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Junk joins the system views; Report spam / Not spam come from the
toolbar, menu and `!`; messages show their spam score as a badge. Rules
gains an Add spam filter preset — score over 5 → Junk, placed first and
stopping later rules — and the editor offers only numeric comparisons
for spam score.
Conversation lists now load older pages. The list previously only ever
showed the newest 50 conversations, leaving older mail unreachable even
though the API returned a cursor. Pages load as the end scrolls into
view, when j walks past the end, or via a Load older button that also
covers keyboard use. Refreshing after an action re-reads as many rows as
were loaded, so a deep scroll doesn't collapse back to one page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rule editor gets a stop-after-match checkbox in place of the stop
action, and each rule a Run now button that confirms what it will do and
reports how many messages matched. Disabled rules dim their description
only, since Run now still works on them. Trash rows show when they'll be
deleted permanently.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar gains views (Inbox, All mail, Sent, Trash), folders and
tags; list rows show tag chips. Conversation actions — archive,
delete/restore, read/unread, move, tag — come from a toolbar, a
right-click context menu on the native Popover API, or the keyboard
(e, #, Shift+I/U, v/l). With nothing open, keyboard actions apply to
the row under the cursor, so mail can be triaged from the list. After
an action the view returns to the list rather than auto-opening the
next conversation, since opening one marks it read.
The rules editor works on the same structured JSON the server stores,
so anything the API accepts can be shown and edited. Server validation
errors, such as a bad regex, appear inline without clearing the form.
The editor snapshots the rule it opens and is keyed per rule, so
opening another remounts it instead of reusing stale form state.
Menus close through our own code path rather than waiting on the
popover's toggle event, for the same reason as the compose dialog:
browsers can defer it while the tab is hidden.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compose/reply/reply-all in a native <dialog> with drafts; an outbox view
for drafts, queued and failed messages with retry timing, last error and
Retry/Delete; mark-read on open; c, r/a and Shift+R shortcuts (r moves
from refresh to reply, matching Gmail). Replying to your own sent
message addresses the people you wrote to rather than yourself.
The dialog now notifies its parent directly when it closes itself,
instead of relying on the <dialog> close event. Browsers may defer that
event — Chrome doesn't deliver it at all while the tab is hidden — and
when it didn't arrive, compose state never reset: the next reply
wouldn't open and a stale draft id was carried over. The event still
covers Escape, with a guard against notifying twice.
After sending, the UI watches that one message leave the queue and then
refreshes its thread; watching the whole queue meant an unrelated
message stuck retrying held up feedback for the one just sent. The
thread header now counts loaded messages rather than the summary taken
when the thread opened, which went stale after a reply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread-grouped list, thread view with older messages collapsed, and
keyboard navigation (j/k, Enter/o, u/Esc, g/G, r, ?). Mutating shortcuts
are deliberately absent until the endpoints behind them exist.
Untrusted mail renders in an iframe sandboxed without allow-scripts or
allow-same-origin, with a CSP inside the frame doing the actual blocking
of remote loads. CSP rather than rewriting <img src> because rewriting
misses srcset, <picture>, CSS background-image and @font-face; img-src
covers every image load however it was requested. Remote images stay
blocked per message until the reader opts in.
Verified against mail carrying a tracking pixel, remote hero image, CSS
background image and inline <script>: the script neither ran nor reached
the parent, the frame was not same-origin accessible, and no request was
made even for a resolvable, actively-served image URL.
Note the quotes in img-src 'none' are load-bearing — unquoted, CSP reads
'none' as a hostname and would allow https://none/pixel.gif.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
CI runs svelte-check and a production build on every push. Tagged
releases package the contents of dist/ as a .tgz that untars directly
into a web root, with a checksum alongside.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Vite + Svelte 5 + TypeScript with no other runtime dependencies, per the
client spec's speed-and-simplicity priority. Wires up the decided palette
with light/dark/system switching, a two-pane desktop shell, and a thin
API client against the sync server.
Deliberately no PWA/service worker, matching the spec's scope cut.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>