Commit Graph

424 Commits

Author SHA1 Message Date
Philipinho c630b5be38 Merge branch 'main' into perm-x 2026-01-27 19:12:26 +00:00
Philip Okugbe 74e915546b feat: collab redis extension with server affinity (#1873)
* feat(collab): better redis extension
* move types to own file
* debug logging
* fix: graceful collab shutdown
* rename default prefix
* pass wsAdapter to gateway
* expose event handler
* unique collab serverId generation
* uninstall @hocuspocus/extension-redis package
* expose more functions
* sync with latest
* cleanup
* fastify router options
* cleanup type
2026-01-27 17:05:05 +00:00
Philipinho 3523600f40 add timestamps 2026-01-27 16:49:22 +00:00
Philip Okugbe 6ccb2bb872 feat(export): add metadata file to preserve page icons and ordering on import (#1877)
* feat(export): add metadata file to preserve page icons and ordering on import
- Export includes `docmost-metadata.json`
- Import reads metadata to restore icons and sort siblings by original position

* cleanup

* bonus fixes

* handle unknown prosemirror nodes

* add docmost app  version
2026-01-27 16:39:39 +00:00
Philipinho caf4d5a725 Merge branch 'main' into perm-x 2026-01-26 11:18:40 +00:00
Philipinho 0245a183e1 sync 2026-01-26 02:08:54 +00:00
Philipinho 50fb8a1a52 Merge branch 'main' into perm-x 2026-01-25 04:34:41 +00:00
Philipinho 1e441560f6 fix production logs filter 2026-01-25 02:15:10 +00:00
Philip Okugbe 54775f537d fix: handle malformed URLs gracefully during import/export (#1868)
* Handling malformed URLs gracefully

* Allow import of invalid URLs, but adding logging.

---------

Co-authored-by: gpapp <gergely.papp@itworks.hu>
2026-01-25 00:48:43 +00:00
Philip Okugbe aa6a046aa6 feat(export): add export loading state and copy as markdown (#1867)
* feat: add loading state to export

* feat: copy as markdown

* preserve taskList comment
2026-01-24 23:30:17 +00:00
Philip Okugbe 657fdf8cb7 feat: Tiptap V3 migration (#1854)
* Tiptap3 migration - WIP

* fix collaboration

* remove unused code

* fix flicker

* disable duplicate extensions

* update tiptap version

* Switch to useEditorState
- Set shouldRerenderOnTransaction to false

* fix editable state

* add tippyoptions for reference

* merge main

* tiptap 3.6.1

* fix bubble menu

* fix converter

* fix menus

* fix collaboration caret css

* fix: Set `isInitialized` to force immediate react node view rendering

* feat: Migrate tippy.js menus to Floating UI

* feat: Update collaboration connection for HocusPocus v3

* fix: Connect/disconnect websocketProvider

* cleanup

* cleanup

* feat: Improved placeholder and upload handling for images

* feat: Improved placeholder and upload handling for videos

* refactor: Image node and view clean-up

* feat: Improved placeholder and upload handling for attachments

* fix: Video view styles

* fix: Transaction handling on asset upload

* fix: Use imageDimensionsFromStream

* feat: Multiple file upload, improved placeholders, local previews

* fix: Drag & drop, paste upload

* fix: Allow media as attachment

* * add skeleton pulse animation
* add translation strings
* fix attachment view responsiveness

* fix collab connection status display

* Tiptap v3.17.0

* fix suggestion menu exit bug

* fix search shortcut

* fix history editor css

* tiptap 3.17.1

---------

Co-authored-by: Arek Nawo <areknawo@areknawo.com>
2026-01-24 20:41:08 +00:00
Philip Okugbe 98f71c95fe feat: stream file serving (#1865) 2026-01-24 17:54:56 +00:00
Philip Okugbe efb0a9317b feat: allow upload of large files (#1862)
* Allow upload of large files

* feat: createByteCountingStream utility function.

---------

Co-authored-by: gpapp <gergely.papp@itworks.hu>
2026-01-22 20:00:58 +00:00
Philipinho 063ea99b66 sync 2026-01-21 18:17:48 +00:00
Philip Okugbe aa143ad79c refactor(db): migrate from node-postgres to postgres.js (#1846)
* refactor(db): migrate from node-postgres to postgres.js
* ignore schema param
2026-01-21 18:12:16 +00:00
Philipinho 51928de956 Merge branch 'main' into perm-x 2026-01-21 11:48:04 +00:00
Philip Okugbe 918f4508d2 feat: switch to pino for logs (#1855)
- switch to json logs in production
- add option to support http logging
2026-01-21 01:23:50 +00:00
Philipinho dd3c75dcf5 Merge branch 'main' into perm-x 2026-01-20 10:44:46 +00:00
Philip Okugbe f3f74c591f fix(share): escape page title in SEO meta tags (#1850) 2026-01-19 19:31:28 +00:00
Philipinho 826bc0114d Merge branch 'main' into perm-x 2026-01-18 16:51:12 +00:00
Philipinho bf89eff5e7 sync 2026-01-16 13:20:31 +00:00
Philipinho c0e67e84a5 Merge branch 'main' into perm-x 2026-01-15 01:10:09 +00:00
Philipinho 56780b4d42 Merge branch 'main' into perm-x 2026-01-15 00:59:40 +00:00
Philip Okugbe 183787fa0c fix: update dependencies (#1843) 2026-01-14 16:36:47 +00:00
Philipinho 15aa04a5f7 sync 2026-01-14 11:49:39 +00:00
Philipinho ff9743f2da Merge branch 'main' into perm-x 2026-01-14 01:16:41 +00:00
Philipinho e98fa7f69a sync
* fix form length
2026-01-13 16:13:04 +00:00
Philip Okugbe 0bbc1c35de fix: public sharing performance improvements (#1841) 2026-01-13 16:00:22 +00:00
Philip Okugbe 47097969a0 fix: use subquery (#1833)
- enhance file tasks list endpoint
2026-01-13 15:58:26 +00:00
Philip Okugbe 8fc8422fbc fix: increase max length for groups and spaces (#1840) 2026-01-13 15:31:03 +00:00
Philipinho 495e7e62be fix 2026-01-12 21:35:21 +00:00
Philipinho b65b53096a fix permission 2026-01-12 15:57:51 +00:00
Philipinho 4b65d4d81d optimize share tree filtering for restricted pages
- Add getPageAndDescendantsExcludingRestricted to PageRepo that filters
     restricted subtrees in a single query using recursive CTE
- Block share tree access when shared page inherits restriction from ancestor
2026-01-12 14:11:56 +00:00
Philipinho e14e7db514 fix spec 2026-01-11 15:58:19 +00:00
Philipinho a5696bb8e8 - CTE approach
- Remove closure table usage
2026-01-11 04:36:32 +00:00
Philipinho 4c635b4faf single query check 2026-01-07 18:58:34 +00:00
Philipinho 56c1cfe7a9 restriction info 2026-01-07 18:38:29 +00:00
Philipinho 8112c3578b fix page permissions management 2026-01-07 17:22:58 +00:00
Philipinho 3afc9b6e10 default cache expiration 2026-01-07 14:57:57 +00:00
Philipinho 9a827b903a cache module 2026-01-07 02:21:17 +00:00
Philipinho 8863df4be4 fix mention permissions 2026-01-07 01:56:32 +00:00
Philipinho 50847be871 WIP 2026-01-07 01:37:45 +00:00
Philipinho 077d9723aa page export permission check 2026-01-07 00:41:04 +00:00
Philipinho f2de4a1839 WIP 2026-01-06 23:49:53 +00:00
Philipinho 873dd3bb51 WIP - repair check 2026-01-06 22:36:55 +00:00
Philipinho 8d9aa3b3aa WIP 6 - rebuilding 2026-01-04 17:59:46 +00:00
Philipinho 29658b0572 lock during rebuild 2026-01-02 03:45:53 +00:00
Philipinho d17efaf26e Share permissions 2026-01-02 03:45:39 +00:00
Philipinho 8eb698648e WIP 5 2025-12-31 10:16:54 +00:00
Philipinho 0c3901abf5 WIP 4 2025-12-29 22:13:58 +00:00