Repository navigation
WIP Octane components update - #1150
Conversation
jenweber
left a comment
There was a problem hiding this comment.
Can you tell us more about where you imagine this living in the Guides? It seems more like Cookbook or tutorial material than something that aligns with the current guides.
I added some comments and suggestions. The main thing is to replace some of the correspondence examples, and make sure to update diffs as well.
| this.count = this.count - 1; | ||
| } | ||
| } | ||
| ``` |
There was a problem hiding this comment.
I suggest swapping this and its template. People tend to copy-paste in the order presented, and if they do this, they will think they did something wrong with the template when their app shows errors.
There was a problem hiding this comment.
I used this order to first present the part that we know, and then "fill in" the new stuff. I can try saying something like This won't work yet in bold or in a comment or something to be clear?
| <strong>Tel</strong>: 123-456-7890<br /> | ||
| <strong>Email</strong>: [email protected] | ||
| </Address> | ||
| ``` |
There was a problem hiding this comment.
This would benefit from a nod to internationalization, to contextualize why this kind of approach is important to learn
vaidehijoshi
left a comment
There was a problem hiding this comment.
Was guides/release/components-update/template-syntax-reference.md meant to be committed? Looks like it is empty but it is listed as a page in pages.yml
My intent was for this, once fleshed out, to replace the template/component guides. Is the problem with it that the tone feels inconsistent with the guides? Are you worried that it's missing material? |
vaidehijoshi
left a comment
There was a problem hiding this comment.
Halfway done with review! So far, this includes comments for:
- Templates are HTML
- Introducing Components
- Component Arguments and HTML Attributes
- Conditional Content
|
|
||
| ## Inline `if` | ||
|
|
||
| Sometimes, you need to place conditional content inside an argument or |
There was a problem hiding this comment.
This might be more convincing/a smoother transition if we explained when we might want to do this. Or, if we had a justification to use an inline if in our example component.
|
|
||
| ## Combining Arguments and State | ||
|
|
||
| Instead of allowing the component itself to be responsible for the multiple, let's allow it to be passed in. |
There was a problem hiding this comment.
We should explain why we're doing this now/what the use case is. Right now it feels a bit random.
It's a TODO. |
jayjayjpg
left a comment
There was a problem hiding this comment.
This reads great! I left only a few more suggestions / questions - feel free to add them if you find them useful and thank you for this great writeup!
d9ab226 to
5f7ff69
Compare
|
Merging this now so we can do a thorough review on the Octane branch. The only task that was failing on Travis was the deploy to Netlify, everything else looks good. |
|
@pzuraq @wagenet FYI, you can't use markdown inside of Zoey/Tomster says (e.g. https://octane-guides-preview.emberjs.com/release/components/#toc_self-closing-tags). It only worked in the tutorial because we have a custom transform. |
|
@chancancode yeah, I keep slipping up on that on my first pass but I try to make sure I get it when I review again. If you catch any specific cases where we missed it can you let us know? |
This is still very much in progress.
Edit from Jen - Link to the plan for these guides