Conrad Irwin
08de0d88b1
Update channel moving to match
2024-01-26 10:07:51 -07:00
Conrad Irwin
c6d33d4bb9
Only allow Manage Members on root channels
2024-01-26 09:40:41 -07:00
Conrad Irwin
4b672621d3
Aggressively simplify channel permissions:
...
- Only allow setting permissions on the root channel
- Only allow public channels to be children of public channels
2024-01-25 23:26:32 -07:00
Conrad Irwin
716221cd38
Simplify handling of syncing versions
...
Currently whenever a channel changes we send a huge amount of data to
each member. This is the first step in reducing that
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: bennetbo <bennetbo@gmx.de>
2024-01-25 15:41:53 -07:00
Conrad Irwin
b72c037199
TEMP
2024-01-25 13:24:45 -07:00
Conrad Irwin
fbdca993ff
Format
2024-01-25 11:12:02 -07:00
Conrad Irwin
adb6f3e9f7
Move expensive participant update out of transaction
...
Co-Authored-By: Marshall <marshall@zed.dev>
2024-01-25 11:05:19 -07:00
Conrad Irwin
4bcd3494b7
Try to send typed errors back and forth
...
TEMP
TEMP
First pass of structured errors
Improved error handling for channel joining failures
2024-01-24 20:32:39 -07:00
Max Brunsfeld
25708088b7
Add requires_zed_cla column to channels table
...
Don't allow granting guests write access in a call where the channel
or one of its ancestors requires the zed CLA, until that guest has
signed the Zed CLA.
Co-authored-by: Marshall <marshall@zed.dev>
2024-01-22 16:41:24 -08:00
Marshall Bowers
cf5dc099fb
Add more documentation to collab
( #4095 )
...
This PR adds more documentation to the `collab` crate.
Release Notes:
- N/A
---------
Co-authored-by: Conrad <conrad@zed.dev>
2024-01-17 13:38:12 -05:00
Mikayla
6503dd51dd
enviroment -> environment
2024-01-10 22:57:58 -08:00
Conrad Irwin
bf304b3fe7
Track room participant role
...
(Also wire that through to project collaboration rules for now)
2024-01-03 19:30:32 -07:00
Max Brunsfeld
28c39aae17
Start work on read-only project access for channel guests
...
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 19:30:32 -07:00
Max Brunsfeld
4479628342
Prevent moving a channel into its descendant
2023-12-01 11:41:38 -08:00
Max Brunsfeld
b5cbfb8f1d
Allow moving channels to the root
2023-10-25 15:50:37 +02:00
Max Brunsfeld
32367eba14
Set up UI to allow dragging a channel to the root
2023-10-25 15:39:02 +02:00
Max Brunsfeld
5c03b6a610
Remove logic for multiple channel parents
...
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Kyle <kyle@zed.dev>
Co-authored-by: Joseph <joseph@zed.dev>
2023-10-24 17:29:23 +02:00
Conrad Irwin
aa6990bb6b
Fix set_channel_visibility for public channels
2023-10-24 10:55:10 +02:00
Conrad Irwin
ea4e67fb76
Merge branch 'main' into guest-exp
2023-10-23 17:47:21 +02:00
Max Brunsfeld
fce09e8c92
Mark chat mention notifications as read when viewing the message
2023-10-22 11:57:10 +02:00
Conrad Irwin
aa4b8d7246
Fix notifications for membership changes too
2023-10-19 23:05:06 -06:00
Max Brunsfeld
841cfac1f8
Fix filtering when providing non-admins info about channel members
2023-10-19 12:54:47 -07:00
Conrad Irwin
3853009d92
Refactor to avoid some (mostly hypothetical) races
...
Tidy up added code to reduce duplicity of X and X_internals.
2023-10-18 21:42:10 -06:00
Max Brunsfeld
b07f9fe3b5
Merge branch 'main' into notifications
2023-10-18 17:20:04 -07:00
Conrad Irwin
2b11463567
Fix notifications on channel changes
2023-10-18 15:56:33 -06:00
Mikayla
0ce1ec5d15
Restrict DAG-related functionality, but retain infrastructure for implementing symlinks
2023-10-18 05:28:05 -07:00
Conrad Irwin
70aed4a605
Sync Role as part of channels
...
Begin to fix guest notifications
2023-10-17 22:48:44 -06:00
Max Brunsfeld
ee87ac2f9b
Start work on chat mentions
2023-10-17 17:59:42 -07:00
Max Brunsfeld
660021f5e5
Fix more issues with the channels panel
...
* Put the newest notifications at the top
* Have at most 1 notification toast, which is non-interactive,
but focuses the notification panel on click, and auto-dismisses
on a timer.
2023-10-17 15:43:06 -07:00
Conrad Irwin
783f05172b
Make sure guests join as guests
2023-10-17 15:40:23 -06:00
Max Brunsfeld
f2d36a47ae
Generalize notifications' actor id to entity id
...
This way, we can retrieve channel invite notifications when
responding to the invites.
2023-10-17 10:34:50 -07:00
Conrad Irwin
5b39fc8123
Temporarily join public channels as a member
2023-10-17 10:29:43 -06:00
Conrad Irwin
3412becfc5
Fix some tests
2023-10-17 10:15:20 -06:00
Max Brunsfeld
f225039d36
Display invite response buttons inline in notification panel
2023-10-17 09:12:55 -07:00
Conrad Irwin
851701cb6f
Fix get_most_public_ancestor
2023-10-17 09:41:34 -06:00
Mikayla
465d726bd4
Minor adjustments
2023-10-17 03:05:01 -07:00
Conrad Irwin
6ffbc3a0f5
Allow pasting ZED urls in the command palette in development
2023-10-16 20:03:44 -06:00
Conrad Irwin
2feb091961
Ensure that invitees do not have permissions
...
They have to accept the invite, (which joining the channel will do),
first.
2023-10-16 16:24:10 -06:00
Conrad Irwin
4e7b35c917
Make joining a channel as a guest always succeed
2023-10-16 15:14:13 -06:00
Max Brunsfeld
cb7b011d6b
Avoid creating duplicate invite notifications
2023-10-13 16:57:28 -07:00
Conrad Irwin
f6f9b5c8cb
Wire through public access toggle
2023-10-13 16:59:30 -06:00
Conrad Irwin
bb408936e9
Ignore old admin column
2023-10-13 14:08:40 -06:00
Conrad Irwin
e050d168a7
Delete some old code, reame ChannelMembers -> Members
2023-10-13 13:39:46 -06:00
Conrad Irwin
9c6f5de551
Use new get_channel_descendants for delete
2023-10-13 13:17:19 -06:00
Conrad Irwin
a8e352a473
Rewrite get_user_channels with new permissions
2023-10-13 11:46:03 -06:00
Conrad Irwin
65a0ebf975
Update get_channel_participant_details to include guests
2023-10-12 21:36:21 -06:00
Conrad Irwin
da2b8082b3
Rename members to participants in db crate
2023-10-12 20:42:42 -06:00
Conrad Irwin
a7db2aa39d
Add check_is_channel_participant
...
Refactor permission checks to load ancestor permissions into memory
for all checks to make the different logics more explicit.
2023-10-12 19:59:50 -06:00
Conrad Irwin
540436a1f9
Push role refactoring through RPC/client
2023-10-12 13:05:54 -06:00
Conrad Irwin
690d9fb971
Add a role column to the database and start using it
...
We cannot yet stop using `admin` because stable will continue writing
it.
2023-10-11 20:05:57 -06:00