generated from ModusCreateOrg/template
-
Notifications
You must be signed in to change notification settings - Fork 0
[ADE-30] - AI Health Assistant on Home Screen #29
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Introduced AIAssistantModal component with chat functionality. - Added styles for the modal in AIAssistantModal.scss. - Included placeholder images for the AI assistant. - Integrated modal into HomePage for user interaction. - Added unit tests for AIAssistantModal to ensure functionality.
- Added avatar rendering for user and assistant messages in AIAssistantModal. - Updated styles in AIAssistantModal.scss for improved layout and responsiveness. - Introduced nullish coalescing operator (`??`) usage guideline in general rules. - Added new images for AI assistant functionality. - Updated tests to verify expand/collapse behavior of the modal.
- Created ChatContainer and ChatInput components for better separation of concerns in chat UI. - Updated AIAssistantModal to utilize new ChatContainer and ChatInput components. - Enhanced styling for chat components in respective SCSS files. - Implemented chat service for managing message sending and AI responses. - Added tests for ChatPage and components to ensure proper functionality. - Integrated chat functionality into the app's navigation.
- Replaced WithMinimalProviders with WithTestProviders in AIAssistantModal, AppMenu, and ChatPage tests for better context handling. - Enhanced chat service mocking to return consistent responses. - Updated Ionic component mocks for better test coverage. - Skipped tests that require further authentication mocking and service integration.
- Introduced new SVG icon for AI Assistant. - Replaced PNG icon with SVG in AIAssistantModal and ChatPage. - Adjusted icon size in AIAssistantModal.scss and ChatPage.scss for better alignment. - Centered title text in ChatPage.scss for improved layout.
- Replaced AI icon in AIAssistantModal and ChatContainer with FontAwesome's robot icon. - Updated styles for the AI assistant title in AIAssistantModal.scss and ChatPage.scss for better alignment and visibility. - Adjusted ChatMessage layout to use flex-row for improved message display. - Enhanced CheckboxInput tests to use data attributes for checked state verification. - Mocked IonCheckbox in tests for better simulation of behavior.
- Renamed handleClick to handleChange for clarity in CheckboxInput test. - Added keyboard event handling for Enter and Space keys to trigger checkbox state change. - Set role and tabIndex for better accessibility compliance.
|
GuidoBR
approved these changes
Mar 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



As a user
I want to access an AI-powered assistant from multiple entry points on the home screen,
So that I can quickly ask health-related questions and receive immediate answers without navigating away.
JIRA ticket: https://moduscreate.atlassian.net/browse/ADE-30