Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Show comments and login button for guests #46

Merged
merged 3 commits into from
Oct 20, 2016
Merged

Conversation

thani-sh
Copy link
Contributor

@thani-sh thani-sh commented Oct 19, 2016

This will only work for public apps. It still shows "No Comments Yet!" for for Private apps which is not true. Must update the UI to mention when the app is private.

@arunoda
Copy link
Contributor

arunoda commented Oct 19, 2016

Storybook Hub is building storybooks for every commit in this PR.

Latest Storybook: https://c5f07ef0-db95-48d0-87a7-247ddad39e06.sbook.io/
( Visit here for more info )

This comment is automatically added by Storybook Hub

@thani-sh
Copy link
Contributor Author

Here's how it looks:
screen shot 2016-10-19 at 7 01 08 pm

@thani-sh
Copy link
Contributor Author

Added a disabled textarea and a login button which I think is more visible than the first version on wider screens. Here's a screenshot:

screen shot 2016-10-19 at 7 11 09 pm

@@ -10,7 +10,7 @@
"testonly": "mocha --require .scripts/mocha_runner src/**/tests/**/*.js",
"test": "npm run lint && npm run testonly",
"test-watch": "npm run testonly -- --watch --watch-extensions js",
"storybook": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' STORYBOOK_CLOUD_APPID='test-app' STORYBOOK_CLOUD_DATABASE='test-db' start-storybook -p 3006",
"storybook": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' STORYBOOK_CLOUD_APPID='15a1beac-52b5-4ade-abeb-c2313f190c1f' STORYBOOK_CLOUD_DATABASE='7d9e7739-008b-43a2-9851-2dc8f41e391b' start-storybook -p 3006",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this?
If so, create a new NPM script for this.

@@ -10,7 +10,7 @@
"testonly": "mocha --require .scripts/mocha_runner src/**/tests/**/*.js",
"test": "npm run lint && npm run testonly",
"test-watch": "npm run testonly -- --watch --watch-extensions js",
"storybook": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' STORYBOOK_CLOUD_APPID='test-app' STORYBOOK_CLOUD_DATABASE='test-db' start-storybook -p 3006",
"storybook": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' STORYBOOK_CLOUD_APPID='15a1beac-52b5-4ade-abeb-c2313f190c1f' STORYBOOK_CLOUD_DATABASE='7d9e7739-008b-43a2-9851-2dc8f41e391b' start-storybook -p 3006",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need these ids. Does this work everywhere?
Anyway, I think it's pretty great if we create a new NPM script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad. I used them when testing locally. I'll get rid of them. It'll work everywhere as long as we have an app for this repo on Storybook Hub. But we must get rid of these env vars for that

Copy link
Contributor

Choose a reason for hiding this comment

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

We add these because, it's pretty helpful when we test locally. Just run the npm script start working on the comments addon.

But if we have a better way to do this, then that's fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

Take this PR, when you remove these ids.
Also try to document on the contribution guide on how to test with public apps.

@thani-sh thani-sh merged commit 2563d1a into master Oct 20, 2016
@thani-sh thani-sh deleted the show-comments-for-guest branch October 20, 2016 04:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants