-
Notifications
You must be signed in to change notification settings - Fork 796
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
Settings UI: Put advanced settings in foldable cards #6550
Settings UI: Put advanced settings in foldable cards #6550
Conversation
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.
Makes sense. The advanced settings looked integrated in the Stats card, as part of the card, but they are a bit confusing in the Composing card since it's not clear if they're advanced options for all the card or just one setting. |
I was thinking this too. @MichaelArestad? |
@dereksmart for stats, we will put all of the settings in the foldable part. There will just be a normal description and the chevron for stats. Does that make sense? Maybe even just a label that says "Site stats" |
Will there be a toggle for activating the module? Can you please just whip up a quick screenshot/mock? |
@dereksmart no toggle. There already is no toggle for this module. Something like this (but the JP version) |
1e173c9
to
d41588f
Compare
8aea063
to
c5fa71b
Compare
090ccb3
to
79b6b32
Compare
79b6b32
to
c969263
Compare
_inc/client/traffic/site-stats.jsx
Outdated
header={ __( 'Site stats' ) } | ||
module="stats"> | ||
className={ classNames( 'jp-foldable-settings-standalone', { 'jp-foldable-settings-disable': unavailableInDevMode } ) } |
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 this one makes sense to have a clickableHeader
Pushed one small change to make stats card header clickable. I think this is good. @MichaelArestad what say you? |
This is great! Thank you! Ship this big ol' thang! |
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.
Basically, just wrap any new pixel value in the rem()
function. Other than that, the code looks fine.
} | ||
.form-toggle__switch { | ||
float: left; | ||
margin-top: 2px; |
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.
Needs rem()
} | ||
|
||
.jp-module-settings__learn-more { | ||
right: 2px; |
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.
Needs rem()
margin-bottom: rem( 24px ); | ||
} | ||
.form-toggle__label { | ||
margin-top: 4px; |
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.
both of these need rem()
* Put site stats advanced settings in foldable card * ATD: put advanced settings in foldable card * fix eslint warnings/errors * ATD settings foldable * put all of site stats settings in foldable card * Settings UI: update foldable card and its settings for After the Deadline * Settings UI: finish putting Stats into standalone foldable card * Site Stats foldable card make header clickable * wrap new pixel values in rem()
* Put site stats advanced settings in foldable card * ATD: put advanced settings in foldable card * fix eslint warnings/errors * ATD settings foldable * put all of site stats settings in foldable card * Settings UI: update foldable card and its settings for After the Deadline * Settings UI: finish putting Stats into standalone foldable card * Site Stats foldable card make header clickable * wrap new pixel values in rem()
Did a pass over _inc/client/components looking for things that weren't used anywhere, and found a bunch: * components/data/query-connect-url - Last use removed in #8014 * components/data/query-connection-status - Last use removed in 62e9ab0 * components/data/query-modules - Last use removed in bfc40ad * components/data/query-plugin-updates - Last use removed in #17003 * components/data/query-site-products - Last use removed in #21594 * components/form/* - Didn't check for last use, too many bits. But it looks like the `formsy-react` package many of these depended on wasn't even installed since #8208. * components/inline-expand - Last use removed in #6550 * components/jetpack-dialogue - Last use removed in #16518 * components/jetpack-logo - Last use removed in #20148 * components/jetpack-termination-dialog - Last use removed in #21048 * components/module-settings/index.jsx - Last use removed in #10644 * components/module-settings/inline-module-toggle.jsx - Last use removed in #12118 * components/screen-reader-text - Last use removed in #18843 * components/settings - Last use removed in 26315e1, I think * components/tags-input - Last use removed in #11772 Then there were a few more that were only used from some of the above: * components/data/query-connected-plugins * components/module-settings/form-components.jsx * components/multiple-choice-question * components/setting-toggle
Did a pass over _inc/client/components looking for things that weren't used anywhere, and found a bunch: * components/data/query-connect-url - Last use removed in #8014 * components/data/query-connection-status - Last use removed in 62e9ab0 * components/data/query-modules - Last use removed in bfc40ad * components/data/query-plugin-updates - Last use removed in #17003 * components/data/query-site-products - Last use removed in #21594 * components/form/* - Didn't check for last use, too many bits. But it looks like the `formsy-react` package many of these depended on wasn't even installed since #8208. * components/inline-expand - Last use removed in #6550 * components/jetpack-dialogue - Last use removed in #16518 * components/jetpack-logo - Last use removed in #20148 * components/jetpack-termination-dialog - Last use removed in #21048 * components/module-settings/index.jsx - Last use removed in #10644 * components/module-settings/inline-module-toggle.jsx - Last use removed in #12118 * components/screen-reader-text - Last use removed in #18843 * components/settings - Last use removed in 26315e1, I think * components/tags-input - Last use removed in #11772 Then there were a few more that were only used from some of the above: * components/data/query-connected-plugins * components/module-settings/form-components.jsx * components/multiple-choice-question * components/setting-toggle Co-authored-by: Brandon Kraft <public@brandonkraft.com>
Fixes #6507
Fixes #6503
❗️ Make sure to
yarn distclean
&&yarn build
to get the newest dops-components❗️To Test:
Make sure forms and saving works properly.
Make sure it looks good.