[PR #2916] [MERGED] feat: added reordering and moving for collection #4139

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2916
Author: @nivedin
Created: 2/2/2023
Status: Merged
Merged: 2/24/2023
Merged by: @AndrewBastin

Base: stagingHead: feat/collection-reorder-move


📝 Commits (10+)

  • 7952724 feat: added coll and req move mutations
  • 735d3fd feat: added col and req reorder mutations
  • 3c24669 feat: added coll and req move subscription
  • 1de322e feat: added coll and req reorder subscription
  • 8d7ea65 feat: added mutation scripts for coll and req
  • a1e9f0a refactor: updated the team coll adapter
  • 3c74a0a refactor: update coll and req UI for move-reorder
  • 26225fa refactor: added move and reorder for teams coll
  • baf12c1 refactor: added move and reorder for my coll
  • cac8200 feat: coll child highlight animation when moving

📊 Changes

24 files changed (+1721 additions, -359 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+11 -0)
📝 packages/hoppscotch-common/src/components.d.ts (+153 -161)
📝 packages/hoppscotch-common/src/components/collections/Collection.vue (+220 -133)
📝 packages/hoppscotch-common/src/components/collections/MyCollections.vue (+96 -7)
📝 packages/hoppscotch-common/src/components/collections/Request.vue (+46 -5)
📝 packages/hoppscotch-common/src/components/collections/TeamCollections.vue (+156 -28)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+359 -14)
📝 packages/hoppscotch-common/src/components/smart/Tree.vue (+4 -1)
📝 packages/hoppscotch-common/src/components/smart/TreeBranch.vue (+23 -1)
packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamCollection.graphql (+8 -0)
packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamRequest.graphql (+5 -0)
packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamRquest.graphql (+0 -5)
packages/hoppscotch-common/src/helpers/backend/gql/mutations/UpdateCollectionOrder.graphql (+3 -0)
packages/hoppscotch-common/src/helpers/backend/gql/mutations/UpdateLookUpRequestOrder.graphql (+11 -0)
packages/hoppscotch-common/src/helpers/backend/gql/queries/GetSingleCollection.graphql (+9 -0)
packages/hoppscotch-common/src/helpers/backend/gql/queries/GetSingleRequest.graphql (+8 -0)
packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamCollectionMoved.graphql (+9 -0)
packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamCollectionOrderUpdated.graphql (+18 -0)
packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamRequestMoved.graphql (+8 -0)
packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamRequestOrderUpdated.graphql (+16 -0)

...and 4 more files

📄 Description

Closes # 2220 [On March release]
Closes # 2393 [On March release]

Description

This PR adds the moving-reorder feature for both my-collection and team-collections where the user can

Move

  • collection --> collection
  • folder --> collection
  • move folder to root
  • request --> collection/ folder

Reorder

  • collection can be reordered within collections same for both folders and requests.

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/2916 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 2/2/2023 **Status:** ✅ Merged **Merged:** 2/24/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `staging` ← **Head:** `feat/collection-reorder-move` --- ### 📝 Commits (10+) - [`7952724`](https://github.com/hoppscotch/hoppscotch/commit/79527241fae81963b06f6160c159e6996432586c) feat: added coll and req move mutations - [`735d3fd`](https://github.com/hoppscotch/hoppscotch/commit/735d3fd35e6c7bbadf89d0903c9ad50900879160) feat: added col and req reorder mutations - [`3c24669`](https://github.com/hoppscotch/hoppscotch/commit/3c246699123af604d80c7d278ee76ea0d4e52736) feat: added coll and req move subscription - [`1de322e`](https://github.com/hoppscotch/hoppscotch/commit/1de322eb40da89f53366074f16fdb4d1ad1074e7) feat: added coll and req reorder subscription - [`8d7ea65`](https://github.com/hoppscotch/hoppscotch/commit/8d7ea65a12e8337c74edb266796926a128c84055) feat: added mutation scripts for coll and req - [`a1e9f0a`](https://github.com/hoppscotch/hoppscotch/commit/a1e9f0a9725aee73dc8204e151926acf334641c1) refactor: updated the team coll adapter - [`3c74a0a`](https://github.com/hoppscotch/hoppscotch/commit/3c74a0af9819e27c6e5c98be1dd884b4ab39a279) refactor: update coll and req UI for move-reorder - [`26225fa`](https://github.com/hoppscotch/hoppscotch/commit/26225fa0ef1cf0b94848fc8972f2e92b3577c4bd) refactor: added move and reorder for teams coll - [`baf12c1`](https://github.com/hoppscotch/hoppscotch/commit/baf12c1303971e756c68f211937c1076fe09393b) refactor: added move and reorder for my coll - [`cac8200`](https://github.com/hoppscotch/hoppscotch/commit/cac8200bf2597ffc92b9df89e4485a6770006cbf) feat: coll child highlight animation when moving ### 📊 Changes **24 files changed** (+1721 additions, -359 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+11 -0) 📝 `packages/hoppscotch-common/src/components.d.ts` (+153 -161) 📝 `packages/hoppscotch-common/src/components/collections/Collection.vue` (+220 -133) 📝 `packages/hoppscotch-common/src/components/collections/MyCollections.vue` (+96 -7) 📝 `packages/hoppscotch-common/src/components/collections/Request.vue` (+46 -5) 📝 `packages/hoppscotch-common/src/components/collections/TeamCollections.vue` (+156 -28) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+359 -14) 📝 `packages/hoppscotch-common/src/components/smart/Tree.vue` (+4 -1) 📝 `packages/hoppscotch-common/src/components/smart/TreeBranch.vue` (+23 -1) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamCollection.graphql` (+8 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamRequest.graphql` (+5 -0) ➖ `packages/hoppscotch-common/src/helpers/backend/gql/mutations/MoveRESTTeamRquest.graphql` (+0 -5) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/mutations/UpdateCollectionOrder.graphql` (+3 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/mutations/UpdateLookUpRequestOrder.graphql` (+11 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/queries/GetSingleCollection.graphql` (+9 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/queries/GetSingleRequest.graphql` (+8 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamCollectionMoved.graphql` (+9 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamCollectionOrderUpdated.graphql` (+18 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamRequestMoved.graphql` (+8 -0) ➕ `packages/hoppscotch-common/src/helpers/backend/gql/subscriptions/TeamRequestOrderUpdated.graphql` (+16 -0) _...and 4 more files_ </details> ### 📄 Description Closes # 2220 [On March release] Closes # 2393 [On March release] ### Description This PR adds the moving-reorder feature for both **my-collection** and **team-collections** where the user can #### Move - collection --> collection - folder --> collection - move folder to root - request --> collection/ folder #### Reorder - collection can be reordered within collections same for both folders and requests. ### 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 01:42:05 +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#4139
No description provided.