Skip to content
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

Enter room if active_room query parameter is passed in #64

Closed
wants to merge 3 commits into from

Conversation

user512
Copy link
Contributor

@user512 user512 commented Aug 2, 2020

Connects: #59

Example:
When user enter the below url, app will enter room ada
http://convene.zinc.coop/workspaces/zinc?active_room=ada

@user512 user512 requested a review from zspencer August 2, 2020 19:11
}

activeRoomName() {
const urlParams = new URLSearchParams(window.location.search);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work with IE, need a polyfill?
https://caniuse.com/#feat=urlsearchparams

Copy link
Member

@zspencer zspencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good start, but the thing I worry about is we're going "off the rails" so to speak when it comes to routing; which means we're starting to build our own routing layer in Stimulus.

I think I'd rather we leveraged rails built-in routing and create a RoomsController#show action and corresponding views so that we don't have to rely on pushState and other JavaScript to figure out where we want to go or why.

We can then lean into TurboLinks or a similar pjax tool to make the pages load quickly and relatively painlessly.

@user512 user512 closed this Aug 3, 2020
@user512 user512 deleted the can-copy-url-to-enter-room branch August 3, 2020 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants