100 Commits
Author SHA1 Message Date
Tom Moor 1465b7ea80 feat: Show export completion in the notifications center (#14673)
* 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
2026-11-20 11:17:15 -05:00
Tom Moor 41abdbec3f Add upsell settings pages for paid plan features (#14631)
* Add enterprise upsell plugin with placeholder settings pages

Introduces a new client-only `upsell` plugin that surfaces Enterprise-only
features as placeholder settings pages in the community edition, encouraging
self-hosted users to upgrade. The plugin is gated to non-cloud deployments
since the cloud edition already ships these features.

Adds:
- UpsellScene: a reusable upsell page (header, pitch, upgrade CTAs, and a
  preview of the locked settings).
- UpsellSettingRow: an upsell variant of SettingRow that renders an
  Enterprise-only setting in a locked, non-interactive state.
- EnterpriseBadge: a small badge denoting Enterprise-only features.
- Placeholder pages for Audit Log, Data Attributes, and Glean.
- A pricing URL on UrlHelper for the upgrade call to action.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ca46gcmqU5HGgoK8SFHUx

* Add Security upsell rows and Collections upsell page

Surfaces more Enterprise-only features in the community edition:

- Adds locked upsell rows to the Security settings page for two-factor
  authentication, automatic sign-out, and an IP allowlist. These only render
  on self-hosted instances, where the real settings are not available.
- Adds a Collections placeholder page to the upsell plugin advertising
  workspace-wide collection administration.

Relocates the shared EnterpriseBadge and UpsellSettingRow components from the
plugin into app/scenes/Settings/components so core settings pages and the
plugin can both consume them without inverting the app/plugin dependency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ca46gcmqU5HGgoK8SFHUx

* Show plan requirement on upsell pages and sidebar

Replace the placeholder Enterprise rows with a single callout that names the
minimum plan for each feature, mark upsell items in the settings sidebar with
a muted lock, and sync PlanHelper with the plan entitlements.

* Hide entitled upsells, show Glean upsell, fix billing link

* Render upsell for settings pages without the entitlement

Settings items can declare the plan feature they need. Without it, the page
shows the upsell scene in place of the real one, and upsell plugin
placeholders give way to a real page for the same feature.
2026-11-20 08:29:16 -05:00
Tom Moor dbc1e84ec9 feat: Collapsible notification setting groups (#14653)
* feat: Group notification settings into sections with group toggles

* fix: Restore unsaved notification settings when a save fails

* feat: Collapsible notification groups with summaries
2026-11-19 22:07:56 -05:00
Tom Moor a46968c3f4 feat: Hover menu to switch mentions between inline and card display (#14588)
* feat: Show a display menu on hover for mentions that can be cards

Mentions that can display as a card show an overflow button on hover,
inside the end of the pill or in the top corner of the card. The button
opens a menu to switch between the mention and card display, which
replaces the selection toolbar for these mentions.

* fix: Resolve the mention position on click and hide the button on scroll

The menu looks up the mention position when an item is chosen, as edits
by collaborators can move it while the menu is open. The button follows
the mention when content above it changes and hides when a table is
scrolled.

* feat: Show the mention display button for a selected mention

The button shows for the selected mention as well as the hovered one, so
keyboard users can reach it. Touch devices show it for the selected mention
only. Only the button takes the pointer, so the fade does not block clicks
on short mentions.
2026-11-19 18:05:06 -05:00
Tom Moor 620ef924a1 Improve log data sanitization (#14671)
* 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
2026-11-19 17:59:44 -05:00
Tom Moor e0fb40baaa fix: Halve indexed document text until the search vector fits (#14646) 2026-11-19 17:57:25 -05:00
Tom Moor 97a00a37ce fix: Close notifications popover when navigating to another page (#14654) 2026-11-19 17:57:19 -05:00
Tom Moor adba69af33 fix: Remove empty line above images at the start of a paragraph (#14655) 2026-11-19 17:57:15 -05:00
Tom Moor db71a3edad fix: Tighten permissions on documents.users (#14670) 2026-11-19 17:56:37 -05:00
Tom Moor 49aee74190 feat: Add filtering to tables in the editor (#14625)
* feat: Add filtering to tables in the editor

* Show the column filter button on header hover in edit mode

* Keep the filter button shown while its menu is open

* Move focusEditor to its own module

* Anchor the filter menu to the filter button

* Address review feedback on table filtering

* Show the filter button background while its menu is open

* Always show the filter button background with its icon

* Remove value counts and hide Clear when there is no filter

* Translations

* placeholder
2026-11-18 22:37:15 -05:00
Tom Moor 0171534400 feat: Allow admins to reconnect an authentication provider (#14649)
Reconnecting updates the existing provider row in place so that member
authentications stay linked when the external domain or tenant changes.
2026-11-18 22:36:53 -05:00
Tom Moor 6d82287a08 fix: Do not download relative attachment paths in API imports (#14650) 2026-11-18 22:36:26 -05:00
Tom Moor 45d79567d6 docs: Remove outside contribution guidance from README (#14647) 2026-11-18 22:00:29 -05:00
Tom Moor a95a970fcb fix: Replace deprecated url.parse() and add lint rule to ban it (#14644) 2026-11-18 21:38:46 -05:00
Tom Moor 072c7c537f fix: Poll for the migrations lock so concurrent index builds cannot hang (#14641) 2026-11-18 19:58:23 -05:00
Tom Moor 5f9144b50b fix: Allow URLs in the name of MCP OAuth clients (#14643) 2026-11-18 19:58:08 -05:00
Tom Moor f275b9d279 fix: Code block hover toolbar jumps to the block above when reaching for it (#14636) 2026-11-18 19:07:20 -05:00
Tom Moor c7955616fe fix: Respect unsubscribe for invite accepted emails, use workspace language (#14640) 2026-11-18 19:06:39 -05:00
Tom MoorandClaude Opus 5.5 f9d995e6f1 perf: Add cached Integration.findEnabledByTeamIdAndService lookup (#14635)
* 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>
2026-11-18 08:20:15 -05:00
Tom Moor 090cea4121 fix: Revalidate cached locale catalogs after upgrades (#14632) 2026-11-18 07:58:36 -05:00
Tom Moor 3d0d24c43d fix: Mobile header actions overlap the sidebar menu button while editing (#14629)
* fix: Mobile header actions overlap the sidebar menu button while editing

* fix: Keep mobile breadcrumbs shrinkable
2026-11-18 02:05:54 +00:00
Tom Moor 4fca2ebc32 chore: Replace fixed sleeps and raised timeouts with signals (#14624) 2026-11-17 19:22:04 -05:00
Tom Moor 3ec7837140 Move share search to the header on mobile (#14622)
Hide the sidebar search input and theme toggle on mobile public shares,
add a search icon button to the header instead, show a single header
action as a circle, and keep sidebar items clear of the header.
2026-11-17 19:09:43 -05:00
Tom Moor 2ccf74bbdd fix: Full-width tables render at default width in the template editor (#14621) 2026-11-17 18:43:01 -05:00
Tom Moor b73fd509e0 fix: Exclude suspended users from mention suggestions (#14617)
* fix: Exclude suspended users from mention suggestions

* test: Remove findByQuery test
2026-11-17 08:43:23 -05:00
Tom Moor 8893cb26e6 perf: Batch linked document lookups in BacklinksProcessor (#14613)
* perf: Batch linked document lookups in BacklinksProcessor

* test: Cover batched backlink lookups

* test: Remove query count test
2026-11-16 18:55:07 -05:00
Tom Moor 6ece062b8c perf: Fetch Notion pages in an import task in parallel (#14612)
* perf: Fetch Notion pages in an import task in parallel

* fix: Settle all Notion page fetches before failing an import task
2026-11-16 23:46:43 +00:00
Tom Moor bb7372ab05 perf: Avoid loading collection structure when fetching document shares (#14611)
* perf: Avoid loading collection structure when fetching document shares

* fix: Do not return inherited shares for archived documents
2026-11-16 18:45:31 -05:00
Tom Moor e463e5565b chore: Upgrade react-day-picker to v10 and date-fns to v4 (#14608)
Rewrite the calendar styles for the v9+ DOM and handle range selection in DateRangeDialog, as v9 sets both ends of the range on the first click.
2026-11-16 18:43:44 -05:00
Tom Moor 69528b16be perf: Check drag handle hover zone before hit testing (#14610) 2026-11-16 18:42:31 -05:00
Tom Moor 0a656b356e chore: Upgrade diff to v9 and remove @types/diff (#14609) 2026-11-16 18:42:25 -05:00
17ed709a80 Prevent guests from joining groups and creating custom emoji (#14606)
* Prevent guests from joining groups and creating custom emoji

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

* Enhance user retrieval with transaction lock

Add lock option to User.findByPk for transaction safety

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-16 23:42:06 +00:00
Tom Moor cba12e2e0b chore(deps): Upgrade uuid to 14 (#14607) 2026-11-16 18:41:34 -05:00
Tom Moor 4e8dfa39f2 fix: Name batch requests correctly in APM and trace each sub-request (#14603)
* fix: Name batch requests correctly in APM and trace each sub-request

* fix: Tag status on failed batch request spans
2026-11-16 18:39:07 -05:00
Tom Moor 5e6cc0f191 fix: Send single batched requests directly to their endpoint (#14604)
* fix: Send single batched requests directly to their endpoint

* fix: Reject a lone batched request when dispatch throws
2026-11-16 09:09:59 -05:00
Tom Moor 5bf7a93c1a fix: Pasting a URL over an existing link replaces the link (#14602) 2026-11-16 08:33:14 -05:00
Tom Moor 3f25d6579e Implement translation check in lint-staged config
Add a check for empty translation.json to prevent commits.
2026-11-15 19:31:12 -05:00
Tom Moor c0288df8eb fix: Reduce error noise while the database is read-only or unavailable (#14599)
* fix: Reduce error noise while the database is read-only or unavailable

* fix: Let websocket clients reconnect after a slow authentication
2026-11-15 12:40:59 -05:00
Tom Moor 1fa7b5459e chore: Delete nightly Docker tags older than 30 days (#14596) 2026-11-15 11:14:25 -05:00
Tom Moor acb8530e8f v1.13.0 2026-11-15 10:46:06 -05:00
Tom Moor d1609c3843 fix: Sidebar jumps when creating a document from the inline input (#14594) 2026-11-15 09:27:33 -05:00
Tom MoorandClaude 9ea360995f feat: Optimistic model saves with rollback on failure (#14593)
* feat: Make model.save() optimistic with rollback on failure

Apply saved params to the model immediately so MobX observers update
without waiting for the server, and roll the model back to its previous
state when the request fails. New models with a client-generated id are
optimistically added to the store and removed again on failure.

* chore: Apply formatter and test naming convention

* fix: Scope optimistic saves to passed fields and confirmed values

Only fields passed to save() are applied optimistically, and a failure
reverts a field only while it still holds the optimistic value. Change
hooks compare against the last confirmed values so they run when the
server responds. The optimistic store add is removed.

* refactor: Use optimistic save for preferences and field toggles

Add savePreference to User, Team and Document, and pass changed fields to
save() so they revert on failure.

* fix: Only compare incoming fields against confirmed values in change hooks

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 09:26:55 -05:00
Tom Moor 4a96de653b perf: Smaller locale files and fewer locale fetches (#14592)
* 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
2026-11-14 19:57:53 -05:00
Tom Moor 4554494ed8 chore: Make docker compose host ports configurable (#14590) 2026-11-14 13:07:57 -05:00
Tom Moor c51ba1ead7 fix: User filter order, title only icon, plurality 2026-11-14 12:37:42 -05:00
Tom Moor c3274d17d1 Redesign search filters with a scalable chip bar (#14589)
* 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
2026-11-14 12:00:47 -05:00
Tom Moor 6a6987ec2d perf: Faster mention suggestions (#14583)
* 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
2026-11-13 22:37:49 -05:00
Tom Moor 4fd9b60400 fix: Fetch Azure profile photo in UploadUserAvatarTask instead of during login (#14584) 2026-11-13 18:15:55 -05:00
Tom Moor 9bead306c2 feat: Add Greek to language options (#14585) 2026-11-13 18:13:59 -05:00
75a5d19ea1 fix: decode non-base64 image data URLs (#14580)
Co-authored-by: Tom Moor <380914+tommoor@users.noreply.github.com>
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
2026-11-13 17:21:12 -05:00
Tom Moor ace73d103a fix: Bump @firecrawl/pdf-inspector for linux-arm64 PDF imports (#14582) 2026-11-13 17:17:59 -05:00
Tom Moor 2206588aa8 feat: Expiry column and expiry menu for shared links (#14579)
* 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
2026-11-13 09:29:30 -05:00
Tom Moor 587c211f57 fix: Do not overwrite canceled or finished imports from import tasks (#14578) 2026-11-13 08:40:05 -05:00
Tom Moor 8df9c854fa fix: Error imports that have nothing to import (#14577)
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.
2026-11-13 08:33:36 -05:00
Tom Moor 6fd7eb7cf0 chore: Share import state lists from the Import model (#14575) 2026-11-13 08:05:13 -05:00
Tom Moor 4fd8b0731e fix: Limit archive contents read during imports (#14576) 2026-11-13 08:04:58 -05:00
Tom Moor e913715ce1 fix: Return each tab to its own document after cross-tab logout (#14536)
* fix: Return each tab to its own document after cross-tab logout

* Use savePath option for tab-only post login path
2026-11-13 07:56:55 -05:00
Tom Moor 6231f01860 fix: Forced fetches dropped or stale while another fetch is in flight (#14573)
* fix: Run forced document tree fetches that arrive while a fetch is in flight

* fix: Run forced store fetches that arrive while a fetch is in flight

* test
2026-11-12 23:07:35 -05:00
Tom Moor bcf282a2f6 feat: Auto-save settings and tidy settings layout (#14569)
* feat: Auto-save General and Profile settings, add settings sections

- Save General and Profile fields on change and remove the Save button
- Add SettingsSection with consistent spacing and a tinted Danger block
- Right-align setting controls and center switches in their row
- Let descriptions use the full row width beside switches

* fix: Avoid settings autosave overwrites and IME Enter saves

- Send only the changed team preference so concurrent saves do not revert each other
- Save separate editing as a single preference instead of the whole team
- Treat a cleared color input as empty so the default is restored
- Ignore Enter during IME composition

* feat: Add change and remove icon buttons below image inputs

- Replace the Remove button with edit and trash icon buttons with tooltips
- Show an upload icon on the image hover overlay
- Re-render ImageInput when the image changes so the remove action appears immediately

* feat: Use footer buttons in the change profile picture dialog

- Add Replace and Delete buttons beside Done in the admin avatar dialog
- Add showActions and an open handle to ImageInput so dialogs can supply their own controls

* fix: Style the danger section with an outer shadow instead of tinted text
2026-11-13 04:01:55 +00:00
Tom Moor e0895fc548 Refine authentication token handling (#14572) 2026-11-12 23:00:42 -05:00
Tom Moor 306c0fcecf feat: Show the drag handle only when hovering the side of the editor (#14574) 2026-11-12 22:26:49 -05:00
Tom Moor 7a87534789 chore: Replace Gitbeaker with a small GitLab API client (#14548)
* chore: Replace Gitbeaker with a small GitLab API client

* test: Cover GitLab token refresh
2026-11-12 22:11:39 -05:00
Tom Moor ebe842b1f5 fix: Sticky hover state on sidebar items on touch screens (#14570) 2026-11-12 22:10:31 -05:00
Tom Moor 77f2d88416 fix: Tighten passkey challenge handling (#14571) 2026-11-12 22:08:47 -05:00
Tom Moor 97055b2d80 chore: Split server/routes/index.ts into focused routers (#14556)
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.
2026-11-12 21:52:06 -05:00
Tom Moor 2276ee2ecb Set lock_timeout on request transactions (#14563)
* 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
2026-11-12 21:51:48 -05:00
Tom Moor 631114129e perf: Lock only the target row in locked queries with joins (#14564) 2026-11-12 21:48:14 -05:00
Tom Moor ecb27a7132 fix: Scope import attachment queries to the importing team (#14557) 2026-11-12 19:06:15 -05:00
Tom Moor f04a300bed perf: Add index for inherited group permission lookups (#14560) 2026-11-12 19:05:44 -05:00
Tom Moor e262f3bd17 perf: Add partial createdAt index for stuck import task scan (#14565) 2026-11-12 18:59:43 -05:00
Tom Moor d066c98bde fix: Remove vestigial done flag from document updates (#14561)
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.
2026-11-12 18:57:50 -05:00
Tom Moor 72a72dc735 fix: Popularity score update blocks inserts that reference documents (#14558)
* fix: Use FOR NO KEY UPDATE when locking documents for popularity scores

* test: Cover popularity update with a key share lock held
2026-11-12 18:55:35 -05:00
Tom Moor f95761dddf perf: Use FOR NO KEY UPDATE where locked rows are only updated (#14559)
* 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
2026-11-12 18:54:37 -05:00
Tom Moor 7a90ee5887 fix: Run MCP document updates in a transaction (#14562) 2026-11-12 18:53:24 -05:00
Tom Moor 64be91604f Adjust S3 upload policy fields (#14567) 2026-11-12 18:52:28 -05:00
Tom Moor fbb78cd2b0 chore: Tighten error reporting payloads (#14568) 2026-11-12 18:45:47 -05:00
Tom Moor b3555dddfe fix: Improve webhook delivery response handling (#14541) 2026-11-12 09:50:35 -05:00
Tom Moor f8446a3c78 fix: Tighten session token validation order (#14542)
* fix: Tighten session token validation order

* test: Rename signature test
2026-11-12 09:48:13 -05:00
Tom Moor 3dbd552ae8 chore: Update Node.js to 26.13.1 (#14539) 2026-11-11 23:47:30 -05:00
Tom Moor bf0dbc8545 fix: Show workspace logo as square in General settings (#14538) 2026-11-11 23:37:48 -05:00
Tom Moor f43d8bcba9 fix: Use a redder warning color so notices are not brown (#14537) 2026-11-11 23:35:11 -05:00
Tom Moor acf90fdbf4 feat: Filter menu items by typing (#14534)
* feat: Filter menu items by typing

Typing in an open context menu, dropdown menu or editor toolbar dropdown shows a filter row and filters the items. Focus stays on the menu items, so the arrow keys still navigate, and the menu keeps its position and width while filtering.

* fix: Focus first menu item when Escape clears the filter

* fix: Accept AltGr characters and emoji in the menu filter

* refactor: Use isTextInput helper in menu filter

* fix: Text cursor, select all and selection delete in the menu filter

* Refactor to use real input

* fix: Keep the focused menu item highlighted while filtering
2026-11-11 23:31:46 -05:00
Tom Moor 7589ce38de fix: New doc input indent and Shared with me nested docs (#14531)
* fix: Match nested new doc input to child document indent

* fix: Allow creating nested docs from Shared with me rows
2026-11-11 19:18:37 -05:00
Tom Moor 291ec67243 fix: Record document title on documents.delete audit event (#14530) 2026-11-11 15:48:02 -05:00
Tom Moor 713a2b511d fix: Show nested shared documents under their shared parent in sidebar (#14526)
* 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
2026-11-11 08:27:50 -05:00
Tom Moor aa454033ec fix: Keep callouts and rules nested when serialized to Markdown (#14528)
* 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
2026-11-11 08:09:35 -05:00
Tom Moor f480f96089 fix: Consistent document filtering in trash list (#14527)
* fix: Apply draft visibility to trash list

* fix: Include group memberships in draft visibility
2026-11-11 07:51:33 -05:00
Tom Moor dbef6ba847 fix: Explain local storage permission errors with the process uid (#14525)
* fix: Explain local storage permission errors with the process uid

* fix: Check execute permission on local storage directory
2026-11-11 07:09:36 -05:00
Tom Moor 309dd022f6 fix: Add spacing around images in list items (#14518)
* fix: Add spacing around images in list items

* fix: Space list images at the wrapper so inline text is separated too
2026-11-09 22:44:57 -05:00
Tom Moor f71f12b41d chore(deps): Update prosemirror packages (#14519) 2026-11-09 22:44:37 -05:00
Tom Moor a40198a97d feat: Add expiry dates for public share links (#14513)
* wip

* fix: Treat null expiresAt as no expiry when creating a share

* fix: Add bottom padding to share notices
2026-11-09 22:29:49 -05:00
Tom Moor a7b1d8050e fix: Run team deletions one at a time (#14517) 2026-11-09 21:43:30 -05:00
Tom Moor afb5314825 chore: Replace oy-vey with native React rendering (#14495) 2026-11-08 08:23:26 -05:00
Tom MoorandClaude f680d5dec9 feat: Display links, documents and collections as preview cards (#14511)
* 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>
2026-11-08 08:11:31 -05:00
Tom Moor 48db71c351 fix: Tighten document policy checks for personal collections (#14510) 2026-11-07 08:17:29 -05:00
Tom Moor 0c317222a7 chore: Run non-bottleneck CI jobs on GitHub-hosted runners (#14509) 2026-11-07 06:59:35 -05:00
Tom Moor f70428c338 fix: Retain scroll position when switching between "edit" mode (#14415)
* fix: Clicking Edit scrolls to the top of the document

* fix: Restore scroll after node views render

* fix: Switch to editing without redrawing the document

* fix: Keep Yjs undo working after switching to editing
2026-11-06 22:41:32 -05:00
Tom Moor 3f1540832d fix: Connect ephemeral Redis client before services start (#14507) 2026-11-06 21:57:42 -05:00
Tom Moor a518799e9a fix: Flaky audit events test when timestamps tie (#14508) 2026-11-06 21:45:54 -05:00
Tom Moor 6aec14ca6b fix: Return inherited shares for documents without their own share (#14506) 2026-11-06 19:52:15 -05:00