Skip to content

WIP Octane components update - #1150

Merged
pzuraq merged 22 commits into
octanefrom
octane-components-update
Dec 7, 2019
Merged

pzuraq merged 22 commits into
octanefrom
octane-components-update

Conversation

@wycats

@wycats wycats commented Oct 21, 2019 •

Copy link
Copy Markdown
Contributor

This is still very much in progress.

Edit from Jen - Link to the plan for these guides

@wycats
wycats changed the base branch from master to octane October 21, 2019 14:57
Comment thread package.json Resolved

@jenweber jenweber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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;
}
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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>
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This would benefit from a nod to internationalization, to contextualize why this kind of approach is important to learn

@vaidehijoshi vaidehijoshi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@wycats

wycats commented Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

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.

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?

@jenweber jenweber changed the title Octane components update WIP Octane components update Nov 15, 2019

@vaidehijoshi vaidehijoshi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@vaidehijoshi vaidehijoshi left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Completed review! Includes comments for:

  • Block Content
  • Helper Functions
  • Component State


## Combining Arguments and State

Instead of allowing the component itself to be responsible for the multiple, let's allow it to be passed in.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should explain why we're doing this now/what the use case is. Right now it feels a bit random.

@wycats

wycats commented Nov 26, 2019

Copy link
Copy Markdown
Contributor Author

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

It's a TODO.

@jayjayjpg jayjayjpg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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!

@pzuraq
pzuraq force-pushed the octane-components-update branch from d9ab226 to 5f7ff69 Compare December 7, 2019 02:55
@pzuraq
pzuraq marked this pull request as ready for review December 7, 2019 02:57
@pzuraq
pzuraq dismissed jenweber’s stale review December 7, 2019 16:19

review is out of date

@pzuraq

pzuraq commented Dec 7, 2019

Copy link
Copy Markdown
Contributor

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
pzuraq merged commit 7db7973 into octane Dec 7, 2019
@pzuraq
pzuraq deleted the octane-components-update branch December 7, 2019 18:37
@chancancode

Copy link
Copy Markdown
Contributor

@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.

@pzuraq

pzuraq commented Dec 8, 2019

Copy link
Copy Markdown
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants