From a0bc22968d22c11a7d49d9a5683be8a6e5291360 Mon Sep 17 00:00:00 2001 From: James George <25279263+jamesgeorge007@users.noreply.github.com> Date: Fri, 19 Dec 2025 12:48:48 +0530 Subject: [PATCH] docs(common): clarify desktop organization switching behavior --- packages/hoppscotch-common/src/platform/organization.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/hoppscotch-common/src/platform/organization.ts b/packages/hoppscotch-common/src/platform/organization.ts index b0706a72..29f0bcb4 100644 --- a/packages/hoppscotch-common/src/platform/organization.ts +++ b/packages/hoppscotch-common/src/platform/organization.ts @@ -11,20 +11,23 @@ export type OrganizationPlatformDef = { } | null> getRootDomain: () => string initiateOnboarding: () => void + /** * Whether organization switching is enabled for this platform * If true, an organization switcher will be shown */ organizationSwitchingEnabled?: boolean + /** * Custom component for the organization sidebar * If provided, will be shown as a sidebar in the layout */ customOrganizationSidebarComponent?: Component + /** * Switch to a specific organization instance or default cloud instance * For web: redirects to the target URL - * For desktop: downloads the organization bundle and connects + * For desktop: loads the organization bundle and connects * @param orgDomain - The organization domain (null for default cloud instance) */ switchToInstance?: (orgDomain: string | null) => void | Promise