Commits
2026-09-25
im-web: open admin confirms in a top-layer dialogAhmet Kaan Gümüş · 9afcded
im-web: open admin confirms in a top-layer dialog position:fixed confirms inside the scrolling users table resolved against that box, so Disable landed off the page. Every admin overlay now opens a popover; the top layer's containing block is the viewport.
2026-09-11
im: live session-revocation logoutAhmet Kaan Gümüş · 08994cc
im: live session-revocation logout
- LiveEvent::Revoked { user_id, session_hash } broadcast from EVERY write
path (admin revoke/disable/delete, self revoke, password change
revoke-except, reset redeem, sign-out-everywhere)
- /live keeps connect-time identity; targeted 'revoked' SSE event only to
the killed session's connections; password change spares the asking tab
- /directory/live emits revoked {"sub"}; DirectoryMember gains disabled
- client: revoked event or /api/me 401 on SSE error -> hard navigate to /
- new GET /api/me (204/401)
- fix: admin disable never wrote the disabled flag (regression at HEAD)im-web: cached family probes, refusal i18n, soft-nav // guard, escape fixesAhmet Kaan Gümüş · c097a7c
im-web: cached family probes, refusal i18n, soft-nav // guard, escape fixes - health.rs: shared LazyLock reqwest client + 30s TTL probe cache; no more per-render Client::new + inline 2s sibling stalls on every page - pages.rs/i18n.rs: 'unavailable' error arm (En+Tr) for photo store failures - layout.rs: soft-nav rejects protocol-relative // hrefs (foreign-HTML swap hole) - escape(): map ' -> '; drop redundant manual escape at view! text sinks (pages.rs:837,1110; admin.rs:209) that double-escaped - directory/oidc/photo: handler unwraps mapped to error paths - people.rs: single avatar fetch; admin placeholders via t(); sessions created_at formatted like seen
2026-09-10
flyout tests no longer 500 CI: the GET / path needs a topcoat bundle, so the marks HTML is pinned without a router.Ahmet Kaan Gümüş · 3bc2d00
flyout tests no longer 500 CI: the GET / path needs a topcoat bundle, so the marks HTML is pinned without a router. cargo test --workspace on GitHub has no asset bundle; the two new landing GETs panicked in topcoat-asset and rolled the dots commit back off the box. Guard those GETs like the other admin HTML tests, and keep a pure trio_marks assertion that runs either way.
the family flyout carries the same health dots the admin table does.Ahmet Kaan Gümüş · 6557831
the family flyout carries the same health dots the admin table does. Each sibling mark probes /healthz concurrently; green while it answers ok, muted otherwise. The probe lives in one module. No new landing tab, no copy, no JS — hover/focus still opens the flyout.
/healthz names the build, the admin health tab reads the family, and pack/unpack carries every registered tree.Ahmet Kaan Gümüş · 30917a3
/healthz names the build, the admin health tab reads the family, and pack/unpack carries every registered tree. IM_BUILD_SHA bakes like iz/in so a stale process cannot answer a bare ok; Swap asserts ok $GITHUB_SHA and rolls back. Every deploy holds config toml/keys at 0600 and deletes editor debris (*.bak*, *.pre-*). GET /admin?section=health probes each services-table /healthz with a two-second timeout — read-only, self included, a fourth sibling appears on its own. im-web pack/unpack is data-driven from that table plus im (sqlite + wal/shm, config, key, storage); the archive is 0600; unpack refuses an existing db without --force.
2026-09-09
chore: bump remaining crates to latestAhmet Kaan Gümüş · 25140f3
chore: bump remaining crates to latest topcoat 0.8, ulid 3, chacha20poly1305 0.11, base64 0.23, rsa 0.10-rc.18.
services gain a storage limit the family carries: im's admin panel already owns the roster, so the byte cap a storing sibling answers to belongs on the same row — a nullable storage_limit_bytes behind the guarded ALTER (an old-shaped table grows the column on open), edited as an amount plus a MiB/GiB pair on the per-row form the panel already had, and served to every registered app over /family as limit_bytes beside key, name and url (null when unstated, the sibling's own default standing in its place). A register refresh never touches the cap, the way it never touches the name; owner and client_id stay unserialized; and the family shape test now pins the four public keys with null and stated cases instead of the three it grew out of.Ahmet Kaan Gümüş · 355890cBrowse files
Services and clients merge into one admin sectionAhmet Kaan Gümüş · b163bda
Services and clients merge into one admin section As concepts they were one thing wearing two tables: the family wordmarks and the relying-party credentials that sign in as them. services gains client_id (migration-guarded ALTER over the owner precedent): POST /family/register stamps the client id it authenticated beside the row — insert and refresh alike — so the panel can join the wordmark to its credential; im's own boot row stays NULL, the IdP is not its own client. Existing rows heal the next time their app re-registers; no code backfill. register grew the client_id parameter (register_self passes None), and the Service struct carries the field without serializing it — /family's wire shape is untouched. The panel's Services section is now the merged table: key/name/address half, client id/redirect URIs/registered half, Rotate/Revoke on any client-bearing row (linked or stray), wordmark controls where they apply, the dash where a half is missing, and both add lines — a service and a client — under the table. section=clients lands there too, so the old address keeps working; the separate Clients section and its nav tab are gone. The landing's services home and /family readers are untouched. Tests: the register stamp (append, claim, refresh) at the store level, the route stamp across two registers, and the merged section's three row shapes — linked, credential-only, client-less — plus the alias. Browser-verified on a scratch server: section renders, a client made in the panel links to its service row after a real /family/register curl, and the confirm pop still overlays without growing scroll area. cargo test -p im-core (63) and -p im-web (37) green; workspace check with zero warnings.
Clients table fits its card; the show-once banner survives live ticksAhmet Kaan Gümüş · 01ad124
Clients table fits its card; the show-once banner survives live ticks Two live-panel defects, both reported at a 900px-ish viewport: The clients table scrolled sideways and cut the Revoke button off — the client id and redirect URIs are long mono strings that refused to wrap. Admin tables now let mono cells wrap inside their columns (the sessions fold's model for user-agent strings), and the clients table's registered date holds its line while its neighbors take the wrap. The show-once banner vanished within a breath: the create's own event tick scheduled the panel's in-place refresh, which re-fetched the shown URL after the shelf had handed the pair over — the morph wiped the banner it was still displaying. __imRefresh now holds while an auth-secret banner stands in the DOM; explicit navigation and refresh remain the ways the banner leaves, exactly as before. The banner render itself is now router-tested where the asset bundle is built (first render shows the pair, the replayed URL and a forged ticket show none).
Admin panel: OIDC client management (create/rotate/revoke)Ahmet Kaan Gümüş · 6d3e6a7
Admin panel: OIDC client management (create/rotate/revoke) im-core: list_clients, rotate_client_secret, and revoke_client join create_client — revoke deletes the registry row with every refresh token and app session minted under it in one immediate transaction; user sign-in sessions stay. im-web: a Clients section in the admin panel — list, add (name + whitespace/comma-separated redirect URIs, as loose as the CLI), and per-row rotate/revoke as the confirm disclosures. Create and rotate answer the house 303 whose shown= ticket picks the fresh pair off a short-lived shelf for exactly one render: the secret never rides a URL, a log line, or the database in plaintext. Revoke reads back ok=client_revoked; unknown ids read no_such_client. Events log client_created/client_rotated/client_revoked with the admin as actor and the client name as detail. CLI: rotate-client and revoke-client arms alongside create-client, server-stopped as ever. Router tests cover the panel lifecycle (non-admin refusal, show-once ticket, old pair dies on rotate, revoke kills introspection) and core tests cover rotate/revoke/list at the store level.
2026-09-08
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory moduleAhmet Kaan Gümüş · 339b198
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory module
The photo cache buster moves out of im's process memory (PhotoStamps)
into the users row, so every reader — this process, the next restart,
and every sibling app — sees the same one:
- users.photo_version (migration follows the guarded-ALTER precedent;
im-migrate's schema copy grows it in the same diff); set_photo and
clear_photo bump it in their commit.
- GET /photo/{sub} answers a strong ETag "p{version}" with a 304 on
If-None-Match, and caches immutable ONLY when the URL's ?v= names the
current version — the bare URL an app fetches revalidates (no-cache).
- /directory entries and POST /introspect answers gain photo_version;
DirectoryMember is one shape for the JSON and the stream.
- App.live carries LiveEvent { Tick, Profile(DirectoryMember) }: the
browser /live keeps its anonymous data:{} tick and adds a
{"kind":"profile","sub"} frame; new GET /directory/live (Basic
app pair) streams retry hint, keep-alive comments, and event:profile
rows. notify_profile fires after every user-mutation commit: photo
upload and delete, admin email edit, disable/enable, invite
acceptance, confirmed email change.
- im-client gains a directory module: DirectoryClient (roster, photo,
live stream with a hand-rolled SSE parser), DirectoryEvent, and
spawn_sync's full-pass/stream loop with 1s..30s backoff and resync.the users table's email edit learns the fold, and the address card moves behind the password: the edit's popover was a guest in a scroll box — absolute against a table the panel scrolls, so on the lower rows the form hung below the clip and the actions stopped matching the panel's rhythm — so the button leaves the row entirely and the form folds under the person, a quiet 'Edit address' summary beside the sessions count in the same in-flow strip, opening in normal flow where nothing can clip it, while the destructive confirmations keep their popovers (short, they always fit); and the self-served address change leaves the landing's profile, which is what a person reads, for the password section, where the account's other keys already live — form, pending line, and every redirect follow, profile back to identity and counts aloneAhmet Kaan Gümüş · dec57cfBrowse files
an address is fixable at last, from either side of the door: the admin panel's users section grows a direct email edit on every row — applied outright, because an unreachable mailbox is exactly what the rescue is for, and email is contact metadata, not a key, so the id stays and sessions, app tokens and OIDC claims read the new address on their next read — while a person asking on their own account, from the landing's profile card, must be vouched for at both ends: one confirmation mail to the address being left and one to the address being gained, the change applying only when both mailboxes click, either order, each link single-use on a reset-length clock, the gained address re-checked for another owner at the moment it applies; the pair lives in a new email_changes table mirrored into im-migrate, a fresh ask retires the pair before it, and the confirm card is a POST — never a link a mail scanner could pre-fetch — that any mailbox holder can press, signed in or notAhmet Kaan Gümüş · c5b40edBrowse files
a person's sign-ins are capped by the panel's new per-user ceiling: create_session, already the one door every login walks through, keeps the newest max_sessions live rows and revokes the overflow in the same critical section as the insert — newest-first with a rowid tiebreak so the cut is deterministic and the fresh login never evicts itself, expired rows holding no slot — and the cascade already written for revocation takes the overflow's app sessions and refresh tokens down with it, so the oldest device is truly logged out, not just the cookie ignored; the ceiling defaults to five, clamped at one, set from the admin panel's settings card as 'Sign-in sessions per user'; and every person can now see their connected apps: a new apps tab on the signed-in landing lists the OIDC clients holding live grants — name, client id, grant count, last connected — grouped per client from list_connected_apps, empty-noted when nothing is connected, everything user-or-app-controlled escapedAhmet Kaan Gümüş · 5862316Browse files
the family maintains its own addresses: services rows carry an owner, im writes its own row from issuer on every boot, and a sibling writes its own over the new POST /family/register behind the same client pair as GET /family — a key nobody holds is appended or claimed keeping the admin's name, the same app's next boot moves the address only, another app's key is a 409 — while the admin panel keeps names and order but can neither remove nor re-point a row an app keeps, since the next boot would undo it; the seed stays first-boot-only and the toml comment says soAhmet Kaan Gümüş · e759615
the family maintains its own addresses: services rows carry an owner, im writes its own row from issuer on every boot, and a sibling writes its own over the new POST /family/register behind the same client pair as GET /family — a key nobody holds is appended or claimed keeping the admin's name, the same app's next boot moves the address only, another app's key is a 409 — while the admin panel keeps names and order but can neither remove nor re-point a row an app keeps, since the next boot would undo it; the seed stays first-boot-only and the toml comment says so Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE
the family's writes move behind the admin door: the Services card on the landing is read-only for everyone — cards and trio, nothing else — and the editing grows up into the admin panel as its own section beside Users, a table of key, name and address with the panel's own rows, edit disclosures, reorder arrows and confirm-guarded removals, posting to /admin/services_* behind the same require_admin as every other panel write; the landing's private gate and its /services/* routes go, and an empty family hides the card entirely, the panel being where one gets seededAhmet Kaan Gümüş · faf2886Browse files
2026-09-07
Admin tables scroll inside their own wrapper, not the whole card: the logs wrap generalizes to .admin-table-wrap around every admin-table (users, per-user sessions, logs), gaining overflow-x auto while the card's overflow-x goes away, so on a phone the heading, filters and invite row stay put while the table's action column scrolls into reach — and the invite form wraps, its email input holding a 220px floor instead of squishing to nothingAhmet Kaan Gümüş · fbf69caBrowse files
2026-09-05
The role picker's caret skin narrows to the native select so the themed trigger stops doubling it, and the logs table wraps in a viewport-capped scroller — a stale or missing page-size fit can no longer push rows past the fold, and a window resize re-opens the fit's reload budgetAhmet Kaan Gümüş · 6c367aeBrowse files
Logs page size fits the window — measured from a real row, re-measured as the geometry moves, sized so the page never needs a scrollbar; admin bar top-anchors at a fixed lineAhmet Kaan Gümüş · 02a64a4Browse files
Selects wear izlek's themed dropdown — trigger, portaled panel, keyboard and panel search — and the logs filter row gains a live search box that narrows detail, actor and kind as you typeAhmet Kaan Gümüş · 7756871Browse files
Logs filter by kind, actor, day range and direction behind dropdowns, and page by cursor with a position note; composing mail moves to its own tab; the admin bar holds the landing's lineAhmet Kaan Gümüş · 1d5ec7dBrowse files
2026-09-04
Landing reads as sections behind a tab row — profile, sessions, preferences, password — so a window holds the whole page; the admin panel's account tab folds into it, and admins can post a notice to one person or everyone from the mail sectionAhmet Kaan Gümüş · 8929bd1Browse files
Per-user preferences from iz: theme (dark/light) and interface (instrument/ledger) stamped on the document, Turkish beside English throughout, password change for every signed-in userAhmet Kaan Gümüş · b5a021dBrowse files
2026-09-03
feat: password reset, rate limiting, policy settings; fix: connection mutex, row alignmentAhmet Kaan Gümüş · 6099ac7
feat: password reset, rate limiting, policy settings; fix: connection mutex, row alignment - Password reset: /forgot asks with one neutral answer for every address; the newest link is the only live one (minting retires the rest), redeeming spends the link, swaps the hash and revokes every session in one move. Reset links are never shown on screen — mail or nothing. - Sign-in rate limiting: a rolling hour of failures per address (and per account for the second factor) against a panel-set ceiling; a success wipes the slate. Blocked doors answer 'too many tries' without saying which step refused. - New Settings section: invite days, session days, second-factor window, reset-link minutes, failure ceiling — the constants the code shipped with, now the panel's. - fix: every database access now holds the connection mutex (iz's pattern). Concurrent requests — an SSE refetch against a posting form — panicked turso's write lock; found by the browser drive, swept repo-wide. - fix: the confirm disclosure's summary now renders at button height next to real buttons. Verified: suite 41 green incl. single-active-link and limit-block/clear contracts; browser-driven — Settings saves, 2 failures then 'too many tries', dead reset link redirects to the ask with the refusal named, concurrent write+3 reads answer 200 with no panic, and the action row measures 32px across Disable/Sign-out/Delete.
feat: confirm disclosures, split From name, and the live channel — iz parityAhmet Kaan Gümüş · 794c3a4
feat: confirm disclosures, split From name, and the live channel — iz parity - Row actions are two-step disclosures now (iz's confirm-details idiom): Disable/Enable and Delete open a panel naming the cost, and only the button inside it acts. No script required; outside-click/Escape closing rides the live script. - The sender's From splits into name + address like iz's; the header is built from the two, never hand-typed as one string. - The live channel, ported from iz: /admin/live SSE ticks (no data on the wire, ever), a 50-minute window so reconnects re-authenticate, and a shutdown watch so one open tab per admin cannot stall a restart. The client refetches and swaps the panel column, suspending while a field has focus. Every event log ticks it, so Users and Logs update the moment anything happens — including the mail chip after a save's background probe. Verified: suite 39 green; driven with two tabs — an invite's row and an accepted member appear without a reload, Logs grows 21→22 on a triggered check, and Delete needs its confirm step.
feat: pending invites in People with Invalidate; account deletion; colored mail chipAhmet Kaan Gümüş · 5e196bf
feat: pending invites in People with Invalidate; account deletion; colored mail chip - The People table lists outstanding invites beside members — address, 'waiting · until <day>', admin flag — with Invalidate, which kills the link immediately. The row carries the token's digest, never the token. - Delete joins Disable and Sign-out: removes the user, their sessions and every app token outright. Disable stays the reversible door; the admin's own row carries neither, as before. Delete wears the danger ink. - The Mail section's standing is iz's colored chip now: muted until checked, positive green 'connected · N ms' on a pass, danger-tinted 'refused' with the server's own words under the form. Verified: suite 39 green; driven in the browser — invite appears as 'waiting' and vanishes on Invalidate, the refused chip renders in the danger tint, Delete removes the account (banner + row gone; session removal covered by the core test).
feat: sender check, ported from izlek — probe without sending, standing on the panelAhmet Kaan Gümüş · f464e35
feat: sender check, ported from izlek — probe without sending, standing on the panel - 'Check connection' dials the server and stops before sending: connect, TLS, hello, AUTH, NOOP, hang up — lettre's test_connection under a 15s outer timeout, which izlek measured as necessary because lettre's own timeout does not catch a socket that accepts and then goes quiet. - The probe's verdict is recorded (at, ms, error) and the Mail section shows it as a standing line: NotConfigured / Unchecked / Connected with the handshake's milliseconds / Refused with what the server said. - Saving settings wipes the record, so 'Connected' can never outlive the settings it proved; a save also re-probes in the background. Verified: suite 37 green; driven in the browser — save triggers the background probe, the standing line shows the refusal with the server's own words, the button re-probes and both paths log to the event ledger.
feat: Account tab with change-password; invite row to izlek's idiomAhmet Kaan Gümüş · 0134def
feat: Account tab with change-password; invite row to izlek's idiom - New Account section (first tab, like izlek's Profile): change password with current-password proof, the invite screen's rules, and the walk-away new=old refusal. Every other session dies; the asking browser stays in. - The invite row drops the bare checkbox for izlek's member-invite idiom: email input, member/admin role select in the same field skin, and an Invite button — all three at one control height on one baseline. Verified: suite 36 green; driven in the browser — invite row measures 36px across input/select/button, wrong current password is refused by name, a change keeps this session and logs password_changed.
fix: STARTTLS for non-465 ports, 587 default, real mail errors on the pageAhmet Kaan Gümüş · 993ef22
fix: STARTTLS for non-465 ports, 587 default, real mail errors on the page
- The transport was always implicit TLS (relay()); on 587 the server waits
for plaintext EHLO + STARTTLS, so every send failed with 'something went
wrong'. Now 465 wraps, everything else STARTTLS-upgrades.
- Unset port reads as 587, not 465.
- A failed test mail shows the transport's actual reason under the banner
instead of the generic refusal.
Verified: full suite (34) green; driven end-to-end in the browser — port
field shows 587, saved settings persist, failed test banner shows the real
error ('failed to lookup address information: No address associated with
hostname').feat: promote/demote CLI for migrated users; invites refuse existing accountsAhmet Kaan Gümüş · bfb4aaf
feat: promote/demote CLI for migrated users; invites refuse existing accounts - im-web promote|demote <email>: the admin flag for accounts that already exist — the migration path's way in, since nobody migrated is admin - create_invite refuses an address with an account at creation time (was: failed at acceptance); the panel shows email_taken, the CLI says to use promote instead Verified: full workspace suite (34 tests) green.
feat: server-side sessions with instant revocation, admin panel, sealed mail settingsAhmet Kaan Gümüş · 963c897
feat: server-side sessions with instant revocation, admin panel, sealed mail settings - app_sessions table: opaque tokens introspected per request against im; no token-validity window — an admin revoke or a disabled account is dead on the very next call - sessions::revoke_user_sessions cascades central sessions, refresh tokens and app sessions; disable also revokes - POST /introspect (RFC 7662); token exchange carries an app_session alongside the OIDC tokens; im-client drops its refresh-token logic for it - /admin panel: People (invite, admin flag, disable/enable, sign out everywhere), Mail (SMTP in the settings table, password sealed under im.key — deployment facts stay in im.toml, secrets never), Logs (audit events: invites, enrolments, logins, revocations, exchanges) - CLI: im-web invite <email> [--admin], im-web revoke <email> - events + settings tables; login/logout/TOTP/invite/exchange audit logging Verified live: admin invited user2 from the panel, user2 enrolled and entered the demo app silently; admin revoked user2 and the very next demo request was signed out (no ghost window); logs show the whole trail.