Commit Graph
4108 Commits
Author SHA1 Message Date
Tom Moor 478e8121cb fix: Keep header actions clear of the window scrollbar (#13919)
* fix: Keep header actions clear of the window scrollbar

* fix: Apply header scrollbar inset at the inline end for RTL
2026-10-02 22:05:38 -04:00
Tom Moor 3b3da75c8b fix: Header buttons not clickable while find panel is open (#13938)
* fix: Header buttons not clickable while find panel is open

* Close find panel on repeated shortcut
2026-10-02 13:17:19 -04:00
Tom Moor 179d7dd7be fix: Improve table controls around merged cells (#13897)
* wip

* fix: Position grips in merged cells from the rendered layout

* fix: Only merge row and column selections that cover whole rows or columns

* perf: Find merged cell spans without scanning the table map

* refactor: Extract helpers for cells starting in a row or column
2026-09-27 13:10:43 -04:00
Tom Moor 42f29a1a55 feat: Add plan-based feature entitlements (#13896)
* feat: Add plan-based feature entitlements

* feat: Gate audit log behind AuditLog entitlement

* Guard guests

* features
2026-09-27 09:40:50 -04:00
Tom Moor 0e704e6ed2 perf: Load templates on demand, add fetchAllIfNeeded to stores (#13895)
* perf: Load templates on demand and cache fetchAll results

fetchAll on the base store now returns the first result for repeat calls
with the same params, with a force option for callers that need fresh
data. Templates load when the command bar, document header, or block
menu needs them instead of on every page load.

* Make fetchAll caching opt-in via fetchAllIfNeeded

fetchAll always fetches again. fetchAllIfNeeded returns the previous
result for the same params until a model is added to or removed from
the store. Mount-effect callers for reference lists use it.
2026-09-26 13:41:58 -04:00
Tom Moor c07c03e1a0 fix: Keep role badges on a single line in users table (#13893)
* fix: Keep role badges on a single line in users table

* fix: Give role column a minimum width so badges are not clipped
2026-09-25 22:48:45 -04:00
Tom MoorandClaude Fable 5.1 abc47b442a feat: Sync group descriptions and re-sync groups on SSO validation (#13889)
* feat: Sync group descriptions and re-sync groups on SSO validation

- Sync group descriptions from group sync providers alongside names
- Lock name and description edits for externally synced groups at the
  API layer and in the edit dialog
- Move group sync into a SyncUserGroupsTask, scheduled from login and
  from ValidateSSOAccessTask after a fresh provider validation
- Add authenticationProviders.startGroupSync for providers that require
  an admin consent flow before group sync can be enabled

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix: Make group sync setup generic and deduplicate sync jobs

- Expose groupSyncRequiresSetup from the provider list and use it in the
  settings scene instead of checking for the azure provider name
- Rename the setup redirect query param to groupSync
- Give SyncUserGroupsTask a job id per user authentication so concurrent
  syncs for the same authentication are not queued twice

* Use existing hook

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 19:49:26 -04:00
Tom Moor 9e405b50a4 refactor: Attach observers in ref callbacks instead of effects (#13881)
* refactor: Attach observers in ref callbacks instead of effects

Use React 19 ref callback cleanup for the ResizeObserver in Scrollable and
PDF and the IntersectionObserver in useOnScreen, which now returns a ref
callback rather than taking a ref object.

* fix: Remove unused ts-expect-error directives
2026-09-25 07:30:34 -04:00
Tom Moor 97c6339e93 ci: Run a full type-check instead of reusing the incremental cache (#13882)
The sticky-disk node_modules persists the tsc build info, which let the
unused ts-expect-error directives introduced by the @types/react 19.3.0
bump go unreported on main.
2026-09-24 21:38:05 -04:00
Tom Moor 19fa20a17b fix: Use ref for event listener handler instead of useEffectEvent (#13880)
Fixes OUTLINE-CLOUD-D7X
2026-09-24 19:34:14 -04:00
Tom Moor 621b00ffc7 Add uncollapse sidebar button in header (#13872)
* Add collapse button in header

* Upgrade React fix useEffectEvent bug
2026-09-23 23:01:37 -04:00
Tom Moor ad6d39ac55 perf: Render simple read-only comments without an editor view (#13871)
* perf: Render simple read-only comments without an editor view

Read-only editor content made of paragraphs, basic marks, hard breaks,
emoji and lists is rendered from the schema DOMSerializer instead of
mounting a ProseMirror view per comment. Anything needing a node view or
plugin falls back to the full editor. Notification comment previews now
use the same read-only path.

* fix: Forward className on the static editor path
2026-09-23 21:54:33 -04:00
Tom Moor 426079d05d perf: Memoize store filter methods with computedFn (#13870)
* perf: Memoize store filter methods with computedFn

* perf: Use observable clock for date-filtered store lookups
2026-09-23 21:32:55 -04:00
Tom Moor 24ba848672 Defer document row menus and tooltips until interaction (#13869) 2026-09-23 20:53:10 -04:00
Tom Moor b72fd33e9c fix(editor): Use lazyWithRetry for shared editor lazy components (#13868)
Moves lazyWithRetry to shared/utils so the editor's ColorSwatch and
Mentions components can use it instead of React.lazy, avoiding the
Suspense reveal throttle once the chunk is loaded.
2026-09-23 20:50:37 -04:00
Tom MoorandClaude Opus 4.8 0a90968d97 Adopt React 19 hooks for browser-state and client-side filters (#13844)
* refactor: Adopt React 19 browser-state and filter hooks

Rewrite browser-state hooks with useSyncExternalStore, adopt
useEffectEvent for latest-ref patterns, and defer client-side
filters with useDeferredValue.

* fix: Refresh usePersistedState default when key changes

* fix: Normalize serialized cache key for undefined values

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* iterate

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-09-23 19:11:29 -04:00
Tom Moor 660fb59cee fix: Clear stale unsynced warnings after tab broadcasts (#13860) 2026-09-23 18:57:38 -04:00
Tom Moor 55bddf5bb0 fix: Cmd+Enter does not submit a new comment (#13865) 2026-09-23 18:57:30 -04:00
Tom Moor b2c5380009 perf: Keep document sidebar panels mounted with React Activity (#13845)
* perf: Keep document sidebar panels mounted with React Activity

* fix: Keep sidebar panel visible while the sidebar animates closed
2026-09-22 08:15:40 -04:00
Tom Moor ce33ca5b5f chore: Upgrade react-merge-refs to 3.x (#13841) 2026-09-21 23:14:30 -04:00
Tom Moor e0bbaec12d fix: Editor steals focus when opening a document that was never edited (#13847) 2026-09-21 23:14:13 -04:00
Tom Moor 86041f3d0c Replace react-portal with createPortal (#13842)
* Replace react-portal with createPortal

* Fix HoverPreview positioning by rendering into document.body
2026-09-21 22:49:27 -04:00
Tom Moor 4a2d36e2fa chore: Remove useIsMounted guards that only avoid the unmounted setState warning (#13843)
React 18+ no longer warns on setState after unmount, so the guards in
useRequest, useIdle, ActionButton, useDocumentSave and MultiplayerEditor are
removed. The Mentions guards protect an editor transaction against a destroyed
node view, so they are replaced with an effect-scoped cancel flag. Both
useIsMounted hook files are deleted.

Closes #13839
2026-09-21 22:37:27 -04:00
Tom Moor 8db64ddb04 fix: Prevent update loop in link editor search on focus (#13840)
Fixes OUTLINE-CLOUD-D7M
2026-09-21 21:50:58 -04:00
Tom Moor c3d2ae54c3 Add close button and two-line layout to find panel on mobile (#13818)
* Add close button and two-line layout to find panel on mobile

* Use viewport-relative width for mobile find panel
2026-09-20 17:25:29 -04:00
Tom Moor ad04aed6ef fix: Editor content delayed by React 19 Suspense reveal throttle (#13817)
Lazy components now render synchronously once their chunk is loaded and share a
preload promise, so the editor no longer commits a fallback and waits out the
300ms retry throttle. Editor chunks are preloaded from the document route, the
sidebar hover, and the data loader. A lint rule blocks direct imports of the
editor chunk.
2026-09-20 16:54:56 -04:00
Tom Moor d22d3137af fix: Crash when pasting code over a selection near the end of a document (#13807)
Fixes OUTLINE-CLOUD-619
2026-09-19 10:15:15 -04:00
Tom Moor e62a2f7aeb fix: Permission select text color too dim outside nude variant (#13805) 2026-09-19 12:17:55 +00:00
Tom MoorandClaude Opus 5 4b4c7d3281 chore: React 19 upgrade (#13562)
* React 19 upgrade

Bumps react and react-dom to 19.2.8, with the dependency changes React 19
requires: react-is 19, @types/react 19, @types/react-dom 19,
react-helmet-async 3 and react-avatar-editor 15 (which now ships its own
types). framer-motion moves to 13 — its v6 types reference React.ReactHTML,
removed from @types/react 19.

The type changes fall into a few classes:

- The global JSX namespace is gone, so JSX.Element becomes React.JSX.Element
  and the custom element declarations move into a module augmentation.
- useRef() now requires an initial value.
- A ref created with a null initial value is typed nullable, so consumers
  that accept one are widened to RefObject<T | null>.
- React.ReactChild was removed; tooltips take React.ReactNode.
- Ref callbacks may only return a cleanup function. react-dnd connectors
  return the connected node, so useDragRef and useDropRef wrap useDrag and
  useDrop and hand back a ref callback.

react-i18next stays on v12: i18next 23 drops compatibilityJSON "v3", which
would rewrite all 64 _plural keys across every locale.

outline-icons, oy-vey and react-waypoint have no release that lists React 19
as a peer. All three render correctly under it; the install reports them as
unmet peers.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Remove react-helmet and forwardRef

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 22:22:50 -04:00
Tom Moor 7f00defd62 feat: Add archive and deletion reasons (#13784)
* feat: Add reasons for archived and deleted documents

* feat: Add deprecation reasons to archived collections

* fix: Refine deprecation reason display for readers

* feat: Accept reasons when archiving or deleting

* Support reasons in archive and delete MCP tools

* Fix placeholder after clearing content editable text

* Keep the caret before content editable placeholders

* Remove test

* feat: Add archive reasons to the confirmation dialog
2026-09-18 21:09:35 -04:00
Tom Moor b57d02c4fc fix: Enforce maxLength for all input paths in ContentEditable (#13793)
* fix: Enforce maxLength on paste, drop and IME input in ContentEditable

* fix: Count code points and hold over-limit change during IME composition
2026-09-18 18:28:26 -04:00
Tom Moor ed7a1e9ffc fix: Validate custom theme colors (#13800) 2026-09-18 17:52:22 -04:00
Tom Moor f0f8553521 feat: Section header menus in the sidebar (#13801)
* wip

* feat: Share sidebar actions overlay between headers and links, add quick create button
2026-09-18 17:52:16 -04:00
Tom Moor 3a446d1e37 chore: Speed up CI (#13797)
* chore: Speed up CI with TypeScript 7 and Blacksmith runners

Upgrade TypeScript to 7.0.2, the native compiler, which cuts a full type
check from ~57s to ~12s locally. Yarn is bumped to 4.18.0 because older
versions fail to apply the builtin compat patch to TypeScript 7.

Fix two type errors the stricter compiler surfaces: the collection drop
target used unrelated item and monitor types, and Store.add relied on the
error type of an abstract construct call to satisfy the generic return.

Move CI jobs to Blacksmith runners, with a fallback to GitHub-hosted
runners for forks.

* chore: Match enterprise CI runner sizes

* chore: Persist node_modules on a sticky disk and use more test workers

* chore: Use the preinstalled PostgreSQL in CI instead of a service container

* chore: Skip the setup-node yarn cache when a sticky disk is mounted

* chore: Persist the Node.js toolcache and run server tests in 6 shards

* chore: Disable the setup-node package manager cache on Blacksmith

* chore: Keep pull requests from forks off Blacksmith runners and sticky disks
2026-09-18 17:45:25 -04:00
Tom Moor 9839ad8182 fix: Send analytics events through gtag and track WebMCP tool registration (#13792)
* fix: Send analytics events through gtag and track WebMCP tool registration

* Track WebMCP registration without a tool count
2026-09-18 08:58:01 -04:00
Tom Moor fe409306f4 fix: Warn before leaving a document with unsynced edits (#13738)
* fix: Warn before leaving a document with unsynced edits

* refactor: Move unsynced change tracking into CollaborationProvider

* refactor: Move collaboration event types next to CollaborationProvider

* fix: Pending changes stuck after the collaboration connection is restored

* chore: Log collaboration sync state changes in development

* fix: Report lost local persistence in the leave prompt

* fix: Stop local persistence when the initial read fails

* fix: Stop local persistence when a write aborts

* Remove test
2026-09-17 20:54:06 -04:00
Tom Moor d281e991d9 fix: Sidebar selection changes when a Prompt blocks navigation (#13785) 2026-09-17 20:45:01 -04:00
Tom MoorandClaude Opus 5 cc15b088ec feat: Show a toast with actions when a file download completes in the desktop app (#13769)
* Show toast with actions when a file download completes

In the desktop app a toast is now displayed when a file finishes
downloading, with the option to open the file or reveal it in the file
manager of the operating system.

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

* Guard download bridge calls for older desktop apps

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

* Change protocol in dev for easier testing

* Use standard buttons stacked below the file name in download toast

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-17 19:36:47 -04:00
Tom Moor da6cbc123e feat: Multi-select controls on the child document list (#13782)
* feat: Multi-select controls on the child document list

* Remove redundant selectable gate
2026-09-17 08:04:21 -04:00
Tom Moor 9f7069d083 fix: Reduce gap between archived/deleted banner and document title (#13780)
* fix: Reduce gap between archived/deleted banner and document title

* refactor: Move notice spacing rule to the editor container
2026-09-17 11:59:27 +00:00
Tom Moor 29287f6e1e fix: Table of contents closes immediately when another tab's header is under 700px (#13781) 2026-09-17 07:39:00 -04:00
Tom Moor d195e29651 feat: Show file extensions and print shortcut in the export menu (#13778) 2026-09-17 07:31:06 -04:00
Tom Moor 06a62f096c fix: Hide scrollbars on the suggestion menu (#13779) 2026-09-17 07:29:42 -04:00
Tom Moor 1a0c7f47c8 fix: Backspace inside a notice orphans the emptied paragraph in Chrome (#13770) 2026-09-16 23:48:02 -04:00
Tom Moor 9eb49d76b7 fix: Selection lands after a newly inserted notice instead of inside it (#13768) 2026-09-16 23:19:19 -04:00
Tom Moor 30b8e681cf Add Gmail and Outlook links after email sign-in requests (#13761)
* Add inbox links after email magic-link requests

* Add and align Gmail and Outlook button icons
2026-09-16 21:30:57 -04:00
Tom Moor 11abb1c752 perf: Filter placeholder candidates before evaluating conditions (#13760) 2026-09-16 20:38:26 -04:00
Tom Moor 33e1293ae9 fix: Correct shared document preview links (#13756) 2026-09-16 19:17:39 -04:00
Tom Moor 4d12b3294c perf: Animate loading bar with transform (#13755) 2026-09-16 19:13:19 -04:00
Tom Moor c2c7200151 fix: Show notice type for list selections (#13721) 2026-09-13 15:42:34 -04:00