forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/im-client/src/directory.rsClear filter

2026-09-11

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.
Timezone setting: im serves it, the directory carries it, iz will read itAhmet Kaan Gümüş · 509d0e7
Timezone setting: im serves it, the directory carries it, iz will read it

users gains timezone TEXT NOT NULL DEFAULT 'UTC+03:00' — migration-
guarded ALTER, the DEFAULT backfilling every existing row to +3. The
value format is iz's settings select ported verbatim: fixed offsets
'UTC-12:00' through 'UTC+14:00', zero-padded hours, 'UTC' for zero —
both sides must speak identical strings over the directory, so im does
not invent a spelling. User, its three queries (verify_login,
user_by_id, list_users — timezone appended, no index shifts) and
set_preferences expose it.

The introspection answer and DirectoryMember — the web type and the
im-client SDK type — carry timezone; the SDK field defaults to
'UTC+03:00' so rows mirrored before the field existed still read.

The landing's preferences pane gains the TIME ZONE select under the
three it had; the save validates against the option list (bad_zone
otherwise) and — because the timezone rides the directory — announces
the row as a profile frame, the way a name or photo change does.

Tests: default + set-and-read-back at the store, the introspect field,
and the route contract — /directory carries the stored zone, the live
bus announces it, a value outside the select's list is refused whole.
Browser-verified on the scratch server: 27 options (UTC-12:00 … UTC,
UTC+14:00), the select saves and re-renders the stored zone, and
/directory answers with it. Workspace check with zero warnings.

2026-09-08

Verify-squared: drop dead test assignment; end-to-end profile-frame testsAhmet Kaan Gümüş · 3d75261
Verify-squared: drop dead test assignment; end-to-end profile-frame tests

- im-client: the split-frame parser test initialized 'events' before
  the loop reassigned it — a value-assigned-never-read warning in the
  test profile. The initialization is gone.
- im-web: two router-level tests pin the emit path end to end. They
  open GET /directory/live through the router, read the body's data
  stream frame by frame (topcoat Body::into_data_stream, Box-pinned),
  drive POST /api/profile_photo and POST /api/delete_profile_photo
  through the router with the session cookie, and assert the
  event:profile frame arrives carrying sub and photo_version:2 —
  upload and removal halves both.
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.