Commit Graph
3892 Commits
Author SHA1 Message Date
Tom Moor 854db75995 fix: Crash opening comment sidebar in Lightbox on public share (#13164) 2026-07-27 18:15:57 -04:00
Tom Moor 3260153f9c fix: Suppress 499 error reporting (#13165) 2026-07-27 18:15:50 -04:00
Tom Moor 3c53f4c75b fix: Evaluate of undefined in useKeyDown (#13163) 2026-07-27 17:58:43 -04:00
Tom MoorandClaude 053a3fd438 fix: Respect move policy in sidebar drag and drop (#13150)
Drop targets that reorder or reparent an item now require the `move`
ability on the dragged item, so no drop cursor or highlight appears
where the move would be rejected by the server.

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-26 18:51:54 -04:00
Tom MoorandClaude 17452bda5b Move socket management from client -> server (#13120)
* Move socket management from client -> server

* feedback

* fix: Reconcile collection rooms on visibility change

Handle collections.update transitions between private and team-visible by
joining or rebuilding the collection channel, route collection events through
the members channel so guests are excluded, and use removeData for the
collection ids cache invalidation.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-26 17:47:34 -04:00
Tom Moor 42cd66f79f Reorder search in command menu, remove Fuse workers (#13137) 2026-07-25 14:21:46 -04:00
Tom MoorandClaude e1c906a1c2 feat: Fuse powered local content search (#13115)
* wip

* generalize

* refactor

* Extract SearchResultIcon for command bar results

Both search action builders rendered the same document icon inline. Move it
into a shared component alongside the other command bar pieces, forwarding
size so the command bar can continue to size icons via cloneElement.

Also drop the redundant charAt(0).toUpperCase() on the initial, as the Icon
component already normalizes it.

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

* PR feedback
Prevent same doc showing twice in cmd k
Improve result ordering in main app command bar
Refactor to flattenTree

* Upgrade Fuse to 7.5.0, use workers

* fix: Re-register search actions when index is enriched

Include result contexts in the command bar registration key so that
snippets refresh when the same documents are enriched, and only mark a
server search as cached once its results are actually fed to the index.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-25 13:16:53 -04:00
Tom MoorandClaude 8192bc0514 chore: Audit and move inline actions to definitions (#13133)
* chore: Audit and move inline actions to definitions

* fix: Reuse existing smart-quote translation key in emoji delete dialog

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

* Remove two usages of 'Link copied' translation

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-25 16:13:12 +00:00
Tom Moor 60195ae0ee fix: Clear search chip highlight when opening CMD+F (#13135) 2026-07-25 12:05:26 -04:00
Tom Moor 08a3b64295 chore: Exhaustive deps warning -> error (#13124)
* chore: Exhaustive deps turned to error

* Refactor useDragResize

* Refactor Lightbox to explicit state machine

* feedback

* ci
2026-07-25 10:43:49 -04:00
Tom Moor b9354edb52 fix: Split view browser title (#13130) 2026-07-25 10:36:37 -04:00
Copilot 796adb8b22 Rename split-view route helper to isSplittablePath (#13125) 2026-07-25 07:57:19 -04:00
Tom MoorandCopilot Autofix powered by AI 7fed1597df Apply suggested fix to app/components/EditorAwareHTML5Backend.ts from Copilot Autofix (#13126)
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-07-25 07:56:23 -04:00
Tom MoorandAron Granberg 0f8a38ecd5 perf: Optimize drag and drop re-rendering (#13114)
* perf: optimize sidebar dragging

* Address copilot review comments

* deslop

* feedback

---------

Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
2026-07-23 22:35:35 -04:00
Tom Moor 87a4a40939 Remove ReactDOM from toDOM server rendering (#13109) 2026-07-23 20:06:27 -04:00
Tom Moor 2d91a13647 fix: useKeyDown binding blocks browser defaults (#13098)
* fix: useKeyDown binding blocks browser defaults

* feedback
2026-07-22 21:42:32 -04:00
Tom Moor e6a935d723 fix: Remove Home and Search buttons on logged out 404 page (#13094) 2026-07-22 08:48:35 -04:00
Tom Moor b1d2fb986f chore: Address 11 lint warnings (#13092) 2026-07-21 23:07:10 -04:00
Tom Moor bc898c40c8 fix: Format number for locale on imports listing 2026-07-21 21:13:04 -04:00
Tom Moor fa2c498786 Remove user listing for guests (#13083)
closes #13075
2026-07-21 18:46:57 -04:00
Tom Moor 6a09e9cf1d fix: Dark border printing docs from dark theme (#13074) 2026-07-20 23:29:26 -04:00
Tom MoorandClaude Fable 5 b67442a475 feat: CMD+enter from command menu to open in split view (#13073)
* CMD+enter to open in split view

* Fall back to normal navigation when location state is present

Location state cannot be represented in the split query parameter, so
opening in the secondary pane would silently drop it.

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

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 22:28:10 -04:00
Tom Moor ebc4e23dad chore: Tighten split view styling 2026-07-20 22:21:23 -04:00
Tom Moor 9deed62d14 fix: State mutation after unmount (#13070) 2026-07-20 20:00:25 -04:00
Tom Moor acd0cdfe7c fix: MobX warnings 2026-07-19 21:11:01 -04:00
Tom Moor 469caf04ca fix: Separate DocumentContext per split view 2026-07-19 20:49:15 -04:00
Tom Moor 2fe0940f04 fix: Introduce useActiveSidebarContext (#13051) 2026-07-19 20:48:06 -04:00
Tom Moor 05ba523e6e Tighten document header 2026-07-19 16:18:02 -04:00
Tom Moor 53a1287671 fix: li nested li 2026-07-19 15:57:08 -04:00
Tom Moor fd10642095 fix: Account for multiple tab bars mounted at once (#13050) 2026-07-19 15:42:24 -04:00
Tom Moor d57db81c6b feat: Split view (#13044)
Adds the ability to open a second route alongside the current one:

- The secondary route is stored in a `split` query string parameter so
  that reloading the page hydrates both panes.
- The secondary pane runs in its own in-memory router kept in sync with
  the query parameter, so links followed inside the pane navigate the
  pane rather than the primary route.
- Navigation while a split is open preserves the split, is directed to
  the focused pane, and routes that cannot render in a pane (such as
  settings) close the split.
- The focused pane is shown with an accent outline, updated as panes are
  clicked or focused, and keyboard shortcuts only apply to the focused
  pane.
- "Open in split view" added to document and collection menus and the
  command bar.
2026-07-19 11:57:33 -04:00
Tom MoorandClaude Opus 4.8 7d3e6591c2 feat: Add onNotice callback to decouple shared editor from toast library (#13046)
* feat: Add onNotice callback to decouple shared editor from toast library

Shared editor code called sonner's toast directly. Introduce an onNotice
callback (defaulting to a toast) so the shared editor stays agnostic of the
host app's notification library.

* Add lint rule to prevent regression

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 08:56:35 -04:00
Tom Moor 999fa235f8 fix: Attempted access of user in shared scenes 2026-07-19 08:00:11 -04:00
Tom Moor 7f1e87cd7f feat: Add context menu to reference list items (#13045) 2026-07-18 18:57:53 -04:00
Tom MoorandClaude Fable 5 8be4a0ac34 fix: Crash when dropping outside editor after drag began over it (#13037)
* fix: Crash when dropping outside editor after drag began over it

The EditorAwareHTML5Backend suppresses react-dnd's top-level handlers for
events within the ProseMirror editor, so a drag that begins or enters the
page over the editor is never registered with react-dnd. When such a drag
was then dropped outside the editor, the backend's unguarded drop handler
called actions.hover and threw "Invariant Violation: Cannot call hover
while not dragging". Skip the drop handler when no drag is registered,
mirroring the isDragging guard react-dnd already applies to dragover.

Fixes OUTLINE-CLOUD-CPR

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

* Remove EditorAwareHTML5Backend tests

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-18 12:39:13 -04:00
ZhuoYang Wu(阿离)andTom Moor 19da56c2c7 Improve sidebar menu and navigation tree performance (#12873)
* Improve sidebar menu and navigation tree performance

* remote some test and rollback useOnScreen

* feat: introduce ActionFactory type and update context menu components to support it

- Added ActionFactory type to allow functions returning ActionWithChildren.
- Updated ContextMenu and DropdownMenu components to handle ActionFactory.
- Modified DocumentRow, SidebarLink, and other components to accept ActionFactory for context actions.
- Refactored useDocumentMenuAction to utilize createRootMenuAction for better action management.

---------

Co-authored-by: Tom Moor <tom@getoutline.com>
2026-07-18 12:01:35 -04:00
Tom MoorandClaude Opus 4.8 416268b683 fix: Option to invite existing user not in doc (#13034)
* fix: Option to invite existing user not in doc

* fix: Address review comments on getByEmail

Use locale-insensitive lowercasing and lowercase JSDoc descriptions.

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

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 10:23:54 -04:00
Tom MoorandClaude Fable 5 9af5e56523 fix: useWindowScrollbarWidth measured horizontal overflow, not scrollbar width (#13030)
* fix: useWindowScrollbarWidth measured horizontal overflow, not scrollbar width

document.documentElement.scrollWidth - clientWidth measures horizontal
content overflow, which is 0 in the normal case even when a vertical
scrollbar is visible — so the hook always reported 0 on platforms with
classic (non-overlay) scrollbars, and the right sidebar's fixed-position
content in Aside was never narrowed to account for the scrollbar.

Measure window.innerWidth - documentElement.clientWidth instead, which
is the layout viewport width including the scrollbar minus the width
excluding it. Verified in headless Chromium: with a forced vertical
scrollbar the old expression returns 0 while the new one returns the
true scrollbar width (15px).

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

* chore: Remove explanatory comment

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-18 09:35:55 -04:00
Donghoon Yoo 5a8b81b25f fix: Allow deleting failed and expired exports (#13032) 2026-07-18 09:35:32 -04:00
表面and谢金城 452961ee6b fix: Indent group-shared document children (#13028)
Co-authored-by: 谢金城 <xiejincheng@xgd.com>
2026-07-17 07:46:48 -04:00
Tom MoorandClaude Opus 4.8 9788c8cc6d fix: Focusing starred link scrolls to original location (#13029)
* fix: Focusing starred link scrolls to original location

* fix: Restrict stateless scroll fallback to collections tree

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 07:38:42 -04:00
Tom MoorandClaude Opus 4.8 863f09371c perf: Keep vendor-prosemirror out of the eager authenticated bundle (#13026)
* perf: Keep vendor-prosemirror out of the eager authenticated bundle

Split the data-only helpers `getEmpty` and `isEmpty` out of
`ProsemirrorHelper` into a new prosemirror-free `ProsemirrorDataHelper`
module, and point the sidebar, DocumentNew, and other lightweight
callers at it. This removes the static edge from the authenticated entry
graph to `prosemirror-model`, deferring the ~653 KB vendor-prosemirror
chunk until an editor surface is actually opened.

Fixes #13005

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

* Use non-optional collection.data in defined branch

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

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 07:12:28 -04:00
Tom Moor 7329652ce9 fix: Cannot manually change image dimensions (#13025) 2026-07-16 21:19:11 -04:00
Tom Moor bbf6b77dc1 fix: More comment gutter alignment fixes (#13024) 2026-07-16 21:00:02 -04:00
Tom Moor 48f216878d fix: Multiple fixes for comment gutter mark behavior and scroll-to-comment (#13013)
* Multiple improvements to comment gutter marks

* fix: Scroll to comment thread behavior jank
2026-07-15 22:49:32 -04:00
Tom Moor 41d9250c46 fix: 'Reset theme' does not update input value (#12999)
* fix: 'Reset theme' does not update input value

* feedback
2026-07-13 21:21:08 -04:00
Tom Moor aa02544eaf fix: Mermaid appears twice in language picker (#13000) 2026-07-13 20:59:28 -04:00
Tom Moor 1ca54bea19 fix: Floating toolbar in template settings overlaps sidebar (#12994)
closes #12983
2026-07-13 18:46:24 -04:00
Tom Moor 69fdebd573 fix: Comment gutter mark default enabled (#12977) 2026-07-12 23:05:22 +02:00
Tom Moor f800c399b3 feat: Add support for rgb, hsl swatches (#12972) 2026-07-12 11:49:53 -04:00