[PR #2210] [MERGED] feat: remember last selected team id #3673

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2210
Author: @anwarulislam
Created: 3/28/2022
Status: Merged
Merged: 4/2/2022
Merged by: @AndrewBastin

Base: mainHead: feat/remember-team


📝 Commits (10+)

  • 23c677b feat: reorder key-value entries (#2189)
  • 770c3f1 refactor: revamped tab system
  • 1f2fb0f refactor: enable new tab component
  • 35571ff fix: tab switching side effect
  • 4764141 fix: tab deleting side effect
  • 0f8549c fix: tests
  • 187f5c2 Merge branch 'hoppscotch:main' into main
  • 300c02a Merge branch 'hoppscotch:main' into main
  • db0a25a added new setting as REMEMEBERED_TEAM_ID
  • edebfd6 if REMEMBERED_TEAM_ID then switching tab to collection

📊 Changes

4 files changed (+98 additions, -4 deletions)

View changed files

📝 packages/hoppscotch-app/components/collections/ChooseType.vue (+15 -1)
📝 packages/hoppscotch-app/helpers/utils/composables.ts (+2 -3)
📝 packages/hoppscotch-app/newstore/localpersistence.ts (+14 -0)
packages/hoppscotch-app/newstore/localstate.ts (+67 -0)

📄 Description

Closes #2146

Description

Remember the selected team and its state between launches

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

Additional Information

Previously users had to manually select the team they are working on after every launch. It's a bit irritating. But, in this PR we've fixed the issue. Now whenever users select a team we're storing that. And after launch first, we're checking if a user has any last selected team or not. If we found the team we're showing its collections so that the user doesn't have to select the team manually.


🔄 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/2210 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 3/28/2022 **Status:** ✅ Merged **Merged:** 4/2/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `feat/remember-team` --- ### 📝 Commits (10+) - [`23c677b`](https://github.com/hoppscotch/hoppscotch/commit/23c677b1277442d52d17f2698bb51be22d9ff818) feat: reorder key-value entries (#2189) - [`770c3f1`](https://github.com/hoppscotch/hoppscotch/commit/770c3f19e31ed17a91562238f62e104d72b632aa) refactor: revamped tab system - [`1f2fb0f`](https://github.com/hoppscotch/hoppscotch/commit/1f2fb0f9c35f51c2665059d2718ece4a14677f36) refactor: enable new tab component - [`35571ff`](https://github.com/hoppscotch/hoppscotch/commit/35571ffd095ef589dce8ae164e954b11673bb8bc) fix: tab switching side effect - [`4764141`](https://github.com/hoppscotch/hoppscotch/commit/476414115f97214b481160cded56dd270fda2131) fix: tab deleting side effect - [`0f8549c`](https://github.com/hoppscotch/hoppscotch/commit/0f8549cc24dbc591d1ac78d0a35d4d2499c129bd) fix: tests - [`187f5c2`](https://github.com/hoppscotch/hoppscotch/commit/187f5c2a8f54e29d2716473ae853ec83b1bf557a) Merge branch 'hoppscotch:main' into main - [`300c02a`](https://github.com/hoppscotch/hoppscotch/commit/300c02ad81be0a691e2536b2114bfb20960c2e25) Merge branch 'hoppscotch:main' into main - [`db0a25a`](https://github.com/hoppscotch/hoppscotch/commit/db0a25ae988b5db0582860f189cebb93c165364d) added new setting as REMEMEBERED_TEAM_ID - [`edebfd6`](https://github.com/hoppscotch/hoppscotch/commit/edebfd6cacbd882fd2dfa907cfcd1b206a7a231d) if REMEMBERED_TEAM_ID then switching tab to collection ### 📊 Changes **4 files changed** (+98 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/components/collections/ChooseType.vue` (+15 -1) 📝 `packages/hoppscotch-app/helpers/utils/composables.ts` (+2 -3) 📝 `packages/hoppscotch-app/newstore/localpersistence.ts` (+14 -0) ➕ `packages/hoppscotch-app/newstore/localstate.ts` (+67 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2146 <!-- Issue # here --> ### Description Remember the selected team and its state between launches <!-- Add a brief description of the pull request --> <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [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 ### Additional Information Previously users had to manually select the team they are working on after every launch. It's a bit irritating. But, in this PR we've fixed the issue. Now whenever users select a team we're storing that. And after launch first, we're checking if a user has any last selected team or not. If we found the team we're showing its collections so that the user doesn't have to select the team manually. <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behavior, etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:16:02 +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#3673
No description provided.