feat(wren-ui): add adjust the answer dropdown for answer tab#1479
feat(wren-ui): add adjust the answer dropdown for answer tab#1479andreashimin merged 1 commit intoepic/adjust-answerfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new AdjustAnswerDropdown component to the answer tab for supporting additional actions ("Adjust steps" and "Adjust SQL") in the UI.
- Introduces a new EditSVG component for iconography in dropdowns.
- Creates a dedicated dropdown action enum and a custom hook (useDropdown) for managing dropdown visibility.
- Updates TextBasedAnswer and CustomDropdown components to integrate the new dropdown functionality.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| wren-ui/src/utils/svgs/index.ts | Added export for the new EditSVG component |
| wren-ui/src/utils/svgs/EditSVG.tsx | New SVG component for the edit icon |
| wren-ui/src/utils/enum/modeling.ts | Removed the obsolete MORE_ACTION enum |
| wren-ui/src/utils/enum/index.ts | Added export for the new dropdown enum |
| wren-ui/src/utils/enum/dropdown.ts | New enum listing dropdown actions including adjust actions |
| wren-ui/src/hooks/useDropdown.tsx | New hook to manage dropdown visibility |
| wren-ui/src/components/pages/home/promptThread/TextBasedAnswer.tsx | Integrated AdjustAnswerDropdown and updated dropdown state handling |
| wren-ui/src/components/diagram/CustomDropdown.tsx | Extended dropdown to support adjust actions via AdjustAnswerDropdown |
Description
This PR introduced a new
AdjustAnswerDropdowncomponent to handle additional dropdown actions like "Adjust steps" and "Adjust SQL".Here we just add the common UI components first, and the implementation will be completed through other PRs
Task
UI