Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Implement updated activity panel tab design (part 1) #137

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

justinshreve
Copy link
Collaborator

@justinshreve justinshreve commented Jun 28, 2018

See #90.

There are a few todos left, so I'm leaving the "Needs Design" label off for now. I'll request design feedback on the next PR in the series which should finish implementing the new activity panel tab design and related design treatments, and I can fix issues there. I'm putting this one up since it's already quite a few lines deep and is an improvement over what we have now.

This PR implements the mobile behavior and layout and various screen sizes, new style tabs, and updated placement/width of the panel.

screen shot 2018-06-28 at 12 43 39 pm

screen shot 2018-06-28 at 12 43 00 pm

screen shot 2018-06-28 at 12 42 50 pm

Todos left:

  • Unread bubble
  • Some kind of loading indicator for the buttons when loading an embedded/classic page
  • Header shadow on scroll
  • Minor style updates: Woo icon instead of generic cog, spacing updates.
  • Updated panel design

To Test:

  • Load up this branch
  • Visit any wc-admin page and test the different buttons. Test the notice behavior.
  • Visit a classic WC page and test the behavior there.

@justinshreve justinshreve added [Status] Needs Review focus: activity panel Issues about activity/task panels on the home screen. labels Jun 28, 2018
@justinshreve justinshreve self-assigned this Jun 28, 2018
@justinshreve justinshreve requested a review from a team June 28, 2018 16:58
@timmyc timmyc added this to Needs Review in Isotope Jun 28, 2018
Copy link
Contributor

@timmyc timmyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really great!

The only oddity I could see was when visiting a classic Woo page. When the page first loads, the panel buttons are slower to load then the rest of the screen ( makes sense due to JS render ) so wondering if we maybe add a loading indicator to that area eventually.

The other issue on classic pages is it appears div#woocommerce-layout__notice-list is still taking up horizontal space, even when the notices are not being shown. You can see both of these in the following gif... which at the end I manually add a display: none to the div in question and the spacing goes away.

I'm fine with that being handled in a follow-up PR, or feel free to fix here and merge away.

Excellent work!

const { isPanelOpen, currentTab } = this.state;

if ( ! isPanelOpen ) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this... since we won't render an expensive hidden panel that triggers many an API request. nice!

@@ -22,6 +22,9 @@ $valid-green: #4ab866;
$error-red: #d94f4f;
$woocommerce: #95588a;

// Core Colors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this WordPress core or Woo core?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WP, and the naming below matches the labels in the Invision mocks, so it'll be easy to know what to use. We'll have some more shades of this as well.

@timmyc
Copy link
Contributor

timmyc commented Jun 29, 2018

Sorry forgot to include the gif!

action-panel

@justinshreve
Copy link
Collaborator Author

justinshreve commented Jun 29, 2018

Logged an issue so we can revisit some of the core handling after more of the ActivityPanel/header changes are in: #140.

A loading indicator is also on the todo list!

@justinshreve justinshreve merged commit 60e75a5 into master Jun 29, 2018
Isotope automation moved this from Needs Review to Done Jun 29, 2018
@justinshreve justinshreve deleted the update/activity-panel-tabs branch June 29, 2018 15:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: activity panel Issues about activity/task panels on the home screen.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants