mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5051] Add Favorite Collections #5032
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#5032
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/5051
Author: @html1101
Created: 5/5/2025
Status: 🔄 Open
Base:
main← Head:collection-ref📝 Commits (10+)
6490690finished setup and now trying to remove sidebar functionality43b6e61feat(collections): updates to database schema and minor front end modiifications7512d7ffavoriting collections under more dropdown frontend complete5d3bd2dMerge branch 'eunice-frontend' into staging8b798fdfeat: added conditional rendering of favorite icon20f8604feat(favoriteCollections): made updates to backend, not able to call backend API endpointse708c05feat: ensuring everything is pushed572db27feat: ensuring everything is pushed0eb8743unfavoriting ui change for smartitem & additional favoriting scripts0952069feat: merging UI updates📊 Changes
23 files changed (+371 additions, -4 deletions)
View changed files
📝
.env.example(+1 -1)📝
packages/hoppscotch-backend/prisma/schema.prisma(+1 -0)📝
packages/hoppscotch-backend/src/user-collection/user-collection.service.spec.ts(+167 -1)📝
packages/hoppscotch-backend/src/user-collection/user-collection.service.ts(+30 -0)📝
packages/hoppscotch-backend/src/user-collection/user-collections.model.ts(+5 -0)📝
packages/hoppscotch-common/locales/en.json(+2 -0)📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+33 -0)📝
packages/hoppscotch-common/src/components/collections/MyCollections.vue(+16 -0)📝
packages/hoppscotch-common/src/components/collections/TeamCollections.vue(+16 -0)📝
packages/hoppscotch-common/src/components/collections/graphql/Add.vue(+1 -0)📝
packages/hoppscotch-common/src/components/collections/graphql/index.vue(+6 -0)📝
packages/hoppscotch-common/src/components/collections/index.vue(+12 -0)📝
packages/hoppscotch-common/src/components/importExport/ImportExportSteps/AllCollectionImport.vue(+1 -0)📝
packages/hoppscotch-common/src/helpers/backend/helpers.ts(+2 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/har.ts(+1 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/insomnia.ts(+1 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts(+2 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/postman.ts(+1 -0)📝
packages/hoppscotch-common/src/helpers/teams/TeamCollection.ts(+1 -0)📝
packages/hoppscotch-common/src/newstore/collections.ts(+28 -0)...and 3 more files
📄 Description
Closes #4989
See here for details; this adds the ability to star collections on the frontend.
What's changed
In the three-dot options to the right of a collection, there is now a 'Favorite Collection' option available.
On clicking, it adds a heart next to the favorited collection.
Collections can be unfavorited using the same button in the options menu.
This uses an attribute,
favorited, to say whether a collection is favorited or not.UI for favorited collection
Persistent changes in localstorage
Added migration via zod to update older versions of the database to include the
favoritedattributeTests should be included in
hoppscotch-backend/src/user-collection/user-collection.service.spec.ts!Sort favorited collections at the top
Notes to reviewers
npm run gen-gqlto get changes in the GQL schemas to apply🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.