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

Dev #202

Merged
merged 34 commits into from
Dec 28, 2023
Merged

Dev #202

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0a49f5e
fix: install differences modal
nathan-vm Dec 4, 2023
cd2efef
feat: add download button
nathan-vm Dec 4, 2023
1b50c0d
feat: add edges styles when running
nathan-vm Dec 5, 2023
187e7da
feat: general codeeditor input. can accept any language
nathan-vm Dec 5, 2023
42fa0cc
Merge pull request #200 from Tauffer-Consulting/feature/frontend-mino…
nathan-vm Dec 6, 2023
46d4088
fix list workflow schedule arg
vinicvaz Dec 7, 2023
9e2f2e4
openai version
vinicvaz Dec 7, 2023
be6ee1a
feat: add html display result
nathan-vm Dec 7, 2023
1057f34
fix: use react-pdf
nathan-vm Dec 8, 2023
bf2b0b7
feat: improve scroll in pdf view
nathan-vm Dec 8, 2023
8e37c73
Merge pull request #204 from Tauffer-Consulting/feature/display-results
nathan-vm Dec 8, 2023
106556c
updating helm ingress for rest and front
vinicvaz Dec 11, 2023
f5875c1
add api_url env var support
vinicvaz Dec 13, 2023
0c36400
fix dev compose
vinicvaz Dec 13, 2023
486e255
fix cli dockerfiles with api_url
vinicvaz Dec 13, 2023
9a0eea3
fix helm
vinicvaz Dec 14, 2023
f78c3aa
helm version
vinicvaz Dec 14, 2023
a0d2282
update backend auth config
vinicvaz Dec 15, 2023
bf35832
Merge pull request #206 from Tauffer-Consulting/k8s-config
vinicvaz Dec 15, 2023
cb77f4a
feat: generate report list in rest api
nathan-vm Dec 12, 2023
82a21bb
feat: create a results report page
nathan-vm Dec 13, 2023
1726039
WIP: pdf pages rendered
nathan-vm Dec 15, 2023
e75b378
refactor: use iframe to render html piece
nathan-vm Dec 18, 2023
a422bfc
fix: iframe styles
nathan-vm Dec 18, 2023
428d657
feat: use react-to-print lib
nathan-vm Dec 18, 2023
7904456
chore: improve react-to-print styles
nathan-vm Dec 21, 2023
72a9183
feat: improve results report page style
nathan-vm Dec 26, 2023
c848994
chore: general styles
nathan-vm Dec 26, 2023
ae1c204
feat: add loading
nathan-vm Dec 27, 2023
4d5cb80
chore: styles improvements
nathan-vm Dec 28, 2023
07adcdc
Merge pull request #205 from Tauffer-Consulting/feature/display-all-r…
nathan-vm Dec 28, 2023
785f5ca
feat: remove API_ENV in frontend
nathan-vm Dec 28, 2023
dd6eed9
chore: typo
nathan-vm Dec 28, 2023
dd2c7be
update version
vinicvaz Dec 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const ArrayInput: React.FC<ArrayInputItemProps> = ({
return "DatetimeInput";
} else if (
subItemSchema?.type === "string" &&
subItemSchema?.widget === "codeeditor"
subItemSchema?.widget.includes("codeeditor")
) {
return "CodeEditorInput";
} else if (subItemSchema?.type === "object") {
Expand Down Expand Up @@ -300,7 +300,14 @@ const ArrayInput: React.FC<ArrayInputItemProps> = ({
)}
{!fromUpstream && elementType === "CodeEditorInput" && (
<Grid item xs={9}>
<CodeEditorInput name={`${name}.${index}.value`} />
<CodeEditorInput
language={
subItemSchema?.widget === "codeeditor"
? "python"
: subItemSchema.widget.replace("codeeditor-", "")
}
name={`${name}.${index}.value`}
/>
</Grid>
)}
{!fromUpstream && elementType === "Unknown" && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,50 +181,21 @@ const PieceFormItem: React.FC<PieceFormItemProps> = ({
("type" in schema &&
"widget" in schema &&
schema.type === "string" &&
(schema.widget === "codeeditor" ||
schema.widget === "codeeditor-python")) ||
schema.widget?.includes("codeeditor")) ??
("widget" in schema &&
(schema.widget === "codeeditor" ||
schema.widget === "codeeditor-python") &&
anyOfType === "string")
) {
inputElement = (
<CodeEditorInput<IWorkflowPieceData>
name={`inputs.${itemKey}.value`}
language="python"
placeholder="Enter Python code."
/>
);
} else if (
("type" in schema &&
"widget" in schema &&
schema.type === "string" &&
schema.widget === "codeeditor-json") ||
("widget" in schema &&
(schema.widget === "codeeditor" || schema.widget === "codeeditor-json") &&
anyOfType === "string")
) {
inputElement = (
<CodeEditorInput<IWorkflowPieceData>
name={`inputs.${itemKey}.value`}
language="json"
placeholder="Enter JSON code."
/>
);
} else if (
("type" in schema &&
"widget" in schema &&
schema.type === "string" &&
schema.widget === "codeeditor-sql") ||
("widget" in schema &&
(schema.widget === "codeeditor" || schema.widget === "codeeditor-sql") &&
schema.widget?.includes("codeeditor") &&
anyOfType === "string")
) {
const language =
schema.widget === "codeeditor"
? "python"
: schema.widget.replace("codeeditor-", "");

inputElement = (
<CodeEditorInput<IWorkflowPieceData>
name={`inputs.${itemKey}.value`}
language="sql"
placeholder="Enter SQL code."
language={language}
placeholder={`Enter yor ${language} code here.`}
nathan-vm marked this conversation as resolved.
Show resolved Hide resolved
/>
);
} else if (
Expand Down