mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
📧 feat: Mention "@" Command Popover (#2635)
* feat: initial mockup * wip: activesetting, may use or not use * wip: mention with useCombobox usage * feat: connect textarea to new mention popover * refactor: consolidate icon logic for Landing/convos * refactor: cleanup URL logic * refactor(useTextarea): key up handler * wip: render desired mention options * refactor: improve mention detection * feat: modular chat the default option * WIP: first pass mention selection * feat: scroll mention items with keypad * chore(showMentionPopoverFamily): add typing to atomFamily * feat: removeAtSymbol * refactor(useListAssistantsQuery): use defaultOrderQuery as default param * feat: assistants mentioning * fix conversation switch errors * filter mention selections based on startup settings and available endpoints * fix: mentions model spec icon URL * style: archive icon * fix: convo renaming behavior on click * fix(Convo): toggle hover state * style: EditMenu refactor * fix: archive chats table * fix: errorsToString import * chore: remove comments * chore: remove comment * feat: mention descriptions * refactor: make sure continue hover button is always last, add correct fork button alt text
This commit is contained in:
parent
89b1e33be0
commit
b6d6343f54
35 changed files with 1048 additions and 217 deletions
|
|
@ -107,6 +107,11 @@ const showPopoverFamily = atomFamily({
|
|||
default: false,
|
||||
});
|
||||
|
||||
const showMentionPopoverFamily = atomFamily<boolean, string | number | null>({
|
||||
key: 'showMentionPopoverByIndex',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const latestMessageFamily = atomFamily<TMessage | null, string | number | null>({
|
||||
key: 'latestMessageByIndex',
|
||||
default: null,
|
||||
|
|
@ -142,4 +147,5 @@ export default {
|
|||
latestMessageFamily,
|
||||
allConversationsSelector,
|
||||
useCreateConversationAtom,
|
||||
showMentionPopoverFamily,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ const hideSidePanel = atom<boolean>({
|
|||
|
||||
const modularChat = atom<boolean>({
|
||||
key: 'modularChat',
|
||||
default: localStorage.getItem('modularChat') === 'true',
|
||||
default: true,
|
||||
effects: [
|
||||
({ setSelf, onSet }) => {
|
||||
const savedValue = localStorage.getItem('modularChat');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue