mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
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#5130
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/5255
Author: @SHENIPRASHANTH
Created: 7/18/2025
Status: 🔄 Open
Base:
main← Head:fix/4301-attachment-persistence📝 Commits (1)
265c234fix(attachments): persist REST request attachments after reload (#4301)📊 Changes
1 file changed (+38 additions, -17 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/collection/request.ts(+38 -17)📄 Description
What this PR does
This PR fixes issue #4301 by ensuring that REST request attachments are persisted in localStorage, even after the request list is reloaded or reordered.
Changes Made
persistAttachments()andloadPersistedAttachments()methods to handle attachment storage usinglocalStorage.resolveSaveContextOnRequestReorder()function to save attachments associated with the REST request before reordering or removing.requestIDor fallback torequest.name.Why is this needed?
Previously, attachments added to REST requests were lost after refreshing the tab or reordering the requests in the user collection. This change ensures a better user experience by persisting these attachments.
Testing Instructions
Let me know if you'd like to also add unit tests or update documentation for this feature.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.