Skip to content

Conversation

@jkestering-modus
Copy link
Collaborator

@jkestering-modus jkestering-modus commented Mar 18, 2025

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

- 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.
@jkestering-modus jkestering-modus self-assigned this Mar 18, 2025
- 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.
@jkestering-modus jkestering-modus marked this pull request as ready for review March 20, 2025 18:59
- 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.
@sonarqubecloud
Copy link

@jkestering-modus jkestering-modus changed the title [ADE-30] - Manual Steps [ADE-30] - AI Health Assistant on Home Screen Mar 20, 2025
@jkestering-modus jkestering-modus merged commit 9cd4714 into main Mar 20, 2025
3 checks passed
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.

3 participants