* fix: Stop tabs echoing auth changes back through storage events
A tab that applied another tab's sign-in or sign-out wrote the result back to
localStorage, which flipped the other tab again. Tabs that serialize the auth
store differently then bounced between / and the app every few milliseconds.
* fix: Keep tracking nested auth fields while skipping storage writes
* wip
* Route document list queries through findAllWithCtx
Add findAllWithCtx and countWithCtx on Document and Template, unsafe* methods
for system reads, and a lint rule that bans direct list queries. Remove the
cached membership list, accessibleSql and findByIds in favour of one gate.
* Remove test
* Include drafts when loading starred documents
* Scope the access gate to the user's team, move whereToSql to QueryHelper
* Move collection access to Collection.findAllWithCtx
Collection.accessibleIds keeps the cached id list inside the collection gate, and user.collectionIds() is a shortcut to it. List queries use findAllWithCtx and countWithCtx, system reads use the shared unsafe methods, and the admin listing in collections.list is explicit.
* Check permanentDelete for each document in empty_trash
* fix: New French translations
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Czech translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Chinese Simplified translations
* fix: New Chinese Traditional translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New English, United Kingdom translations
* fix: New Norwegian Bokmal translations
* fix: New Greek translations
* fix: New French translations
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Czech translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Chinese Simplified translations
* fix: New Chinese Traditional translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New English, United Kingdom translations
* fix: New Norwegian Bokmal translations
* fix: New Greek translations
* fix: New French translations
* fix: New Spanish translations
Score-only updates on documents are non-HOT, so every update wrote a new
entry into the full GIN index on ownerIds even though almost all rows have
no owners. Index only rows with owners.
* fix: Avoid quadratic regex backtracking in isMarkdown
* fix: Stop link destinations at brackets and parentheses in isMarkdown
* test: Remove isMarkdown regression tests
* fix: Markdown serializer loses image, attachment, video and embed content on round trip
Escape image alt newlines and title quotes, and close attachment, video and
embed blocks so list and blockquote delimiters apply.
* test: Cover backslash in image title round trip
* fix: Escape image title quotes and backslashes together
* fix: Remove pins when a document is trashed
Pins on trashed documents were hidden but still counted toward the pin limit and could not be removed.
* fix: Remove pins when a collection is deleted