mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4145] Import actions within the Import/Export collections modal need a loading state #1491
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#1491
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?
Originally created by @jamesgeorge007 on GitHub (Jun 25, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4145
Originally assigned to: @HelixY2J on GitHub.
Description
While importing a large collection in a team workspace, it'll be nice to have a loading state for the
Importbutton while the network calls happen behind the scenes.https://github.com/hoppscotch/hoppscotch/assets/25279263/0c773ddb-c0c6-4e3d-aed4-679b2a8a318f
@kyoichishido commented on GitHub (Jun 25, 2024):
Hi, I wanna work on this, please assign me. I can't find the guide to set-up this repo locally
@jamesgeorge007 commented on GitHub (Jul 4, 2024):
Hi @kyoichishido, sorry for the delayed response. To reiterate, this is intended for FOSSHACK participants. Please make sure to register as a participant if you haven't already. You can find more information here.
Follow the below steps to set up the repo locally.
.envfile at the project root copying over the contents from .env.example. More information can be found here.pnpm iat the project root that will install the dependencies followed by running the postinstall script for the applicable packages.pnpm devfrom the same path that spins up the dev server.You can get up and running quickly with the above steps. To enable any functionality behind login, you'll have to set up the backend container following the steps below.
docker compose build hoppscotch-backend.docker compose run --entrypoint sh hoppscotch-backend.pnpm prisma migrate deployto run the migrations. More information can be found here.docker compose up hoppscotch-backend.Alternatively, you can use the AIO container which is a single container that provides all the services required to run Hoppscotch.
P.S: Any updates locally will require rebuilding the AIO container. For development, the above approach where the FE dev server is spun up locally along with the backend container would suffice.
Let us know if you have any questions.
@HelixY2J commented on GitHub (Jul 11, 2024):
I am participating in FOSS Hack where I have registered and joined a team. My initial approach for this is to set a flag that will disable the button and show a loading message while the async process is running. Once the process completes, the flag will be toggled back.Can this issue be assigned to me?
@jamesgeorge007 commented on GitHub (Jul 11, 2024):
Hi @HelixY2J, thanks for expressing interest. @kyoichishido, can you confirm if you've registered as a participant and like to pick this up? Else, this can be assigned to @HelixY2J.
@jamesgeorge007 commented on GitHub (Jul 23, 2024):
Assigning this to @HelixY2J.
@HelixY2J commented on GitHub (Jul 28, 2024):
I created a reactive variable "isImporterInProgress "using Vue ref function and added it into the existing import logic in collections/importexport.vue. It will be set true when the import starts and reset to false after completion.Can I get some feedback on whether this approach is appropriate or there are any alternative methods that should be considered for handling the loading state
@jamesgeorge007 commented on GitHub (Jul 28, 2024):
Hi, a quick suggestion regarding the behaviour. It would be nice to have a loading spinner before the button label
Importwhile the button stays disabled. Since it wasn't explicitly stated initially and the hacking period is about to end, we'll consider the existing implementation and bring in any changes as required during the evaluation period.@jamesgeorge007 commented on GitHub (Oct 7, 2024):
Implemented in #4217 and released as part of v2024.9.0.