From c89d5969900da2ede8a28ff3cc70e10b64aa30ab Mon Sep 17 00:00:00 2001 From: Antoine Dewez <44063631+Zewed@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:52:42 -0700 Subject: [PATCH 1/3] fix(frontend): dark mode issues (#2382) # 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): --- .../EmailLogin/components/EmailInput.tsx | 28 ++++------ .../PasswordLogin/PasswordLogin.tsx | 25 +++++---- frontend/app/(auth)/login/page.module.scss | 46 ++++++++++++++++ frontend/app/(auth)/login/page.tsx | 50 ++++++++--------- frontend/app/(home)/page.tsx | 55 ++----------------- .../BrainCatalogue/BrainCatalogue.module.scss | 6 +- .../lib/components/ui/Tag/Tag.module.scss | 2 +- .../lib/components/ui/TextInput/TextInput.tsx | 4 +- .../User-settings.provider.tsx | 6 +- 9 files changed, 112 insertions(+), 110 deletions(-) create mode 100644 frontend/app/(auth)/login/page.module.scss diff --git a/frontend/app/(auth)/login/components/EmailLogin/components/EmailInput.tsx b/frontend/app/(auth)/login/components/EmailLogin/components/EmailInput.tsx index 929a8004d..2d71f0c15 100644 --- a/frontend/app/(auth)/login/components/EmailLogin/components/EmailInput.tsx +++ b/frontend/app/(auth)/login/components/EmailLogin/components/EmailInput.tsx @@ -1,30 +1,26 @@ import { Fragment } from "react"; -import { useFormContext } from "react-hook-form"; -import { useTranslation } from "react-i18next"; +import { Controller } from "react-hook-form"; -import Field from "@/lib/components/ui/Field"; -import { emailPattern } from "@/lib/config/patterns"; +import { TextInput } from "@/lib/components/ui/TextInput/TextInput"; import { useAuthModes } from "@/lib/hooks/useAuthModes"; -import { EmailAuthContextType } from "../../../types"; - export const EmailInput = (): JSX.Element => { - const { register } = useFormContext(); - const { t } = useTranslation(); const { password, magicLink } = useAuthModes(); if (!password && !magicLink) { return ; } return ( - ( + + )} /> ); }; diff --git a/frontend/app/(auth)/login/components/EmailLogin/components/PasswordLogin/PasswordLogin.tsx b/frontend/app/(auth)/login/components/EmailLogin/components/PasswordLogin/PasswordLogin.tsx index 65cbff5a2..a0f5ee514 100644 --- a/frontend/app/(auth)/login/components/EmailLogin/components/PasswordLogin/PasswordLogin.tsx +++ b/frontend/app/(auth)/login/components/EmailLogin/components/PasswordLogin/PasswordLogin.tsx @@ -1,10 +1,10 @@ import { Fragment } from "react"; -import { useFormContext } from "react-hook-form"; +import { Controller, useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { EmailAuthContextType } from "@/app/(auth)/login/types"; import Button from "@/lib/components/ui/Button"; -import Field from "@/lib/components/ui/Field"; +import { TextInput } from "@/lib/components/ui/TextInput/TextInput"; import { useAuthModes } from "@/lib/hooks/useAuthModes"; import { usePasswordLogin } from "./hooks/usePasswordLogin"; @@ -13,7 +13,7 @@ export const PasswordLogin = (): JSX.Element => { const { t } = useTranslation(["login"]); const { password } = useAuthModes(); const { handlePasswordLogin } = usePasswordLogin(); - const { register, watch } = useFormContext(); + const { watch } = useFormContext(); if (!password) { return ; @@ -21,17 +21,22 @@ export const PasswordLogin = (): JSX.Element => { return (
- ( + + )} /> - - )} -
- -

{secondStepStream}

-

{thirdStepStream}

- - - - ); -}; diff --git a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/styles/index.ts b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/styles/index.ts deleted file mode 100644 index afa34804a..000000000 --- a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/styles/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const stepsContainerStyle = "flex flex-col gap-2"; diff --git a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/types.ts b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/types.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/index.ts b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/index.ts index 4edc9ed64..40b1b0ddc 100644 --- a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/index.ts +++ b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/index.ts @@ -1,2 +1,2 @@ export * from "./ChatItem"; -export * from "./QADisplay"; +export * from "./ChatItem/QADisplay"; diff --git a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/index.tsx b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/index.tsx index 979189799..bc67ad0ea 100644 --- a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/index.tsx +++ b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/index.tsx @@ -3,7 +3,6 @@ import { useTranslation } from "react-i18next"; import { useOnboarding } from "@/lib/hooks/useOnboarding"; import { ChatItem } from "./components"; -import { Onboarding } from "./components/Onboarding/Onboarding"; import { useChatDialogue } from "./hooks/useChatDialogue"; import { chatDialogueContainerClassName, @@ -28,7 +27,6 @@ export const ChatDialogue = ({ if (shouldDisplayOnboardingAInstructions) { return (
-
{chatItems.map((chatItem, index) => ( ))}
From 07f9078cb31d60df5f7b3c8e2635e11f30e754fe Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Wed, 27 Mar 2024 20:08:05 -0700 Subject: [PATCH 3/3] chore(main): release 0.0.227 (#2379) :robot: I have created a release *beep* *boop* --- ## 0.0.227 (2024-03-28) ## What's Changed * fix(backend): invitation with new brains did not work by @Zewed in https://github.com/QuivrHQ/quivr/pull/2378 * fix(backend): invitation brain bugs by @Zewed in https://github.com/QuivrHQ/quivr/pull/2380 * fix(frontend): disable knowledge tab by @Zewed in https://github.com/QuivrHQ/quivr/pull/2381 * fix(frontend): dark mode issues by @Zewed in https://github.com/QuivrHQ/quivr/pull/2382 * feat(frontend): show icons only on hover except for last message by @Zewed in https://github.com/QuivrHQ/quivr/pull/2377 **Full Changelog**: https://github.com/QuivrHQ/quivr/compare/v0.0.226...v0.0.227 --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f8410a2..ab744e68f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.0.227 (2024-03-28) + +## What's Changed +* fix(backend): invitation with new brains did not work by @Zewed in https://github.com/QuivrHQ/quivr/pull/2378 +* fix(backend): invitation brain bugs by @Zewed in https://github.com/QuivrHQ/quivr/pull/2380 +* fix(frontend): disable knowledge tab by @Zewed in https://github.com/QuivrHQ/quivr/pull/2381 +* fix(frontend): dark mode issues by @Zewed in https://github.com/QuivrHQ/quivr/pull/2382 +* feat(frontend): show icons only on hover except for last message by @Zewed in https://github.com/QuivrHQ/quivr/pull/2377 + + +**Full Changelog**: https://github.com/QuivrHQ/quivr/compare/v0.0.226...v0.0.227 + ## 0.0.226 (2024-03-21) ## What's Changed