Commits
2026-09-11
in: grant-scoped read-only folder browse + honest view-only copyAhmet Kaan Gümüş · 78bdc8c
in: grant-scoped read-only folder browse + honest view-only copy - /drive?folder=<id> opens read-only for grantees (granted_folder gate on can_see(Folder) incl. live ancestors; missing/ungranted/trashed = the same 404, no existence leak; crumbs stop at the granted root; no write affordances; /view and /file keep their own grant checks) - view-only copy tells the truth: viewing in the browser; anything viewable can be saved (modal, public cards, /shared, settings, view chrome)
in-web: expired share links no longer suppress the create formAhmet Kaan Gümüş · f31aab3Browse files
in-web: cached family probes, per-page titles, avatar negative cacheAhmet Kaan Gümüş · aa7d6b2
in-web: cached family probes, per-page titles, avatar negative cache
- health.rs: shared LazyLock reqwest client + 30s TTL probe cache (family_mark)
- document_shell takes title; title_key_of maps path -> i18n key; soft-nav
swap updates document.title; share pages get per-page titles
- pages.rs: landing error uses lang(cx) Accept-Language fallback, not hard En
- files.rs: Range header unwraps -> valid static fallbacks
- avatar.rs: 404 misses get private max-age=300 negative cache
- layout.rs: Profile menu deep-links {issuer}/people/{sub}; redundant
SELF_KEY re-filter removed
- i18n.rs: AllUsers duplicate key folded into AdminPanel; QuotaOf normalized
to '/' in both languages2026-09-09
the share modal keeps its height while the people filter types: the first keystroke on the picker now floors the panel at its full unfiltered height, because the rows the filter hides were shrinking the panel — and the modal under it — with every letter, jumping everything below; clearing the filter returns exactly that height, a panel reborn through a morph re-render locks anew at its own measure, and the no-script page (no filter, no lock) is untouchedAhmet Kaan Gümüş · f937d23Browse files
the media path stops transcoding: the preview-derivative pipeline is gone — a video serves its stored bytes under its honest sniffed mime everywhere, and a browser that cannot decode them meets a house-styled error instead of a silent stall. The player script now names two failure shapes dead: the media element's own error (which does not bubble, and may predate the wiring), and the silent one a demuxer-that-parses-but-cannot-decode never leaves — not even metadata, five seconds of still-loading is that stall, the exact shape the derivative pipeline was built to fix (chromium demuxes mpeg2-in-mp4 and stalls forever without erroring; firefox did the same to aac-in-webm). The note rides both player layouts on the viewer and the public card, MediaWontPlay in English and Turkish, and downloads stay the original bytes byte for byte; previews/<id> is deleted from every purge path, swept nowhere at boot anymore, a one-time remove_dir_all at store-open clears what older builds left, and the mp4 box-walk family only the pipeline used died with it. The share modal's people picker wears the app's own language now: a filter field (which doubles as the no-script typed-address fallback) over the Everyone row and the candidates, the row is the control — the checkbox hides, a checked row tints like every other selected row and turns up its check glyph, and twenty people are one substring away; add_share skips the blank email pair a checkbox-only submit carries beside the checked values, and the script benches the filter for exactly the submit event so half-typed text never posts. Verified live in a real browser against a seeded server: both error states machine-captured, filter/selection/everyone/no-match driven by hand, a real two-person submit granting both with the remove rows to show for it, and the bench's disable-inside-the-submit-event proven from the page's own world. Rides along the Connection card's last-pass http assertions found uncommitted in the tree.Ahmet Kaan Gümüş · ad66f40Browse files
a downloaded video previews in every browser, not just the lenient ones: an mkv that sniffs as webm but carries tracks webm never blessed (vp9 with aac audio — the shape every tiktok downloader makes) played in chromium and stalled silently in firefox's stricter demuxer, so the media route now builds a legal preview beside the file on first view — vp9/8/av1 keeps its bytes and the audio becomes opus, h264 remuxes to faststart mp4 — cached under previews/, served to the player with ranges, deleted with the file in every purge path, while downloads keep the original bytes untouched; a matroska is only called webm now when its tracks say so, and one length-read-after-adopt bug that served an empty first response died in the testsAhmet Kaan Gümüş · 3134bfaBrowse files
2026-09-08
a link from before addresses could be re-shown stops pretending: the legacy row no longer wears a masked field that reads like a copyable URL — it states the fact and offers one Mint-a-new-link button (remint revokes the dead link, mints a fresh one carrying the permission, password and any still-future expiry, and lands on the copy-once banner where the full address wraps and one click copies it); also rides along uncommitted work found in the tree from the identity follow-up (directory via the im-client SDK, provision_user's admin+photo_version columns, avatar version-etag tests) — it compiles and the whole http suite passes with itAhmet Kaan Gümüş · 95114ecBrowse files
the share link stops hiding: the live row shows the whole address as wrapping text (the family's member-link shape, no more clipped one-line field) and one click on it — or the button — puts the exact URL on the clipboard, while a legacy row, whose address is gone by design, keeps its masked field and stays unclickable so nothing useless lands on the clipboard; the people picker stretches to the modal's full width with the permission select and Share button on their own right-aligned row below, instead of a left-pinned panel with controls floating beside it — one flex-wrap was the whole differenceAhmet Kaan Gümüş · e90391dBrowse files
the sweep leaves nothing dead behind it: with every purge path guarding under the write lock, the unconditional TrashGuard variant and the shared page's unused download counter go — the tree builds with only the five long-standing sniff.rs notices that predate this workAhmet Kaan Gümüş · 48c1debBrowse files
the share picker takes a whole crowd at once: the one-person select becomes a checkbox list with an Everyone row that checks every candidate in one click, one Share posts every checked address with the one permission chosen, and the typed-email fallback stays for the empty directory; the shared page's owner column widens to take the name it truncated (a Muhammet Özdemediroğlu no longer dies at Muhammet Özd…), the legacy-link note moves out from between the link field and its revoke button into its own full-width sentence under the row, every dropdown lands on the iz house style (chevron scoping, status-trigger padding, panel and menu radii and insets, viewport-capped panel width, the >7-option search rule) — and the enhancement itself no longer dies on the first select whose form has no submit button: the missing var declaration aborted the whole sweep, which is why theme, language and the kind filters were still showing the browser's own popupAhmet Kaan Gümüş · e23224bBrowse files
2026-09-07
fix(web): the viewer's back link names its origin — shared, not just the driveAhmet Kaan Gümüş · ef74392Browse files
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.
feat(web): the public half joins the house — shell, player, domains, fast boots, phonesAhmet Kaan Gümüş · 16e8c67
feat(web): the public half joins the house — shell, player, domains, fast boots, phones The /s pages leave the bare-fragment era: every answer (card, folder, gate, dead link) now wears document_shell — the exact head root_layout pairs around pages, extracted once and delegated to — so a stranger's first sight of In is the app, not unstyled markup. The card's media kinds play through the house player itself: files.rs gains one media_player (markup + bar + script) that the signed-in viewer and the public card render verbatim, fed by a new ?media=1 stream — inline, range-capable, gated by password and liveness like every other answer, never counted as a download, granted to view-only links the way the signed-in viewer grants preview. Share links now say the deployment's name: base_url in config/in.toml (mirroring iz's key) feeds public_origin(), which only the share URLs and copy-once banners read — redirect_uri and the bind never move. Restarts stop walking the disk before answering: open() keeps only the structural work, and the boot sweeps (expired uploads, orphaned files, trash purge) run as a background task after bind, with the orphan sweep decided under BEGIN IMMEDIATE so a racing upload can never lose its bytes — the deletion set is unchanged, only its timing moved. And the whole thing now fits a phone: the media bar wraps with a full-width seek, the share modal's rows fold, public cards lose their desktop air, titles wrap — all inside the existing 620px breakpoint, desktop untouched.
feat(share): public links may carry a passwordAhmet Kaan Gümüş · c36b77c
feat(share): public links may carry a password
The create-link form gains an optional password; a link minted with
one keeps only its Argon2id hash (params mirrored from im) on the row
— migration 0005 adds share_link.password_hash, reconcile backfills
NULL. A visitor opening such a link meets a gate instead of the card,
and every branch behind it (download, thumb, folder browse) stays
shut until POST /s/{token} answers the right password; then an
in_link_<id> cookie (Path=/s, HttpOnly, SameSite=Lax, Secure on https
issuers) carrying sha256(token:hash) keeps that browser inside. The
wrong password re-renders the gate with a note and sets nothing; a
revoked or spent link dead-ends even an unlocked browser, the same
answer a wrong token gets. Links minted without a password are
untouched.feat(share): the modal offers im's directory as a dropdownAhmet Kaan Gümüş · 83f47c5
feat(share): the modal offers im's directory as a dropdown Opening the share modal fetches im's /directory (client credentials, new in_client::directory), mirrors each member into a local user row via provision_user, and replaces the typed-address field with a select of the shareable people — owner, current grantees and locally-disabled accounts filtered out. A directory that does not answer, or answers nobody new, leaves the typed field exactly as it was. The add handler's contract is untouched: the option values are the addresses it already takes.
feat(ui): every section names itself — Drive, Trash, Shared with meAhmet Kaan Gümüş · 76a4897
feat(ui): every section names itself — Drive, Trash, Shared with me The drive led straight into its filterbar while trash and shared named themselves; the switch between them moved the content. All three now carry the same settings-title over the same filterbar, one geometry on every section page.
2026-09-06
fix(ui): drop the page titles over the trash and shared listsAhmet Kaan Gümüş · d64cec8
fix(ui): drop the page titles over the trash and shared lists The drive leads straight into its filterbar; /trash and /shared carried an h1 over theirs, so leaving the drive shifted the whole listing a title-height down. The topbar already names the section — the titles, and the now-unused Trash and SharedWithMe keys, go.
feat(ui): trash and shared wear the drive listingAhmet Kaan Gümüş · 9e17fb4
feat(ui): trash and shared wear the drive listing One persistent listing across sections: the column head (Name / Size / Deleted-or-Changed / Downloads-or-Owner, labels sharing their values' right edge), hairline rows and the quiet ⋯ menu now render /trash and /shared exactly as /drive renders itself. Trash rows open nothing — the ⋯ holds Restore and Delete forever; shared rows are whole-row ways in with the owner and the grant's reach in the last cell. Empty states use the drive's glyph block, sizes render through the drive's human_size, and the per-row detail sentences are gone — the columns carry the facts.
feat(ui): filterbars split — search leads left, listing controls hold rightAhmet Kaan Gümüş · 7950776
feat(ui): filterbars split — search leads left, listing controls hold right The drive bar packed everything from the left, leaving dead space off the +. The search form now carries the spring (margin-right: auto) in every filterbar, and the trash/shared bars lead with their search form like the drive does, so all three read the same: search on the left, sort/kind/+ on the right.
2026-09-05
feat(files): bytes stream off disk — plays start on the first frame, not the whole fileAhmet Kaan Gümüş · 4607f4a
feat(files): bytes stream off disk — plays start on the first frame, not the whole file Every byte serve buffered the whole file in memory first: a play waited for the full read, and a range probe re-read the file to slice it. The store now answers a clamped span as a 64 KiB-frame stream (file_stream), the row's declared size never trusted against the file on disk, and the byte routes serve it with an honest Content-Length — the signed-in route and the public link share bytes_response, so ranges answer 206 with a real span on both. Speed button: width fixed in ch at the ladder's longest label, so cycling stops moving the bar's other controls. Fullscreen: the vol/speed wiring had replaced the `var full` declaration, and the ReferenceError after the other listeners attached left the button dead — restored, verified clicking in and out. Measured on a 150 MiB file: full serve TTFB 28ms with RSS flat (previously a whole-file buffer), a 1 MiB tail range answers 206 in 30ms reading only its span, and the served bytes compare identical to disk.
feat: share modal, directional sort dropdowns, flat Options menuAhmet Kaan Gümüş · 73b13bc
feat: share modal, directional sort dropdowns, flat Options menu
- share: the per-entry surface is a Proton-style modal over the drive
(?share=kind:id), not a page — add-people row with access select,
who-has-access list with the owner marked, public-link section with
copy-once URL and a working copy button; /share/{kind}/{id} is gone
- sort: one dropdown whose options name the direction ('Name A–Z',
'Newest first', 'Most downloaded'...) on drive, trash and shared; the
separate ↑/↓ toggle and the → submits are gone (no-JS keeps a submit);
dd chevron now on every enhanced select, not just field-input ones;
no forced search box on the 8-option sort menu (data-nosearch)
- options menu: Delete/Move are flat menu rows instead of boxed buttons;
the drop-up panel is capped to the room on its side so it never
reaches over the topbar
- settings: the upload limit is one compact row inside Everyone —
label, current value, amount, unit, save — no stacked explainersfeat: share page, upload cancel, drop-up menus, single-border toolbarAhmet Kaan Gümüş · da9eb91
feat: share page, upload cancel, drop-up menus, single-border toolbar
- share: new /share/{kind}/{id} page (public link create/revoke with
copy-once banner, im-user grants by email with download/view-only),
linked from every row's Options menu; link rows name the target
instead of its id; can_download checkboxes honest — unchecked no
longer grants downloads (parse_flag absent=false, regression test)
- upload: every in-flight progress row has a cancel control — XHR abort
or loop stop + /api/upload/{id}/abort, works across soft navigations,
'Upload canceled.' card in the corner stack
- options menu: measure against the nearest scrollport, not the
viewport — the stage's content-height scroll area trapped the menu as
unpainted scrollable overflow; opens upward when downward is trapped,
no page movement when it fits
- toolbar: dd triggers and arrow submits no longer wear a second border
inside the field box; search label shortened to 'Search' so the
placeholder stops clipping
- settings: upload limit moved into the Everyone panel with a label and
single 'applies to everyone' notefeat: 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)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: 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)