-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose room location in room booking's UI #5622
Conversation
f7e2dbb
to
39b0b57
Compare
Nice! I wonder if the Location filter should be shown only if there's more than one location, since otherwise it's pretty pointless to filter by it. |
I'm checking how many locations we have before showing the location's filter to avoid that. I also won't show the location in the room's card or details if there is only one location. 🙂 |
indico/modules/rb/client/js/modules/roomList/filters/LocationForm.jsx
Outdated
Show resolved
Hide resolved
39a95e0
to
c8e1890
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR! Just a few small fixes and we can merge this. :)
{showLocation && ( | ||
<div> | ||
<Icon name="map pin" /> {room.locationName || Translate.string('Not specified')} | ||
</div> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens because the class .room-card
in Room.module.scss
has a fixed height value of 320px. My solution was removing the height of it and let Semantic UI's Card.Group
component manage the card's heigh, keeping the same height for all cards of that row and avoiding future problems when adding any other new fields to the room card. Let me know if you prefer other approach 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really convinced by the new look TBH. It still looks "wrong".
Maybe we can just ditch showing the location in the room card? It's not very important and if you want to know it you can either filter by it or open the room details...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I added a commit to not show the location there)
c8e1890
to
36c4a98
Compare
36c4a98
to
1fa223d
Compare
1fa223d
to
de81135
Compare
It's not THAT important to show it there and it usually results in weird layout (even more so if it's a long location name)
91008dc
to
5430e3d
Compare
Closes #4291
This PR adds the possibility to filter by location in the Room Booking, when there are more than one location.
This also adds the location value in the room's card and inside the room's details modal.