chore: Rename Projects to Templates (#880)

Customer feedback indicated projects was a confusing name.
After querying the team internally, it seemed unanimous
that it is indeed a confusing name.

Here's for a lil less confusion @ashmeer7 🥂
This commit is contained in:
Kyle Carberry
2022-04-06 12:42:40 -05:00
committed by GitHub
parent 584c8b4fc3
commit 02ad3f14f5
109 changed files with 2548 additions and 2547 deletions

View File

@ -12,19 +12,19 @@ import { WorkspaceSection } from "./WorkspaceSection"
export interface WorkspaceProps {
organization: Types.Organization
workspace: Types.Workspace
project: Types.Project
template: Types.Template
}
/**
* Workspace is the top-level component for viewing an individual workspace
*/
export const Workspace: React.FC<WorkspaceProps> = ({ organization, project, workspace }) => {
export const Workspace: React.FC<WorkspaceProps> = ({ organization, template, workspace }) => {
const styles = useStyles()
return (
<div className={styles.root}>
<div className={styles.vertical}>
<WorkspaceHeader organization={organization} project={project} workspace={workspace} />
<WorkspaceHeader organization={organization} template={template} workspace={workspace} />
<div className={styles.horizontal}>
<div className={styles.sidebarContainer}>
<WorkspaceSection title="Applications">
@ -56,10 +56,10 @@ export const Workspace: React.FC<WorkspaceProps> = ({ organization, project, wor
/**
* Component for the header at the top of the workspace page
*/
export const WorkspaceHeader: React.FC<WorkspaceProps> = ({ organization, project, workspace }) => {
export const WorkspaceHeader: React.FC<WorkspaceProps> = ({ organization, template, workspace }) => {
const styles = useStyles()
const projectLink = `/projects/${organization.name}/${project.name}`
const templateLink = `/templates/${organization.name}/${template.name}`
return (
<Paper elevation={0} className={styles.section}>
@ -68,7 +68,7 @@ export const WorkspaceHeader: React.FC<WorkspaceProps> = ({ organization, projec
<div className={styles.vertical}>
<Typography variant="h4">{workspace.name}</Typography>
<Typography variant="body2" color="textSecondary">
<Link to={projectLink}>{project.name}</Link>
<Link to={templateLink}>{template.name}</Link>
</Typography>
</div>
</div>