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
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
Update nav height
  • Loading branch information
kylecarbs committed Feb 1, 2023
commit a78837bdf8c4c23fa98c9e47c4ae0210a67f4c90
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface TemplateVersionEditorProps {
onUpdate: () => void
}

const topbarHeight = 90
const topbarHeight = navHeight

export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
template,
Expand Down Expand Up @@ -85,7 +85,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
return (
<div className={styles.root}>
<div className={styles.topbar}>
<div>
<div className={styles.topbarSides}>
Edit Template
<AvatarData
title={template.display_name || template.name}
Expand All @@ -99,7 +99,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
<div>Used By: {template.active_user_count} developers</div>
</div>

<div>
<div className={styles.topbarSides}>
<Button variant="text">Cancel Changes</Button>
<Button
variant="outlined"
Expand Down Expand Up @@ -198,9 +198,15 @@ const useStyles = makeStyles((theme) => ({
padding: theme.spacing(2),
borderBottom: `1px solid ${theme.palette.divider}`,
display: "flex",
alignItems: "center",
justifyContent: "space-between",
height: topbarHeight,
},
topbarSides: {
display: "flex",
alignItems: "center",
gap: 16,
},
panelDivider: {
height: 1,
background: theme.palette.divider,
Expand Down