* feat: Show export completion in the notifications center
Exports now create an in-app notification with the export name, status,
format and a download button. Export emails are sent from the notification
with a one-minute delay, so they are skipped once the notification is read.
* fix: Avoid nested button in export notification and keep it after delete
* fix: Revoke export notifications when access to the source is lost
* fix: Remove icon from export notification download cue
* Improve log data sanitization
Extract the log sanitizer into its own module, match field names regardless of case and separators, extend the filtered fields, sanitize Sentry extras as a whole, keep serializable values such as dates, and apply the depth limit only to nested objects.
* Call toJSON once when sanitizing log data
* perf: Add cached Integration.findEnabledByTeamIdAndService lookup
Caches a lightweight projection of a team's integrations for a service in
Redis so event processors can cheaply check whether a team uses a service,
e.g. from shouldQueue, before creating a job. The cache is invalidated after
commit by model lifecycle hooks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: Remove comment from Integration cache invalidation
* perf: Skip queueing Slack jobs for teams without a matching post integration
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf: Smaller locale files, start i18n with stored user language, preload locale
* fix: Set spellchecker when locale is unchanged, match lng from allowlist
* refactor: Type-safe locale cache keyed by supported language
* Remove locale preload
* fix: Ignore unsupported languages in changeLanguage
* Redesign search filters
* Design refinement
* Search filter polish: chip states, Text components, Published filter
* Encode search filters as <field>.<operator> URL params
Filters read and write a standard <field>.<operator>=<value> format, a
bare key reads as eq, and the previous dateFilter, statusFilter and
titleFilter params are still read.
* Add custom date ranges to search date filters
Updated, Created and Published get a Custom option that opens a range
calendar in a modal. The range is stored as <field>.gte and <field>.lte
dates and sent to the API as whole days in local time.
* Keep date filter chip shown while its range dialog is open
* Align calendar with modal edges
The calendar had its own 12px padding, so in modals it sat inside the
title and footer edges. The popovers that need the space now pad it.
* Search filter refinements: menu height, chip spacing, steady results line
* Simplify search filters and address review comments
Parse each filter once per URL change, unify URL writes, share status and
date helpers with the server, add a maxHeight prop to MenuContent, ignore
counts from obsolete searches, and show the empty state for filter-only
searches.
* Refine filter chip remove button and skip animation on auto-opened menus
* perf: Faster mention suggestions
Limit each section of suggestions.mention to 1s so a slow query does not
delay the others, debounce mention and link editor requests, ignore stale
responses, and use title search in the link editor.
* fix: Include presentation in the mention suggestion time limits
* test: Use a fixed name in the collection member name filter test
* feat: Expiry column and expiry menu for shared links
Adds an Expires column to the shared links table and a Set expiry submenu
with presets, a custom date dialog and removal. Also loads document
memberships in shares.list so the update policy is correct.
* fix: Hide share expiry menu when workspace sharing is disabled
* refactor: Load share document memberships in the list query
An import with no input, or a Notion import with no shared pages, stayed in an active state with no tasks. This blocked new imports for the team until the creator canceled it.
Move static assets, shares, embeds and the app catch-all into their own
routers, and extract workspace redirect and render option logic so the
index file only composes middleware in order.
* Set lock_timeout on request transactions
Lock waits in API transactions now fail after 5s with a 503 instead of
holding a pool connection until the statement timeout.
* Map query timeouts to request_timeout in batch sub-requests
Creating a revision immediately when the user clicks Done raced the collaboration server's save debounce, producing a stale revision followed by a second one and duplicate Slack notifications.
* perf: Use FOR NO KEY UPDATE where locked rows are only updated
Rows that other tables reference by foreign key are now locked with
FOR NO KEY UPDATE when the transaction only updates or soft-deletes
them, so concurrent inserts that reference the row are not blocked.
* test: Collaborative save does not wait for foreign key inserts
* fix: Show nested shared documents under their shared parent in sidebar
* fix: Select shared roots from ancestor grants, ignore stale cached trees
* Revert ancestor walk in membership list queries
* fix: Keep notices and rules nested in lists and quotes when serialized to Markdown
* fix: Keep the blank line above notices and rules, written per line
* feat: Display links as preview cards
Adds a display attribute to mentions so a link can render either inline
or as a card with image, title and description from its unfurl. Pasting
a URL offers a "Card" option, and selecting a link mention shows a
toolbar to switch between the two displays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MJXFgeTUqKhSTriUHfG3z
* feat: Arrow key selection, full width and Return for link cards
Cards fill the document width, hide the blank line below them, are selected
by the up and down arrow keys like images, and Return on a selected card
adds a paragraph below it.
* feat: Display document and collection mentions as cards
Document and collection mentions can be switched to a card from the
selection toolbar. Document cards show the summary, collection and the
first image larger than 100x100. Collection cards show the first line of
the description. On public shares the preview image is signed, as the
share page already signs the attachments of that document. Card images
are hidden until they load and removed if they fail.
* feat: Keep mention cards through Markdown
The card display is written as the link title, so URLs are not changed.
Document and collection cards are written as @ links to their id and
parsed back into mentions.
* refactor: Move mention cards to their own file
Document cards show the collection after the title instead of below it.
* fix: Address review feedback on mention cards
- Include the share id in the document card unfurl URL for root shares.
- Return on a card in a heading adds a paragraph.
- URL cards keep their URL in Markdown, and the server does not narrow
their type.
- Unfurl results apply to the current node, not the node at first render.
- Collection card descriptions stop at the first line break.
* refactor: Reuse existing helpers for mention cards
- Sign the preview image with TextHelper.attachmentsToSignedUrls.
- Check document and collection ids with isUUID.
- Return lines from getFirstText without changing an input array.
* fix: Preserve JSON output for inline mentions
* refactor: Centralize mention selection classes
---------
Co-authored-by: Claude <noreply@anthropic.com>