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:
@@ -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>
|
||||
|
||||
@@ -82,7 +82,7 @@ export default function WorkspaceMembersTab() {
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h3 className="text-base font-semibold text-white mb-1">Members</h3>
|
||||
<p className="text-sm text-neutral-400">{members.length} member{members.length !== 1 ? 's' : ''} in your workspace.</p>
|
||||
<p className="text-sm text-neutral-400">{members.length} member{members.length !== 1 ? 's' : ''} in your organization.</p>
|
||||
</div>
|
||||
{canManage && !showInvite && (
|
||||
<Button onClick={() => setShowInvite(true)} variant="primary" className="text-sm gap-1.5">
|
||||
|
||||
Reference in New Issue
Block a user