Commit Graph

416 Commits

Author SHA1 Message Date
Mohamed Messaad
71d4a63a17
feat(docker): use multi-stage Docker builds for smaller images (#1614)
# Description

Currently, the production Docker images are very large, sitting at 4.17
GB for the frontend image, and 3.49 GB for backend images. This change
adds multi-stage builds, to optimize the image sizes, which results in
the following improvements:

- frontend image size: 4.17 GB -> 1.64 GB
- backend image size: 3.49 GB -> 1.71 GB

I hope this is appropriate as there is no open issue for this that I
know of.
I implemented this change and tested it locally, and would be glad to
discuss this and open an issue if necessary.

## Checklist before requesting a review

Please delete options that are not relevant.

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented hard-to-understand areas
- [x] New and existing unit tests pass locally with my changes

## Screenshots (if appropriate):
Image sizes before:
<img width="1416" alt="image"
src="https://github.com/StanGirard/quivr/assets/8296549/fcbb020f-8165-4549-ae30-823318691ec6">

Image sizes after:
<img width="1416" alt="image"
src="https://github.com/StanGirard/quivr/assets/8296549/d3f43c78-be26-4c38-9d23-9c1b0e9e37f2">
2023-11-13 10:13:56 +01:00
Mamadou DICKO
3c0819de09
fix: allow users to delete brains (#1596)
Issue: https://github.com/StanGirard/quivr/issues/1362

Demo:


https://github.com/StanGirard/quivr/assets/63923024/aa5e41f8-a738-41f2-b037-975788ad8611
2023-11-06 16:58:03 +01:00
Mamadou DICKO
a46bf52478
fix: fix notification banner display when too much items in chat list (#1593)
Issue: https://github.com/StanGirard/quivr/issues/1578

Demo
<img width="1512" alt="Screenshot 2023-11-06 at 14 26 14"
src="https://github.com/StanGirard/quivr/assets/63923024/ef583683-43da-4b42-927e-22431cbeb0cf">
2023-11-06 14:36:21 +01:00
Mamadou DICKO
3eff384e39
fix: allow to change model bro brain settings tab (#1590)
Issue: https://github.com/StanGirard/quivr/issues/1550



https://github.com/StanGirard/quivr/assets/63923024/f58e1ecb-635b-4d65-a6d9-288b0842a3ae
2023-11-06 14:36:13 +01:00
Stan Girard
192610d008
feat: 🎸 sources (#1591)
added sources in front and backend

<img width="1536" alt="image"
src="https://github.com/StanGirard/quivr/assets/19614572/eb997288-282d-4f6e-b489-08ab3db400c6">
2023-11-06 12:09:18 +01:00
Mamadou DICKO
91fbf154d0
feat: make auth mode configurable (#1579)
Fix https://github.com/StanGirard/quivr/issues/1524

Demo:


https://github.com/StanGirard/quivr/assets/63923024/d1365b67-060e-488f-ad10-ca6ce2ac373a
2023-11-03 14:18:47 +01:00
Mamadou DICKO
1905bd42f6
style: fix hidden contents (#1577)
Fix https://github.com/StanGirard/quivr/issues/1576
2023-11-03 10:01:05 +01:00
Mamadou DICKO
5c732f1253
fix: fix button bad children error (#1564)
Issue: https://github.com/StanGirard/quivr/issues/1498
2023-11-03 09:48:06 +01:00
Mamadou DICKO
867904f19d
feat: add remote notification config (#1547)
Issue: https://github.com/StanGirard/quivr/issues/1503

Demo:




https://github.com/StanGirard/quivr/assets/63923024/fc354768-e25b-4d16-8e40-bfdbf950ddcd
2023-11-02 19:20:07 +01:00
Stef Bloom
8a8e3d1a65
style(prompts): update public prompts dropdown styling (#1563)
# Description

In https://www.quivr.app/brains-management, the Custom Prompt dropdown
is partially covered by the cu

## Checklist before requesting a review

Please delete options that are not relevant.

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

## Screenshots (if appropriate):

![quivr-custom-prompt-after](https://github.com/StanGirard/quivr/assets/149593769/7a063624-dea5-41f2-bcfb-369b60387bbd)

![quivr-custom-prompt-before](https://github.com/StanGirard/quivr/assets/149593769/5c42dd45-3af8-44b3-9137-121ec5a0bce6)

![quivr-custom-prompt-light-mode-before](https://github.com/StanGirard/quivr/assets/149593769/4872c5d0-1a0f-4ed9-9d2e-8acba3841953)
2023-11-02 18:36:47 +01:00
Stan Girard
3a9b7164b5
feat: 🎸 docs (#1561)
added algolia

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2023-11-02 14:42:39 +01:00
Jerry Shang
eb682c7219
fix: missing or inaccurate zh-cn translations (#1558)
# Description

There are some missing(like some russian and traditional chinese words)
or inaccurate texts in zh-ch locale.

## Checklist before requesting a review

Please delete options that are not relevant.

- [x] My code follows the style guidelines of this project
- I am confusing that not all the json files have same indent spaces. I
am not sure is it ok that the 4-spaces ones were changed to 2-spaces. 😅
- [x] I have performed a self-review of my code

## Screenshots (if appropriate):
2023-11-02 09:52:21 +01:00
Stan Girard
5eed1a05cb
feat: 🎸 telegram (#1555)
added loaders and compatibility

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2023-11-01 22:09:04 +01:00
Zineb El Bachiri
0c58a4bb0e
refactor: extract prompt from settings (#1546)
# Description

- Refactor useSettingsTab by extracting usePrompt and methods in utils
- Fix bug #1545 

## 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):
2023-11-01 16:45:22 +01:00
Zineb El Bachiri
a81f3328c8
fix: prompt update in brains management settings tab (#1543)
# Description

#1540 

## 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):
2023-11-01 13:45:40 +01:00
Mamadou DICKO
2ffa0f3ff4
feat: allow to share a public brain link (#1541)
Issue: https://github.com/StanGirard/quivr/issues/1539

Demo:



https://github.com/StanGirard/quivr/assets/63923024/ec0dcaa9-3c61-4a2a-a653-bceec435ad60
2023-11-01 12:18:08 +01:00
Stan Girard
b330370d8c
feat: 🎸 max-token (#1538)
added limit to 4k for gpt4

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2023-11-01 08:52:49 +01:00
Mamadou DICKO
e3925bcbc0
feat(brainSettings): rework knowledge tab (#1534)
Issue: https://github.com/StanGirard/quivr/issues/1435

- feat(knowledgeTab): update structure
- refactor: change AddKnowledge structure
- feat: change AddKnowledge component structure
- feat: rework sources logic
- feat: change knowledge tab upload process
- fix: change knowledge tab fetch, create, update logic
- feat: improve added knowledge ui
- style: improve responsivity

Fix: 
- https://github.com/StanGirard/quivr/issues/1516
- https://github.com/StanGirard/quivr/issues/1336
- https://github.com/StanGirard/quivr/issues/1204




https://github.com/StanGirard/quivr/assets/63923024/f2917bf3-4ff8-42c6-8149-0b36287441b4
2023-10-31 19:02:26 +01:00
Mamadou DICKO
6c49b73577
fix: update mutation pending flag (#1530) 2023-10-31 12:00:50 +01:00
Mamadou DICKO
211a56d127
chore: update tanstack query dep (#1528) 2023-10-31 11:48:59 +01:00
Stan Girard
90ee40f9f2
Feat/docs rework (#1525)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2023-10-30 20:53:39 +01:00
Mamadou DICKO
9be4a57979
feat: improve ux (#1522)
Issues:
https://github.com/StanGirard/quivr/issues/1497
https://github.com/StanGirard/quivr/issues/1495
https://github.com/StanGirard/quivr/issues/1506

1. feat(chatInput): increase upload button size
2. feat(brains-library): add Spinner on loading
3. feat: improve logout ux

![Screenshot 2023-10-30 at 11 48
58](https://github.com/StanGirard/quivr/assets/63923024/fb8e0848-b349-4fbd-a7a5-ff43a73ae364)


https://github.com/StanGirard/quivr/assets/63923024/cbd7cd42-e58a-49fb-9867-97f19dde9270



https://github.com/StanGirard/quivr/assets/63923024/a69b6b28-1c19-43e7-a02b-1df215a34a2e
2023-10-30 14:52:47 +01:00
Matthieu Jacq
d5437eef5f
fix: hidden video playing automatically on iphone (#1514) 2023-10-28 00:11:22 +02:00
Zineb El Bachiri
f7ae27b9cc
refactor(settings tab): extract components (#1335)
# Description

Extract the components from the settingsTab to increase readability of
file and allow refactoring of huge useBrainSettings hook

## 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):
2023-10-27 12:52:39 +02:00
Matthieu Jacq
f810d8fbf3
fix: black horizontal line sometimes appearing below section (#1510) 2023-10-26 18:51:14 +02:00
Matthieu Jacq
c2bf3adc24
feat: remove legacy header and footer (#1509)
# Description

Also add a back to chat button in the user page to make up for the loss
of the legacy header.

## Screenshots (if appropriate):

<img width="754" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/ad6d92a6-2f57-464f-b002-ec94f37a1ccd">
2023-10-26 18:23:36 +02:00
Mamadou DICKO
e15177b7ab
feat: update form content on magic link auth request (#1502)
Issue: https://github.com/StanGirard/quivr/issues/1407



https://github.com/StanGirard/quivr/assets/63923024/63d36681-f614-456f-8f65-9b726258f709
2023-10-26 15:49:00 +02:00
Matthieu Jacq
202daac77a
feat: remove onboarding's feature flag (#1501)
# Description

US: #1490
2023-10-26 15:41:12 +02:00
Zineb El Bachiri
c73529885f
fix: minor fixes (#1499)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2023-10-26 11:54:26 +02:00
Mamadou DICKO
7e70e4fc84
feat: add new signin/login page (#1492)
Issue https://github.com/StanGirard/quivr/issues/1404



https://github.com/StanGirard/quivr/assets/63923024/703fedf3-2f39-407b-afc2-78318829ca0f
2023-10-26 09:48:41 +02:00
Matthieu Jacq
c3acb2901c
feat: remove feature flags for homepage (#1493) 2023-10-26 09:05:21 +02:00
Matthieu Jacq
d311a53b6f
feat: manage plan (#1488)
# Description

- add crown on premium user
- link to manage plan in page `/user`

## ⚠️ Before merging

Setup env variable:
```env
NEXT_PUBLIC_STRIPE_MANAGE_PLAN_URL=<ignore-me-or-change-me>
```

## Screenshots (if appropriate):

<img width="290" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/a87b0f7e-b07c-4f4e-b9d2-515ac25ebf05">

<img width="318" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/6a4f4f72-8c75-45da-9468-cae1a8d28935">
2023-10-25 16:11:17 +02:00
Matthieu Jacq
639ea3884e
fix: failing build (removed avatar alt prop) (#1487) 2023-10-25 13:22:12 +02:00
Matthieu Jacq
ee7af51c4d
feat: upgrade button in user settings (#1484)
# Description

Epic: #1429
User Story: #1431

- Add an upgrade button in user settings.
- Remove hover links on sidebar buttons (otherwise the link could
partially hide the button)

## Screenshots (if appropriate):

<img width="749" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/6265ba2b-8d91-4ee8-abb3-98417ad91076">

<img width="803" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/c13ce60b-a54d-44d7-a622-bcb1200ddb81">
2023-10-25 12:42:53 +02:00
Stan Girard
02fd837cd7
feat: 🎸 sitemap (#1483)
added sitemap
2023-10-24 22:21:12 +02:00
Matthieu Jacq
56d1f94b62
feat: upgrade to plus button (#1482)
# Description

Epic: #1429 
User Story: #1430 

## Pour la mise en preview / prod:

- Mettre à jour l'environnement

```env
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=<change-me>
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=<change-me>
```

- Activer le feature flag `monetization` (booléen)

## Screenshots (if appropriate):

Button:
<img width="289" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/c0f7321e-2f48-4462-aab9-fd1c6f4282cd">

Modal:
<img width="843" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/28082680-1126-44db-bf77-76ae7474747f">
2023-10-24 18:26:48 +02:00
Mamadou DICKO
32843c6d7f
fix: update blog link position (#1476) 2023-10-24 14:28:29 +02:00
Stan Girard
cc9efdce24 chore: 🤖 landing
put second in majuscule
2023-10-24 14:17:36 +02:00
Mamadou DICKO
1bbb1db3fa
fix: make use cases clickable (#1475) 2023-10-24 14:13:54 +02:00
Mamadou DICKO
31ecde773a
feat(homepage): add analytics (#1474) 2023-10-24 13:55:42 +02:00
Matthieu Jacq
f91247c6c7
feat: contact sales submission (#1473)
# Description

Epic: #1232 
US: #1446

Send email address and message content to the backend. Display a loader
in loading state and a toast message on error.
2023-10-24 13:54:28 +02:00
Mamadou DICKO
85530d4ba5
feat: add sponsor and blog links (#1472)
Issue: https://github.com/StanGirard/quivr/issues/1470


<img width="539" alt="Screenshot 2023-10-24 at 12 09 30"
src="https://github.com/StanGirard/quivr/assets/63923024/97cc1d8c-90a5-4656-83cd-99ca68f1432c">
<img width="1512" alt="Screenshot 2023-10-24 at 12 09 16"
src="https://github.com/StanGirard/quivr/assets/63923024/92a78ea1-dee6-469d-b452-9e6ecfba888c">
2023-10-24 12:12:16 +02:00
Stan Girard
8f8b97c83a fix(blog): fixed use client 2023-10-23 22:31:28 +02:00
Stan Girard
4024d2c05c feat: 🎸 blog
added link to rollback
2023-10-23 22:00:42 +02:00
Stan Girard
623b4f0a52 feat(blog): added nice style 2023-10-23 21:28:36 +02:00
Stan Girard
7a750c54a4 feat: 🎸 cms
added seo objects
2023-10-23 19:46:58 +02:00
Stan Girard
04b4abc505 feat: 🎸 cms
added blog seo object
2023-10-23 19:24:11 +02:00
Mamadou DICKO
c47548d3cd
feat: setup premium feature backend (#1467)
Issue: https://github.com/StanGirard/quivr/issues/1468
2023-10-23 18:19:04 +02:00
Mamadou DICKO
a0a324a568
feat: fetch security questions from CMS (#1464)
ISSUE: https://github.com/StanGirard/quivr/issues/1462
2023-10-23 14:06:26 +02:00
Matthieu Jacq
9f1fabc043
feat: validate email and required question with react-hook-form (#1463)
## Linked to

Epic: #1232 
Issue: #1454

## Description

Validate required fields and email pattern using react-hook-form.
2023-10-23 14:06:04 +02:00