Skip to content
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

fix(content-sidebar): add disabled state #3997

Merged
merged 4 commits into from
Mar 3, 2025

Conversation

kmachulskiBox
Copy link
Contributor

Add missing disabled select agent when we ask AI a question similar solution that is in AI Modal

@kmachulskiBox kmachulskiBox requested a review from a team as a code owner February 28, 2025 16:15
tjuanitas
tjuanitas previously approved these changes Feb 28, 2025
@@ -150,6 +150,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) {
{isAIStudioAgentSelectorEnabled && (
<div className="bcs-BoxAISidebar-agentSelector">
<BoxAiAgentSelectorWithApi
disabled={props.hasRequestInProgress}
Copy link
Contributor

Choose a reason for hiding this comment

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

props is being destructured at the top so you could include hasRequestInProgress there

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes let's not pull this directly from props here. Let's add this to the list of destructured values coming from the props parameter at the top instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no problem though I will need to add it to the Modal as it is also used there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@bfoxx1906 bfoxx1906 left a comment

Choose a reason for hiding this comment

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

props

@@ -150,6 +150,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) {
{isAIStudioAgentSelectorEnabled && (
<div className="bcs-BoxAISidebar-agentSelector">
<BoxAiAgentSelectorWithApi
disabled={props.hasRequestInProgress}
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes let's not pull this directly from props here. Let's add this to the list of destructured values coming from the props parameter at the top instead.

@mergify mergify bot merged commit d912200 into box:master Mar 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants