-
Notifications
You must be signed in to change notification settings - Fork 32
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
Move helper disambiguation to a flag that is off by default #515
Move helper disambiguation to a flag that is off by default #515
Conversation
e427175
to
9c5ab2b
Compare
9c5ab2b
to
882c956
Compare
@mansona There's a failing integration test that I struggle with. I've used the pre-unambiguous input and actual output (obtainedvia a unit test). Not sure what's wrong. As for the covergate decrease, it may be caused by your decision to have only one test with flag enabled, so not all code paths are executed. |
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.
some small changes, for the actual logic I'm happy to fully rely on the tests to see if it's doing the right thing
@@ -3,15 +3,15 @@ | |||
<h3 class="sr-only"> | |||
Components | |||
</h3> | |||
{{#bs-nav type="pills" stacked=true as |nav|}} | |||
<BsNav @type="pills" @stacked={{true}} as |nav|> |
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 probably needs to go back to curly invocation for the input
@@ -1,2 +1,2 @@ | |||
<div>this template has no js </div> | |||
{{#bs-button type="primary"}}Primary{{/bs-button}} | |||
<BsButton @type="primary">Primary</BsButton> |
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.
same as above - curly invocation
@@ -1,9 +1,9 @@ | |||
{{site-header user=this.user class=(if this.user.isAdmin "admin")}} | |||
<SiteHeader @user={{this.user}} @class={{if this.user.isAdmin "admin"}} /> |
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.
same as above - curly invocation
tagName.includes && | ||
(tagName.includes('/') || (tagName.includes('-') && tagName.includes('.'))) | ||
); | ||
function isNestedComponentTagName(tagName, unambiguousHelpers = false) { |
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 quite understand the need for this function to change, if we do need it then we should probably add a comment to leave some help for future us 😂
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.
Reverted.
0d0518e
to
7629558
Compare
…rt glimmer components
7629558
to
ab2a93c
Compare
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.
LGTM 👍
Fixes #514. Fixes #504.