mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user