2246 Commits
Author SHA1 Message Date
Tom Moor ee3c88bc14 fix: Standardize media resizing, add aspect ratio lock control (#14677)
* fix: Allow PDF embed width and height to change independently

Adds an aspect ratio lock toggle to the media dimension toolbar for PDF
embeds, renders PDFs at their stored aspect ratio, and keeps that ratio
when drag resizing.

* feat: Add corner resize handles to PDF embeds and persist aspect ratio lock

Stores the lock as an optional attachment attribute, where unset means
locked, so side handles change only the width of unlocked PDFs.

* feat: Consistent resize handles for images, videos, PDFs and embeds

All media get side, bottom and corner handles driven by one lock rule.
Images and videos stay locked. PDFs and embeds can be unlocked to resize
each axis independently.

* feat: Show width, height and lock in the embed toolbar

* feat: Start embeds unlocked and step media dimensions with arrow keys

Embeds start with an unlocked aspect ratio so full-width embeds can still
be made taller, while PDFs start locked. Up and down arrows step the
dimension inputs by 1, or 10 with shift.

* fix: Align the aspect ratio padlock with the dimension digits

* fix: Move the aspect ratio lock closer to the dimension inputs

* fix: Show the aspect ratio lock state in its tooltip
2026-11-21 11:33:02 -05:00
Tom Moor c88ea4b0d2 Lighter menu headers and remove dividers above groups (#14679)
* Update menu header style and strip dividers above groups

* Reduce font-size

* Ignore hidden menu elements when removing the first header margin
2026-11-20 15:34:45 -05:00
Tom Moor 1bac711141 fix: Status bar shows header button color on mobile Safari (#14680) 2026-11-20 15:34:40 -05:00
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 97a00a37ce fix: Close notifications popover when navigating to another page (#14654) 2026-11-19 17:57:19 -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 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 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
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 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 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 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 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 ebe842b1f5 fix: Sticky hover state on sidebar items on touch screens (#14570) 2026-11-12 22:10:31 -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 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 0caebe9cc3 fix: Correct grammar and US spelling in translation strings (#14504) 2026-11-06 18:41:23 -05:00
Tom Moor fe50488c97 feat: Allow selecting a destination when importing (#14486)
* feat: allow selecting import destination

* fix: address import destination review findings

* feat: multi-step import dialog with workspace root location

- Import dialog is now upload then location, the same height as the move dialog
- Document explorer lists the workspace as the root and marks the selected row
- A document export with a sibling folder merges into one document, or becomes
  the collection overview when creating new collections
- Destination document checks now rely on the createChildDocument policy

* fix: delete archived imported documents and read legacy task inputs

- Deleting an import now removes the children of archived imported documents
- Tasks queued before the rename to rootExternalId are still assigned correctly
2026-11-06 08:05:31 -05:00
Tom Moor 6d7cd455e9 chore: Decouple core plugins (#14340)
* chore: Move plugin-specific integration code into plugins

Core no longer imports from or names the settings of individual plugins.
Plugins now register mention providers, issue status icons, instance URLs,
settings keys, settings and import schemas, and OAuth clients through hooks.

* fix: Recompute embed instance URLs after plugins load and match legacy issue icons by URL

* fix: Skip logo upload jobs queued without a settings path

* chore: Choose issue status icons from the unfurl state
2026-11-02 19:42:48 -05:00
Tom Moor 5b10e046f0 fix: Show workspace logged out state as muted menu badge (#14436)
* fix: Show workspace logged out state as muted menu badge

* fix: Render menu badges in mobile menus
2026-11-01 09:48:21 -05:00
Tom Moor bd7fc38ddb feat: Generate Pinyin slugs for Chinese document titles (#14375)
Slugs are now generated only on the server, which lazily loads pinyin-pro.
The client reads the path from the API rather than computing it.
2026-10-31 11:12:24 -04:00
Tom Moor def01b0fa8 feat: Mobile undo button and new doc button on collections (#14413)
* feat: Mobile undo button, new doc button on collections, and dark overscroll fix

* fix: Parse viewport meta before theme bootstrap script
2026-10-29 23:39:17 -04:00
Tom Moor 2fac7404e0 feat: Show outline document icon for empty documents (#14373)
* feat: Show outline document icon for empty documents

* fix: Rebuild recent document actions when document state changes

* feat: Thinner outline icon for empty documents
2026-10-29 18:51:08 -04:00
Tom Moor 0d61a3e68b fix: Close open modals when navigating to another page (#14365) 2026-10-27 17:58:42 -04:00
Tom Moor 57d438d88e feat: Add Move to the document selection toolbar (#14350)
* feat: Add Move to the document selection toolbar

* fix: Load source collection trees before moving documents
2026-10-26 22:12:23 -04:00
Tom Moor 1bdf026857 feat: Send share changes over WebSockets (#14161)
* feat: Send share changes over WebSockets

* fix: Include document members in share events and hydrate share policies

* refactor: Move share event query to a Share scope
2026-10-24 18:17:23 -04:00
Tom Moor b72f11b01e chore: Enforce more codebase conventions with lint rules (#14310)
* chore: Enforce more codebase conventions with lint rules

Add lint rules for request.origin, deferred useLocation reads, # private
members, lodash and date-fns subpath imports, and button types. Fix the
existing violations.

* fix: Only flag useLocation reads in event handlers and useCallback

* test: Use a fixed member name in users.list name query test
2026-10-24 13:23:25 -04:00
Tom Moor e61b7ef21c fix: Do not report suspended user socket errors to Sentry (#14266) 2026-10-23 19:30:43 -04:00
Tom Moor 114036bdbf feat: Warn about low contrast theme colors (#14258)
* feat: Warn about low contrast theme colors

* fix: Show contrast warning as visible text linked to the input

* fix: Align color input swatch and enlarge it on mobile
2026-10-23 02:09:50 +00:00
Tom Moor d142bf1f44 feat: Increase small text sizes on mobile (#14255) 2026-10-22 20:51:54 -04:00
Tom Moor 86e274fe84 fix: Use text color for mobile header primary button in dark theme (#14252) 2026-10-22 23:49:59 +00:00
Tom Moor 4677a71bd8 fix: Stop iOS blurring the mobile header in the installed web app (#14238)
* fix: Solid mobile header in installed web app so iOS does not blur it

* fix: Start the standalone header fade opaque at the header edge
2026-10-22 18:20:55 -04:00
Tom Moor 3813d6c436 fix: Use drawer colors for mobile sidebar (#14240) 2026-10-22 18:18:59 -04:00
Tom Moor 8f628333a9 chore: Replace react-waypoint with an IntersectionObserver hook (#14209) 2026-10-21 22:35:21 -04:00
Tom Moor bdfd7436e2 chore: Upgrade react-window to 2 (#14196) 2026-10-21 22:18:59 -04:00
Tom Moor 9e602f8e18 fix: Scroll settings tables horizontally on narrow screens (#14216)
* fix: Scroll settings tables horizontally on narrow screens

* fix: Header focus scroll, RTL direction, and template title truncation
2026-10-21 22:18:44 -04:00
Tom Moor c59e0f59b3 chore: Replace react-dnd with dnd-kit for sidebar (#14213)
* chore: Replace react-dnd with dnd-kit for sidebar drag and drop

* fix: Do not start sidebar drags from touch pointers
2026-10-21 21:51:21 -04:00
Tom MoorandClaude Opus 5.5 4f9cbe33b1 fix: Respect Modal height prop (#14215)
* fix: Respect Modal height prop

The height prop was overridden by a fixed max-height on the inner container. Taller modals are now also moved up so that they stay within the viewport.

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

* fix: Limit Modal height to the viewport

A height larger than the viewport moved the header above the screen. The height is now capped at 90vh.

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 21:49:14 -04:00
Tom Moor a557ce824b feat: Alt-click disclosure in document explorer expands all descendants (#14200) 2026-10-21 18:19:24 -04:00
Tom Moor 418752c096 chore: Remove @juggle/resize-observer polyfill (#14204) 2026-10-21 18:19:04 -04:00
Tom Moor 89af21166b fix: Make mobile header opaque when settings table header is sticky (#14208)
* fix: Make mobile header opaque when settings table header is sticky

* Use isIntersecting for stuck detection
2026-10-21 18:18:56 -04:00
Tom Moor 6ecdc4a4f4 chore: Vendorize is-printable-key-event and styled-normalize (#14194)
* chore: Vendorize is-printable-key-event and styled-normalize

* chore: Retain MIT notices for vendored normalize CSS
2026-10-21 08:09:56 -04:00
Tom Moor 0545db9080 chore: Vendorize styled-components-breakpoint (#14191) 2026-10-21 00:02:11 -04:00
Tom Moor bc52d4b41b fix: Animate task progress dial between values (#14190) 2026-10-20 23:35:02 -04:00
Tom Moor dd2ee43dd5 feat: Sort the personal collection in the sidebar (#14187)
Adds the Sort in sidebar action to the Personal section header menu, with the
personal collection as the active model so that the action does not change the
collection that is open.
2026-10-20 23:11:57 -04:00