-
Notifications
You must be signed in to change notification settings - Fork 875
docs(toh-6) move styles from sample.css to heroes.component.css #1751
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
1 similar comment
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it!
|
CLAs look good, thanks! |
1 similar comment
CLAs look good, thanks! |
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
1 similar comment
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
CLAs look good, thanks! |
1 similar comment
CLAs look good, thanks! |
Rebased. Forgot to use -f the first time, angered googlebot. |
Squashed my commits, cleaned up the messages. Also accidentally closed the PR and opened it again. Woops. |
Something about the e2e tests for part 6 is bizarre, I've had two consecutive build failures with different errors each time. None of my changes should cause either of these.
|
Yes, we fixed them in other PR |
37fc5ae
to
0940692
Compare
@@ -57,3 +58,11 @@ button { | |||
button:hover { | |||
background-color: #cfd8dc; | |||
} | |||
/* #docregion delete-hero */ |
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.
Rename the region to "additions" (since you'll be re-introducing the .error
style that was inadvertently dropped --- see my comment on the original sample.css
), and make the corresponding update in the .jade
.
I have made some specific line comments. Please address those. As I mentioned elsewhere, I like your proposal, but I'll need to discuss this with some of the doc team elders to find out the history of the cc @kwalrath |
No worries. 👍 |
acbb556
to
3840c01
Compare
@Adam-Meisen : oh, I thought that this had been merged already! Could you rebase? Then I'll review and see if we can get this merged. |
Hmm, just realized that this might need a little more work. Let me investigate and get back to you, @Adam-Meisen. |
@Adam-Meisen Thanks for the rebase. Getting close! Notice that |
Yep, working on it. |
@@ -1,11 +1,4 @@ | |||
/* #docregion */ |
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 don't know why git decided this was a rename operation when I rebased, but I don't think that hurts anything.
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.
Right.
It's looking good other than the minor changes I pointed out in the line comments. |
@@ -396,7 +398,6 @@ block observables-section | |||
We start by creating `HeroSearchService` that sends search queries to our server's web api. | |||
|
|||
+makeExample('toh-6/ts/app/hero-search.service.ts', null, 'app/hero-search.service.ts')(format=".") | |||
|
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.
This newline didn't seem to have any significance, but it messed with syntax highlighting.
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.
Strange.
Some edits just landed for toh-6. One more rebase to do. |
@@ -316,7 +316,9 @@ block add-new-hero-via-detail-comp | |||
The user can *delete* an existing hero by clicking a delete button next to the hero's name. | |||
Add the following to the heroes component HTML right after the hero name in the repeated `<li>` tag: | |||
+makeExample('app/heroes.component.html', 'delete') | |||
|
|||
:marked | |||
Add the following CSS to the bottom of `heroes.component.css`. |
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.
Oh, I just noticed this. We need to make this sentence work for all language versions. I'd suggest going with:
Add the following to the bottom of the
HeroesComponent
CSS file:
+makeExcerpt('app/heroes.component.css', 'additions')
(Drop the last ''
argument to makeExcerpt
.)
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.
Alrighty
On Tue, Aug 2, 2016, 12:10 PM Patrice Chalin [email protected]
wrote:
In public/docs/ts/latest/tutorial/toh-pt6.jade
#1751 (comment):@@ -316,7 +316,9 @@ block add-new-hero-via-detail-comp
The user can delete an existing hero by clicking a delete button next to the hero's name.
Add the following to the heroes component HTML right after the hero name in the repeated<li>
tag:+makeExample('app/heroes.component.html', 'delete')
+:marked
- Add the following CSS to the bottom of
heroes.component.css
.Oh, I just noticed this. We need to make this sentence work for all
language versions. I'd suggest going with:Add the following to the bottom of the HeroesComponent CSS file:
+makeExcerpt('app/heroes.component.css', 'additions')(Drop the last '' argument to makeExcerpt.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular.io/pull/1751/files/0320013bbf27da52ff1e3bd7bd7b7d155b697be2#r73196526,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA-2UIHQBheeyaJ9PhZkxsF3UJxBto5Eks5qb3nqgaJpZM4I-i5r
.
Move additional styles from `sample.css` to `hero-search.component.css`. Edit tutorial to reflect the removal of `sample.css` and the change to `heroes.component.css`. Edit tutorial to reflect the addition of `hero-search.component.css` file. Edit `hero-search.component.ts` to include styles from `hero-search.component.css`. Remove reference to `/public/docs/_examples/toh-6/ts/sample.css` from `/public/docs/_examples/toh-6/ts/index.html`.
Alright, hopefully I didn't break anything in this rebase. |
toh-6/ts/app/hero-detail.component.ts, | ||
toh-6/ts/app/hero-detail.component.html, | ||
toh-6/ts/app/hero.service.ts, | ||
toh-6/ts/app/in-memory-data.service.ts, | ||
toh-6/ts/sample.css`, | ||
toh-6/ts/app/in-memory-data.service.ts`, |
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.
Should the hero-search.component files be added here?
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.
As a separate makeTabs
is ok (since there can be no more than 8 entries).
@Foxandxss @wardbell : LGTM. Tests are passing. Can we please merge this before the RC5 wave? |
THANK YOU! A lot of hard work went into getting this right. Much appreciated and happy to merge. |
As outlined in #1750 and touched upon in #1686,
sample.css
is used in the examples but never actually mentioned in the tutorial. This moves the contents ofsample.css
toheroes.component.css
and updates the tutorial to reflect this change. I've attempted to follow the style of the rest of the page as closely as possible.sample.css
moved toheroes.component.css
#docregions
added toheroes.component.css
to render the file properly inmakeExample
andmakeTabs
mixinssample.css
toheroes.component.css
heroes.component.css
has been added to the summary of changed filessample.css
has been removed from the list of files at the bottom of the pagesample.css
has been deleted as it is no longer needed