Skip to content

feat: add template editor to the ui #5963

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

Merged
merged 23 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Fix duplicate fields
  • Loading branch information
kylecarbs committed Feb 7, 2023
commit b87ec5d2bb3124b90a60d057167a3b62db737785
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export default {
},
}

const Template: Story<TemplateVersionEditorProps> = (args: TemplateVersionEditorProps) => (
<TemplateVersionEditor {...args} />
)
const Template: Story<TemplateVersionEditorProps> = (
args: TemplateVersionEditorProps,
) => <TemplateVersionEditor {...args} />

export const Example = Template.bind({})
Example.args = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const WorkspaceBuildLogs: FC<WorkspaceBuildLogsProps> = ({
}) => {
const groupedLogsByStage = groupLogsByStage(logs)
const stages = Object.keys(groupedLogsByStage)
const styles = useStyles({ templateEditorPane })
const styles = useStyles({ templateEditorPane: Boolean(templateEditorPane) })

return (
<div className={styles.logs}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface TemplateVersionMachineContext {
orgId: string
templateName: string
versionName: string
templateName: string
template?: Template
currentVersion?: TemplateVersion
currentFiles?: TemplateVersionFiles
Expand Down