Skip to content

Conversation

@adamrefaey
Copy link
Collaborator

Change

UI fixes

Does this PR introduce a breaking change?

{...}

What needs to be documented once your changes are merged?

{...}

Additional Comments

{...}

@adamrefaey adamrefaey requested review from GuidoBR and Copilot May 6, 2025 17:07
@adamrefaey adamrefaey self-assigned this May 6, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses minor UI fixes across multiple components. Key changes include:

  • Adding a close button to the ChatPage that navigates the user back to the home tab.
  • Removing the empty state message in ChatContainer for situations with no messages.
  • Wrapping the AIAssistantModal’s content in a new container to improve layout structure.

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

File Description
frontend/src/pages/Chat/ChatPage.tsx Added a close button with navigation functionality.
frontend/src/common/components/Chat/ChatContainer.tsx Modified rendering logic by removing the empty state message.
frontend/src/common/components/AIAssistant/AIAssistantModal.tsx Introduced a wrapper div to structure modal content layout.
Files not reviewed (2)
  • frontend/src/common/components/AIAssistant/AIAssistantModal.scss: Language not supported
  • frontend/src/common/components/Chat/ChatInput.scss: Language not supported
Comments suppressed due to low confidence (1)

frontend/src/common/components/Chat/ChatContainer.tsx:41

  • [nitpick] The removal of the empty state UI element may lead to a blank chat container when there are no messages. If this change is not intentional, consider adding a placeholder to guide the user.
{messages.length === 0 ? (<div className="chat-empty-state" data-testid={`${testid}-empty`}><p>{t('aiAssistant.emptyState', 'How can I help you today?')}</p></div>) : (

@GuidoBR GuidoBR merged commit d6d102b into main May 6, 2025
1 check passed
@adamrefaey adamrefaey deleted the ADE-200-Adam-fix branch May 6, 2025 17:09
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