Commit Graph

833 Commits

Author SHA1 Message Date
Matthieu Jacq
220a062340
feat: HomePage new footer (#1425)
# Description

Footer section

Epic: #1232 
US: #1422

## Screenshots (if appropriate):

<img width="1127" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/b8d5410b-7f1d-49fe-b3e6-87dec5e18529">
2023-10-18 16:25:48 +02:00
Mamadou DICKO
0d70ad4362
feat: add security section (#1423)
Issue: https://github.com/StanGirard/quivr/issues/1424



https://github.com/StanGirard/quivr/assets/63923024/a64b7456-6efc-40e6-9f0a-89552a372e0a
2023-10-18 15:21:15 +02:00
Matthieu Jacq
e0cadb9ebf
feat: Homepage demo section (#1420)
# Description

Epic: #1232
Issue: #1418 

## Checklist before requesting a review


## Screenshots (if appropriate):

<img width="1052" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/3947e622-de08-4357-bb8c-6766421a1fa7">
2023-10-18 11:23:06 +02:00
Stan Girard
cd733d38f4
chore(main): release 0.0.93 (#1417)
🤖 I have created a release *beep* *boop*
---


## 0.0.93 (2023-10-17)

## What's Changed
* feat: add use cases to homepage by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1415
* feat: Homepage screen 1 content by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1414


**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.92...v0.0.93

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-18 11:00:26 +02:00
Matthieu Jacq
e4810ade0c
feat: Homepage screen 1 content (#1414)
# Description

Epic #1232 
Issue #1409 

## Checklist before requesting a review

## Screenshots (if appropriate):
<img width="1512" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/0543102c-59f1-4957-b2a1-2b017088172a">

<img width="426" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/932e3f24-b142-4606-854b-5f2821991e8b">
2023-10-17 16:31:05 +02:00
Mamadou DICKO
f9ce518dd2
feat: add use cases to homepage (#1415)
Ticket: https://github.com/StanGirard/quivr/issues/1416


https://github.com/StanGirard/quivr/assets/63923024/243bb114-9b7f-4b98-b710-df74ee845ecb
2023-10-17 13:36:15 +02:00
Stan Girard
82a92d5279
chore(main): release 0.0.92 (#1406)
🤖 I have created a release *beep* *boop*
---


## 0.0.92 (2023-10-17)

## What's Changed
* feat: add a cron to remove onboarding more than 7 days by
@mamadoudicko in https://github.com/StanGirard/quivr/pull/1397
* feat: 🖼️ new homepage background by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1395


**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.91...v0.0.92

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-17 11:33:14 +02:00
Matthieu Jacq
d1b0c26da8
feat: 🖼️ new homepage background (#1395)
## 🔗 Relates to
- Epic: #1232 
- Issue: #1394 

## 🍿 Demo


https://github.com/StanGirard/quivr/assets/67386567/ff3f9e4f-48df-42ab-9ed4-4dd59aca7ba9
2023-10-17 10:57:27 +02:00
Mamadou DICKO
a9d2145fe6
feat: add a cron to remove onboarding more than 7 days (#1397)
https://github.com/StanGirard/quivr/issues/1385
2023-10-16 16:11:34 +02:00
Stan Girard
41ed27fd91
chore(main): release 0.0.91 (#1391)
🤖 I have created a release *beep* *boop*
---


## 0.0.91 (2023-10-12)

## What's Changed
* feat: track onboarding events by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1388
* fix(user identity): User identity dict has no attribute user_id and
open_api_key by @HamzaKhalidDhillon in
https://github.com/StanGirard/quivr/pull/1351
* feat: new homepage header by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1382
* feat(onboarding): add suggested questions answer by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1390

## New Contributors
* @HamzaKhalidDhillon made their first contribution in
https://github.com/StanGirard/quivr/pull/1351

**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.90...v0.0.91

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-12 14:41:00 +02:00
Mamadou DICKO
ea227df30e
feat(onboarding): add suggested questions answer (#1390)
https://github.com/StanGirard/quivr/assets/63923024/08554dd5-2765-436a-b900-48b38d582f6c



https://github.com/StanGirard/quivr/issues/1389
2023-10-12 09:39:56 +02:00
Matthieu Jacq
7e88032dc9
feat: new homepage header (#1382)
## Relates to

Epic: #1232 
Issue: #1377 

## 🚩 Feature flag

Use in growthbook the flag: `new-homepage-activated` (boolean)

## 📷 Screenshots

### 🖥️ Desktop

<img width="1059" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/e0bae17a-bb94-4ba8-8dc3-a79d18f5d933">

### 📱 Mobile

<img width="377" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/af8398dc-d9df-4034-a329-49aae3b2bf45">

<img width="375" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/c5d53051-939e-49df-9c0a-212eff576b34">

---------

Co-authored-by: Zineb El Bachiri <100568984+gozineb@users.noreply.github.com>
2023-10-11 18:36:16 +02:00
HamzaKhalid
024dd5a264
fix(user identity): User identity dict has no attribute user_id and open_api_key (#1351)
# Description
Trying to access access 'user identity' attributes as attribute of
dictionary which throws an error since the attributes are actually the
key in the dictionary not an attribute of the dictionary object.

## 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

## Screenshots (if appropriate):
<img width="795" alt="image"
src="https://github.com/StanGirard/quivr/assets/88370405/7db55e74-159c-43e1-b9f7-8384dad9be30">

Co-authored-by: HamzaKhalid-bboxx <127825841+HamzaKhalid-bboxx@users.noreply.github.com>
Co-authored-by: Zineb El Bachiri <100568984+gozineb@users.noreply.github.com>
2023-10-11 16:06:37 +02:00
Mamadou DICKO
b9172b7442
feat: track onboarding events (#1388)
https://github.com/StanGirard/quivr/issues/1386
2023-10-11 15:56:28 +02:00
Stan Girard
5503e104d4
chore(main): release 0.0.90 (#1371)
🤖 I have created a release *beep* *boop*
---


## 0.0.90 (2023-10-11)

## What's Changed
* feat: add Welcome chat by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1365
* feat: handle suggestion click by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1368
* refactor: Enable linting on login+signup page and hooks by
@matthieujacq in https://github.com/StanGirard/quivr/pull/1369
* feat: finish onboarding step on first upload or crawl by @mamadoudicko
in https://github.com/StanGirard/quivr/pull/1373
* feat: add create_user_onboarding_function by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1383
* feat: remove user onboarding on complete by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1387


**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.89...v0.0.90

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-11 10:41:03 +02:00
Mamadou DICKO
1baf9ee5b0
feat: remove user onboarding on complete (#1387)
https://github.com/StanGirard/quivr/issues/1384


https://github.com/StanGirard/quivr/assets/63923024/ac05456d-2817-4196-8afc-51b34a4d8c5f
2023-10-11 09:46:57 +02:00
Mamadou DICKO
0477cce971
feat: add create_user_onboarding_function (#1383)
https://github.com/StanGirard/quivr/issues/1375

![Screenshot 2023-10-10 at 16 28
04](https://github.com/StanGirard/quivr/assets/63923024/07b8838f-74bc-408a-86ce-481e1224a8e4)
2023-10-10 17:21:05 +02:00
Mamadou DICKO
58ea481910
feat: finish onboarding step on first upload or crawl (#1373)
https://github.com/StanGirard/quivr/issues/1372



https://github.com/StanGirard/quivr/assets/63923024/ecf92424-bcc2-4e4d-ad4d-c569ab1c7203
2023-10-10 17:14:48 +02:00
Matthieu Jacq
5bd53ffc84
refactor: Enable linting on login+signup page and hooks (#1369)
#1366
2023-10-10 13:27:43 +02:00
Mamadou DICKO
28a6dc169a
feat: handle suggestion click (#1368)
https://github.com/StanGirard/quivr/issues/1367

This is the first part of the system. We'll update how we fetch this
'assistant' response soon


https://github.com/StanGirard/quivr/assets/63923024/92029ba2-ecd2-47a2-be67-2be13f50ea73
2023-10-10 09:46:56 +02:00
Mamadou DICKO
9293b7d782
feat: add Welcome chat (#1365)
https://github.com/StanGirard/quivr/issues/1361


https://github.com/StanGirard/quivr/assets/63923024/cc4b1c0a-363a-49f3-8306-181151554b34

---------

Co-authored-by: Zineb El Bachiri <100568984+gozineb@users.noreply.github.com>
2023-10-10 09:27:35 +02:00
Stan Girard
bbf5e12f3c
chore(main): release 0.0.89 (#1339)
🤖 I have created a release *beep* *boop*
---


## 0.0.89 (2023-10-09)

## What's Changed
* feat: enable CSP in all environments (local/preview/prod) by
@matthieujacq in https://github.com/StanGirard/quivr/pull/1334
* feat: enhance user page UI by @nguernse in
https://github.com/StanGirard/quivr/pull/1319
* feat: update onboarding steps by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1337
* feat: add onboarding_a column to onboarding table by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1340
* fix(question): fixed with user_settings by @StanGirard in
https://github.com/StanGirard/quivr/pull/1349
* FIX tables.sql - missing ; breaks SQL queries. by @stanrb in
https://github.com/StanGirard/quivr/pull/1348
* feat: ⚙️🐞 configure debugger for the backend by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1345
* test: add chat e2e tests by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1344
* feat: configure CSP for self-hosting and multiple ports in dev mode by
@matthieujacq in https://github.com/StanGirard/quivr/pull/1364

## New Contributors
* @stanrb made their first contribution in
https://github.com/StanGirard/quivr/pull/1348

**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.88...v0.0.89

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-09 17:59:26 +02:00
Matthieu Jacq
2c7d48cf4e
feat: configure CSP for self-hosting and multiple ports in dev mode (#1364)
Closes #1358 
Closes #1359

⚠️ Need to update the preview and prod environment with a
"NEXT_PUBLIC_FRONTEND_URL" variable before merging.
2023-10-09 17:02:15 +02:00
Mamadou DICKO
77e135fb5b
test: add chat e2e tests (#1344)
- Brain selection
- Chat deletion
- Unplug chat
- Plug chat
2023-10-09 15:23:24 +02:00
Matthieu Jacq
fa92243a18
feat: ⚙️🐞 configure debugger for the backend (#1345) 2023-10-09 15:23:13 +02:00
Stanislav "Stan" Bogdanov
d2fcb737b7
FIX tables.sql - missing ; breaks SQL queries. (#1348)
# Description

A missing ; in the CREATE query for onboarding tables breaks the script
execution on Supabase.

## 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] Any dependent changes have been merged

## Screenshots (if appropriate):
2023-10-06 20:32:49 +02:00
Stan Girard
b5c01efb78
fix(question): fixed with user_settings (#1349)
# 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-06 20:32:23 +02:00
Mamadou DICKO
16cea2c86b
feat: add onboarding_a column to onboarding table (#1340)
https://github.com/StanGirard/quivr/issues/1338

<img width="1215" alt="Screenshot 2023-10-05 at 18 05 30"
src="https://github.com/StanGirard/quivr/assets/63923024/67562c50-ddc1-4eaa-8b68-d374b2eb4b67">
2023-10-06 12:37:12 +02:00
Mamadou DICKO
f13f08c5c5
feat: update onboarding steps (#1337)
https://github.com/StanGirard/quivr/issues/1331


https://github.com/StanGirard/quivr/assets/63923024/eef62e2a-3c7c-4b08-b69c-2ba4d3b4b1be
2023-10-05 18:03:46 +02:00
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
d0e363e66e
feat: enable CSP in all environments (local/preview/prod) (#1334)
# Description

Enable CSP in all environments (local/preview/prod).

Relies on NEXT_PUBLIC_ENV env variable, which should be
`'local'|'preview'|'prod'`

# Comparison of old and new CSP values (tested locally)

## Before

### CSP (for prod only)

```
default-src 'self' https://fonts.googleapis.com https://xxx.supabase.co https://api.june.so https://www.quivr.app/; connect-src 'self' https://xxx.supabase.co http://localhost:5050 https://api.june.so https://api.openai.com https://cdn.growthbook.io https://vitals.vercel-insights.com/v1/vitals; img-src 'self' https://www.gravatar.com data:; media-src 'self' https://user-images.githubusercontent.com https://www.quivr.app/ https://quivr-cms.s3.eu-west-3.amazonaws.com; script-src 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com/ https://www.quivr.app/ https://www.google-analytics.com/; frame-ancestors 'none'; style-src 'unsafe-inline' https://www.quivr.app/;
```

## After

### Prod CSP (iso with before)

```
default-src 'self' https://fonts.googleapis.com https://xxx.supabase.co https://api.june.so https://www.quivr.app/; connect-src 'self' https://xxx.supabase.co http://localhost:5050 https://api.june.so https://api.openai.com https://cdn.growthbook.io https://vitals.vercel-insights.com/v1/vitals; img-src 'self' https://www.gravatar.com data:; media-src 'self' https://user-images.githubusercontent.com https://www.quivr.app/ https://quivr-cms.s3.eu-west-3.amazonaws.com; script-src 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com/ https://www.quivr.app/ https://www.google-analytics.com/; frame-ancestors 'none'; style-src 'unsafe-inline' https://www.quivr.app/;
```

### Preview CSP

```
default-src 'self' https://fonts.googleapis.com https://xxx.supabase.co https://api.june.so https://preview.quivr.app/; connect-src 'self' https://xxx.supabase.co http://localhost:5050 https://api.june.so https://api.openai.com https://cdn.growthbook.io https://vitals.vercel-insights.com/v1/vitals; img-src 'self' https://www.gravatar.com data:; media-src 'self' https://user-images.githubusercontent.com https://www.quivr.app/ https://quivr-cms.s3.eu-west-3.amazonaws.com; script-src 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com/ https://preview.quivr.app/ https://www.google-analytics.com/; frame-ancestors 'none'; style-src 'unsafe-inline' https://preview.quivr.app/;
```

### Local CSP

```
default-src 'self' https://fonts.googleapis.com https://xxx.supabase.co https://api.june.so http://localhost:3000 http://localhost:3001; connect-src 'self' https://xxx.supabase.co http://localhost:5050 https://api.june.so https://api.openai.com https://cdn.growthbook.io https://vitals.vercel-insights.com/v1/vitals; img-src 'self' https://www.gravatar.com data:; media-src 'self' https://user-images.githubusercontent.com https://www.quivr.app/ https://quivr-cms.s3.eu-west-3.amazonaws.com; script-src 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com/ http://localhost:3000 http://localhost:3001 https://www.google-analytics.com/; frame-ancestors 'none'; style-src 'unsafe-inline' http://localhost:3000 http://localhost:3001;
```

# 🧪 External checks

Syntax checked with https://csp-evaluator.withgoogle.com/ (for the 3
environments).

---------

Co-authored-by: gozineb <zinebe@theodo.fr>
2023-10-05 17:37:25 +02:00
Stan Girard
408aa8f87a
chore(main): release 0.0.88 (#1322)
🤖 I have created a release *beep* *boop*
---


## 0.0.88 (2023-10-05)

## What's Changed
* fix: wrap parsing with try catch statements by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1321
* fix: 🐛 ↕️ 📱height now matches mobile height by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1323
* feat: add onboarding step 3 by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1324
* feat: restructure the sidebar of the brains management page by
@matthieujacq in https://github.com/StanGirard/quivr/pull/1325
* feat: add onboarding table by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1327
* feat: update onboarding controller and fix typo by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1333


**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.87...v0.0.88

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-10-05 17:34:15 +02:00
Mamadou DICKO
28ef515458
feat: update onboarding controller and fix typo (#1333)
<img width="525" alt="Screenshot 2023-10-05 at 10 55 29"
src="https://github.com/StanGirard/quivr/assets/63923024/d7a4e7ef-e73f-46d0-8499-06c5e951f64a">


<img width="1207" alt="Screenshot 2023-10-05 at 10 49 45"
src="https://github.com/StanGirard/quivr/assets/63923024/50eba38a-b2cb-4e7d-82b1-ceca60abdad4">

https://github.com/StanGirard/quivr/issues/1328
2023-10-05 11:31:26 +02:00
Stan Girard
64315d05da feat(cms): added use case 2023-10-05 10:27:53 +02:00
Stan Girard
6f2023d4b0 feat(strapi): updated version 2023-10-05 10:10:02 +02:00
Mamadou DICKO
fbdc07af2c
feat: add onboarding table (#1327)
* feat: add onboarding table

* feat: add Onboarding repository

* feat: add onboarding controller
2023-10-05 09:47:29 +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
Mamadou DICKO
85eba3da70
feat: add onboarding step 3 (#1324)
* feat: add OnboardingContext

* feat: add Step3 boilerplate

* feat: activate step3

* feat: add <Step3/> content

* feat: add shouldStream guard on useStreamText
2023-10-04 16:26:56 +02:00
Matthieu Jacq
945178de39
fix: 🐛📱 height now matches mobile height (#1323) 2023-10-04 12:04:57 +02:00
Mamadou DICKO
bf5b7553d5
fix: wrap parsing with try catch (#1321) 2023-10-04 11:26:25 +02:00
Stan Girard
a8f9edb21f
chore(main): release 0.0.87 (#1310) 2023-10-04 10:02:36 +02:00
Mamadou DICKO
bf7cdae4ab
feat(onboarding): add questions suggestions layout (#1318)
* refactor: update ChatInput

* feat(chat): add questions suggestion layout
2023-10-03 18:34:28 +02:00
Mamadou DICKO
6d0bc9b6ac
feat(onboarding): add step 2 (#1314)
* refactor: move onboarding step1 to components folder

* feat(onboarding): add on step2
2023-10-03 18:26:40 +02:00
Matthieu Jacq
403cdaa354
fix: remove undesired outlines around divs (#1316) 2023-10-03 18:03:05 +02:00
Stan Girard
e62c3e0579 feat(litellm): adding huggingface compatibility mistral 2023-10-03 17:18:50 +02:00
Matthieu Jacq
a61a18f4f4
fix: replace next/image's layout deprecated attribute (#1313) 2023-10-03 16:52:31 +02:00
Matthieu Jacq
ed358c7fa3
refactor: ♻️ ContentSecurityPolicy as an object (#1312)
* ♻️  ContentSecurityPolicy as an object

* CSP: Remove redundant operation
2023-10-03 16:16:02 +02:00
Matthieu Jacq
958993a960
feat: ↕️ maximize brain management page (#1308) 2023-10-03 14:56:31 +02:00
Stan Girard
73fdaa31f1
chore(main): release 0.0.86 (#1285) 2023-10-03 14:04:49 +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