Commit Graph
39175 Commits
Author SHA1 Message Date
Antonio Scandurra d3e71ad266 WIP 2023-10-23 17:41:22 +02:00
Antonio Scandurra 79128dbcb3 WIP 2023-10-23 17:36:49 +02:00
Nate Butler 2a171e7e01 WIP add Elevation Docs 2023-10-23 11:21:48 -04:00
KCaverly d8c15a79ec catchup with main 2023-10-23 17:21:37 +02:00
Nathan Sobo 5e0c81ce48 Merge branch 'gpui2-drag-drop' into zed2 2023-10-23 17:18:07 +02:00
Nate Butler 0eab853dd0 🤦 Remove references to system_color 2023-10-23 11:05:17 -04:00
Nate Butler 0b2603ce80 Merge branch 'n/d' into zed2 2023-10-23 11:01:36 -04:00
Nate Butler 4636e2b5c0 Add ThemeColor interface for UI coloring and remove redundancy 2023-10-23 11:01:04 -04:00
Nate Butler e9e60917e3 Remove duplicate ThemeColor defs 2023-10-23 11:00:45 -04:00
Nathan Sobo b48885b3cb Add on_drop listeners 2023-10-23 16:59:16 +02:00
Antonio Scandurra 84c8cc7038 WIP 2023-10-23 16:39:30 +02:00
Antonio Scandurra 23ffeb259d WIP 2023-10-23 16:38:34 +02:00
Antonio Scandurra 6d86c3f821 WIP 2023-10-23 16:38:34 +02:00
Nate Butler 05f60ff47f Start crate doc 2023-10-23 10:21:30 -04:00
Nathan Sobo 4a3f8a2e72 Don't start dragging until you move to 2px 2023-10-23 16:20:01 +02:00
Nathan Sobo 1050707fbf Clear active state when drag starts 2023-10-23 16:10:04 +02:00
Conrad Irwin 3a1846689c Fix infinite loop in select all 2023-10-23 16:08:12 +02:00
Nate ButlerandMikayla Maki 2433297d52 Start scaffolding out the Copilot Modal UI
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-10-23 10:00:02 -04:00
Nathan Sobo 0b389e04d3 Position drag handle relative to cursor 2023-10-23 15:20:33 +02:00
Nathan Sobo 5c72f549e6 Checkpoint 2023-10-23 15:14:10 +02:00
Nathan Sobo e82f55e7b3 Show red box when dragging 2023-10-23 15:09:22 +02:00
Max Brunsfeld ef5933c480 Add chat mentions and a notifications panel (#3121)
### Todo

* Displaying notifications
    * [x] show them in panel
    * [x] indicate read/unread status
    * [x] allow requesting more by scrolling down
    * [ ] style the panel
    * [x] style the status bar icon
* Chat mentions
    * [x] highlight mentions when editing message
    * [x] persist mentions
    * [x] highlight mentions when rendering saved messages
* Creating notifications
    * [x] contact request received
    * [x] contact request accepted
    * [x] channel invitation received
    * [x] mentioned in a chat message
* [x] Indicate responses to notifications
* Mark notifications as read
* [x] when viewing a contact request acceptance in the notification
panel
    * [x] responding to contact invite
    * [x] responding to channel invite
    * [x] viewing a channel message mention
* [x] Replace previous notifications with auto-dismissing,
non-interactive toasts

### Release Notes:

- Added a notification panel, which displays notifications about contact
requests and channel invitations.
- Added the ability to `@`-mention users in the chat, so that they will
be notified of your message.
2023-10-23 15:05:05 +02:00
Antonio Scandurra d7bc36d2a1 WIP 2023-10-23 14:59:57 +02:00
Max BrunsfeldandPiotr 826aa2f4ad Tweak styling of notifications
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 14:58:03 +02:00
Max BrunsfeldandPiotr 1330f0fc60 Format timestamps more tersely in the notification panel
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 14:34:38 +02:00
Nathan Sobo cb3ab05748 Checkpoint 2023-10-23 14:15:12 +02:00
KCaverly ccb1022bd9 move embedding truncation to base model 2023-10-23 14:07:45 +02:00
Max BrunsfeldandPiotr d0cc5bf0ac Avoid flickering toast when mentioned in already-visible chat channel
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 13:48:49 +02:00
Piotr OsiewiczandMax 88e617c9d5 Account for markdown styling in mentions offset calculation.
This also means that we can support smart punctuation.

Co-authored-by: Max <max@zed.dev>
2023-10-23 12:50:57 +02:00
Antonio Scandurra 5034a5bf7f WIP 2023-10-23 12:16:33 +02:00
Antonio Scandurra 7861f1f936 WIP 2023-10-23 11:53:24 +02:00
Antonio Scandurra 83413aad6f WIP 2023-10-23 11:43:08 +02:00
Nathan Sobo c0d03f5f69 Fix runtime errors 2023-10-23 11:34:35 +02:00
Antonio Scandurra 1ee7402744 Checkpoint 2023-10-23 11:06:58 +02:00
Antonio Scandurra 72103622e7 Checkpoint 2023-10-23 10:59:29 +02:00
Conrad Irwin 3227c45af6 Fix neovim tests with angle brackets 2023-10-22 22:24:35 -06:00
Conrad Irwin 70441d86fe Add | as a bracket and a motion
Although vim/nvim doesn't have | as brackets, it's common in langauges like Rust
and Ruby, and I expect it to work.
2023-10-22 22:17:34 -06:00
Conrad Irwin 92e91e5b45 Fix some bugs with vim objects
- softwrap interaction
- correct selection if cursor is on opening marker
2023-10-22 21:44:34 -06:00
Antonio Scandurra 2a0c083d00 WIP 2023-10-22 19:56:25 +02:00
Antonio Scandurra 467494834f Checkpoint 2023-10-22 18:56:11 +02:00
Antonio Scandurra 35d9105e48 Checkpoint 2023-10-22 18:34:45 +02:00
Antonio Scandurra 96f7b2233f Checkpoint 2023-10-22 18:25:24 +02:00
Antonio Scandurra af4ee5b79a WIP 2023-10-22 18:01:00 +02:00
Max Brunsfeld e37f00c6cd Avoid duplicate acks for messages with mentions 2023-10-22 18:00:02 +02:00
Max Brunsfeld ab38098989 Load more notifications when scrolling down 2023-10-22 17:10:21 +02:00
Antonio Scandurra 8b9a00e097 WIP 2023-10-22 16:53:59 +02:00
Antonio Scandurra 2948362b60 WIP 2023-10-22 16:49:14 +02:00
Antonio Scandurra 91e0f554e1 WIP 2023-10-22 16:36:29 +02:00
Antonio Scandurra b973234da7 WIP 2023-10-22 16:33:59 +02:00
Antonio Scandurra f121e83c1f WIP 2023-10-22 16:27:23 +02:00