Skip to content

dis-chat - #242

Merged
galshubeli merged 1 commit into
stagingfrom
fix-chat-dis
Sep 10, 2025
Merged

dis-chat#242
galshubeli merged 1 commit into
stagingfrom
fix-chat-dis

Conversation

@galshubeli

Copy link
Copy Markdown
Collaborator

No description provided.

@galshubeli
galshubeli requested a review from Copilot September 10, 2025 07:04
@coderabbitai

coderabbitai Bot commented Sep 10, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-chat-dis

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 implements proper input state management for the chat interface by disabling the message input and submit button when no database is selected. The changes ensure users can only interact with the chat functionality when a database/graph has been selected.

Key changes:

  • Extracted input state logic into a centralized updateInputState() function
  • Added calls to update input state when graphs are selected or changed
  • Modified initial template state to show disabled input with instructional placeholder

Reviewed Changes

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

File Description
app/ts/app.ts Added centralized updateInputState() function and refactored input event handler to use it
app/ts/modules/graphs.ts Added calls to updateInputState() when graphs are selected or changed
app/templates/components/chat_input.j2 Updated initial template state to show disabled input with instructional placeholder

@galshubeli
galshubeli merged commit f244e1a into staging Sep 10, 2025
9 checks passed
@galshubeli
galshubeli deleted the fix-chat-dis branch September 10, 2025 07:09
@galshubeli galshubeli linked an issue Sep 10, 2025 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.

Chat Input should be disabled when graph is not selected

2 participants