-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
There are a bunch of other changes here from what I can see, or I'm wrong? |
Wondering what those changes are in case I missed anything - just checked the diff again and the majority of the changes are import restructuring and updates to use the icon code changes which we don't have at this point (and can't have at this point, see Shopify/polaris#385 for details). |
Shopify/polaris@v2.11.0...v3.10.0#diff-7ee058419e736ffe4c643519496b920fR426 |
lol... the diff is too big to show me what you're pointing out 😅 Were there any lines in particular that worried you? I'll accept a screen grab since github can't handle such large diffs 😉 |
@vladucu updated with the changes I missed earlier - thanks for spotting those! 🙌 There are a handful of new tests that were added for |
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.
@tomnez yeah I originally left those file name updates as part of the bigger icon update that we'll need to do in the future, but realised there wasn't really any reason not to update them now so that's done. I've also added the tests I referred to yesterday, so this should be complete now 🙏 |
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.
🎉 Aw yiss
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.
Few small things and
@tomnez yeah I originally left those file name updates as part of the bigger icon update that we'll need to do in the future, but realised there wasn't really any reason not to update them now so that's done.
I don't see these changed...maybe a Github glitch?!?
dragging: false, | ||
error: rejectedFiles.length > 0, | ||
}); | ||
state.incrementProperty('numFiles', acceptedFiles.length); |
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.
nit: should we just move in the setProperties
above instead of using incrementProperty
?
@@ -13,11 +13,11 @@ | |||
{{else if (eq size "large")}} | |||
{{#polaris-stack vertical=true spacing="tight"}} | |||
{{#if (eq type "file")}} | |||
{{svg-jar assetFileUpload class=imageClasses}} | |||
{{svg-jar fileUpload class=imageClasses}} |
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 might be my bad when initially implemented....but instead of an svg
elements, we should be using img
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.
don't think there was a specific reason for doing this
@vladucu maybe you're looking at an older diff or something? I see the changes in |
hmm, @tomnez I only see some renaming |
@vladucu yeah that was the change I requested. What else were you thinking was there? Although it looks like the rename of Edit: Maybe when @andrewpye said "file name updates" he meant "variable name updates" since thats what I was asking about. |
@tomnez this was deliberate - since Polaris switched to using |
ohh, so only the icon names changed here....but the actual icon didnt? |
TBH I haven't checked the new icon, but from what I've seen they've just changed the naming to be more explicit, and capitalised it to reflect the fact that the icons are now React components instead of SVG files. The way I see it, we need to make a fairly hefty overhaul to |
works for me...maybe add a TODO so we don't forget? |
Should be pretty clear anyway, we'll need to update all |
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 think we gucci here ✨
Adds the React implementation's reset inputHTMLElement to allow duplicate files change.