Moonshine-IDE / Super.Human.Portal

Portal interface to show documentation for DominoVagrant and Super.Human.Installer
Other
0 stars 1 forks source link

Display application in installed list after click on "Install" #21

Closed piotrzarzycki21 closed 1 year ago

piotrzarzycki21 commented 1 year ago

Once user click install server need a bit of time before application gets installed. We would like to make small delay after installation and try to refresh list of installed app.

piotrzarzycki21 commented 1 year ago

This should work fine, but I have raised another issue which is separated, but discovered as part of work on this one #23

JoelProminic commented 1 year ago

Currently, this reloads the application list after about 1 second. This works because the Vagrant server is not busy, and the agent only checks if the addin directory was created. However:

@JustinProminic requested that we update the logic to display a messsage like "Installing: 15 seconds remaining..." and then count down the timer before refreshing the page. This should be plenty of time for the current applications to be installed.

Some ideas:

piotrzarzycki21 commented 1 year ago

@JoelProminic I will improve that early next week, if there is any urgency to release 0.1.5 move it to the next milestone please.

piotrzarzycki21 commented 1 year ago

I have added delay while application is installing - Delay is 15 seconds. I'm displaying under busy indicator message as well.

JoelProminic commented 1 year ago

I added the InstallTimeS property for each application, which indicates the time in seconds for the install delay. For now, this is hard-coded to 15 seconds, but I plan to make it configurable later. Sorry, I meant to get this released to you sooner.

JoelProminic commented 1 year ago

We reviewed this today, and it looks mostly good. Some tweaks we discussed:

piotrzarzycki21 commented 1 year ago

We reviewed this today, and it looks mostly good. Some tweaks we discussed:

  • Determine wait time dynamically. See InstallTimeS above.
  • Display a countdown for the install - this something we discussed originally.
  • The message is not centered on the loading icon currently. image

All issues has been addressed.

JoelProminic commented 1 year ago

I added a configuration value for InstallTimeS: default_install_time_s

default_install_time_s InstallTimeS
Not set 15
Set to 10 10
Set to -1 15

I deployed the last builds of the Royale application from here: https://github.com/Moonshine-IDE/Super.Human.Portal/actions/runs/4959806131

However, I don't see the countdown or the loading icon at this point. Instead, I see a snackbar, and the GenesisRead data is not reloaded.

piotrzarzycki21 commented 1 year ago

I think there is something wrong with build. All of the symptoms indicates for an old build. Did you try to check in Incognito Tab?

JoelProminic commented 1 year ago

I agree that it seems strange. However, I ran the application in private browsing mode, and did some other tests to confirm I was on the correct server. I also tried uploading another build from my last update. I'll let you know if I find more clues for this.

piotrzarzycki21 commented 1 year ago

@JoelProminic let's check this than in a different way. Go to development tools Source code tab. Find file called SuperHumanPortal_Royale.js - search function getCurrentDelayTimeInSeconds - If exists this is the freshest code, if not you have still something old.

JoelProminic commented 1 year ago

Sorry, it seems this was some sort of caching issue on my side. I'm not sure what I missed...

When I revisited this today, I confirmed I could see this message:

image

Note that the message is still off-center with the icon. I think we also need some tweaks to the message. We can discuss this more in the meeting tomorrow but I would suggest

Installation is in progress. X seconds remaining.

"seconds" should be "second" if there is only 1 second remaining.

Alternatively, we could display the number as a countdown as part of the loading icon or a progress bar.

piotrzarzycki21 commented 1 year ago

Sorry, it seems this was some sort of caching issue on my side. I'm not sure what I missed...

When I revisited this today, I confirmed I could see this message:

image

Note that the message is still off-center with the icon. I think we also need some tweaks to the message. We can discuss this more in the meeting tomorrow but I would suggest

Installation is in progress. X seconds remaining.

"seconds" should be "second" if there is only 1 second remaining.

Alternatively, we could display the number as a countdown as part of the loading icon or a progress bar.

I have adjusted message and position of message on screen. Latest build should have all changes.

JoelProminic commented 1 year ago

The update looks good. We'll discuss it more in the meeting. image

JoelProminic commented 1 year ago

We reviewed this in the meeting, and it should be sufficient for now.