Max Brunsfeld and Nate Butler
d2bfae5fe1
Make selectors stylable via theme
...
* input editor container style
* "no matches" message style
Co-Authored-By: Nate Butler <nate@zed.dev >
2021-09-07 14:42:19 -07:00
Antonio Scandurra
058691d2b2
Focus chat input editor after signing in
2021-09-07 13:57:30 +02:00
Antonio Scandurra
09bb42c168
Show "sign in" prompt when opening the chat panel while signed out
2021-09-07 12:27:43 +02:00
Antonio Scandurra
77d1574679
Pass how many lines the editor should expand to in auto height mode
2021-09-06 12:50:04 +02:00
Antonio Scandurra and Nathan Sobo
e9d50159ee
Add a min width for the ChatPanel
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-03 17:56:07 +02:00
Antonio Scandurra
ec36d818c0
Round corners in the chat panel's input editor
2021-09-03 09:49:47 +02:00
Max Brunsfeld
522bef2e3a
Add placeholder text as a feature of Editor, use it in chat panel
2021-09-02 17:36:56 -07:00
Max Brunsfeld and Antonio Scandurra
1c43121ae0
In theme, add an InputEditorSyle for styling small editors
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-09-02 11:20:30 -07:00
Antonio Scandurra and Max Brunsfeld
f59e02cf25
Use macOS API to retrieve the local timezone
...
The `time` crate currently doesn't have a reliable way to get that.
In the future, `NSSystemTimeZoneDidChangeNotification` could be
used to keep the cached timezone up-to-date.
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-09-02 19:15:05 +02:00
Antonio Scandurra and Nathan Sobo
a27a17b8e2
Make scrolling up in chat panel smoother
...
This increases the threshold at which we start loading new messages
as well as the amount of messages we get back from the server every
time we fetch.
Also, we restructured the seed binary to use the methods in `Db` to
generate seed data and added random chat messages.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-02 16:05:34 +02:00
Antonio Scandurra
1d697df1bc
Implement channel switching
2021-09-02 10:16:20 +02:00
Max Brunsfeld and Nathan Sobo
6821c47e3d
Improve styling of chat messages and channel select
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-01 16:14:51 -07:00
Antonio Scandurra and Nathan Sobo
20e18ac3ad
WIP
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-01 16:19:01 +02:00
477740360d
Start work on partial rendering for List element
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-31 21:57:56 -07:00
Antonio Scandurra and Nathan Sobo
8edb2142b1
Pass a closure to provide styling to Select
...
This lets us obtain a new style when refreshing the theme.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-31 14:42:50 +02:00
Max Brunsfeld and Nathan Sobo
73a8fda9c7
Get the channel select looking good
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-30 17:59:13 -07:00
Antonio Scandurra and Nathan Sobo
ef89ceae4d
Take &mut self in View::render
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-30 17:51:26 +02:00
Max Brunsfeld
a98d293f54
Trim whitespace from chat messages and limit their length
...
Add a way for the server to respond to any request with an error
2021-08-27 17:21:35 -07:00
Max Brunsfeld and Nathan Sobo
bc63fca8d7
Fetch older messages when scrolling up in the chat message list
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-27 14:58:28 -07:00
Antonio Scandurra and Nathan Sobo
53dc08dfc5
Remove lock from element states
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-27 18:04:21 +02:00
Antonio Scandurra
386631debf
Focus toggled elements when interacting with the sidebars
...
Also, restore focus on the workspace when there is no active item
on the sidebar that was just toggled.
2021-08-27 10:01:44 +02:00
Max Brunsfeld
38d0258049
Add channel name header to chat panel
2021-08-26 17:12:56 -07:00
Max Brunsfeld
8861dea69d
Add zero padding when displaying timestamps
2021-08-26 16:21:47 -07:00
3bb5610ad1
Overhaul handling of font families
...
* Specify font families in the theme.
* Load fonts eagerly when loading themes, instead of loading
them lazily when rendering.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-26 15:06:00 -07:00
Antonio Scandurra and Nathan Sobo
4388c45029
Re-render all list elements when refreshing windows
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-26 16:36:56 +02:00
Max Brunsfeld
b923f65a63
WIP
2021-08-25 15:22:14 -07:00
77c7fa53da
Introduce Orientation concept to List
...
When the Orientation is Bottom, we paint elements from the bottom of the list when underflowing and express scroll position relative to the bottom. In either orientation, when inserting elements outside the visible area, we adjust the scroll position as needed to keep the visible elements stable.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-25 12:45:17 -06:00
Antonio Scandurra and Nathan Sobo
3d5cfb78ea
Use Text in chat panel
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-25 16:42:35 +02:00
Nathan Sobo and Max Brunsfeld
a79b32cfc2
Apply theme to chat messages
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 17:46:41 -06:00
Max Brunsfeld and Nathan Sobo
8179f90589
Add initial unit test for channel list
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-24 13:12:02 -07:00
Nathan Sobo and Antonio Scandurra
2701abde11
WIP
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-24 09:29:14 -06:00
Nathan Sobo and Antonio Scandurra
e4a232acc9
Send messages on enter
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-24 08:15:46 -06:00
Antonio Scandurra
54b4a4bf6a
Allow editor to be created in auto-height mode
2021-08-24 14:17:15 +02:00
Antonio Scandurra
405ff1d9db
Render chat messages in ChatPanel
2021-08-24 12:23:50 +02:00
Max Brunsfeld
baded7d416
Start work on subscribing to model from ChatPanel
2021-08-23 17:21:06 -07:00
Max Brunsfeld
5ecedd894d
Add ChannelList to AppState
2021-08-23 15:03:45 -07:00
Antonio Scandurra and Nathan Sobo
a182db863f
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 Scandurra and Nathan Sobo
94e9a83326
Give up on entities being Send and Sync
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-23 17:04:32 +02:00
Max Brunsfeld
2507f9b4d4
Stub in a ChatPanel
2021-08-20 14:28:45 -07:00