densitydesign / placplac

5 stars 1 forks source link

Provide information about building process #101

Closed iosonosempreio closed 2 years ago

iosonosempreio commented 2 years ago

Currently there is no information available about the building process of a project. Add a progress bar (or another appropriate solution) to inform the user about the status of the process.

gianpieropa commented 2 years ago

When the user clicks the download button a spinner is showed, until the build process is finished. The user is warned if he tries to leave the page that there is a download in progress.

Schermata 2022-02-01 alle 08 53 30

iosonosempreio commented 2 years ago

We would like to:

gianpieropa commented 2 years ago

see a progress with percentage, so to be better aware about the building process

We can't implement a progress bar because there is no way to know the progress of the build process, it depends on multiple factors which are not predictable. What we could do is show to the user the shell output of the command "next export" to give a feedback to the user, but this is not a simple feature to add. To implement this feature we would need to add a websocket connection with the server to stream the output of the shell, and this is a long task to implement .

know if the user can close the page while the build action is in progress

This is already implemented. When the user runs the build the page will warn the user if he tries to leave it.

store on server the built and be able to download the bundle at a latter moment

We could save the last built with the last build date.