fix(settings): lock site context to current URL, rename Workspace to Organization

- Site context is locked to the site from the current URL — no dropdown
  switcher. If not on a site page, defaults to Organization context.
- Renamed "Workspace" to "Organization" in all user-facing text.
- Removed unused CaretDown import and dropdown state.
This commit is contained in:
Usman Baig
2026-03-24 16:52:59 +01:00
parent ea2c47b53f
commit e12a3661fa
3 changed files with 34 additions and 77 deletions

View File

@@ -31,9 +31,9 @@ export default function WorkspaceGeneralTab() {
setSaving(true)
try {
await updateOrganization(user.org_id, name, slug)
toast.success('Workspace updated')
toast.success('Organization updated')
} catch (err) {
toast.error(getAuthErrorMessage(err as Error) || 'Failed to update workspace')
toast.error(getAuthErrorMessage(err as Error) || 'Failed to update organization')
} finally {
setSaving(false)
}
@@ -52,7 +52,7 @@ export default function WorkspaceGeneralTab() {
<div className="space-y-4">
<div>
<h3 className="text-base font-semibold text-white mb-1">General Information</h3>
<p className="text-sm text-neutral-400">Basic details about your workspace.</p>
<p className="text-sm text-neutral-400">Basic details about your organization.</p>
</div>
<div>