-
Notifications
You must be signed in to change notification settings - Fork 405
UIKit Refactor Part 5: Redux + SkateJS + Preact-Powered Web Components #946
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
UIKit Refactor Part 5: Redux + SkateJS + Preact-Powered Web Components #946
Conversation
…nal classnames when rendering, and feature check for Shadow DOM support
…eme> and <pl-toggle-layout> custom elements
…ions to use the longhand property value
… display inline isn't centered as expected for example.
…ithin JavaScript components + add support for JS components loading Sass files that aren't intended to be inlined; add support for externally exposing build config options via cosmic config
… toggling the theme and layout config options
…es by the <pl-toggle-theme> and <pl-toggle-layout> components
…dling the flex box direction changes for the modal / viewport components
…yet rendered when this fires off
…e of the page; update to account for vertical vs horizontal layouts
…e opposite end of the component
…al vars since multiple components need this
…load order to account for the styleguide.js logic being sensitive to the order that things load in
|
Hey @sghoweri ! 👋 Thanks so much for this. Apologies for the slower reply. I will take a look ASAP |
|
Hey thanks @bmuenzenmeyer, no worries! Let me know if there’s anything else I can do to help get this out the door (any changes, questions, etc) — really excited about this one! We’ve already got a version of the code for this up on staging which, except for the one unrelated Search-related bug I mentioned in #949 (probably something silly I messsd up at the last minute) the updates from both of these PR are working beautifully! |
|
@sghoweri Hoping to review this proper soon |
|
@bmuenzenmeyer given the importance of getting an MVP version of v3.0 shipped, I'd be totally OK if you think it makes more sense to review but not necessarily release these UI updates till after we get past the initial 3.0 release. Personally, I think the community would be PUMPED to see visible progress towards making Pattern Lab's UI more modern and extendable in the initial v3.0 release (even if there's still some ongoing UI refactor work) -- hence why I've been doing my best to try and make these refactor updates as incremental and non-backward breaking as possible. That said, I also want to be mindful that these updates aren't a surprise bottleneck holding everything back either! |
|
I am having trouble testing this. I've pulled it down, bootstrapped the monorepo again, and rebuilt the uikit just in case |
|
@bmuenzenmeyer oh - that error was from a file change in Google’s community-maintained polyfills upstream. I already went in and fixed this in the other PRs by updating the package.json file + updating one line in the polyfills.js file — I’ll need to go in and do the same for this one. |
Backporting fix from 72c0168#diff-d93f7a4be35cabaf5729f725702a9280
Update NPM scripts to include a uikit-specific build command + consolidate `setup` command
Update Travis commands to bootstrap Lerna + automatically run a fresh uikit build
Add missing style-loader package causing a silent error
Switch on bail flag by default when running a full Webpack build so unexpected errors get caught by Travis
|
@bmuenzenmeyer take another look at this when you get a sec! I found a dependency was missing from uikit on this older branch (which explains why the build was mysteriously failing) so I also fixed that + tweaked the NPM scripts so uikit builds on Travis early on + bails more consistently |
|
@sghoweri gave this another go |
|
@bmuenzenmeyer besides the handlebars dev edition you tried running (which I’ll troubleshoot tonight and run through those testing steps — it’s crazy I didn’t run into these issues running these UIKit updates in Pattern Lab PHP 2), are there other testing commands / testing steps for other engines I should be running through in PL Node locally to confirm this works everywhere as expected? |
|
^ this particular issue sounds like it could be unescaped opening / closing HTML tags that handlebars doesn’t know how to deal with |
|
Perhaps. I don't recall in what shape those patterns are. Will investigate
…On Fri, Oct 26, 2018, 4:57 PM Salem Ghoweri ***@***.***> wrote:
^ this particular issue sounds like it could be unescaped opening /
closing HTML tags that handlebars doesn’t know how to deal with
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#946 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASNwwdjBr2RJ1LcYt5Hq3w41WbuRI3oks5uo4VFgaJpZM4WqcY9>
.
|
|
@bmuenzenmeyer figured out the problem.... I put in the wrong public path in the Webpack config. 🤦♂️ |
…g options that can get overwritten via the cosmic config file in place
I am focusing most of my testing to this edition going forward, while we should also test major releases against the starterkit-mustache-demo. My hope is that we can eventually pivot to a more robust handlebars demo that is both useful in it's own right (my development-edition is sorta the makings of a styletile) and demonstrates handlebars features. When this solidifies, it'd be stellar to cover rendering of those templates all the way to the UI as functional tests in CI and netlify/now hope this helps |
you likely didnt because of differences in how we package up some of the assets or place them in the finished public folder. I've always aimed for feature parity, but not to an identical extent. |
|
Tested in IE11 and Chrome. |
…or-p5--web-components UIKit Refactor Part 5: Redux + SkateJS + Preact-Powered Web Components



At a high level, this PR further chips away at the UIKit Refactor work that's going on over the past couple months.
Some of the worthwhile changes worth pointing out include:
For now, this PR is trying to start off really small by only including 3 new custom elements:
<pl-toggle-theme>and<pl-toggle-layout>that handle toggling the layout and theme options in PL, plus another<pl-layout>component that listens for state changes and adds the appropriate classnames automatically.Also worth mentioning is this PR also takes care of all the upfront build tool, Babel config, and cross-browser polyfilling work required to make sure these changes work across the board (IE 11 included)