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

fix issues in forms page, add prompt editing #1342

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 6, 2024

Important

Enhance FormsPage.tsx with prompt editing and layout fixes, refine tab management in WorkflowBlockCollapsibleContent.tsx, and clean up database models.

  • FormsPage.tsx:
    • Added navigationGoal to contactFormTaskSchema with default values.
    • Introduced showAdvancedContent state for toggling advanced settings.
    • Removed ScrollArea and ScrollAreaViewport for layout simplification.
    • Added prompt editing functionality with a toggle button.
  • WorkflowBlockCollapsibleContent.tsx:
    • Changed activeTab state to use string literals for clarity.
    • Added statusIsFinalized check for conditional tab rendering.
    • Improved tab navigation logic for task status handling.
  • Database Models:
    • Removed observer_thought_id from ArtifactModel.
    • Removed user_input and observation from ObserverThought.

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

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Enhance `FormsPage.tsx` with prompt editing and layout fixes, and refine tab management in `WorkflowBlockCollapsibleContent.tsx`.
>
>   - **FormsPage.tsx**:
>     - Added `navigationGoal` to `contactFormTaskSchema` and default values.
>     - Introduced `showAdvancedContent` state to toggle advanced settings visibility.
>     - Removed `ScrollArea` and `ScrollAreaViewport` for layout simplification.
>     - Added prompt editing functionality with a toggle button for advanced settings.
>   - **WorkflowBlockCollapsibleContent.tsx**:
>     - Changed `activeTab` state to use string literals for better clarity.
>     - Added `statusIsFinalized` check to conditionally render tabs.
>     - Improved tab navigation logic for task status handling.
>
> <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 8356b511e3332a06fdadbf8d4abba0abb0eff6be. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Enhance `FormsPage.tsx` with prompt editing and layout fixes, and refine tab management in `WorkflowBlockCollapsibleContent.tsx`.
>
>   - **FormsPage.tsx**:
>     - Added `navigationGoal` to `contactFormTaskSchema` and default values.
>     - Introduced `showAdvancedContent` state to toggle advanced settings visibility.
>     - Removed `ScrollArea` and `ScrollAreaViewport` for layout simplification.
>     - Added prompt editing functionality with a toggle button for advanced settings.
>   - **WorkflowBlockCollapsibleContent.tsx**:
>     - Changed `activeTab` state to use string literals for better clarity.
>     - Added `statusIsFinalized` check to conditionally render tabs.
>     - Improved tab navigation logic for task status handling.
>
> <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 8356b511e3332a06fdadbf8d4abba0abb0eff6be. 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 b2a3a96 in 13 seconds

More details
  • Looked at 137 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/db/models.py:172
  • Draft comment:
    The observer_thought_id column is removed from ArtifactModel but still exists in ObserverThought. Ensure this removal is intentional and won't cause inconsistencies.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_q26UHBSOhTDPlXUf


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 b2a3a96 in 20 seconds

More details
  • Looked at 116 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx:24
  • Draft comment:
    Consider using a ternary operator for the initial state assignment of activeTab to make it more explicit:
const [activeTab, setActiveTab] = useState<"output" | "goal" | "parameters">(
  task.status === Status.Completed ? "output" : "goal"
);
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of string literals for the activeTab state is a good improvement for clarity. However, the initial value assignment could be more explicit.
2. skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx:126
  • Draft comment:
    Consider storing the result of statusIsFinalized(task) in a variable to avoid repeated function calls and improve readability.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The statusIsFinalized function is used multiple times to check the task status. It might be beneficial to store its result in a variable for reuse, improving readability and performance slightly.

Workflow ID: wflow_PY3VVPHQMFEgwrI2


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 ecbcd0f in 20 seconds

More details
  • Looked at 20 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern/forge/sdk/db/models.py:172
  • Draft comment:
    The PR description states that observer_thought_id should be removed from ArtifactModel, but it is still present. Please ensure the code matches the PR description.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. skyvern/forge/sdk/db/models.py:528
  • Draft comment:
    The PR description states that user_input and observation should be removed from ObserverThought, but they are still present. Please ensure the code matches the PR description.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_oBT3efAjmoe2ax1b


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit 6151527 into main Dec 6, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/skyvern-forms-update branch December 6, 2024 19:06
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