Closed shizuko-akamoto closed 4 years ago
Design choice: Do we want the corners to be a little bit more round? Or do we want to stick with the pointy ones?
Personally I think we should be consistent with the buttons.
Design choice: Do we want the corners to be a little bit more round? Or do we want to stick with the pointy ones?
Personally I think we should be consistent with the buttons.
Yea, we can go with 8px border-radius for our boxed conponents 👍
Updated look:
Awesome, the drag and drop works really well
Some more design choice: Do we wanna change the categories into icon?
And I was experimenting with some randomized linear gradient background instead of displaying a question mark icon when a image is not provided, not sure if this looks better 🤷♂️
I added the icons, just beside the category text for now 😄 (until we implement tooltips sometime in future...)
The Coconut Tree is on the wrong line :P
The Coconut Tree is on the wrong line :P
I think those are four different design suggestions haha
Ahhh I see, my bad :P
The Coconut Tree is on the wrong line :P
I think those are four different design suggestions haha
(which i did not exactly implement. sorry, I don't really wanna implement tooltips right now LOL)
The Coconut Tree is on the wrong line :P
I think those are four different design suggestions haha
(which i did not exactly implement. sorry, I don't really wanna implement tooltips right now LOL)
Haha no worry, we can always defer design changes. Sorry for suggesting these changes so late, these ideas usually come up when I start playing with it
The Coconut Tree is on the wrong line :P
I think those are four different design suggestions haha
(which i did not exactly implement. sorry, I don't really wanna implement tooltips right now LOL)
Haha no worry, we can always defer design changes. Sorry for suggesting these changes so late, these ideas usually come up when I start playing with it
The Coconut Tree is on the wrong line :P
I think those are four different design suggestions haha
(which i did not exactly implement. sorry, I don't really wanna implement tooltips right now LOL)
Haha no worry, we can always defer design changes. Sorry for suggesting these changes so late, these ideas usually come up when I start playing with it
We should definitely be keeping track of those hehe. Created a folder in our google drive for all those ideas https://drive.google.com/drive/folders/1EVdh-ycXN6rijsPRLiYrTivdtWMehZk0
Implement a reorder-able (using react-beautiful-dnd), expandable, list view of destinations
Image
Component?
icon in the middle.RatingBar
ComponentRating
value (a number from 0~5) as props, will display solid filled stars forRating
number of stars, and open stars for the rest.DestinationCard
ComponentDestinationModel
, a model representing one destination.isInEdit
to manage the style of the card. IfisInEdit
== false, a checkbox for checking off the destination is displayed, otherwise, the two edit buttons (Reorder and Delete) are given.Draggable
, this is from react-beautiful-dnd, and basically, it makes whatever inside this component draggable.Trecipe
PageDragDropContext
andDroppable
are also components from react-beautiful-dnd, the first is a wrapper for all dnd related components, and the latter, marking area in the webDraggable
elements can be dropped to.reorder
method is called whenever the user drops DC to a new location. This method reorders destinations stored in Trecipe state, and thus list is reordered on next render.canExpand()
)isInEdit
== true, we show all the DCs and hide the "Show More" button (handled bycanExpand()
andgetDestinationsList()
Demo
DC cards not in edit with "Show More" button:
DC cards in edit with reordering: