Commit graph parsimony/admin/src
Author SHA1 Message Date
tgiachi
1dddf14cfd feat: the logo in the admin UI, the README and as PNG exports
- Show the wordmark on the login page and the mark in the header; set the page title to Parsimony
- Put the logo at the top of the README, with a dark-mode variant
- Add PNG exports (a 512 px mark for avatars, a 1200 px wordmark), both transparent
- Say that the logo is under the same licence
2026-11-10 12:14:50 +01:00
tgiachi
d957be3e84 fix(admin): the Held empty state names both reasons a message is held
- The hint said mail is held only on moderated lists; it is also held when the From
  header does not match the sender. It now says both, and shows for every posting policy.
- Test covers members and moderated lists and the hint staying away when messages are held.
2026-11-10 11:58:59 +01:00
tgiachi
bcca031ea3 feat: show who really wrote a held message in the CLI and the UI
- Add SENDER and FROM columns to held ls, flagging a From header that differs from the sender
- Show the From header and a badge in the Held tab; keep the envelope sender visible
2026-11-10 11:40:31 +01:00
tgiachi
2b66937ac7 fix(admin): type the held fixture, update the e2e token and LMTP allow list
- Add the reason field to a test fixture so tsc -b passes
- Use a 24+ character API token and an lmtp.allow list in the end-to-end stack
- Describe failed deliveries in the README
2026-11-09 20:35:54 +01:00
tgiachi
afd067688c feat: show failed deliveries in the API, CLI and UI 2026-11-09 20:34:37 +01:00
tgiachi
eb9e915805 fix(security): hold posts whose From header does not match the sender
- Judge membership on the envelope sender and require the From header to name the same address
- Hold mismatches (and missing, unparsable or multiple From addresses) for the admin instead of delivering
- Record why a message was held: new held.reason column, migrated, shown in the API, CLI and UI
- Accept an empty message in the held queue
- Document who may post
2026-11-09 20:23:07 +01:00
tgiachi
a170204ecb test: close gaps found by mutation checks on the archive import
- Cover the CRLF separator line, cycle roots entered from outside, linear rethreading of long chains
- Cover a read error mid-import, the "and N more" lines, and the mbox content type
- Cover clearing the previous result and the capped error list in the UI
2026-11-09 19:50:40 +01:00
tgiachi
d8cc5ed68a feat(admin): import an mbox from the Archive tab
- Add upload of an mbox file with a summary of imported, already present and failed messages
- List the first failing messages and refresh the archive
- Stream the file as the raw request body
2026-11-09 19:45:48 +01:00
tgiachi
6461e77a95 feat: document the queue, close mutation gaps, plain relay errors
- Document delivery semantics, retries and the queue API in the README and OpenAPI
- Add relay.concurrency to the example config
- Test that a relay problem never counts against a member, that the longest-waiting delivery goes first, and the error and limit details
- Show the plain relay error when there is a single batch
2026-11-09 16:04:45 +01:00
tgiachi
f3c75dc97d feat(admin): outbound queue page
- Add queue totals, delivery table with errors and next attempt
- Refresh on demand and every 5 seconds
- Add confirmed discard of a stuck delivery
- Link the page from the header
2026-11-09 15:55:52 +01:00
tgiachi
a0a083273c feat(admin): build tooling, Docker stage and docs; close test gaps
- Add Makefile (admin, build, test) and a node stage in the Dockerfile
- Add .dockerignore so host node_modules and builds stay out of the image
- Document the admin UI in the README
- Cover mutation survivors: token cleanup on non-401 failures, cache dropped on 401 and sign out, member filter by name, archive invalidated after approval, page offset
2026-11-09 15:42:07 +01:00
tgiachi
b3a85a55ea feat(admin): archive tab with search, paging and message viewer
- Add paginated archive table with full-text search
- Add message viewer that renders the body as plain text
- Add inline-confirmed deletion
- Warn when archiving is off
2026-11-09 15:37:39 +01:00
tgiachi
c5f158b664 feat(admin): held messages tab
- Add held queue table with approve and confirmed discard
- Explain how messages get held when posting is not moderated
- Refresh the tab badge and the archive after approving
- Add byte and date formatting helpers
2026-11-09 15:36:47 +01:00
tgiachi
75a32386b2 feat(admin): members tab
- Add member table with status, bounce count and client-side filter
- Add add-member form, re-enable for disabled members and confirmed removal
2026-11-09 15:35:43 +01:00
tgiachi
1a7d16f8a9 test(admin): wait for the modal cleanup after deleting a list 2026-11-09 15:34:46 +01:00
tgiachi
f9e5b142c2 feat(admin): list page with tabs, settings and deletion
- Add list header, tab navigation driven by the URL and held-queue badge
- Add settings form that sends only changed fields
- Add confirmed list deletion with error handling in the dialog
- Add labelled select field wrapper for shadcn Select
2026-11-09 15:33:47 +01:00
tgiachi
bbb5f3f9ce feat(admin): create lists from a dialog
- Add new-list dialog with client validation and server error display
- Reset the form each time the dialog opens
2026-11-09 15:32:39 +01:00
tgiachi
5f67289943 feat(admin): login, session guard and lists overview
- Add AuthProvider that verifies the token and ends the session on any 401
- Add login page, shell with sign out, not-found page
- Add lists table with policy badges
- Add fake API and render helpers for component tests
2026-11-09 15:31:51 +01:00
tgiachi
97024ca642 feat(admin): typed API client with session token handling
- Add api client for lists, members, held queue and archive
- Keep the bearer token in sessionStorage and clear it on 401
- Turn network and non-JSON errors into ApiError
2026-11-09 15:30:13 +01:00
tgiachi
5a0dd7f6d6 feat(adminui): embed the admin SPA and serve it next to the API
- Add internal/adminui with a SPA handler: index fallback for client routes, immutable caching for hashed assets, 404 for missing assets, security headers
- Answer 503 with a hint when the UI has not been built, so go build always works
- Mount the UI at / and the API at /api/ on the same listener, no CORS needed
- Scaffold admin/ with Vite, React, TypeScript, Tailwind v4, shadcn/ui and Vitest
2026-11-09 15:29:12 +01:00