Refuse uploads that don't fit up front; plain quota messages; banner dismiss; handbook (#804) #812
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-804"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #804; implements
mockup-804-quota-refusals.htmlrev2 as greenlit.Server
quota.Driver.Room(ctx, dir)returns the tightest cap at a backend folder (space / user / instance) and the room left. Space trash is uncapped (#806).GET /api/v1/quota/room?path=: authenticated, returns{scope, limit, free}; limit 0 = uncapped.Upload-Lengthexceeds the room, before anything is spooled.roomAtresolves virtual → backend throughscope.Resolve. It reports nothing when enforcement is off, so the web app never refuses what the server would accept.Cairn-Quotaresponse header. The web app asks the room endpoint when it gets a refusal and builds the same message, which keeps the error paths unchanged.Web
uploadFileschecks the whole batch against the room before the loop, all or nothing. Overwrites count net of the replaced file.isQuotaErr: tus-create 507, or the server's quota text from a small upload. It gets the same plain message and stops the rest of the batch.quotaRefusalbuilds the rev2 sentences (no dashes); i18n ×4..ebx, width pinned: an app rule collapsed it in the mockup). The 7 s auto-hide is kept.display:flexlives only in#errbanner:not([hidden]), because an inline display would defeat[hidden].Docs:
docs/handbook/spaces-quota.md+ index row.Tests: RED
dc350041(Go: Room, tus create, endpoint; node: qa804) → green.go test ./...passes, web 296/296, the extracted JS passesnode --check, and a behavioural check of the four message variants passes.