Commit Graph

81 Commits

Author SHA1 Message Date
Nick Guernsey
253e866a86
feat: enhance user page UI (#1319)
# Description

Hope ya'll don't mind, I updated the User Profile's UI to be a bit more
readable. Kept the design neutral to not impose styles.

I also kept the original toggle buttons for Theme and Language in case
we still want to use those in other places in the app, where a select
menu isn't necessary.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):


https://github.com/StanGirard/quivr/assets/64866427/d0320852-ece1-4002-a180-0005df132e71


https://github.com/StanGirard/quivr/assets/64866427/be3c67ec-8d42-44f9-8131-35a70aec20ef

---------

Co-authored-by: Zineb El Bachiri <100568984+gozineb@users.noreply.github.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-10-05 17:50:02 +02:00
Matthieu Jacq
f030db6952
feat: restructure the sidebar of the brains management page (#1325)
* 🧩 Possibility to chose which buttons to display in the sidebar

* Button "Back to chat"

* 💄 Remove the frame around the brains library page

* Give a size to the image in the profile button (for performance)

* Optional prop showButtons in the sidebar

* remove duration on waitFor and set sidebar animation duration to 200ms
2023-10-04 18:12:27 +02:00
Matthieu Jacq
945178de39
fix: 🐛📱 height now matches mobile height (#1323) 2023-10-04 12:04:57 +02:00
Matthieu Jacq
a61a18f4f4
fix: replace next/image's layout deprecated attribute (#1313) 2023-10-03 16:52:31 +02:00
Matthieu Jacq
18f76a5341
feat: ↕️ Maximise chat window (#1301)
* 🔥 Remove Chat page intro (component and translations)

* Centered full-size chat window (partial)

* fix: gray background when adding a document

* chat window: responsive padding

* cleaner navbar display condition
2023-10-03 12:18:49 +02:00
Matthieu Jacq
1e0c0c4a54
fix: 🐛 Sidebar content should not hide the sidebar footer (#1298) 2023-10-02 15:36:40 +02:00
Matthieu Jacq
c140b9c517
feat: responsive sidebar (#1279)
* 💄 The chat sidebar takes the full height

* 💄 redesign of the action section and buttons in the sidebar

*  Sidebar header

* ♻️  Refact sidebar filesystem structure

* ♻️  Create a separate reusable sidebar component

* 🐛 Fix sidebar quick open/close on mobile

* 💄 New open/close sidebar button

* fix: error message + sidebar height issue + mobile width incoherence

* ♻️  Rename and move the sidebar footer

* 💄 sidebar toggle: color on hover

* apply sidebar to brains-management

* 💄 Larger sidebar

* 🚨Pass existing tests

*  Test the sidebar

*  Test the open and close buttons in the sidebar
2023-10-02 14:42:23 +02:00
Nick Guernsey
92494aa6c6
fix(Select): fix JSX typo (#1292)
* fix: fixed clipRule typo

* fix: fill-rule typo
2023-10-02 09:33:18 +02:00
Mamadou DICKO
a1e6d400b2
test: add e2e for crawling (#1288)
* feat: update translations

* fix: update createBrain tests

* test: add crawl e2e test
2023-09-29 13:15:37 +02:00
Mamadou DICKO
36fd146fed
feat: improve app ux (#1281)
* style: make FeedItemIcon the same size

* feat: update feed component brain selector label position

* style: change purple to 600

* feat: improve already dropped file message ux

* feat: autoclose feedinput on chatId change

* style: change chat colors

* feat: prevent linebreak in knowledge to upload row

* feat(textFIeld): avoid textfield content going under icon

* feat(knowledgeToUpload): add tooltip on urls and files name

* feat(feedBrain): auto scroll on messages when feed modal get opened

* style: update colors

* refactor: rename uploadCard to FeedCard
2023-09-29 10:24:31 +02:00
Zineb El Bachiri
b64fc044c4
feat: knowledge tab add button (#1277)
* 🚧 🌐 knowledge traductions

* 🔥 replace useKnowledge hook

*  AddKnowledge in knowledge  tab

* 🚧 extract feedBrain in chat hook

* ♻️ use feedBrain method as a prop in KnowledgeToFeedInput

*  custom feedBrain for chat and brain management

*  add loader when deleting

* 🚑 remove chat after auto creation for each feed action

* 🚚 rename KnowledgeProvider into KnowledgeToFeedProvider
2023-09-28 15:39:30 +02:00
Mamadou DICKO
2226eef06b
feat(chatPage): update ui add new feed component (#1275)
* feat(brains): remove unrelevent buttons on management page

* feat: improve feed input ux

* feat: update brain knowledge context add knowledge to feed logic

* feat: allow to drop files everywhere in the chat section

* style: add slide in effect when opening feed card

* test(chatPage): fix failing tests
2023-09-28 11:29:55 +02:00
Mamadou DICKO
ef78dec810
feat: improve knowledge feed process ux (#1274)
* style(deleteBrainModal): reduce buttons space

* refactor: add KnowledgeToFeedInput

* feat: update translations

* feat: update knowledge feed component

* style: reduce knowledge to upload displayer size

* feat: move KnowledgeToFeedInput to @lib

* refactor: rename useSelectedChatPage to useChatNotificationsSync

* feat: change chatPage bg to gray when feed card is opened

* style: change feed process submit button bg to purple
2023-09-27 15:39:04 +02:00
Mamadou DICKO
ef2bada3a5
style: improve ui (#1263)
* feat: align brain acces status change confirmation buttons

* style(brainManagement): reduce remove/unsubscribe button margin

* style(brainManagement): align confirmationModal buttons

* feat: update modal display status logic

* feat(BrainsLibrary): add brains management button

* style: improve public brain item ui

* style: make brain library responsive

* feat: auto close subscription modal on subscribe

* feat: add empty brain description message

* test: fix failing linter tests
2023-09-27 09:50:27 +02:00
Matthieu Jacq
da6d5b698d
feat(nav): 🚚 Move Brain and User buttons to the sidebar in the chat (#1262)
* 🚚 Move Brain and User buttons to the sidebar in the chat

* 🚨 fix linter warnings

* 🚚 Move sidebar actions to a dedicated component

*  Fix failing tests

* 💄 Style sidebar buttons

* 🚚 move nav components under ChatsListItem and User components accordingly

* Display email in the user button

* ♻️  use the UserData hook in the UserPage component

* Do not display the top navbar on the chat page

* ⚰️ remove the social icons at the bottom of the chat sidebar

* ️UserButton: get email from the Supabase context instead of a call api

* 🚨 Fix unit-tests

* 💄 Crop email in UserButton if necessary

* UserButton: display empty string if the email is undefined
2023-09-26 18:26:19 +02:00
Mamadou DICKO
a4a2d769b3
feat: allow setting public brain status to private (#1258)
* feat: refetch brains list on when new brain is added

* feat: update BrainConfig type

* feat: update useSettingsTab add usebrainFormState and useSettings tab

* feat: add <PrivateAccessConfirmationModal/> modal

* feat: update translations

* feat: handle brain status change to private

* feat: validate chat access

* test: fix failaing tests and remove deprecated
2023-09-26 10:35:52 +02:00
Matthieu Jacq
4acdb0ae55
feat(user): 🚚 Move language and theme buttons to the User page (#1256)
* feat(user): 🚚 Move language and theme buttons in the User page

* ⚰️  Remove obsolete test (DocumentData.test.ts)

* fix(user_settings): ⚰️  remove settings header
2023-09-26 09:29:30 +02:00
Mamadou DICKO
8172704b61
feat: add public brain page (#1230)
* feat: add brain library button

* feat(Field): add inputClassName key

* feat: add GET brains/public route

* feat: add brains library layout

* feat: add brain subscriber count
2023-09-21 09:35:53 +02:00
Mamadou DICKO
1593c3342c
feat: display brain status on settings page (#1221)
* feat: update GET/brains return status

* feat: add public tag on brain list

* feat: add public tag for public brain on brain settings tab

* feat: hide over tab when brain access is public
2023-09-20 16:24:56 +02:00
Mamadou DICKO
37935c59ca
feat: add public brain creation (#1218)
* feat: add brain status input

* feat: update translations

* feat: add confirmation modal for brain status changing to public
2023-09-20 09:35:09 +02:00
Mamadou DICKO
1ec736b357
fix: fix some bugs (#1201)
* feat(brainSettings): add feed process instrcution to knowledge tab

* feat: prevent default brain auto fetch

* feat: prevent chat submision on submit button click

* feat: remove unrelevant toast

* feat: remove duplicated GA initialization

* feat: add brain name in notifications

* fix(test): update analytics import path

* refactor: move ChatsList utils to ChatsList directory

* fix(test): update chatlist tests
2023-09-18 21:28:07 +02:00
Zineb El Bachiri
886d30cf9e
feat(analytics): add google analytics (#1147)
* 🚚 move june analytics to folder and update paths

*  set up google analytics

*  sent firt GA event with react-ga

* 🔒️ update security headers to include vercel and google analytics

* 🚚 rename Vercel Analytics

*  use react-ga4 instread

* 💚 fix tests
2023-09-18 15:12:50 +02:00
Mamadou DICKO
b39566882b
feat: add tooltip on upload card toggle button (#1197) 2023-09-18 14:51:30 +02:00
Mamadou DICKO
7dd404935b
feat(e2e): add playright config and createBrain e2e test (#1177)
* chore: add playright config

* feat: add playright first examples

* feat: add 'test-e2e command'

* feat: add createBrain E2E test
2023-09-18 10:23:56 +02:00
Stan Girard
4fb8c34efd
fix(usersettings): Fix bugs with user settings in the back always gpt-3.5-turbo (#1183)
* fix

* feat(gpt4): added support for gpt4
2023-09-16 00:22:42 +02:00
Stan Girard
223d3d9102
feat(frontend): responsiveness (#1174)
* feat: 🎸 responsiveness chat

* feat: 🎸 responsive

added responsive menu

* feat: 🎸 responsive

brain management

* fix: 🐛 docker

prod
2023-09-15 01:09:26 +02:00
Mamadou DICKO
2b4c3ecbbc
feat: update header and improve ux (#1164)
* feat: add Knowledge tab

* feat: use tanstack query for knowledges fetching

* feat: update header

* feat: remove upload page

* feat: make chat page the default redirection page

* feat(homePage): redirect user to chat page when already authenticated
2023-09-13 16:43:25 +02:00
Mamadou DICKO
7f9ea9d64c
feat: remove <BrainConfigProvider /> (#1154) 2023-09-12 18:04:35 +02:00
Mamadou DICKO
f230bc10de
feat(crawler): add multiple urls support (#1112)
* feat(Field): add icon support

* feat(Crawler): replace submit button with send icon

* feat(crawler): add multiple urls support

* feat: add <FeedItems/> component to display adding items

* feat(FeedItems): add remove icon

* feat: add url displayer

* feat: add invalid url message

* fix: add crawler to upload page

* feat: clean sueCrawler

* feat: rename Feed to KnowledgeToFeed

* feat: add tracking
2023-09-05 18:47:18 +02:00
Mamadou DICKO
14e44ac6ec
feat: add FeedBrainInput component (#1101)
* feat: add FeedBrainInput component

* feat: add upload button

* feat: update translations add feed_brain_placeholder

* refactor(uploadPage): add config.ts

* feat(lib): add MentionInput

* feat: add <BrainSelector/> component

* feat: update FeedBrainInput
2023-09-04 15:27:06 +02:00
Mamadou DICKO
bea275f2ff
feat: add tanstack query and optimistic fetch on brains settings page (#1087)
* refactor: remove <TrackingWrapper />

* feat: add tanstack query

* feat: add optimistic fetch to brain settings page
2023-09-01 15:14:35 +02:00
Mamadou DICKO
22935583f3
feat(newBrain): update data validation logic and add * on required fields (#1065)
* feat(createBrain): add * on required fields

* fix: update brain data validation logic
2023-08-30 15:53:51 +02:00
Mamadou DICKO
5612c2b455
feat: add name missing error in new brain modal (#1055)
* feat: update toast z index

* feat(brain modal): add name missing message
2023-08-30 11:04:03 +02:00
Mamadou DICKO
c5a7b8faef
feat: update header and remove prompt / brain on backspace (#1052)
* feat: update header

* feat: remove selected prompt / brain on backspace

* feat(chat): update suggestions component

* refactor: add getAxiosErrorParams
2023-08-29 15:52:22 +02:00
Mamadou DICKO
072d97adb1
feat: add prompt trigger through # (#1023)
* feat: add prompt trigger to mention input

* feat: update chat shortcuts

* test: update BrainProviderMock

* feat: improve ux

* feat: update message header position

* feat: improve mention input dx

* fix(MentionInput): fix minor bugs

* feat: refactor <ShareBrain/>

* feat: add brain sharing button

* fix: make popover buttons click working

* feat: update backspace handle logic

* feat: update add new brain button ui
2023-08-29 10:50:36 +02:00
Zineb El Bachiri
2b74ebc1f0
fix(Analytics): no tags tracking for upload & crawl (#1024)
* 🚚 create useCrawlApi to use in useCrawler hook

* 🚑 fix tracking in Crawl

* 🧑‍💻 add hot reloading within docker containers

* 🚑 fix tracking for upload

* 🚚 create useUploadApi for fileUpload request

* 📈 add june tag for Language change

* 🩹 revert dependencies
2023-08-23 10:03:10 +02:00
Buer
e328ab81b3
feat(translation): Added Simplified Chinese translation,Fix pt-br not working (#1011)
* 🌐 Add Chinese translation, fix pt-br errors.

* 🌐 Fix syntax errors.
2023-08-22 12:04:54 +02:00
Mamadou DICKO
8e94f22782
feat(chat): add brain selection through mention input (#969)
* feat(chat): add brain selection through mention input

* feat: detect mention deletion from editor

* feat: improve ux

* chore: improve dx

* feat: update translations

* feat: improve mention popover ui

* fix: update failing tests

* feat: add mentions suggestion popover

* feat: update translations

* feat: remove add new brain button
2023-08-22 10:05:52 +02:00
Gabriel Rodrigues Eger
cb020c0e63
Portuguese language added, "Select a Quivr Personality" btn is now supporting translations as well (#925)
* Added Portuguese Language + Translation of "Select A Quivr Personality" btn

* Added Portuguese Language + Translation of "Select A Quivr Personality" btn

* Undoing changes to yarn.lock from previous commits (had run on windows)
2023-08-11 13:19:21 +02:00
Stepan Lebedev
672eec08bc
feat: Russian language translation (#903)
* feat(Russian Translation): Adds Russian Language option

* fix: Corrects Failedtofetch field in English Version

* fix: Adds missing translations on upload page
2023-08-09 11:17:12 +02:00
Stepan Lebedev
71e142ba3c
feat: deleting brains on brain manager page (#893)
* fix: new libraries for translation

* feat(deleting-brains-on-brain-management-page): adding a delete brain button and a confirmation modal on a management page

* feat(deleting-brains-on-brain-management-page): adding tests for confirmation Modal

* feat(deleting-brains-on-brain-management-page): Adding translation to the delete button and modal
2023-08-08 17:18:05 +01:00
ChloeMouret
e9ebeef72a
feat: gpt4 is not available for brains if there is no given openAiKey (#850)
* rename defineMaxToken

* use gpt-3.5-turbo instead of gpt-3.5-turbo-0613

* gpt4 not available if no open ai key
2023-08-07 16:35:23 +02:00
Stan Girard
1160e16014
feat(fr): added language (#884)
* feat: 🎸 french

added language

* perf: ️ images

improved with shark package for nextjs
2023-08-07 15:59:02 +02:00
Mamadou DICKO
b0514d6149
fix(i18n): update tests for french and spanish (#878)
* add libraries for traslation purposes

* Add button and service for language selection

* add spanish translation on login page

* add spanish translation on upload page

* Add spanish translations for explore page

* Add translations on user page

* Add translations for config page

* Add spanish translations on chat page

* add translations for brain page

* fix GUI and save on local storage

* fix (i18n) init and types

* fix (i18n): typos

* add translation on new brain modal

* add translations on metadata

* Add translations on home page

* fixes types

* fix(frontend-tests): use get by id instead of text

---------

Co-authored-by: Gustavo Maciel <gustavo_m13@outlook.com>
2023-08-07 14:13:41 +02:00
Mamadou DICKO
b3fb8fc3bc
feat: add public prompts picker (#841)
* fix: update prompt_id logic in payload

* feat: add getPublicPrompts to sdk

* feat: add public prompt picker
2023-08-03 17:00:05 +02:00
Mamadou DICKO
99a3fa9b29
feat: add custom prompt fields on brain setting pages (#837)
* feat(sdk): add prompt apis to sdk

* feat: implement prompt creation-n

* feat: add brain custom prompt fields

* fix: change tables creation order
2023-08-03 15:41:24 +02:00
Mamadou DICKO
edcbb30e97
fix: bugs (#818)
* feat: add chat config modal

* feat: save chat config in localStorage

* feat: remove <ConfigPage/>

* feat: overwrite chat config with brain

* fix(SettingsPage): upload payload keys

* fix: update default brain marker logic

* feat: set new created brain as current selected brain
2023-08-01 16:25:02 +02:00
Ashish Baravaliya
3e8ed46317
fix: Toast message hidden under the footer (#761) 2023-07-31 09:03:19 +02:00
Mamadou DICKO
77ea2f2aa6
Brain management 4.2 (#777)
* feat: remove save changes button

* feat: refetch brains list on update

* feat: update forn initialization logic

* feat: prevent viewer to access people tab

* feat: set current brain asbrain management default selected brain
2023-07-26 16:54:03 +02:00
Mamadou DICKO
3529222b95
Brain management 4 (#762)
* feat: add <ApiKeyConfig/>

* feat(SDK): add update brain

* feat: add removeUndefined helper

* feat: remove unnecessary autofocus flag

* add brain settings tab

* ui: add tab delimitor

* feat: improve ux
2023-07-25 23:12:46 +02:00