fix(admin): invites start at 5 GB, pick the only group, hint to Groups when none #1025

Closed
kayg wants to merge 0 commits from fix/invite-defaults into dev
Owner

Small invite fix so a friend can be invited and find people. It sits outside the sharing stack so it can ship in the next train.

What changes (decided 11-09 by the orchestrator, from the invite-a-friend gap list)

  • 5 GB to begin with. The invite sheet's storage picker starts at 5 GB, the first choice in QUOTAS; Unlimited is still one pick away. Existing users are unchanged.
  • The only group is picked. A friend sees only people who share a group with them (A11/G1). With exactly one local group, the invite starts with it picked. Touching a chip turns that off.
  • No group: a hint. With no local group, the sheet says "Put friends in a group so they can find each other." and the line goes to Admin → Groups. No groups are made automatically.

Files

  • apps/web/src/components/admin/InviteSheet.svelte (lazy admin chunk; nothing on the first screen).
  • Specs: admin.spec.ts has a new test for all three behaviours, and the invite test expects 5 GB by default. The invite() helper now sets exactly the groups it's given, whatever is preselected.

Gates and 2× screenshots (390/1440, light/dark) follow in a comment.

🤖 Generated with Claude Code

Small invite fix so a friend can be invited and find people. It sits outside the sharing stack so it can ship in the next train. ## What changes (decided 11-09 by the orchestrator, from the invite-a-friend gap list) - **5 GB to begin with.** The invite sheet's storage picker starts at 5 GB, the first choice in QUOTAS; Unlimited is still one pick away. Existing users are unchanged. - **The only group is picked.** A friend sees only people who share a group with them (A11/G1). With exactly one local group, the invite starts with it picked. Touching a chip turns that off. - **No group: a hint.** With no local group, the sheet says "Put friends in a group so they can find each other." and the line goes to Admin → Groups. No groups are made automatically. ## Files - `apps/web/src/components/admin/InviteSheet.svelte` (lazy admin chunk; nothing on the first screen). - Specs: `admin.spec.ts` has a new test for all three behaviours, and the invite test expects 5 GB by default. The `invite()` helper now sets exactly the groups it's given, whatever is preselected. Gates and 2× screenshots (390/1440, light/dark) follow in a comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(admin): invites start at 5 GB, pick the only group, and point to Groups when there is none
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
3c8da73ace
A friend sees only people who share a group with them, so an invite with
no group leaves them unable to find anyone but admins. Decided 11-09
(orchestrator): 5 GB default; preselect the group when exactly one
exists; with none, a one-line hint linking to Admin → Groups. No
groups are made automatically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Gates (head b819bc030 for app code; 64b09bdb5 adds only budget lines)

gate where result
svelte-check dev-01 0 errors (17 warnings, same as dev)
admin.spec + admin-invite.spec + admin-sharing.spec, CI=1 --workers=1 --retries=0 dev-01 admin-chromium-1440 / 390 11 / 11 passed
same dev-02 admin-webkit-1440 / 390 8 / 8 passed (WebKit skips the passkey-only invite spec)
shots, E2E_SHOTS 2×, E2E_THEME light/dark both all 8 runs passed
first paint vs dev 4906cdb11 (same base) dev-01 perf/web.sh --bundle-only first_js_brotli 221.891 vs 221.802 (+0.09 KB, inside the ±200 B build noise; no first-screen file changed), CSS same
lazy chunks same idle-screens 56.942 vs 56.792 (+0.15, the sheet's hint and preselect); TasksScreen +0.06 hash jitter. Lines raised under the 11-08 lazy ceiling (64b09bdb5)

Checked by me in the shots: 5 GB is preselected; the hint reads "Put friends in a group so they can find each other.", muted and underlined, and goes to Groups; with one group, its chip starts pressed.

Chromium 2×

invite-form-1440-dark.png

invite-form-1440-light.png

invite-form-390-dark.png

invite-form-390-light.png

invite-no-group-1440-dark.png

invite-no-group-1440-light.png

invite-no-group-390-dark.png

invite-no-group-390-light.png

invite-one-group-1440-dark.png

invite-one-group-1440-light.png

invite-one-group-390-dark.png

invite-one-group-390-light.png

WebKit 2× (no backdrop blur in Playwright WebKit)

invite-no-group-1440-dark.png

invite-no-group-390-light.png

invite-one-group-1440-light.png

invite-one-group-390-dark.png

## Gates (head `b819bc030` for app code; `64b09bdb5` adds only budget lines) | gate | where | result | |---|---|---| | `svelte-check` | dev-01 | 0 errors (17 warnings, same as dev) | | `admin.spec` + `admin-invite.spec` + `admin-sharing.spec`, `CI=1 --workers=1 --retries=0` | dev-01 admin-chromium-1440 / 390 | 11 / 11 passed | | same | dev-02 admin-webkit-1440 / 390 | 8 / 8 passed (WebKit skips the passkey-only invite spec) | | shots, `E2E_SHOTS` 2×, `E2E_THEME` light/dark | both | all 8 runs passed | | first paint vs dev `4906cdb11` (same base) | dev-01 `perf/web.sh --bundle-only` | first_js_brotli 221.891 vs 221.802 (+0.09 KB, inside the ±200 B build noise; no first-screen file changed), CSS same | | lazy chunks | same | idle-screens 56.942 vs 56.792 (+0.15, the sheet's hint and preselect); TasksScreen +0.06 hash jitter. Lines raised under the 11-08 lazy ceiling (`64b09bdb5`) | Checked by me in the shots: 5 GB is preselected; the hint reads "Put friends in a group so they can find each other.", muted and underlined, and goes to Groups; with one group, its chip starts pressed. ## Chromium 2× invite-form-1440-dark.png<br><img src="https://git.kayg.org/attachments/e5aaaceb-69e0-4ffd-9d40-0f833bb066af" width="380"> invite-form-1440-light.png<br><img src="https://git.kayg.org/attachments/adb06c5a-6894-4c9f-98ec-85b65ed26da4" width="380"> invite-form-390-dark.png<br><img src="https://git.kayg.org/attachments/c3a1327b-d645-47a2-8722-2908b0d37a4a" width="380"> invite-form-390-light.png<br><img src="https://git.kayg.org/attachments/0255216a-e904-4dbc-912e-c7b52e3e92f6" width="380"> invite-no-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/6d6e6eb3-ce82-4d03-b98b-5e0255b167cc" width="380"> invite-no-group-1440-light.png<br><img src="https://git.kayg.org/attachments/3d7baab2-fb5f-4999-b371-71fd287ad73c" width="380"> invite-no-group-390-dark.png<br><img src="https://git.kayg.org/attachments/a66bdd0f-2465-4fa1-b3d8-0323077dc6c1" width="380"> invite-no-group-390-light.png<br><img src="https://git.kayg.org/attachments/688e3ae0-8e88-4306-8afb-0cc389087526" width="380"> invite-one-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/5768423c-aa59-4d61-88fb-009922415ec6" width="380"> invite-one-group-1440-light.png<br><img src="https://git.kayg.org/attachments/bdb98677-1a4c-41b8-b632-9b3179202aa4" width="380"> invite-one-group-390-dark.png<br><img src="https://git.kayg.org/attachments/a2f90088-9a6f-4b28-92a2-d47b7375d986" width="380"> invite-one-group-390-light.png<br><img src="https://git.kayg.org/attachments/fd6f54dc-2e57-4e15-8036-f785b335326e" width="380"> ## WebKit 2× (no backdrop blur in Playwright WebKit) invite-no-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/cbdec74e-6d33-4034-a6a6-c7c7f14c9182" width="380"> invite-no-group-390-light.png<br><img src="https://git.kayg.org/attachments/e924a9a8-25bc-4cad-9492-6e1f1c784774" width="380"> invite-one-group-1440-light.png<br><img src="https://git.kayg.org/attachments/233a6541-9987-4516-9d29-7f1ea824f55e" width="380"> invite-one-group-390-dark.png<br><img src="https://git.kayg.org/attachments/77c6bbdd-e25d-4b05-b58e-7d30f39bf773" width="380">
Author
Owner

Update: 1 GB default (kayg 11-09), hint without underline (L2), invite meta wraps at 390

Head 55eaf4867 (+ eb4427801: review shots at 2×).

  • QUOTAS gains "1 GB" as its first choice, and new invites start there.
  • The no-group hint is one accent line with no underline, the size of the sheet's labels.
  • The pending-invite meta wraps, with the size kept in one piece, so "1 GB" is always visible at 390.
gate result
admin.spec + admin-invite + admin-sharing, Chromium 1440 / 390 (dev-01) 11 / 11 passed
same, WebKit 1440 / 390 (dev-02) 8 / 8 passed
2× shots light/dark, 4 runs per browser all passed

Cross-cutting specs vs dev at the same base (4906cdb11, currently red)

preload lazy-ui lazy-offline glass shortcuts, CI=1 --workers=1 --retries=0. Failures compared by test title:

project #1025 dev new on #1025 dev only
chromium-1440 29 passed, 4 failed, 4 skipped 29 passed, 4 failed, 4 skipped none none
chromium-390 17 passed, 7 failed, 13 skipped 16 passed, 8 failed, 13 skipped none lazy-offline:3 (flaked on dev)
webkit-1440 28 passed, 4 failed, 5 skipped 28 passed, 4 failed, 5 skipped none none
webkit-390 16 passed, 7 failed, 14 skipped 16 passed, 7 failed, 14 skipped none none

The failure sets are the known dev reds (preload, lazy-ui, lazy-offline, glass, shortcuts). This cross run was on 64b09bdb5; later commits change only the invite sheet's CSS, its default value and specs, nothing on these specs' paths.

The four no-group states, Chromium 2×

invite-no-group-1440-dark.png

invite-no-group-1440-light.png

invite-no-group-390-dark.png

invite-no-group-390-light.png

One group (preselected) and the form, Chromium 2×

invite-form-1440-dark.png

invite-form-1440-light.png

invite-form-390-dark.png

invite-form-390-light.png

invite-one-group-1440-dark.png

invite-one-group-1440-light.png

invite-one-group-390-dark.png

invite-one-group-390-light.png

WebKit 2×

invite-no-group-1440-dark.png

invite-no-group-1440-light.png

invite-no-group-390-dark.png

invite-no-group-390-light.png

## Update: 1 GB default (kayg 11-09), hint without underline (L2), invite meta wraps at 390 Head `55eaf4867` (+ `eb4427801`: review shots at 2×). - QUOTAS gains "1 GB" as its first choice, and new invites start there. - The no-group hint is one accent line with no underline, the size of the sheet's labels. - The pending-invite meta wraps, with the size kept in one piece, so "1 GB" is always visible at 390. | gate | result | |---|---| | admin.spec + admin-invite + admin-sharing, Chromium 1440 / 390 (dev-01) | 11 / 11 passed | | same, WebKit 1440 / 390 (dev-02) | 8 / 8 passed | | 2× shots light/dark, 4 runs per browser | all passed | ## Cross-cutting specs vs dev at the same base (`4906cdb11`, currently red) `preload lazy-ui lazy-offline glass shortcuts`, `CI=1 --workers=1 --retries=0`. Failures compared by test title: | project | #1025 | dev | new on #1025 | dev only | |---|---|---|---|---| | chromium-1440 | 29 passed, 4 failed, 4 skipped | 29 passed, 4 failed, 4 skipped | none | none | | chromium-390 | 17 passed, 7 failed, 13 skipped | 16 passed, 8 failed, 13 skipped | none | lazy-offline:3 (flaked on dev) | | webkit-1440 | 28 passed, 4 failed, 5 skipped | 28 passed, 4 failed, 5 skipped | none | none | | webkit-390 | 16 passed, 7 failed, 14 skipped | 16 passed, 7 failed, 14 skipped | none | none | The failure sets are the known dev reds (preload, lazy-ui, lazy-offline, glass, shortcuts). This cross run was on `64b09bdb5`; later commits change only the invite sheet's CSS, its default value and specs, nothing on these specs' paths. ## The four no-group states, Chromium 2× invite-no-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/752894a7-8731-4111-ae35-c256a88b8f67" width="360"> invite-no-group-1440-light.png<br><img src="https://git.kayg.org/attachments/f0c6381f-45b3-4636-a8fd-3d279d06aa3e" width="360"> invite-no-group-390-dark.png<br><img src="https://git.kayg.org/attachments/ee75c209-d576-47ae-9b81-4efb8cb729f2" width="360"> invite-no-group-390-light.png<br><img src="https://git.kayg.org/attachments/7d423c3e-da6f-448b-b3b1-d515e075cdd9" width="360"> ## One group (preselected) and the form, Chromium 2× invite-form-1440-dark.png<br><img src="https://git.kayg.org/attachments/03c4c915-32a6-45a4-a37f-aae067b7c039" width="360"> invite-form-1440-light.png<br><img src="https://git.kayg.org/attachments/faf2f214-6d2c-4053-bfe9-cb00af683c12" width="360"> invite-form-390-dark.png<br><img src="https://git.kayg.org/attachments/dd7f5491-0b6c-4075-80fe-c5637857d061" width="360"> invite-form-390-light.png<br><img src="https://git.kayg.org/attachments/38e2ad77-21cb-4e1e-9fde-633dd0cef55e" width="360"> invite-one-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/07601dda-627c-4a0c-8cae-d0520cf933f8" width="360"> invite-one-group-1440-light.png<br><img src="https://git.kayg.org/attachments/a9eaf047-af4a-45bc-bd67-f9095e414869" width="360"> invite-one-group-390-dark.png<br><img src="https://git.kayg.org/attachments/92671f19-c946-4488-90b8-020f717746c1" width="360"> invite-one-group-390-light.png<br><img src="https://git.kayg.org/attachments/7a0df89f-0724-4d36-8b81-9d0cc50208e4" width="360"> ## WebKit 2× invite-no-group-1440-dark.png<br><img src="https://git.kayg.org/attachments/9e3910e9-344e-45f2-9353-efa75b75e674" width="360"> invite-no-group-1440-light.png<br><img src="https://git.kayg.org/attachments/8366d875-96c1-474b-90bb-7ce2e1717e68" width="360"> invite-no-group-390-dark.png<br><img src="https://git.kayg.org/attachments/c84415cd-5b29-4d0a-a0d7-e74580217966" width="360"> invite-no-group-390-light.png<br><img src="https://git.kayg.org/attachments/38d9562b-12e8-4833-9675-ba5e1d446335" width="360">
Author
Owner

Merged into dev locally (head 55eaf4867 is in origin/dev); closing.

Merged into dev locally (head `55eaf4867` is in origin/dev); closing.
kayg closed this pull request 2026-11-09 18:55:11 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1025
No description provided.