-
Notifications
You must be signed in to change notification settings - Fork 789
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
Make scrollable areas more consistent #952
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Introduce `ScrollAreaViewport` for consistent scrollable areas and update its usage in `PromptBox.tsx`, `ScrollableActionList.tsx`, and `WorkflowParametersPanel.tsx`. > > - **Components**: > - Add `ScrollAreaViewport` component in `scroll-area.tsx` for consistent scrollable areas. > - Export `ScrollAreaViewport` from `scroll-area.tsx`. > - **Usage**: > - Update `PromptBox.tsx` to use `ScrollAreaViewport` for wrapping scrollable content. > - Update `ScrollableActionList.tsx` to use `ScrollAreaViewport` for wrapping scrollable content. > - Update `WorkflowParametersPanel.tsx` to use `ScrollAreaViewport` for wrapping scrollable content. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 666630959469d776701abcd7b567de63399eece2. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 88803e7 in 14 seconds
More details
- Looked at
358
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/create/PromptBox.tsx:185
- Draft comment:
Consider creating a constant for the repeatedclassName
value"h-full w-full rounded-[inherit]"
used inScrollAreaViewport
to avoid repetition and potential errors. This is also applicable inScrollableActionList.tsx
andWorkflowParametersPanel.tsx
. - Reason this comment was not posted:
Confidence changes required:50%
TheScrollAreaViewport
component is being used correctly in multiple files, but theclassName
prop is being repeated with the same value"h-full w-full rounded-[inherit]"
. This can be refactored to avoid repetition and potential errors in the future.
Workflow ID: wflow_0fjWqOo0i5Q1mFL0
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 88803e7 in 20 seconds
More details
- Looked at
358
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/create/PromptBox.tsx:185
- Draft comment:
TheclassName
prop forScrollAreaViewport
includesh-full w-full rounded-[inherit]
, which might be redundant if the parentScrollArea
already handles these styles. Consider reviewing the necessity of these styles here and in other files likeScrollableActionList.tsx
andWorkflowParametersPanel.tsx
. - Reason this comment was not posted:
Confidence changes required:50%
TheScrollAreaViewport
component is used consistently across the files, but theclassName
prop is not always necessary. InPromptBox.tsx
,ScrollableActionList.tsx
, andWorkflowParametersPanel.tsx
, theclassName
prop forScrollAreaViewport
includesh-full w-full rounded-[inherit]
, which might not be needed if the parentScrollArea
already handles these styles. This could lead to redundant styling.
Workflow ID: wflow_T1POGbIvoX2gfOWH
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Introduce
ScrollAreaViewport
for consistent scrollable areas and update its usage inPromptBox.tsx
,ScrollableActionList.tsx
, andWorkflowParametersPanel.tsx
.ScrollAreaViewport
component inscroll-area.tsx
for consistent scrollable areas.ScrollAreaViewport
fromscroll-area.tsx
.PromptBox.tsx
to useScrollAreaViewport
for wrapping scrollable content.ScrollableActionList.tsx
to useScrollAreaViewport
for wrapping scrollable content.WorkflowParametersPanel.tsx
to useScrollAreaViewport
for wrapping scrollable content.This description was created by for 88803e7. It will automatically update as commits are pushed.