forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/in-web/src/server.rsClear filter

2026-09-25

in: drop the rate-limiting claim from client_label's docAhmet Kaan Gümüş · 218b775
in: drop the rate-limiting claim from client_label's doc

No limiter calls it; the doc promised one. The helper itself is the family's shared contract and stays.
in: read the client address from client_ipAhmet Kaan Gümüş · 5991bfb
in: read the client address from client_ip

topcoat 0.9 reports the client through client_ip once one proxy hop is trusted. The old helper read the first x-forwarded-for hop from any peer, which a client can spoof.

2026-09-11

in-web: ignore syntactically invalid Range headers; back_to() validates RefererAhmet Kaan Gümüş · 6238797
in-web: ignore syntactically invalid Range headers; back_to() validates Referer

- parse_range: bytes=5-2 / bytes=-0 are not range sets -> header ignored
  (200), only well-formed-but-unsatisfiable keeps 416 (RFC 7233)
- back_to: absolute/protocol-relative/backslash Referers fall back to the
  safe target instead of riding into Location
in: live session-revocation logoutAhmet Kaan Gümüş · dcf889a
in: live session-revocation logout

- Topic::Revoked(user_id) on the store bus; /api/live emits it to the killed
  user's own connections (may_hear own-id) then ends the stream
- set_user_disabled announces Admin+Profile+Revoked (own admin path included)
- identity_sync: directory revoked{sub} -> Profile announce (refetch-morph;
  revoke-except survivors never false-kicked); disabled mirrored both ways
- im-client pin -> 5efbd60 (DirectoryEvent::Revoked, member.disabled)
- client: revoked frame or /api/me 401 on SSE error -> hard navigate to /
- new GET /api/me (204/401, 500 on store failure)

2026-09-09

2026-09-08

2026-09-07

feat(share): the address stays reachable, shared objects wear their markAhmet Kaan Gümüş · a6fa637
feat(share): the address stays reachable, shared objects wear their mark

The share modal's live-link row stopped masking: creation now seals the
minted token with the in.key (the same XChaCha20 envelope the session
cookies use) onto a share_token:{id} setting row — the database still
carries no plaintext token, so a db copy alone yields links nobody can
re-view — and the modal re-derives the full address from it: readonly
input, Copy button, the row's own revoke beside. The settings Share
links panel wears the same row markup, so every link is seeable and
copyable from there too. Links minted before the sealing (or after a
lost key) keep the masked value with a note to revoke and re-mint; a
revoke deletes the sealed row as part of revoking, and a failed delete
reports the revoke refused so a retry finishes it.

The drive marks what it shares: a Shared chip rides the name of every
file and folder with a live link or a person grant
(Store::shared_target_ids decides liveness the one way
resolve_share_link does), search hits included, trash untouched.
feat(settings): sections page through a rail, the server address is the admin'sAhmet Kaan Gümüş · 1e00f66
feat(settings): sections page through a rail, the server address is the admin's

Settings stops stacking everything on one page: a rail — Profile and
Share links for every reader, Everyone and Server address for admins —
renders one section at a time off ?section=, mirroring iz's settings
shape (the stylesheet already knew .settings-sections; desktop column,
phone strip). Only the section on show pays for its rows, and every
form lands back on its own section, no Referer needed.

The server address is now editable on the running install: the Server
section shows the effective origin and a form that stores base_url in
the setting store — the stored value wins, empty clears back to the
config file's base_url, then the bind. The same validator the boot
runs (Config::validate_base_url, extracted from parse so boot and form
refuse identically) guards the form; every link builder (banners, the
share modal) reads the stored setting through share_origin, so a save
is in the next minted link at once.

2026-09-06

feat(upload): quota is the only size limit; interrupted uploads resumeAhmet Kaan Gümüş · 3cd7a8e
feat(upload): quota is the only size limit; interrupted uploads resume

The per-file upload ceiling is gone — field, config key, instance
setting, refusals and all: an account may push one file as large as
its free quota, which the store already enforces at session start and
again at finish. The admin settings panel loses the upload-limit row,
config/in.toml the max_upload_bytes key (an install still carrying it
just reports it among the ignored keys).

Chunked uploads now resume: GET /api/upload/{id} answers the session
with the indexes already staged (read off the chunk files, like the
received-byte count), and the drive script keeps the session id in
localStorage under the file's folder+name+size — a cut upload retried
with the same file skips what already landed. A chunk that meets a
network cut is retried in place with a cancel-interruptible backoff,
an expired session restarts the walk once against a fresh one, and a
refused finish keeps the key so the next pick resumes into another
finish. Cancel still aborts and drops the key.

2026-09-05

feat(ui): move picker modal, Download in the Options menu, previews don't countAhmet Kaan Gümüş · 5cc7c91
feat(ui): move picker modal, Download in the Options menu, previews don't count

The Options menus' inline destination select becomes a Move item that opens
the house modal: the drive root and every live folder as one row each, a
folder's own subtree never listed. back_to and __inCloseModal strip the
one-shot move= pair, so a posted move closes the picker on success and
refusal alike. The destination tree fetch goes lazy with the select gone.

File rows gain a Download item — /file/<id>?dl=1 with the download
attribute, so the soft-nav handler leaves the click to the browser.

/file/<id> counted every byte serve, the viewer's inline loads and media
range probes included; looking is not downloading, so only ?dl=1 serves
count now (a resumed download still counts once, on its first chunk). The
public-link path already counted downloads only. Regression test:
previews_do_not_count_as_downloads.
feat: auto-postfix names, aligned rows, human-unit limits, styled viewerAhmet Kaan Gümüş · 4cd43f8
feat: auto-postfix names, aligned rows, human-unit limits, styled viewer

- names: nothing refuses on collisions anymore — folders and files take
  'name (2)' / 'name (2).txt' across create, rename, move, restore and
  upload finish; StoreError::NameTaken and Refusal::NameTaken removed
- rows: hard single-line geometry (name ellipsises, details and buttons
  nowrap); Options menu anchors opaque above rows — the panel corner-clip
  was amputating it; Empty-the-trash wears the house danger button
- pages: drive/trash/shared/viewer/settings move to the wide stage
- settings: upload limit vs storage quota are unmistakable — help line,
  'Current limit: 1.0 GiB', MiB/GiB unit selects, no raw-byte inputs;
  members table columns can no longer collapse addresses vertically
- viewer: media fills a centered 960px house card, Back/Download head
  row, details panel aligned to the card
- upload status lives in the persistent corner stack on every page and
  keeps updating across soft navigations; fix progress-row selector that
  threw on numeric data-upload values and killed uploads
feat: upload progress, admin limits, viewer pages, unified lists, sort/filterAhmet Kaan Gümüş · e806d74
feat: upload progress, admin limits, viewer pages, unified lists, sort/filter

- upload: real progress bar for all uploads (XHR for small, per-chunk
  for big); page-wide drag-and-drop with drop overlay; persistent
  dismissable status cards that survive live swaps; failure cards name
  the reason; refused uploads no longer cry 'Upload complete'
- fix: /api/upload/* answered serde's {"Ok"/"Err"} while the UI read
  .ok/.err — chunked uploads (>8MiB) could never complete from a browser
- settings: admin-defined instance upload limit (DB > in.toml > 1GiB),
  enforced at /api/upload/start and multipart /files; BodyLimit demoted
  to memory guard
- files: /view/{id} viewer page (audio/video/pdf/text/image) with
  download gating; per-type icon chips instead of one glyph for all
- store: duplicate folder names allowed (create/rename/move/restore);
  file.download_count with range-aware counting; instance setting kv
- drive: row actions merged into one Options menu; rename form buttons
  align to the Options slot; rows show uploaded date, size, downloads
- trash/shared: single interleaved list each (public card too), aligned
  buttons, details; sort/kind/search toolbars on drive, trash, shared
  (iz-style GET forms, no-JS-safe)
feat(ui): one explorer-style list, search left, no em-dash copyAhmet Kaan Gümüş · 1eb1a69
feat(ui): one explorer-style list, search left, no em-dash copy

Folders and Files stop being separate panels: the drive is one list,
folders first then files, like a file manager — one compact panel, no
heads or chips, one empty state ("This folder is empty. Press + to
create or upload, or drop files on this page."). Search results merge
the same way. File rows follow the folder edit-mode pattern (Rename
link swaps the row into its pre-filled rename form via ?edit=) instead
of a permanent inline input, and row actions pack onto one line.

The search box moves to the left of the bar, next to +.

User-visible copy no longer uses em dashes anywhere: welcome title,
empty states, link-once notice, view-only label, upload refusals.

2026-09-04

feat(ui): server-synced theme and language, page skeleton sweepAhmet Kaan Gümüş · 9089ea0
feat(ui): server-synced theme and language, page skeleton sweep

Preferences follow iz's model exactly: user.theme (light/dark) and
user.language (en/tr) join user.ui in the row (migration 0003), one
preferences form on the settings page saves all three through
set_preferences, and the layout emits data-theme/lang/data-ui from the
signed-in user (Accept-Language fallback signed-out). set_user_ui and
/api/settings/ui are gone — one route, one form, like iz.

Skeleton defect class swept: /shared, /trash, /search and the public
folder link all put content straight into settings-shell (a flex row
meant for rail+stage), rendering as an overlapping strip — user
screenshots. All four now nest in settings-stage with panel structure;
a test per page pins the wrapper.
feat(ui): per-user instrument/ledger density, rebuilt settings pageAhmet Kaan Gümüş · d3811f1
feat(ui): per-user instrument/ledger density, rebuilt settings page

The settings page put bare sections straight into the shell's flex row
and panels without panel-head, so labels overlapped values and three
panels crammed into one line (user screenshot). Rebuilt on iz's
skeleton: settings-shell > settings-stage, panel-head/panel-body,
field/field-label rows, member-table for the admin list.

Density follows iz's preference model: user.ui column (0002, default
ledger), set_user_ui validates the offered values, root_layout emits
data-ui from the signed-in user, and a house dropdown on the settings
page saves it through POST /api/settings/ui (BadUi refusal otherwise).
Instrument's fixed 40px filterbar becomes a floor so the drive's
create-folder form fits; the form itself goes inline in the bar.
feat: drive storage with im OIDC login, sharing, quota, trash, thumbnailsAhmet Kaan Gümüş · 4118043
feat: drive storage with im OIDC login, sharing, quota, trash, thumbnails

Initial build of in, sibling of iz and im on the same stack (topcoat
0.6.2 server-rendered UI, turso metadata store, file bytes on the
filesystem).

- in-core: folder tree, files, share links + per-user grants
  (transitive, most-permissive-wins), per-user quota, trash with
  purge horizon, chunked upload sessions, image + ffmpeg-gated video
  thumbnails, search, reconcile/migrations discipline from iz
- in-client: vendored im OIDC relying party (authorization code +
  PKCE, introspection per request), strict next validation, cookie
  kept on transient introspect failure
- in-web: drive browser, small + chunked upload with progress,
  Range-capable downloads, public /s/{token} share pages with
  previews, trash/search/settings surfaces, SSE live updates,
  En/Tr i18n, iz house style
- deploy workflow adapted from iz (dist profile, asset bundle guard,
  /healthz build-sha check)