Ux vote loading#74
Conversation
|
I also request another project owner to take a look, because I'm not sure if they want to add another library (Material UI) |
embeddedt
left a comment
There was a problem hiding this comment.
The only thing I don't like about this (and this might be subjective) is that it adds MUI as a dependency. My experience with MUI in another fairly large project is that it slows down TypeScript a LOT and makes autocompletion very painful to use (because of their styling system).
|
I cannot request anyone to review, only maintainers can. It was not my idea to add MUI, @huonggiangbui requested it in #73 |
|
LOL you can use any library you want, MUI is just a suggestion |
|
MUI is fine imo, but I want to see what Shubh or Chris think about this |
Oh, sorry for the misunderstanding. |
|
It's okay, I should make it more clear! |
|
Personally, I wouldn't add in MUI. We already have Tailwind CSS and personally, I don't want to be adding in another dependency for this. For example: https://flowbite.com/docs/components/spinner/ - Just found this after a quick google search for a spinner using Tailwind |
The spinner wasn't what we added MUI for, we wanted a cleaner error message. But I'll come up with something. |
|
Used alert() because this message shouldn't pop up often and to avoid adding another library/component. Please review and let me know of any changes you want me to make. |
|
If tailwind is already a dependency a better solution that might look nicer is to use one of their modal components https://tailwindui.com/components/application-ui/overlays/modals |
I will look into it, thanks! |
|
@logonoff Sorry for this taking a while, I had midterms and was busy with other school stuff. |
|
I know this is incredibly picky, but I'm not liking that the spinner isn't centered around the C. 😆 Is it easy to fix that? The alert box looks great! |
|
Well the spinner is centered, I think anything else would look odd. A possible fix can be to mess around with the size of the spinner. |
|
Are any of these any better @embeddedt? |
|
The issue is less obvious now but it's still not centered compared to the center of the C. I'm not sure why. It's weird, since I assume the buttons have centered text and the spinner is also centered. |
|
Also, I like the first design in #74 (comment) the best (the one with no background), as it looks cleaner IMO and should also be easier to port to a future dark mode. |
Thanks @embeddedt Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
|
Hey is this still open? |



Fixes: #73
Screenshots and screen captures:


Self-review checklist
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review:
Completed manual review and testing of the following (please attach screenshots/gifs for UI changes and commit your test cases for functionality changes):