refactor: update terminology in layout content and welcome page to replace 'workspace' with 'organization' for consistency
This commit is contained in:
@@ -33,7 +33,7 @@ export default function LayoutContent({ children }: { children: React.ReactNode
|
|||||||
await setSessionAction(access_token)
|
await setSessionAction(access_token)
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Failed to switch workspace', err)
|
console.error('Failed to switch organization', err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ function WelcomeContent() {
|
|||||||
trackWelcomeWorkspaceCreated(!!(typeof window !== 'undefined' && localStorage.getItem('pulse_pending_checkout')))
|
trackWelcomeWorkspaceCreated(!!(typeof window !== 'undefined' && localStorage.getItem('pulse_pending_checkout')))
|
||||||
setStep(3)
|
setStep(3)
|
||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
const { message, suggestSlug } = getOrgErrorMessage(err, orgSlug, 'Failed to create workspace')
|
const { message, suggestSlug } = getOrgErrorMessage(err, orgSlug, 'Failed to create organization')
|
||||||
setOrgError(message)
|
setOrgError(message)
|
||||||
if (suggestSlug) setOrgSlug(suggestSlug)
|
if (suggestSlug) setOrgSlug(suggestSlug)
|
||||||
} finally {
|
} finally {
|
||||||
@@ -484,7 +484,7 @@ function WelcomeContent() {
|
|||||||
<BarChartIcon className="h-7 w-7" />
|
<BarChartIcon className="h-7 w-7" />
|
||||||
</div>
|
</div>
|
||||||
<h2 className="text-xl font-bold text-neutral-900 dark:text-white">
|
<h2 className="text-xl font-bold text-neutral-900 dark:text-white">
|
||||||
Name your workspace
|
Name your organization
|
||||||
</h2>
|
</h2>
|
||||||
<p className="mt-1 text-sm text-neutral-600 dark:text-neutral-400">
|
<p className="mt-1 text-sm text-neutral-600 dark:text-neutral-400">
|
||||||
You can change this later in settings.
|
You can change this later in settings.
|
||||||
@@ -493,7 +493,7 @@ function WelcomeContent() {
|
|||||||
<form onSubmit={handleWorkspaceSubmit} className="space-y-4">
|
<form onSubmit={handleWorkspaceSubmit} className="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="welcome-org-name" className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-1">
|
<label htmlFor="welcome-org-name" className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-1">
|
||||||
Workspace name
|
Organization name
|
||||||
</label>
|
</label>
|
||||||
<Input
|
<Input
|
||||||
id="welcome-org-name"
|
id="welcome-org-name"
|
||||||
@@ -519,7 +519,7 @@ function WelcomeContent() {
|
|||||||
className="w-full"
|
className="w-full"
|
||||||
/>
|
/>
|
||||||
<p className="mt-1 text-xs text-neutral-500 dark:text-neutral-400">
|
<p className="mt-1 text-xs text-neutral-500 dark:text-neutral-400">
|
||||||
Used in your workspace URL.
|
Used in your organization URL.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{orgError && (
|
{orgError && (
|
||||||
@@ -545,7 +545,7 @@ function WelcomeContent() {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => setStep(2)}
|
onClick={() => setStep(2)}
|
||||||
className="flex items-center gap-1.5 text-sm text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 mb-6"
|
className="flex items-center gap-1.5 text-sm text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 mb-6"
|
||||||
aria-label="Back to workspace"
|
aria-label="Back to organization"
|
||||||
>
|
>
|
||||||
<ArrowLeftIcon className="h-4 w-4" />
|
<ArrowLeftIcon className="h-4 w-4" />
|
||||||
Back
|
Back
|
||||||
|
|||||||
Reference in New Issue
Block a user