-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Plugins: update notices to the new format #1677
Conversation
</span> | ||
</div> | ||
<Notice isCompact | ||
showDismiss={ 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.
this should be assumed for isCompact
Looks good! |
@@ -14,7 +14,7 @@ var CompactCard = require( 'components/card/compact' ), | |||
PluginsActions = require( 'lib/plugins/actions' ), | |||
PluginActivateToggle = require( 'my-sites/plugins/plugin-activate-toggle' ), | |||
PluginAutoupdateToggle = require( 'my-sites/plugins/plugin-autoupdate-toggle' ), | |||
Notice = require( 'notices/notice' ), | |||
Notice = require( 'components/notice' ), |
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.
\o/
I think we should not set the bottom margin of the regular sized notice to |
@rickybanister do you mean leaving it like this? |
9d90809
to
4dba5ab
Compare
I have removed the margin-bottom: 0 to see how it works. Also, now all the small notifications under the plugin name uses a In the above screencap, 'A newer version ... ', 'Last updated...', and 'Deactivatig' are all |
(also, I adjusted the notice-compact height (to the values they will have as default when #1676 is merged) & the line-height of the plugin name to make them fit into the plugin icon height) |
} | ||
} | ||
|
||
.notice.is-in-progress, |
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 these should use some of the default statuses, is-info
?
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'd agree with that. The standard 'Last updated' text doesn't need a status, but when we are updating or deactivating we could make it more visible.
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.
Yeah.
4dba5ab
to
7212f5c
Compare
.plugins-list &.is-compact:last-child { | ||
margin-bottom: 0; | ||
|
||
.notice.is-compact { |
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.
All of this should be removed once #1676 lands.
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.
done!
@mtias I know we can throw a custom icon in notices, but can we make it have no icon? For the 'Activating' notice, it doesn't seem necessary to show the little |
If we think it's something we'll do often, we can add a prop. Otherwise just a |
64554e3
to
da4e509
Compare
Perfect, looking really sharp. Ship ship ship |
I wasn't able to see any of the inline error notices any more. Were they removed? |
da4e509
to
4cbaa64
Compare
I just pushed a rebase here. I think this is ready to merge! |
Plugins: update notices to the new format
This PR updates notices in /plugins/ to the new format introduced in https://github.com/Automattic/wp-calypso/pull/1603/files
It both updates the 'update' flags inside of each plugin item
Before:

After:

And the full-width notice error messages:

Before:
After:

How to test