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

feat(content-sidebar): add new callback prop in box-ai-sidebar #3995

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

fpan225
Copy link

@fpan225 fpan225 commented Feb 28, 2025

Description

This change along, with EUA, Show header BoxAI purple button state in Preview when there’s an ongoing Q&A chat.

DEMO

Purple button

@fpan225 fpan225 requested a review from a team as a code owner February 28, 2025 05:36
@fpan225 fpan225 changed the title Content sidebar/new prop sethasquestions feat(content-sidebar): add new callback prop sethasquestions in boxaisidebar Feb 28, 2025
@fpan225 fpan225 changed the title feat(content-sidebar): add new callback prop sethasquestions in boxaisidebar feat(content-sidebar): add new callback prop in box-ai-sidebar Feb 28, 2025
@@ -186,6 +187,24 @@ describe('elements/content-sidebar/BoxAISidebar', () => {
});
});

test('should call setHasQuestions on load if questions is not empty', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we have a test that verifies that setHasQuestions is not called if the questions are not empty?

Copy link
Author

Choose a reason for hiding this comment

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

setHasQuestions should be called whether questions are empty or not
should be called with "true" when questions are not empty
should be called with "false" when questions are empty
will update test for these two different case

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.

2 participants