mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5890] [MERGED] feat(common): add foundational support for dropdown-based organization switcher #5396
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5890
Author: @jamesgeorge007
Created: 2/19/2026
Status: ✅ Merged
Merged: 2/23/2026
Merged by: @jamesgeorge007
Base:
next← Head:feat/org-switcher-dropdown-support📝 Commits (1)
0a91f4dfeat(common): add foundational support for dropdown-based organization switcher📊 Changes
5 files changed (+52 additions, -44 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+2 -3)📝
packages/hoppscotch-common/src/components/app/Header.vue(+46 -0)📝
packages/hoppscotch-common/src/components/workspace/Selector.vue(+0 -14)📝
packages/hoppscotch-common/src/layouts/default.vue(+0 -18)📝
packages/hoppscotch-common/src/platform/organization.ts(+4 -9)📄 Description
Related to FE-1125.
Currently, Cloud for Orgs instances hosted at
subdomain.hoppscotch.iodisplay an organization membership switcher in the left sidebar (#5708), allowing users to switch between organisations with ease. However, this switcher is not available onhoppscotch.io, which will be addressed with the proposed update.This PR relocates the organization switcher from the left sidebar to a header dropdown (using a Tippy popover), aligning it with the established Desktop App pattern for switching between SH instances. It also enables platforms to inject a custom switcher component via customOrganizationSwitcherComponent.
What's changed
Header.vuewith three-state logic: instance switcher (Desktop) → org switcher (Cloud) → plain link (fallback).scrollbar-gutter: stableon the popover to prevent content width shift when the list overflows.default.vuelayout.customOrganizationSidebarComponent→customOrganizationSwitcherComponentinOrganizationPlatformDef.Selector.vue(now handled within the org switcher).instances,no_orgs_title,no_orgs_description).Notes to reviewers
scrollbar-gutter: stableis applied imperatively via Tippy'sonCreatecallback since the popover theme styles live in a global CSS layer.platform.organization.customOrganizationSwitcherComponentis provided, and no additional boolean flag is required. This follows the same pattern as other injectable platform components inUIPlatformDef.Summary by cubic
Moves organization switching from the sidebar to a header dropdown and adds a platform-injectable custom switcher component. Enables org switching on hoppscotch.io and aligns with the Desktop pattern (Linear FE-1125).
New Features
Migration
Written for commit
0a91f4d10f. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.