Commit graph

1410 commits

Author SHA1 Message Date
mplorentz
d552b6f245 Merge branch 'flotilla-sph-adaptive-grid' of ssh://forgejo.lorentz.is:4201/matt/flotilla into flotilla-sph-adaptive-grid 2026-08-12 09:21:14 -04:00
Agent
521e611d6b fix: three bugs in computeUniformGrid sizing and scoring
1. Array-comparison bug (CRITICAL): 'key < bestKey' coerces arrays to
   comma-joined strings, so [1668,...] < [23,...] is TRUE ('1'<'2').
   Replaced with explicit numeric lexicographic compare (compareKeys).
   Root cause of @matt's report: n=2 @1920x500 picked 1x2 stacked with
   1668px overflow instead of 2x1 side-by-side fitting nearly exactly.

2. <MIN branch bug (CRITICAL): fillAspect < 3/4 computed tileW = rowH *
   TILE_ASPECT_MIN which ALWAYS exceeds widthLimit (the column width),
   producing tiles wider than the container. Fix: tileW = widthLimit;
   tileH = widthLimit / TILE_ASPECT_MIN (letterbox vertically, fits).

3. Missing horizontal overflow scoring: added hOverflow to the key
   (after vOverflow) as belt-and-braces guard.
2026-08-11 16:51:30 -04:00
mplorentz
957ab58956 Merge branch 'flotilla-sph-adaptive-grid' of ssh://forgejo.lorentz.is:4201/matt/flotilla into flotilla-sph-adaptive-grid 2026-08-11 16:40:31 -04:00
Agent
2aca6c5393 fix: add mx-auto to flex container for grid block centering 2026-08-11 16:35:17 -04:00
Agent
8bcc3ac918 fix: orphan centering — switch inner grid to flex-wrap + justify-center
CSS grid + mx-auto centers the whole block but not orphan tiles within
their row (e.g. 5 tiles @1685x1342, the 2-tile row was left-aligned).
Switched to display:flex; flex-wrap:wrap; justify-content:center with
explicit width/height on each tile wrapper. This naturally centers every
row, including orphan rows with fewer tiles.

The computeUniformGrid algorithm is unchanged — still uniform px tile
sizes with aspect flexing in [3:4..16:9].
2026-08-11 16:30:51 -04:00
Agent
4b1e209262 feat: uniform-size tile grid with flex-fill aspect (PR-C1 plan v2)
Replaces the Jitsi-style mixed-row layout (~190 lines: partitions,
mixed-size rows, per-row aspect, penalty scoring) with a simple uniform
grid (~25 lines): all tiles identical px size, aspect flexes within
[3:4 .. 16:9], column count chosen to maximize area via key ordering
(overflow < waste < aspect closeness < -area).

Key changes:
- computeUniformGrid / UniformTileGrid replaces computeTileLayout/TileLayout
- TILE_ASPECT_MIN widened from 9/16 to 3/4 per @matt
- CSS grid with explicit px column/row tracks replaces flex rows
- mx-auto centers the grid block; orphan rows have same-size tiles
  (never full-width giants)
- Outer measuring container always mounted (bind:clientWidth/Height);
  inner grid gated on tileGrid
- Each tile wrapper: overflow-hidden rounded-2xl (grid cell sizes it)
- 'default' tile variant keeps min-h-0 h-full w-full (fills grid cell)

Per @matt's approved plan v2: flex-fill single rule everywhere, no
portrait special-casing, no mixed-size rows, uniform tiles, centered
block.
2026-08-11 16:25:55 -04:00
mplorentz
b9a1f9c7ba Merge branch 'flotilla-sph-adaptive-grid' of ssh://forgejo.lorentz.is:4201/matt/flotilla into flotilla-sph-adaptive-grid 2026-08-11 15:44:03 -04:00
Agent
1b1e0169ff fix: two critical rendering bugs in mixed-size grid layout
Bug 1 — chicken-and-egg gating: '{:else if useMultiGrid && tileLayout}'
prevented the measuring container from ever mounting, because tileLayout
is undefined while gridWidth/gridHeight are 0, and the bind:clientWidth/
clientHeight are on the same div. Fix: always mount the measuring
container when useMultiGrid, gate only the rows with {#if tileLayout}.

Bug 2 — collapsed tile height: 'default' tile class lost aspect-video but
gained no replacement for intrinsic height. All children are absolutely
positioned (VideoCallTile 'absolute inset-0', profile fallback, badges,
label, pin button), so the div collapses to 0 height. Fix: add 'h-full'
to the default tile class so it fills the aspect-ratio wrapper.
2026-08-11 10:21:34 -04:00
Agent
d8dea9c4dd feat: Jitsi-style mixed-size tile grid sizing (PR-C1 rework)
Replaces the uniform grid-sizing helper (computeGridSize -> rows/cols)
with a Jitsi-inspired mixed-size layout algorithm (computeTileLayout).

Key changes:
- Tiles flex between 9:16 and 16:9 aspect ratio per row, matched to
  container dimensions
- Rows can have different tile counts (e.g. [2,1] for 3 participants,
  [3,2] for 5, [4,3] for 7)
- Last row with fewer tiles gets a wider (more landscape) aspect ratio
  while earlier rows stay more square-ish
- CSS grid replaced with flex rows; each tile's aspect-ratio set via
  inline style (no more hardcoded aspect-video)
- Container dimensions bound via bind:clientWidth/clientHeight
- Dead {:else} branch (always-true useMultiGrid) removed
- Overflow penalty, whitespace penalty, and balance penalty ensure
  reasonable layouts at all tile counts

Per @matt's PR review feedback: read jitsi-meet source
(react/features/video-layout/functions.web.ts,
react/features/filmstrip/functions.web.ts) for the tile sizing
approach.
2026-08-11 10:13:05 -04:00
mplorentz
1e2e4923c3 Merge remote-tracking branch 'origin/dev' into flotilla-sph-adaptive-grid 2026-08-11 09:44:19 -04:00
Jon Staab
8243f4d245 Defer rendering a chat room for a frame 2026-08-10 15:14:32 -07:00
Aditya Chaudhary
72ee0c9ed6 Reacquire mic after screen lock kills capture mid-call (#339)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-08-10 18:32:11 +00:00
Aditya Chaudhary
7dcc713ec2 Refine calls: accessible controls, mic level check before joining (#331)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-08-10 18:14:46 +00:00
Aditya Chaudhary
65c9eac5e5 Show new-messages badge in tab title when re-foregrounding (#332)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-08-10 16:16:30 +00:00
Jon Staab
b2f58b11c0 Fix touch target for space menu 2026-08-07 14:10:43 -07:00
Aditya Chaudhary
749989f56b Fix DM compose bar being hidden/cut off on mobile (#335)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-08-07 21:10:32 +00:00
Aditya Chaudhary
9c68f66c39 fix: replace mobile space menu popover with a bottom-sheet action menu (#330)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-08-07 21:05:17 +00:00
Jon Staab
85a4ba127a Add e2e tests 2026-08-07 13:11:12 -07:00
Agent
664a57d4eb feat: adaptive video grid sizing (PR-C1)
Add computeGridSize helper in call.ts that computes optimal row/column
counts for a video tile grid given tile count and container dimensions,
maximizing tile size while maintaining ~16:9 cells.

Apply via computed grid-template-columns/rows on the multi-grid path
(no-spotlight) in VideoCallContent.svelte, replacing the fixed
grid-cols-1 / grid-cols-1 sm:grid-cols-2 heuristic. The multi-grid now
handles all tile counts from 1 to 12+ smoothly.

- computeGridSize(tileCount, containerWidth, containerHeight) -> GridSize
- Container dimensions bound via clientWidth/clientHeight
- useMultiGrid: dropped the > 2 check, now !useSpotlightLayout
- gridStyle: computed grid-template-columns/rows string from gridSize
- Scope: multi-grid only, no spotlight/strip/breakpoint changes
2026-08-05 14:39:01 -04:00
Jon Staab
91a8995a98 Stop recommending relay.tools 2026-08-02 07:13:43 -07:00
Jon Staab
934f1cdf10 Optimize deriveUserItem, avoid double load of quotes 2026-07-30 09:50:41 -07:00
Jon Staab
2a5849afcb Fix tooltip z index 2026-07-29 17:30:59 -07:00
Jon Staab
9a80d059bb Migrate to new welshman 2026-07-29 15:52:13 -07:00
Jon Staab
d02e0ed56a Add hosting nav item 2026-07-29 15:49:59 -07:00
Jon Staab
b0ebb988f1 Bump version, update changelog 2026-07-29 14:49:46 -07:00
Jon Staab
954a11b923 Fix nav safe are inset, qr code reactivity 2026-07-29 11:00:26 -07:00
Jon Staab
6fed1019df Perf optimizations for chat rooms 2026-07-27 17:13:14 -07:00
Jon Staab
8953b0e04d Fix agent errors 2026-07-27 16:43:54 -07:00
Jon Staab
a2c5a8e2ff Clean up convention violations, dead code, and daisyUI leftovers 2026-07-27 15:38:23 -07:00
Jon Staab
c0c8354a76 Remove dead CSS left over from the app.css split and fix emoji button hit target 2026-07-27 15:25:31 -07:00
Jon Staab
ed61081b01 Fix key backup gating, mention alerts toggle, and silent load failures 2026-07-27 15:21:39 -07:00
Jon Staab
73f2fb0ec2 Fix stuck hosting error card and blocked billing portal redirect 2026-07-27 15:18:07 -07:00
Jon Staab
0f17e62e54 Fix pin references for non-addressable events, malformed shelf addresses, and profile links 2026-07-27 15:16:21 -07:00
Jon Staab
883528242c Fix space auth prompts, invite failures, and admin check spam
Cache admin checks per space with a ttl, stop retrying auth after a denial,
surface invites we couldn't fetch a claim for, and trim access delays.
2026-07-27 15:09:13 -07:00
Jon Staab
fe90a9f0ba Fix call mute failures, stale session writes, and leaked audio elements 2026-07-27 15:01:48 -07:00
Jon Staab
eae644ab3c Fix connection teardown and sync lifecycle on login 2026-07-27 14:57:02 -07:00
Jon Staab
ae5992c948 refactor h/non-h rooms into a single component 2026-07-27 14:11:46 -07:00
Jon Staab
17b0382c2e formatting 2026-07-27 13:48:54 -07:00
Jon Staab
2ffe51180b Fix new messages indicator when coming back to the tab 2026-07-27 13:38:45 -07:00
Jon Staab
cf938c6397 Bring caravel hosting in-app 2026-07-27 13:19:28 -07:00
Aditya Chaudhary
37e6dd6b7d chore: hide space menu scrollbars while keeping scroll. (#328)
Reviewed-on: https://gitea.coracle.social/coracle/flotilla/pulls/328
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-07-21 18:06:46 +00:00
Aditya Chaudhary
2d6810725f fix: clear space badge when navigating to a space (#327)
Reviewed-on: https://gitea.coracle.social/coracle/flotilla/pulls/327
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-07-21 18:05:39 +00:00
Aditya Chaudhary
1eebe1698a feat: add room invite links with combined space and room join flow (#319)
Reviewed-on: https://gitea.coracle.social/coracle/flotilla/pulls/319
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-07-20 23:35:24 +00:00
Aditya Chaudhary
16a446095a fix(video): show avatar tiles for audio-only and camera-off callers (#325)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-07-20 23:34:06 +00:00
Aditya Chaudhary
caa16b6770 chore: improve mobile UI, zap modals, and interaction polish (#316)
Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
2026-07-15 21:23:43 +00:00
Jon Staab
e1c439fb6b Publish events signed by the relay to the relay 2026-07-10 08:17:01 -07:00
Jon Staab
e9f896f5ef Tweak side nav sections 2026-07-08 15:20:16 -07:00
Jon Staab
3a6be2fc92 Fix nav safe are inset, qr code reactivity 2026-07-08 15:12:50 -07:00
Jon Staab
ba7a690d6f Make downloadText work on native 2026-07-08 14:53:49 -07:00
Jon Staab
47be12ff57 Bring back attemptRelayAccess for default spaces 2026-07-08 14:43:44 -07:00