Skip to content

New chat always enabled#1107

Merged
alexandrudanpop merged 2 commits intomainfrom
fix/new-chat-always-enabled
Aug 8, 2025
Merged

New chat always enabled#1107
alexandrudanpop merged 2 commits intomainfrom
fix/new-chat-always-enabled

Conversation

@alexandrudanpop
Copy link
Copy Markdown
Contributor

@alexandrudanpop alexandrudanpop commented Aug 8, 2025

Fixes OPS-2340

@linear
Copy link
Copy Markdown

linear bot commented Aug 8, 2025

@alexandrudanpop alexandrudanpop marked this pull request as ready for review August 8, 2025 08:50
Copilot AI review requested due to automatic review settings August 8, 2025 08:50
Copy link
Copy Markdown
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 removes the conditional "New Chat" button functionality by eliminating the enableNewChat prop and related logic throughout the codebase. The new chat button is now always enabled instead of being conditionally disabled based on whether messages exist in the current chat.

  • Removed enableNewChat prop from all components in the assistant UI hierarchy
  • Simplified component interfaces by removing boolean flag and related state management
  • Removed story that demonstrated disabled new chat functionality

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
assistant-top-bar.stories.tsx Removed enableNewChat prop from stories and deleted the disabled new chat story
assistant-ui-chat-container.tsx Removed enableNewChat prop from component interface and usage
assistant-top-bar.tsx Removed enableNewChat prop and disabled state from new chat button
step-settings-assistant-ui-chat-container.tsx Removed enableNewChat prop from component interface
step-settings-assistant-ui-chat.tsx Removed enableNewChat prop usage and hasMessages dependency
assistant-ui-chat-hook.ts Removed hasMessages state tracking and related logic
assistant-ui-chat.tsx Removed enableNewChat prop usage and hasMessages dependency

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

@rSnapkoOpenOps rSnapkoOpenOps left a comment

Choose a reason for hiding this comment

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

lgtm

@alexandrudanpop alexandrudanpop merged commit 46e6a25 into main Aug 8, 2025
19 checks passed
@alexandrudanpop alexandrudanpop deleted the fix/new-chat-always-enabled branch August 8, 2025 09:12
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