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

Make scrollable areas more consistent #952

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Oct 10, 2024

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.

This description was created by Ellipsis for 88803e7. It will automatically update as commits are pushed.

…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 -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 4 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 repeated className value "h-full w-full rounded-[inherit]" used in ScrollAreaViewport to avoid repetition and potential errors. This is also applicable in ScrollableActionList.tsx and WorkflowParametersPanel.tsx.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The ScrollAreaViewport component is being used correctly in multiple files, but the className 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.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 4 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:
    The className prop for ScrollAreaViewport includes h-full w-full rounded-[inherit], which might be redundant if the parent ScrollArea already handles these styles. Consider reviewing the necessity of these styles here and in other files like ScrollableActionList.tsx and WorkflowParametersPanel.tsx.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The ScrollAreaViewport component is used consistently across the files, but the className prop is not always necessary. In PromptBox.tsx, ScrollableActionList.tsx, and WorkflowParametersPanel.tsx, the className prop for ScrollAreaViewport includes h-full w-full rounded-[inherit], which might not be needed if the parent ScrollArea 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.

@msalihaltun msalihaltun merged commit 267adea into main Oct 10, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/use-scroll-area-in-scrollables branch October 10, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants