Skip to content
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

Update resource list to Polaris v3.10.0 #306

Merged
merged 9 commits into from
Apr 3, 2019

Conversation

andrewpye
Copy link
Member

Adds support for alternateTool to polaris-resource-list, improves handling of loading state, improves item link handling on click events, and updates the resource list subcomponents with the tweaks from Polaris v3.10.0.

@andrewpye andrewpye self-assigned this Mar 29, 2019
@andrewpye
Copy link
Member Author

@vladucu
Copy link
Member

vladucu commented Apr 2, 2019

Screen Shot 2019-04-02 at 10 17 30 PM

🙄

Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

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

🎇 🔥 nicely done sir....considering the size of this component 👏

2 really small comments, but overall 👍

@@ -221,6 +222,7 @@ export default Component.extend(context.ConsumerMixin, {
'selectMode',
'element'
);
let { ctrlKey, metaKey } = event;
Copy link
Member

Choose a reason for hiding this comment

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

should this be event.nativeEvent?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, React wraps all event objects in a SyntheticEvent class, whose nativeEvent property is the underlying browser event. We don't seem to have to worry about such things in Ember-land 🙌

Copy link
Member

Choose a reason for hiding this comment

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

sweet 🙌

@@ -69,7 +73,7 @@
</div>
{{/if}}

{{#if shortcutActions}}
{{#if (and shortcutActions (not loading))}}
{{#wrapper-element
Copy link
Member

Choose a reason for hiding this comment

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

why do we use this wrapper-element here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think to handle the click and gain access to the event so that we can stop it propagating I think, this was from a while ago 😅

Copy link
Member

Choose a reason for hiding this comment

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

kk

@andrewpye andrewpye merged commit 93ed325 into update/polaris-v3.10.0 Apr 3, 2019
@delete-merged-branch delete-merged-branch bot deleted the update/resource-list-v3.10.0 branch April 3, 2019 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants