Commit Graph

952 Commits

Author SHA1 Message Date
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
Matthieu Jacq
cee050a2e4
feat: POST on /contact to contact quivr team by email (#1466)
# Description

Issue: #1445
Epic: #1232

## ⚠️ À rajouter en variables d'environnement

```env
RESEND_CONTACT_SALES_FROM=contact_sales@resend.dev
RESEND_CONTACT_SALES_TO=<change-me>
```
2023-10-23 17:58:45 +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
Stan Girard
0c840991e0
chore(main): release 0.0.95 (#1442)
🤖 I have created a release *beep* *boop*
---


## 0.0.95 (2023-10-23)

## What's Changed
* feat: homepage first section by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1439
* fix: show a flat gradient in the UseCase section by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1440
* style: update testimonials display by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1441
* feat: fetch homepage data from CMS by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1452
* feat: contact sales page (front layout) by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1451
* Fix: Improved Text Visibility in Dark Mode in OnboardingQuestion
Component by @Dev-Dz27 in https://github.com/StanGirard/quivr/pull/1456
* feat(cms): added single video demo by @StanGirard in
https://github.com/StanGirard/quivr/pull/1459
* feat: fetch demo video from CMS by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1461
* feat: Contact form component by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1453

## New Contributors
* @Dev-Dz27 made their first contribution in
https://github.com/StanGirard/quivr/pull/1456

**Full Changelog**:
https://github.com/StanGirard/quivr/compare/v0.0.94...v0.0.95

---
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-23 11:31:32 +02:00
Matthieu Jacq
7d40a27ad2
feat: Contact form component (#1453)
# Description

Only the form, no validation, no post to the server.

## Screenshots (if appropriate):

### 🖥️ Desktop

<img width="1512" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/537fb03e-72fb-4204-bdbf-ab716543b280">

After submitting:
<img width="1512" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/72c78e16-4dc0-4ae1-8915-406d70b96ae9">


### 📱 Mobile

<img width="452" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/b6077f9b-7cad-4e63-8168-49b32d757620">
2023-10-23 11:29:51 +02:00
Mamadou DICKO
5794c55501
feat: fetch demo video from CMS (#1461)
Issue: https://github.com/StanGirard/quivr/issues/1460
2023-10-23 11:18:57 +02:00
Stan Girard
a0e4862927
feat(cms): added single video demo (#1459)
# 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-23 10:44:50 +02:00
Chekkal Youcef Seif El Islam
bb1e2e35db
Fix: Improved Text Visibility in Dark Mode in OnboardingQuestion Component (#1456)
# Description

In this pull request, I addressed an issue with text visibility in dark
mode within the OnboardingQuestion component. The problem was resolved
by modifying the class name.

## Changes Made

I changed the class name in the OnboardingQuestion component from:

```Tailwind
cursor-pointer shadow-md dark:shadow-primary/25 hover:shadow-xl transition-shadow bg-onboarding-yellow-bg px-3 py-1 rounded-xl border-black/10 dark:border-white/25
```

to:

```Tailwind
cursor-pointer shadow-md dark:shadow-primary/25 hover:shadow-xl transition-shadow bg-onboarding-yellow-bg px-3 py-1 rounded-xl border-black/10 dark:border-white/25 dark:text-black
```

## Motivation

The motivation for this change is to improve the visibility of text in
dark mode, making the user experience better and ensuring that the UI
remains consistent.

## Checklist before requesting a review

- [ ] My code follows the style guidelines of this project.
- [ ] I have performed a self-review of my code.
- [ ] I have added comments to explain any hard-to-understand areas.
- [ ] I have not added tests in this specific pull request, as this
change primarily deals with CSS class modification.
- [ ] New and existing unit tests pass locally with my changes.
- [ ] No dependent changes are required for this fix.

## Screenshots (if appropriate)

### Problem Before Fix
![Problem Before
Fix](https://raw.githubusercontent.com/Dev-Dz27/quivr/patch-1/frontend/public/Web%20capture_22-10-2023_19154_www.quivr.app.jpeg)

### Fix Applied
![Fix
Applied](https://raw.githubusercontent.com/Dev-Dz27/quivr/patch-1/frontend/public/Web%20capture_22-10-2023_19416_www.quivr.app.jpeg)
2023-10-23 09:56:24 +02:00
Matthieu Jacq
f90c43cc42
feat: contact sales page (front layout) (#1451)
# Description

Epic: #1232
Issue: #1443

## Screenshots (if appropriate):

### 🖥️ Desktop

<img width="1512" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/dce63bf7-0046-4f2b-9633-bdc34a1b0893">


### 📱 Mobile

<img width="338" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/8828b5bc-3819-4774-9d77-d60fbff72e6c">
2023-10-20 15:38:35 +02:00
Mamadou DICKO
6514358796
feat: fetch homepage data from CMS (#1452)
Issue: https://github.com/StanGirard/quivr/issues/1448
2023-10-20 15:36:55 +02:00
Mamadou DICKO
4345eac76e
style: update testimonials display (#1441)
https://github.com/StanGirard/quivr/assets/63923024/d03c321f-c3d4-472e-9a9f-c10288523831
2023-10-19 17:55:52 +02:00
Matthieu Jacq
89858b5d03
fix: show a flat gradient in the UseCase section (#1440)
Ticket : #1438 

<img width="1098" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/3ad4a6f1-37b6-4ead-b115-8e159281104f">
2023-10-19 17:53:00 +02:00
Matthieu Jacq
9a7c821e80
feat: homepage first section (#1439)
# Description

First section layout and assets.

## Screenshots (if appropriate):

#### 💻 Laptop

<img width="1512" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/7441e2a1-5d97-4554-8971-def66a10ab8c">


#### 📱Mobile

<img width="616" alt="image"
src="https://github.com/StanGirard/quivr/assets/67386567/d48f8986-e61f-4021-9c69-cf178506d100">
2023-10-19 17:51:38 +02:00
Stan Girard
2550ea887f
chore(main): release 0.0.94 (#1421)
🤖 I have created a release *beep* *boop*
---


## 0.0.94 (2023-10-19)

## What's Changed
* feat: Homepage demo section by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1420
* feat: add security section by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1423
* feat: HomePage new footer by @matthieujacq in
https://github.com/StanGirard/quivr/pull/1425
* feat: add testimonials section by @mamadoudicko in
https://github.com/StanGirard/quivr/pull/1427
* refactor(backend): cleaning dead and unused code by @StanGirard in
https://github.com/StanGirard/quivr/pull/1432


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

---
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-19 16:31:42 +02:00
Stan Girard
ca1ef8ccbd
refactor(backend): cleaning dead and unused code (#1432)
# 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-19 15:52:20 +02:00
Mamadou DICKO
1cd99ae234
feat: add testimonials section (#1427)
Issue: https://github.com/StanGirard/quivr/issues/1428


https://github.com/StanGirard/quivr/assets/63923024/b0b25f3e-d038-4740-b581-e3c256d89902
2023-10-18 17:36:29 +02:00
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