Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
set login block to add a credential parameter when new credential is … (#1969)
Shuchang Zheng05433d68d274
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsxindex f0b0c2e51..6f49164ca 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx@@ -35,12 +35,12 @@ function LoginBlockCredentialSelector({ value, onChange }: Props) {parameter.dataType === "credential_id",);const isCloud = useContext(CloudContext);- const { data: credentials = [], isLoading } = useCredentialsQuery({+ const { data: credentials = [], isFetching } = useCredentialsQuery({enabled: isCloud,});const noneItemValue = useId();- if (isCloud && isLoading) {+ if (isCloud && isFetching) {return <Skeleton className="h-8 w-full" />;}@@ -135,6 +135,16 @@ function LoginBlockCredentialSelector({ value, onChange }: Props) {<CredentialsModalonCredentialCreated={(id) => {onChange?.(id);+ setWorkflowParameters((prev) => {+ return [+ ...prev,+ {+ parameterType: "credential",+ credentialId: id,+ key: id,+ },+ ];+ });}}/></>