mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4217] [MERGED] feat: add loading state for import actions #4710
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#4710
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/4217
Author: @HelixY2J
Created: 7/28/2024
Status: ✅ Merged
Merged: 9/23/2024
Merged by: @AndrewBastin
Base:
next← Head:adding-loading-state📝 Commits (5)
e0aa806Added loading state for importing collection modalsfb53124chore: show loading spinner and disable the import CTAbeb1dd9feat: add loading state for import environment actionscfecc22chore: cleanup45886a0feat: extend loading state to all importer types📊 Changes
9 files changed (+194 additions, -93 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/ImportExport.vue(+73 -27)📝
packages/hoppscotch-common/src/components/collections/graphql/ImportExport.vue(+1 -1)📝
packages/hoppscotch-common/src/components/environments/ImportExport.vue(+70 -48)📝
packages/hoppscotch-common/src/components/importExport/ImportExportSteps/FileImport.vue(+21 -8)📝
packages/hoppscotch-common/src/components/importExport/ImportExportSteps/MyCollectionImport.vue(+6 -1)📝
packages/hoppscotch-common/src/components/importExport/ImportExportSteps/UrlImport.vue(+13 -7)📝
packages/hoppscotch-common/src/helpers/import-export/import/import-sources/FileSource.ts(+3 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/import-sources/GistSource.ts(+4 -1)📝
packages/hoppscotch-common/src/helpers/import-export/import/import-sources/UrlSource.ts(+3 -0)📄 Description
This PR addresses the need for a loading state in the
Import/Exportmodals that includes collections and environments in scope.Closes #4145 HFE-594.
What's changed
handleImportToStorefunction promise resolution is awaited.loadingprop to theFileImport&UrlImportcomponents that default tofalse- toggles theImportCTA loading state accordingly. The import CTA stays disabled during a loading state.loadingprop to theMyCollectionImportcomponent to handle the loading state with import from personal collections flow while at a team workspace.FileSource()&UrlSource()functions now include a newisLoadingparameter via which the above state variables are supplied from the respective component.Note to reviewers
Please verify the import collections/environments flow e2e.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.