gpmc-lab-ufrgs / atlas-frontend-old

MIT License
11 stars 9 forks source link

Create loading state component #121

Closed LeoSilvaGomes closed 1 year ago

LeoSilvaGomes commented 1 year ago

Description

With the connection with the atlas API, we need to make the user experience enjoyable, so should be necessary to create a loading state component as a fallback screen when the API is loading.

Expectation

Warning

The atlas API is not connected yet with the front, instead to wait for this moment, was decided to develop the component to complement that behavior when it would be ready.

Checklist

LucasGlopes commented 1 year ago

@LeoSilvaGomes , I made this example in Figma for the Loading Component. Could you give it a look?

LeoSilvaGomes commented 1 year ago

@LeoSilvaGomes , I made this example in Figma for the Loading Component. Could you give it a look?

I think we can go with a more simple component

I really think, isn't necessary the word loading too :D @AnaBeatrizPontes give your opinion here please.

Please, add your reference in the comment too, I think it's always good to see your way to think.

LucasGlopes commented 1 year ago

@LeoSilvaGomes ,thanks for the feedback. Here's the updated version.

AnaBeatrizPontes commented 1 year ago

@LeoSilvaGomes ,thanks for the feedback. Here's the updated version.

I think the uploaded version is better but still not smoothier for the atlas front. Maybe we can try to smooth the component by decreasing the white part or maybe even removing it since the map will only turn green when loading and consequently the loading component will disappear so this will not disturb the loading component visualization.

@LeoSilvaGomes what do you think?

LeoSilvaGomes commented 1 year ago

I agree with @AnaBeatrizPontes I think you can follow the examples by this link https://dribbble.com/tags/loading_state and I have two more tips

And one adjustment is the size of component, I think this can be really smaller! WDT? please let me know

LucasGlopes commented 1 year ago

Thanks again for the feedbacks, @LeoSilvaGomes and @AnaBeatrizPontes .Based on the tips and examples you provided and studying the React Material UI Library (Circular Progress Component), I came up with three more examples that could work for the atlas front.

LeoSilvaGomes commented 1 year ago

Loved the second one, with the gray background, WDT @AnaBeatrizPontes

AnaBeatrizPontes commented 1 year ago

I think the second one is perfect to. Nice job 😄

LucasGlopes commented 1 year ago

Thanks, guys. I'll move forward with the second one, then.