[PR #4015] [MERGED] refactor: switch workspace after creation #4633

Closed
opened 2026-03-17 02:09:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4015
Author: @nivedin
Created: 4/29/2024
Status: Merged
Merged: 5/9/2024
Merged by: @AndrewBastin

Base: release/2024.3.3Head: refactor/workspace-switch-after-creation


📝 Commits (7)

  • a76f964 refactor: switch workspace after creation
  • 33b5ae7 chore: update doc
  • a0f9fe7 chore: remove extra if condition and team fetch in selector
  • 722a6ea refactor: use workpace service to switch collection and env workspace state
  • 985dc30 fix: type issue
  • 42417b0 chore: minor updates
  • 7f64a74 chore: rename MyWorkspace to TeamWorkspace

📊 Changes

11 files changed (+112 additions, -149 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/collections/ImportExport.vue (+8 -10)
📝 packages/hoppscotch-common/src/components/collections/SaveRequest.vue (+13 -15)
📝 packages/hoppscotch-common/src/components/collections/TeamCollections.vue (+3 -5)
📝 packages/hoppscotch-common/src/components/collections/graphql/index.vue (+1 -1)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+17 -52)
📝 packages/hoppscotch-common/src/components/environments/Selector.vue (+1 -0)
📝 packages/hoppscotch-common/src/components/environments/index.vue (+19 -48)
📝 packages/hoppscotch-common/src/components/environments/teams/index.vue (+9 -11)
📝 packages/hoppscotch-common/src/components/teams/Add.vue (+21 -2)
📝 packages/hoppscotch-common/src/components/workspace/Selector.vue (+6 -2)
📝 packages/hoppscotch-common/src/services/workspace.service.ts (+14 -3)

📄 Description

Closes HFE-483

Description

This PR add's a improvement in the workspace creation flow where the workspace is automatically switched to the created one.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4015 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 4/29/2024 **Status:** ✅ Merged **Merged:** 5/9/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.3` ← **Head:** `refactor/workspace-switch-after-creation` --- ### 📝 Commits (7) - [`a76f964`](https://github.com/hoppscotch/hoppscotch/commit/a76f9641608ddfe228dfb34046cb931db2405580) refactor: switch workspace after creation - [`33b5ae7`](https://github.com/hoppscotch/hoppscotch/commit/33b5ae78be58a1f2b0298c9c8950d1a92860f3c1) chore: update doc - [`a0f9fe7`](https://github.com/hoppscotch/hoppscotch/commit/a0f9fe71adb40d5fc6197604f5f6d1c88cc262f3) chore: remove extra if condition and team fetch in selector - [`722a6ea`](https://github.com/hoppscotch/hoppscotch/commit/722a6ea7de8e589519117c1ab224d1cd05848155) refactor: use workpace service to switch collection and env workspace state - [`985dc30`](https://github.com/hoppscotch/hoppscotch/commit/985dc30aa3b3622056a2d378de2dcbd9dd157978) fix: type issue - [`42417b0`](https://github.com/hoppscotch/hoppscotch/commit/42417b078dcced85f701dc2fa65bec4f131d70c9) chore: minor updates - [`7f64a74`](https://github.com/hoppscotch/hoppscotch/commit/7f64a7472e9a85cbb865d246631ae7a18873b044) chore: rename MyWorkspace to TeamWorkspace ### 📊 Changes **11 files changed** (+112 additions, -149 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/collections/ImportExport.vue` (+8 -10) 📝 `packages/hoppscotch-common/src/components/collections/SaveRequest.vue` (+13 -15) 📝 `packages/hoppscotch-common/src/components/collections/TeamCollections.vue` (+3 -5) 📝 `packages/hoppscotch-common/src/components/collections/graphql/index.vue` (+1 -1) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+17 -52) 📝 `packages/hoppscotch-common/src/components/environments/Selector.vue` (+1 -0) 📝 `packages/hoppscotch-common/src/components/environments/index.vue` (+19 -48) 📝 `packages/hoppscotch-common/src/components/environments/teams/index.vue` (+9 -11) 📝 `packages/hoppscotch-common/src/components/teams/Add.vue` (+21 -2) 📝 `packages/hoppscotch-common/src/components/workspace/Selector.vue` (+6 -2) 📝 `packages/hoppscotch-common/src/services/workspace.service.ts` (+14 -3) </details> ### 📄 Description Closes HFE-483 ### Description This PR add's a improvement in the workspace creation flow where the workspace is automatically switched to the created one. ### Checks - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:09:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4633
No description provided.