Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handle suggestion click #1368

Merged
merged 2 commits into from
Oct 10, 2023
Merged

feat: handle suggestion click #1368

merged 2 commits into from
Oct 10, 2023

Conversation

mamadoudicko
Copy link
Contributor

@mamadoudicko mamadoudicko commented Oct 9, 2023

#1367

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

Screen.Recording.2023-10-09.at.18.22.09.mov

@mamadoudicko mamadoudicko temporarily deployed to preview October 9, 2023 16:19 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Oct 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 7:37am
quivr-strapi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 7:37am
quivrapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 7:37am

@dosubot dosubot bot added the area: frontend Related to frontend functionality or under the /frontend directory label Oct 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/OnboardingQuestions/components/OnboardingQuestion/OnboardingQuestion.tsx

The changes in this file are generally safe, but there is a potential issue with the onClick handler. The void keyword is used, which forces the function to return undefined. This is not necessary and could lead to confusion. Instead, the onClick handler could be written as follows:

onClick={handleSuggestionClick}

This would make the code cleaner and easier to understand.


Risk Level 2 - /home/runner/work/quivr/quivr/frontend/lib/hooks/useOnboarding.ts

The changes in this file are generally safe, but there is a potential issue with the useQuery hook. The queryFn is set to getOnboarding, but no dependencies are provided in the queryKey array. If getOnboarding depends on any external variables, they should be included in the queryKey array to ensure the query is re-run when they change.


Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/OnboardingQuestions/components/OnboardingQuestion/hooks/useOnboardingQuestion.ts

The changes in this file are generally safe, but there is a potential issue with the handleSuggestionClick function. It uses Promise.all without any error handling. If either addQuestion or updateOnboarding fails, the other will still execute and the error will be unhandled. Consider adding a try/catch block to handle any potential errors.


🖱️🔍🐛


Powered by Code Review GPT

@mamadoudicko mamadoudicko merged commit 28a6dc1 into main Oct 10, 2023
11 checks passed
gozineb pushed a commit that referenced this pull request Oct 11, 2023
🤖 I have created a release *beep* *boop*
---


## 0.0.90 (2023-10-11)

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


**Full Changelog**:
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).
coolCatalyst added a commit to coolCatalyst/quivr that referenced this pull request Jun 1, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.90 (2023-10-11)

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


**Full Changelog**:
QuivrHQ/quivr@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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: frontend Related to frontend functionality or under the /frontend directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants