-
Notifications
You must be signed in to change notification settings - Fork 777
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
Conversation
<!-- 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 -->
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 b2a3a96 in 13 seconds
More details
- Looked at
137
lines of code in2
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:
Theobserver_thought_id
column is removed fromArtifactModel
but still exists inObserverThought
. 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.
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 b2a3a96 in 20 seconds
More details
- Looked at
116
lines of code in1
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 ofactiveTab
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 theactiveTab
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 ofstatusIsFinalized(task)
in a variable to avoid repeated function calls and improve readability. - Reason this comment was not posted:
Confidence changes required:33%
ThestatusIsFinalized
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.
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 ecbcd0f in 20 seconds
More details
- Looked at
20
lines of code in1
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 thatobserver_thought_id
should be removed fromArtifactModel
, 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 thatuser_input
andobservation
should be removed fromObserverThought
, 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.
Important
Enhance
FormsPage.tsx
with prompt editing and layout fixes, refine tab management inWorkflowBlockCollapsibleContent.tsx
, and clean up database models.navigationGoal
tocontactFormTaskSchema
with default values.showAdvancedContent
state for toggling advanced settings.ScrollArea
andScrollAreaViewport
for layout simplification.activeTab
state to use string literals for clarity.statusIsFinalized
check for conditional tab rendering.observer_thought_id
fromArtifactModel
.user_input
andobservation
fromObserverThought
.This description was created by for ecbcd0f. It will automatically update as commits are pushed.