-
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
Framework: <GlobalNotices> visual design update #1415
Conversation
- Add scss file. - Update references. - Tweak settings messaging when saving.
Will this pill share styles/code with the Reader 'new posts' thing? Or will we refactor that later to use this? They also look a little bit tall–my mockup had them at 34px tall, not sure where that number came from, but I think we could do 36 or 40. Yours appears to be 50? |
@rickybanister for sure, feel free to tweak the styling directly here, I forgot to push it before. |
@@ -110,7 +110,7 @@ module.exports = React.createClass( { | |||
</Welcome> | |||
<InviteMessage sites={ this.props.sites }/> | |||
<EmailVerificationNotice user={ this.props.user } /> | |||
<NoticesList id="notices" notices={ notices.list } forcePinned={ 'post' === this.state.section } /> |
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.
We need both of these components alive for now
Moving from old notices to new will take A LOT of time, because it involves connecting every component that sends a notice and is impossible to do in one PR
So I propose for the time beeing not touching notices-list
and introducing them side by side.
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.
We can also try to rewrite this new GlobalNotice component to pull and merge data both from old notices data store and new redux store.
This will probably be the best approach
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'm not really touching notices-list, just renaming, cleaning up the is-pinned
attribute (since the new design will always be pinned).
Global notices to proper component Notices: Move action types to common file Notices: Move global notices to /ui store tree Notices: Move global notices according to design in #1415 Notices: fix file address
Global notices to proper component Notices: Move action types to common file Notices: Move global notices to /ui store tree Notices: Move global notices according to design in #1415 Notices: fix file address
Notices: Move store to proper place in tree, Global notices to proper component Notices: Move action types to common file Notices: Move global notices to /ui store tree Notices: Move global notices according to design in #1415 Notices: fix file address Notices: Reduxification actions, dispatching Notices: Reduxification proper actions dispatching Notices: connect layouts to global state Notices: Connect global-notices component Notices: Repair pulsing dot Notices: Proper action types Notices: Change Provider argument because of React 0.14 Provider now takes react component instead of function Notices: Change layoutComponent to layoutElement in accordance with naming scheme Notices: Remove extra space Notices: Var to let Notices: Reduxification: null instead of noop in connect Notices: Reduxification - remove use of lodash from notice reducer Notices: Change attaching of provider to React 0.14 format Notices: Reduxifications change notice payload Notices: Reduxification: create action for setSection Notices: Reduxification change noSidebar to hasSidebar Notices: Reduxification - use proper thunk middleware for timeout Remove helper from notices actions Notices: Reduxification - move notices from ui to top level in store
Notices: Move store to proper place in tree, Global notices to proper component Notices: Move action types to common file Notices: Move global notices to /ui store tree Notices: Move global notices according to design in #1415 Notices: fix file address Notices: Reduxification actions, dispatching Notices: Reduxification proper actions dispatching Notices: connect layouts to global state Notices: Connect global-notices component Notices: Repair pulsing dot Notices: Proper action types Notices: Change Provider argument because of React 0.14 Provider now takes react component instead of function Notices: Change layoutComponent to layoutElement in accordance with naming scheme Notices: Remove extra space Notices: Var to let Notices: Reduxification: null instead of noop in connect Notices: Reduxification - remove use of lodash from notice reducer Notices: Change attaching of provider to React 0.14 format Notices: Reduxifications change notice payload Notices: Reduxification: create action for setSection Notices: Reduxification change noSidebar to hasSidebar Notices: Reduxification - use proper thunk middleware for timeout Remove helper from notices actions Notices: Reduxification - move notices from ui to top level in store
This has been replaced by the more up-to-date #2413 |
This in-progress work finalizes the component cleanup of notices-list, with
components/global-notices
used inlayout
. It adjusts the design to the pill-shape notices. It still usesnotice
as the core component.