tibudiyanto / jakarta-vax-availability

jakarta-vax-availability.vercel.app
100 stars 46 forks source link

Redesign - `VaxLocation` card #25

Closed resir014 closed 3 years ago

resir014 commented 3 years ago

Tasks

pveyes commented 3 years ago

Can we add an indicator for location with 0 slots? I personally think it's useless to display the location, but maybe just a red border or something around the schedule button is fine

image

resir014 commented 3 years ago

@pveyes This will need a rework on how we display each facilities' information in the VaxLocation card. We have a good start in #36, though.

pveyes commented 3 years ago

Agree, 36 is good enough for now

resir014 commented 3 years ago

I quickly mocked together (in Tailwind CSS, lol) a possible redesign of the cards, right here:

image

https://play.tailwindcss.com/qVoFc70Nmq

"Lihat Jadwal" will open up a modal showing the details + address, as well as the schedule.

image

https://play.tailwindcss.com/mEWZ566LjS

Let me know if you have any comments, @pveyes.

resir014 commented 3 years ago

Also @sonnylazuardi need to let me know if the above designs can be easily implemented on the map.

sonnylazuardi commented 3 years ago

i think it's possible to put it on map popover

pveyes commented 3 years ago

nice ❤️ it

pveyes commented 3 years ago

what if we move the empty slot label above distance so it doesn't take too much horizontal space like this

image

resir014 commented 3 years ago

@pveyes yep, that could work!

resir014 commented 3 years ago

All the subtasks are done, I should be able to spend a night tomorrow implementing this redesign!

sonnylazuardi commented 3 years ago

looking really good ✨

any chance we add tailwind to this repo? or chakra is enough?

mazipan commented 3 years ago

All the data is on uppercase character right now, it cause loss of focus.

I think we didn't need to show all the data in uppercase. I mean, maybe we need to transform the data manually on the client, or it can be done on the API level (ideally it should be fix on the API)

The "faskes" name is okay to use an uppercase, but the rest are not ideal using uppercase.

sonnylazuardi commented 3 years ago

All the data is on uppercase character right now, it cause loss of focus.

I think we didn't need to show all the data in uppercase. I mean, maybe we need to transform the data manually on the client, or it can be done on the API level (ideally it should be fix on the API)

The "faskes" name is okay to use an uppercase, but the rest are not ideal using uppercase.

It's already fixed here https://github.com/tibudiyanto/jakarta-vax-availability/pull/48

resir014 commented 3 years ago

any chance we add tailwind to this repo? or chakra is enough?

@sonnylazuardi We can try to re-implement these in Chakra UI, I don't mind, lol.

broerjuang commented 3 years ago

I quickly mocked together (in Tailwind CSS, lol) a possible redesign of the cards, right here:

image

https://play.tailwindcss.com/qVoFc70Nmq

"Lihat Jadwal" will open up a modal showing the details + address, as well as the schedule.

image

https://play.tailwindcss.com/mEWZ566LjS

Let me know if you have any comments, @pveyes.

this looks great!

resir014 commented 3 years ago

Decided to incrementally redesign this, instead of doing the whole thing as a "big bang" change. Current progress:

image

resir014 commented 3 years ago

First phase of the redesign has a bug where it doesn't properly truncate. Tracking this in #66.

pveyes commented 3 years ago

I also notice that some location title is still uppercase image

resir014 commented 3 years ago

@pveyes Yeah, I reverted the facility name to use the names as-is from the API. The remaining data (kec/kel, and kota administrasi) is still properly capitalised.

pveyes commented 3 years ago

I'm currently working on overflow fix, should I normalize it to capital or let it be uppercase?

arieare commented 3 years ago

IMO. Capital is better for readability, but we can't always know if a name contains an acronym.

resir014 commented 3 years ago

@arieare Yes, capitals are good for title, but when the entire card is all caps (like the raw value that we get it from the API), it can lead to disorientation.

We had to do string manipulation because the name + kec/kel + kota adm. values we get are all caps, since as I said above, having the entire card in all caps is also not a good idea.

syauqy commented 3 years ago

vax location card Hi All, I did some adjustments to the vax location card based on some references here. Put the location details, vax quota and schedules inside the drawer.

Let me know what do you guys think. If it's okay, I'll make a new PR. The drawer PR is #79

resir014 commented 3 years ago

This issue is now finished! 🎉

image

Any further improvements to the card's design can be made as another issue/PR separate to this.

Thanks for the help <3