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

Feature/oculus go tlc #467

Merged
merged 5 commits into from
Jul 20, 2018
Merged

Feature/oculus go tlc #467

merged 5 commits into from
Jul 20, 2018

Conversation

gfodor
Copy link
Contributor

@gfodor gfodor commented Jul 20, 2018

This PR closes out a few odds-and-ends:

  • Skips the initial step in the entry flow if you are wearing a VR headset already
  • Adds a UA test for Firefox Reality
  • Stops using production mode for webpack dev server in yarn start
  • Fixes the code entry page, which broke due to an inadvertent dependency on A-Frame which was introduced. (this is OK I guess, because the flow for that page will have the user download A-Frame eventually anyway.)
  • Adds the initial_environment query string parameter to the landing page, which we are going to need for the user testing in a few weeks

@mqp mqp self-requested a review July 20, 2018 21:19
Copy link
Contributor

@mqp mqp left a comment

Choose a reason for hiding this comment

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

I don't understand all the surroundings well enough to say for sure, but this seems reasonable enough.

<HomeRoot
initialEnvironment={qs.initial_environment}
dialogType={qs.list_signup ? InfoDialog.dialogTypes.updates : null}
/>,
Copy link
Contributor

Choose a reason for hiding this comment

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

You're going to need to resolve a conflict with master here since qs became a URLSearchParams.

<script src="https://cdn.rawgit.com/aframevr/aframe/1be48d9/dist/aframe-master.min.js" integrity="sha384-SXrfoMHbXpA5RZhIyhgaR6tQ764dDZsbFk3PiokC/tc0+NnW1yaYQMUzWtL06hnq" crossorigin="anonymous"></script>
<% } else { %>
<script src="https://cdn.rawgit.com/aframevr/aframe/1be48d9/dist/aframe-master.js" integrity="sha384-AmjDGOMbvTrrUFdeVWcBIlXRINIWnO8iwj/4VS21OWbYDsa/7nheOIyPAPJSkR6J" crossorigin="anonymous"></script>
<% } %>
Copy link
Contributor

@mqp mqp Jul 20, 2018

Choose a reason for hiding this comment

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

Why did this become necessary? Ah, I see you mentioned it was already necessary and this is just fixing breakage.

We really gotta get this into npm.


if (props.initialEnvironment) {
environmentIndex = props.environments.findIndex(
e => e.name.toLowerCase() === props.initialEnvironment.toLowerCase()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like code like this that tries to complicatedly fuzzy match what the inputs were supposed to mean, because I think it adds complexity with the result of making it harder to remember how the code works and more complicated to document. I wouldn't have done it and I would spend the time to actively work to undo it later by identifying and canonicalizing the actual parameters people use.

(This is a disagreement I have in other places in our code too, not just this one.)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what your use case is for setting the initial environment, but I would consider making an error message pop out here if you got an invalid input (i.e. an environment that doesn't exist) instead of having a mysterious failure down the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is intended for us to be able to tell the user study facilitators (perhaps verbally) how to initialize the landing page to a specific environment choice, and so I made it case insensitive (in part based upon the hilarious experiences of trying to get people to type "mediaTools=true" over the last couple of weeks and not getting the casing right)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IOW I think a case insensitive match here for the name of the environment is the proper UX for this parameter.

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