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

feat(Example): make the example app more user friendly #1508

Merged
merged 2 commits into from
Jan 15, 2019

Conversation

timdeschryver
Copy link
Member

@timdeschryver timdeschryver commented Jan 9, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • allow username 'ngrx' to log in
  • prefill username with ngrx
  • enable devtools
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

See #1506

@ngrxbot
Copy link
Collaborator

ngrxbot commented Jan 9, 2019

Preview docs changes for 3a45ccc at https://previews.ngrx.io/pr1508-3a45ccc/

@ngrxbot
Copy link
Collaborator

ngrxbot commented Jan 9, 2019

Preview docs changes for 4c0631b at https://previews.ngrx.io/pr1508-4c0631b/

@@ -55,7 +54,9 @@ import { AppRoutingModule } from '@example-app/app-routing.module';
*/
StoreDevtoolsModule.instrument({
name: 'NgRx Book Store App',
logOnly: environment.production,
Copy link
Member

Choose a reason for hiding this comment

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

I would match this instead https://github.com/ngrx/platform/blob/master/modules/schematics/src/store/index.ts#L102. That way you still have it during development

Copy link
Member Author

Choose a reason for hiding this comment

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

But then the deployed version at https://ngrx.github.io/platform/example-app/#/login won't have the devtools enabled since it's a production build? The main reason for this change would be to have it enabled on the deployed example app, which is included in the redux devtools docs.

The maintainer of redux devtools mentioned he would write e2e tests on the extension used in our example app.

Would it be OK to mention the snippet as a comment? Or should we indeed not include the store devtools?

Copy link
Member

Choose a reason for hiding this comment

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

I still want to include it as not something we have to flip manually when deploying the example. If we need to deploy it with the devtools enabled, we can do that using configuration and the environment variables.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yea definitely! I also don't want to introduce a (manual) toggle on builds.
I wanted to always build the app with the devtools fully enabled but still wanted to mention that as a user, you wouldn't want to include the dev tools in a production build.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@brandonroberts brandonroberts merged commit ac4fb88 into master Jan 15, 2019
@brandonroberts brandonroberts deleted the example-app-user-friendly branch January 15, 2019 13:37
@timdeschryver timdeschryver restored the example-app-user-friendly branch March 27, 2019 21:35
@timdeschryver timdeschryver deleted the example-app-user-friendly branch March 27, 2019 21:44
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.

3 participants