-
Notifications
You must be signed in to change notification settings - Fork 3
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
Open new Room #14
base: master
Are you sure you want to change the base?
Open new Room #14
Conversation
@rickhanlonii do you want to take a look at this? Otherwise I'll try to review, FWIW. |
this.setState({ value: event.target.value }); | ||
} | ||
|
||
handlePressedEnter(event) { |
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.
You should trigger chat-actions.handleChangeRoom
here instead of doing it manually to make sure we're changing rooms all in one play. Also handleChangeRoom
does some other things as well like update the lastMessageTime
for the room you change to.
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 tried that, but handleChangeRoom
didn't work with rooms that weren't in the state. I could've changed chat-actions.handleChangeRoom
but I thought opening a room over the UI would be the same as using the url. This is also the way I open the room in the 'active rooms' #23 PR. I will take a look at it and update with the concrete issue.
Thanks @KenavR! If you make a small update from the one comment I made then this is good to go. Sorry about the delay! |
Where are we with this one? I'd love to merge it in since people keep asking for it. Looks like @rickhanlonii was asking for one more change, but @KenavR didn't think it worked? Maybe we can merge it in and you make the change yourself @rickhanlonii ? |
@rickhanlonii @megamattron The issue is that https://github.com/larvalabs/breaker/blob/master/web/redux/actions/chat-actions.js#L65-66 |
@KenavR good point. I would add a |
Nobody asked for it but since a lot of people seem to ask how to open a room I added a small "join room" icon next to the "Your rooms" headline. I am not that experienced with React, therefore it seems weird to me to implement the CSS :hover in JS, but SO seems to suggest that that is the right way to do it, without using a React-CSS library or adding it to the "global" CSS file.
Visuals
Closed
Opened
Maybe the font is a little bit big, I increased it to 1.1em, I guess the default would be better suited for the headline, but then it is quite hard to find.