Commit Graph
1190 Commits
Author SHA1 Message Date
Antonio Scandurra 4b37b16791 Render chat messages in ChatPanel 2021-08-24 12:23:50 +02:00
Max Brunsfeld 9e5bbafe90 Start work on subscribing to model from ChatPanel 2021-08-23 17:21:06 -07:00
Max BrunsfeldandNathan Sobo 0d4872c04d Allow subscription/notification to be cancelled by dropping the returned Subscription
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:54:24 -07:00
Max Brunsfeld d253d1032c Get light theme loading successfully 2021-08-23 15:09:18 -07:00
Max BrunsfeldandNathan Sobo 0ec6a19819 Remove model and view specific observe/subscribe methods
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:07:50 -07:00
Max Brunsfeld 8192b67458 Add ChannelList to AppState 2021-08-23 15:03:45 -07:00
Max BrunsfeldandNathan Sobo 29372d66df Add generic subscribe and observe methods to contexts
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:03:12 -07:00
Max BrunsfeldandNathan Sobo c88eb959e9 Simplify state associated with observations
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:03:08 -07:00
Max BrunsfeldandNathan Sobo 4c7a958815 Fix scrolling in List element
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 11:02:30 -07:00
Antonio ScandurraandNathan Sobo a1e0cd6793 WIP: Render dummy chat messages to test List
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 17:29:46 +02:00
Antonio ScandurraandNathan Sobo ed5e5365bd Give up on entities being Send and Sync
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 17:04:32 +02:00
Antonio ScandurraandNathan Sobo 3152018647 Implement scrolling and painting for List
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:41:48 +02:00
Antonio ScandurraandNathan Sobo abce48e6a3 Perform a full layout of List when width changes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:04:23 +02:00
Antonio ScandurraandNathan Sobo 7c24fd5a7f Implement and test splice for ListState
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:00:05 +02:00
Antonio ScandurraandNathan Sobo df55feb5cf Remove vestiges of after_layout
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:23:06 +02:00
Antonio ScandurraandNathan Sobo 0f3e5f0e75 WIP: Create infrastructure for testing element layout
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:20:23 +02:00
Antonio ScandurraandNathan Sobo 58cf940e2f Fix boxed cloning of AnyAction
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 14:45:13 +02:00
Antonio Scandurra 3b88ad4a9c Pass action instead of action argument to handlers 2021-08-23 12:00:31 +02:00
Nathan Sobo ad339f0743 Get project compiling with type-safe actions 2021-08-22 21:02:48 -06:00
Nathan Sobo 62be994750 WIP 2021-08-22 13:29:54 -06:00
Nathan Sobo bd121d7e9e WIP 2021-08-22 11:58:19 -06:00
Nathan Sobo d4b20491fb WIP: Start on List::layout
Perform layout on any elements that we haven't yet laid out.
2021-08-21 13:40:45 -06:00
Nathan Sobo 174ead146a Remove after_layout from Element trait
Now that layout takes a MutableAppContext we don't need an after_layout phase.
2021-08-20 16:40:45 -06:00
Nathan Sobo 2f5f0a4f96 WIP 2021-08-20 16:34:46 -06:00
Nathan Sobo 9f69d8ce2b WIP: Move sum_tree module into gpui so we can use it in List 2021-08-20 16:18:39 -06:00
Max Brunsfeld db07a5c3de Stub in a ChatPanel 2021-08-20 14:28:45 -07:00
Max BrunsfeldandNathan Sobo 31f2bd26d5 Add sidebars
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 13:51:52 -07:00
Max BrunsfeldandAntonio Scandurra a180016f1c Make titlebar_height available during render
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:45:42 -07:00
Max BrunsfeldandAntonio Scandurra 2f58c18ab4 Make the default window size non-zero
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:01:24 -07:00
Max Brunsfeld f054d6e93b Merge remote-tracking branch 'origin/sexy' into chat-theme-prep 2021-08-20 09:50:58 -07:00
489264509d Flatten theme styles by eliminating top-level ui key
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:44:34 -06:00
Nathan Sobo b44d4a353a Use singular names in theme and number surfaces from 0 2021-08-20 10:18:05 -06:00
Antonio Scandurra 36817e1dbf Merge remote-tracking branch 'origin/main' into chat 2021-08-20 16:52:29 +02:00
Antonio ScandurraandNathan Sobo 5a647cb6bc Forbid parking earlier in server integration tests
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 16:41:10 +02:00
Antonio ScandurraandNathan Sobo 555d5132b7 Make database interactions deterministic in test
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 16:24:33 +02:00
Antonio ScandurraandNathan Sobo d5f0833b67 💄
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 15:00:08 +02:00
Antonio ScandurraandNathan Sobo 1128405fa5 Extract a Db::close method and remove deref to PgPool
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 14:58:14 +02:00
Antonio ScandurraandNathan Sobo 3e79a50fe1 Provide a consistent ordering for channel messages based on their ID
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 14:44:36 +02:00
Antonio ScandurraandNathan Sobo eb53ffcbbd Implement and test channel cleanup as clients leave
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 14:32:53 +02:00
Antonio Scandurra 1d58a6f629 Save messages received from the server 2021-08-20 11:16:59 +02:00
Max Brunsfeld 460d56ff9e Start work on sending channel messages 2021-08-19 18:04:49 -07:00
Max Brunsfeld 64d99655c1 Send LeaveChannel message in Entity::release instead of Drop::drop 2021-08-19 18:00:12 -07:00
Max Brunsfeld e5e8da7aa2 Remove Auth and AuthResponse protobuf messages 2021-08-19 18:00:12 -07:00
Max Brunsfeld 3f89ae5284 Merge pull request #127 from zed-industries/generalize-theme-references
In themes, replace "variables" with a more general key-path reference construct
2021-08-19 14:43:54 -07:00
Nathan Sobo 7387633ec0 Fetch messages when joining a channel 2021-08-19 15:25:20 -06:00
Max Brunsfeld 29bfd78b0b WIP 2021-08-19 13:07:28 -07:00
Max BrunsfeldandNathan Sobo 0d06ef784a Move Arc outside of rpc::Client
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:56:50 -07:00
Max BrunsfeldandNathan Sobo e734f58c97 Consolidate server's rpc state into the rpc::Server struct
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:17:52 -07:00
Max BrunsfeldandNathan Sobo bdecb4c61c Send SaveBuffer message on foreground thread
This ensures that it gets sent *after* any other messages
for which we have already spawned a foreground send.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:17:32 -07:00
f3d41b5418 Fix double borrow panic
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-08-19 19:58:13 +02:00