Open imshuffling opened 2 years ago
Soo I'm proposing can we do something like this?
progress={width}
can be a prop with a percentage value
So for example.
<Button buttonType="primary" isLoading={true} progress={width}>Create Brochure</Button>
Hey @imshuffling! Thanks a lot for bringing this topic! Great stuff! 👏 @fabe @domarku @damann how would you see this topic from a design perspective? Maybe you thought of some sort of progress bar already?
I think it's great to have more distinguished ways of indicating ongoing processes.
I'd like to suggest a few usage guidelines:
If we (roughly) know the duration: < 10 sec, use the bouncy dots loop
10 sec, use the percentage bar For processes that take longer than 10 sec. show an estimate of when the process will be finished, ideally as time otherwise in percentage (design tbd @domarku I'd like to get your perspective here). If we don't know the duration, provide additional context alongside the progress indicator.
Another piece of advice – that we don't have a pattern for yet – is to allow processes to run in the background.
Don't mix dots and percentage bars (as in the video)
Thanks @damann, some good thoughts. In my usecase because I'm relying on external microservices I wanted to show something a bit more than bouncy dots.. It can be around the 10sec mark :)
Another design idea i was thinking about is having an underline progress bar which maybe more subtle.
@imshuffling I really liked your idea of the button filling up. I wanted to provide some guidance around how to choose one of the two options.
Marking issue as stale since there was no acitivty for 30 days
Forma 36 contribution proposal
Currently working on a custom app, where it has a button to create a new piece of content onClick.
When the onClick happens its field input data from microservices and other locations.
During this time I wanted to have a loading/progress state So I thought i would modify an
https://user-images.githubusercontent.com/739061/145859920-02fa39ff-8d02-4fa9-9143-abb8a26ddf18.mov
Some example code... I'm setting the progress bar with in state being bumped along inside an async function call (There's probably a better way to do this) :)