Files
codegen-sh[bot]andTom Moor c02a33a74c feat: Disable commenting per collection (#9295)
* Address PR feedback: Move commenting logic to Collection model

- Update openDocumentComments action to use collection.canCreateComment
- Update AuthenticatedLayout to check collection-level commenting setting
- Update DocumentMeta to use collection commenting preference
- Add commenting field to CollectionForm with proper UI
- Maintain backward compatibility with team-level preferences

* Applied automatic fixes

* Disable comment creation UI when collection commenting is disabled

- Update Editor component to use collection-level commenting setting
- Pass onCreateCommentMark as undefined when commenting is disabled
- This removes the shortcut and toolbar icon for comment creation
- Maintains backward compatibility with team-level preferences

* Fix TypeScript error in Editor component

- Fix props destructuring to avoid variable shadowing
- Ensure all required props are properly destructured
- Maintain correct property order from original implementation

* Fix TypeScript error: add missing activeCollectionId parameter

- Add activeCollectionId to import document action perform function
- This parameter was being used but not declared in the function signature
- Fixes TS2304 error: Cannot find name 'activeCollectionId'

* fix form

* docs

---------

Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
2025-05-24 18:35:50 -04:00
..
2025-03-23 12:19:13 -07:00
2025-01-18 22:56:24 -05:00
2025-05-03 19:40:18 -04:00
2025-02-20 09:04:52 -05:00
2025-02-20 09:04:52 -05:00
2025-03-08 03:42:19 +00:00
2025-03-29 06:08:07 -07:00
2025-02-20 09:04:52 -05:00
2025-02-20 09:04:52 -05:00
2025-05-03 02:18:56 +00:00
2024-11-26 20:43:01 -05:00
2025-04-10 18:24:32 -07:00
2025-01-18 22:56:24 -05:00
2025-02-20 09:04:52 -05:00