chore: rename workspaces to organizations, bump ciphera-ui to 0.0.49

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Usman Baig
2026-02-08 21:07:33 +01:00
parent 827f16a217
commit 34c854ed7c
6 changed files with 41 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ export default function LayoutContent({ children }: { children: React.ReactNode
const isOnline = useOnlineStatus()
const [orgs, setOrgs] = useState<any[]>([])
// * Fetch organizations for the header workspace switcher
// * Fetch organizations for the header organization switcher
useEffect(() => {
if (auth.user) {
getUserOrganizations()
@@ -26,14 +26,14 @@ export default function LayoutContent({ children }: { children: React.ReactNode
}
}, [auth.user])
const handleSwitchWorkspace = async (orgId: string | null) => {
if (!orgId) return // Pulse doesn't support personal workspace
const handleSwitchOrganization = async (orgId: string | null) => {
if (!orgId) return // Pulse doesn't support personal organization context
try {
const { access_token } = await switchContext(orgId)
await setSessionAction(access_token)
window.location.reload()
} catch (err) {
console.error('Failed to switch workspace', err)
console.error('Failed to switch organization', err)
}
}
@@ -56,9 +56,9 @@ export default function LayoutContent({ children }: { children: React.ReactNode
appName="Pulse"
orgs={orgs}
activeOrgId={auth.user?.org_id}
onSwitchWorkspace={handleSwitchWorkspace}
onSwitchOrganization={handleSwitchOrganization}
onCreateOrganization={handleCreateOrganization}
allowPersonalWorkspace={false}
allowPersonalOrganization={false}
showFaq={false}
showSecurity={false}
showPricing={true}