Tom Moor
3f7d351aee
Default collection and document permissions based on user role
2024-04-02 19:59:35 -04:00
Tom Moor
5ce8827a8c
chore: Convert <Text /> component to span by default
2024-01-30 22:49:31 -05:00
Apoorv Mishra
1490c3a14b
Individual document sharing with permissions ( #5814 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Tom Moor <tom@getoutline.com >
2024-01-30 17:48:22 -08:00
Tom Moor
e62c734c41
Duplicative method cleanup ( #6431 )
2024-01-25 20:02:17 -08:00
Tom Moor
b482654c66
fix: Do not offer invite user functionality without permission
2024-01-20 10:01:56 -05:00
Tom Moor
e7fbec91fc
fix: Missing permission on selector in permissions dialog
2023-12-27 12:41:53 -05:00
Tom Moor
964d2b6bb3
Allow use of useCurrentUser/useCurrentTeam hooks in unauthenticated components
2023-10-28 11:38:35 -04:00
Tom Moor
ef76405bd6
Move toasts to sonner ( #6053 )
2023-10-22 14:30:24 -07:00
Tom Moor
d536fa9939
translation: team -> workspace
2023-10-18 08:32:43 -04:00
Tom Moor
262590e507
perf: Improve performance of rendering context menus
2023-09-04 23:29:19 -04:00
Tom Moor
b7bfc4bb1a
chore: Remove optimize imports to allow vite upgrade ( #5691 )
2023-08-14 11:44:58 -07:00
Tom Moor
89d5527d39
Handle promise linting ( #5488 )
2023-06-28 17:18:18 -07:00
dependabot[bot]
fbd16d4b9a
chore(deps-dev): bump prettier from 2.1.2 to 2.8.8 ( #5372 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2023-05-22 19:14:56 -07:00
Tom Moor
ac8946f0c5
fix: Admins should be able to add and remove themselves from collections
2023-05-04 21:52:59 -04:00
Tom Moor
d8b4fef554
feat: Collection admins ( #5273
...
* Split permissions for reading documents from updating collection
* fix: Admins should have collection read permission, tests
* tsc
* Add admin option to permission selector
* Combine publish and create permissions, update -> createDocuments where appropriate
* Plural -> singular
* wip
* Quick version of collection structure loading, will revisit
* Remove documentIds method
* stash
* fixing tests to account for admin creation
* Add self-hosted migration
* fix: Allow groups to have admin permission
* Prefetch collection documents
* fix: Document explorer (move/publish) not working with async documents
* fix: Cannot re-parent document to collection by drag and drop
* fix: Cannot drag to import into collection item without admin permission
* Remove unused isEditor getter
2023-04-30 06:38:47 -07:00
Tom Moor
49d903d6d4
chore: Remove console.log left in code and added eslint rule to prevent it happening again
2023-04-11 22:15:52 -04:00
Tom Moor
422bdc32d9
Add 's' method to access theme props ( #5163 )
2023-04-07 19:43:34 -07:00
Tom Moor
4ccff8cb29
chore: Convert GroupListItem, AddGroupsToCollection, AddPeopleToCollection, Drafts to functional components
2023-01-02 11:26:51 -05:00
Tom Moor
587f062677
Remove usage of tiley ( #4406 )
...
* First pass
* Mooarrr
* lint
* snapshots
2022-11-08 17:12:22 -08:00
Mihir Shah
881ea34dfe
chore: convert AddGroupToCollection component to functional component ( #4204 ) ( #4360 )
2022-11-02 17:31:13 -07:00
Nan Yu
39fc8d5c14
feat: allow ad-hoc creation of new teams ( #3964 )
...
Co-authored-by: Tom Moor <tom@getoutline.com >
2022-10-16 05:57:27 -07:00
Tom Moor
1915a453db
fix: Disallow adding self to collection ( #4299 )
...
* api
* ui
* update collection permissions
2022-10-15 19:11:09 -07:00
Tom Moor
0fd576cdd5
feat: Updated collection header ( #4101 )
...
* Return total results from collection membership endpoints
* Display membership preview on collections
* fix permissions
* Revert unneccessary changes
2022-09-11 05:54:57 -07:00
Tom Moor
212985e18f
feat: Allow viewers to be upgraded to editors on individual collections ( #4023 )
...
* Improve types
* More types, fix default permission for viewers added to collection
* fix change of default role for CollectionGroup
* Restore policy
* test
* tests
2022-08-30 23:12:27 -07:00
CuriousCorrelation
71dd4f267b
feat: Port UserListItem to functional style ( #3802 )
...
* feat: Port `UserListItem` to functional style
* Add translation for pending invite
* Add missing translations
* Update `translations.json`
* Revert "Update `translations.json`"
This reverts commit d8000a75105a984f9ee8418b278d93a034ad4adf.
* fix: Incorrect translation strings
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-07-20 15:07:01 -07:00
Tom Moor
0cdf1f791e
fix: Permission select should have border
2022-04-23 18:33:14 -07:00
Tom Moor
b7a6a34565
fix: Flash of empty state on paginated lists ( #3351 )
...
* fix: Flash of empty state on paginated lists
fix: Typing of PaginatedList to generic
* test
* test
2022-04-09 20:31:51 -07:00
Tom Moor
d5763233ca
HelpText -> Text
2022-02-17 20:59:40 -08:00
Tom Moor
c5a11fe17b
chore: Enable eslint to enforce curly ( #3060 )
2022-02-05 10:15:40 -08:00
Tom Moor
76d83b5e82
Remove duplicative Toggle component ( #3028 )
...
fix: Tidy some styling and spacing issues in settings
2022-01-28 20:23:02 -08:00
Tom Moor
81f3347ecf
fix: Don't show create a group option to those without permission
...
closes #2621
2021-12-18 11:21:07 -08:00
Tom Moor
15b1069bcc
chore: Move to Typescript ( #2783 )
...
This PR moves the entire project to Typescript. Due to the ~1000 ignores this will lead to a messy codebase for a while, but the churn is worth it – all of those ignore comments are places that were never type-safe previously.
closes #1282
2021-11-29 06:40:55 -08:00
Saumya Pandey
40e09dd829
fix: Implement custom Select Input ( #2571 )
2021-10-06 21:48:43 -07:00
Saumya Pandey
4929fbaccb
fix: Move "public document sharing" to "Permissions" ( #2496 )
...
* Convert to functional component
* Move public sharing to permissions
* Add collections.permission_changed event
* Account for null
* Update server/events.js
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* Add collections.permission_changed event
* Remove name
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-08-30 11:43:42 +05:30
Saumya Pandey
fdb85ec195
fix: Separate toasts storage to own MobX store ( #2339 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-07-20 14:36:10 +05:30
Tom Moor
31714efb0b
feat: useBoolean hook ( #2314 )
...
* feat: Add useBoolean hook and example usage
* More example usage
* chore: More useBoolean conversion
2021-07-15 12:27:03 -07:00
Tom Moor
810257bcf5
fix: Improve dark mode styling
...
fix: Improve user and group list styling
fix: Member list reload when changing permissions, closes #1999
2021-03-31 20:57:30 -07:00
Tom Moor
7e1b07ef98
feat: Add read-only collections ( #1991 )
...
closes #1017
2021-03-30 21:02:08 -07:00
Tom Moor
b42e9737b6
feat: Memberships ( #1032 )
...
* WIP
* feat: Add collection.memberships endpoint
* feat: Add ability to filter collection.memberships with query
* WIP
* Merge stashed work
* feat: Add ability to filter memberships by permission
* continued refactoring
* paginated list component
* Collection member management
* fix: Incorrect policy data sent down after collection.update
* Reduce duplication, add empty state
* cleanup
* fix: Modal close should be a real button
* fix: Allow opening edit from modal
* fix: remove unused methods
* test: fix
* Passing test suite
* Refactor
* fix: Flow UI errors
* test: Add collections.update tests
* lint
* test: moar tests
* fix: Missing scopes, more missing tests
* fix: Handle collection privacy change over socket
* fix: More membership scopes
* fix: view endpoint permissions
* fix: respond to privacy change on socket event
* policy driven menus
* fix: share endpoint policies
* chore: Use policies to drive documents UI
* alignment
* fix: Header height
* fix: Correct behavior when collection becomes private
* fix: Header height for read-only collection
* send id's over socket instead of serialized objects
* fix: Remote policy change
* fix: reduce collection fetching
* More websocket efficiencies
* fix: Document collection pinning
* fix: Restored ability to edit drafts
fix: Removed ability to star drafts
* fix: Require write permissions to pin doc to collection
* fix: Header title overlaying document actions at small screen sizes
* fix: Jank on load caused by previous commit
* fix: Double collection fetch post-publish
* fix: Hide publish button if draft is in no longer accessible collection
* fix: Always allow deleting drafts
fix: Improved handling of deleted documents
* feat: Show collections in drafts view
feat: Show more obvious 'draft' badge on documents
* fix: incorrect policies after publish to private collection
* fix: Duplicating a draft publishes it
2019-10-05 18:42:03 -07:00
Tom Moor
6520a501e3
fix: accessiblity improvements, focus states, real buttons
2019-08-30 00:27:40 -07:00
Tom Moor
5bd2409e39
Revert "WIP"
...
This reverts commit ccfad1d800 .
2019-08-28 00:03:11 -07:00
Tom Moor
ccfad1d800
WIP
2019-08-25 15:20:49 -07:00
Tom Moor
d024d31f66
refactor: flow typing ( #1012 )
...
* fix: padding
* fix: Minor button alignment issues
* feat: Add icon to invite people button
* WIP
2019-08-08 23:09:09 -07:00
Tom Moor
f80e4ab04c
Improved button styling
...
Added toast when collection permissions are saved
Removed usage of setState (old habits die hard)
2019-01-05 18:23:57 -08:00
Tom Moor
8c02b0028c
Collection Permissions ( #829 )
...
see https://github.com/outline/outline/issues/668
2019-01-05 13:37:33 -08:00