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

Implement an AI Advisor #125

Merged
merged 33 commits into from
Dec 10, 2024
Merged

Implement an AI Advisor #125

merged 33 commits into from
Dec 10, 2024

Conversation

scottchen98
Copy link
Contributor

@scottchen98 scottchen98 commented Dec 10, 2024

This pull request introduces several significant changes, including the addition of a new AI advisor feature, updates to the rewards page, and enhancements to the messaging system. The most important changes are summarized below:

AI Advisor Feature:

  • Added a new AdvisorChatbot component that allows users to interact with an AI advisor. This includes setting up the chat interface, handling message sending, and displaying messages. (app/(tabs)/ai-advisor.tsx)
  • Updated TabLayout to include the new AI advisor tab with an appropriate icon. (app/(tabs)/_layout.tsx) [1] [2]

Rewards Page Enhancements:

  • Refactored the rewards page to fetch and display rewards dynamically, including a search functionality to filter rewards. (app/(tabs)/rewards.tsx) [1] [2]
  • Updated the single reward page to fetch reward details dynamically and display additional information such as images and legal disclosures. (app/rewards/[id].tsx) (app/rewards/[id].tsxL1-R98)

Messaging System Improvements:

  • Added new queries and mutations for handling messages, including fetching messages by thread ID and sending messages. (convex/messages.ts)
  • Updated the schema to include new tables for messages and threads, with appropriate indexing. (convex/schema.ts)

UI and Styling Updates:

  • Introduced a new CSS file for styling the reward descriptions and links. (app/rewards/dom-content.css)
  • Enhanced the Input component to use a consistent font family across the application. (components/ui/input.tsx) [1] [2]

These changes collectively improve the functionality and user experience of the application, particularly with the introduction of the AI advisor and the dynamic handling of rewards.- add Bot icon

scottchen98 and others added 30 commits November 15, 2024 17:43
@michaeleii michaeleii merged commit 0062bcd into main Dec 10, 2024
3 checks passed
@michaeleii michaeleii deleted the ai-advisor branch December 10, 2024 05:57
@scottchen98 scottchen98 linked an issue Dec 10, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop An Health / Wellness AI Advisor
2 participants