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(boxai-sidebar): Modified suggested questions for images #3935

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

DanilaRubleuski
Copy link
Contributor

@DanilaRubleuski DanilaRubleuski commented Feb 17, 2025

Description

Passed localizedQuestions list, which will be different depending on file format. It should be different for images, multiDoc and documents.

Screenshots

image image

@DanilaRubleuski DanilaRubleuski requested review from a team as code owners February 17, 2025 13:02
Copy link
Contributor

@kkuliczkowski-box kkuliczkowski-box left a comment

Choose a reason for hiding this comment

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

I've got a suggestion for a refactor.

How about we remove the logic of calculating localizedQuestions, for which we need to store file type extensions in constants. Instead let's move all that logic to useBoxAISidebarProps hook in EUA. Logic there will use already existing file type constants, so we don't have to duplicate and maintain them in multiple places.

We'll simply receive localizedQuestions in BUIE as a prop. This will also allow us to remove messages related to Suggested questions, so we won't need to maintain them as well.

jankowiakdawid
jankowiakdawid previously approved these changes Feb 18, 2025
@mergify mergify bot merged commit 89c6c9a into box:master Feb 19, 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.

4 participants