Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

mtias
Copy link
Member

@mtias mtias commented Dec 9, 2015

This in-progress work finalizes the component cleanup of notices-list, with components/global-notices used in layout. It adjusts the design to the pill-shape notices. It still uses notice as the core component.

image

mtias added 2 commits December 9, 2015 15:39
- Add scss file.
- Update references.
- Tweak settings messaging when saving.
@mtias mtias added Framework [Status] In Progress [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR Design labels Dec 9, 2015
@rickybanister
Copy link

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?

@scottsweb scottsweb added [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR and removed [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Dec 10, 2015
@mtias
Copy link
Member Author

mtias commented Dec 10, 2015

@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 } />
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Member Author

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).

artpi added a commit that referenced this pull request Dec 15, 2015
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
artpi added a commit that referenced this pull request Dec 16, 2015
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
artpi added a commit that referenced this pull request Dec 17, 2015
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
artpi added a commit that referenced this pull request Dec 22, 2015
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
@rickybanister
Copy link

This has been replaced by the more up-to-date #2413

@lancewillett lancewillett deleted the add/global-pill-notices branch February 15, 2016 16:43
@lancewillett lancewillett removed the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants