Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@willopez
Copy link
Member

@willopez willopez commented Nov 13, 2018

Impact: Medium
Type: feature

Summary

This is the first draft of the new Reaction operator UI.

Notable differences:

  • Decoupling of editing view and product preview.
  • Added the ability to use the full width of the screen to view a selected panel.
  • New design has been implemented, work in progress.
  • Existing components and their functionality have been used for most menu items.
  • Opt-in, the new UI will be available as preview at the following path: /operator

operator_2 0

Areas that need attention:

  • Wire-up login dropdown
  • Page title, currently showing "Not-found"
  • Some bugs in mobile view
  • Highlight icon of active route
  • There should still be a rule between the actions/settings -- It can be only on the lighter blue side.
  • The store logo area should left align with the navigation elements.
  • Since we're not using the hamburger to open and close, in the near future, we should add the reaction logo to the top left to align with all the login. (Design will provide updated mocks)

@willopez willopez changed the title Operator 2.0 first draft Operator 2.0 first draft RFC Nov 13, 2018
@willopez willopez changed the title Operator 2.0 first draft RFC Operator 2.0 first draft Nov 13, 2018
@willopez willopez requested review from aldeed and rymorgan November 13, 2018 02:47
@willopez
Copy link
Member Author

@spencern ^

@brent-hoover
Copy link
Collaborator

@willopez Was super curious to see this but I don't see the new UI. Is there something I need to do to see it?

@willopez
Copy link
Member Author

@zenweasel you'll need to navigate to /operator to see the new UI

Copy link
Contributor

@rymorgan rymorgan left a comment

Choose a reason for hiding this comment

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

  • There should still be a rule between the actions/settings -- It can be only on the lighter blue side.
  • The store logo area should left align with the navigation elements.
  • Since we're not using the hamburger to open and close, in the near future, we should add the reaction logo to the top left to align with all the login. (will need to provide designs for that.)

@willopez
Copy link
Member Author

@rymorgan I have added your comments to the "Areas that need attention" section.

@spencern spencern requested a review from mikemurray November 14, 2018 21:13
@willopez willopez removed the request for review from aldeed November 14, 2018 22:08
@spencern
Copy link
Contributor

@willopez I saw these additions to the package.json

    "@fortawesome/fontawesome-svg-core": "^1.2.8",
    "@fortawesome/free-solid-svg-icons": "^5.5.0",
    "@fortawesome/react-fontawesome": "^0.1.3",

Do we need to add these packages or can we just add some SVGs? Any idea what the additional weight penalty for these are?

@aldeed
Copy link
Contributor

aldeed commented Nov 16, 2018

@spencern @willopez Those packages do seem to be the recommended way to do fontawesome icons now (https://fontawesome.com/how-to-use/on-the-web/using-with/react), but...

  1. As Spencer said, let's verify in the built JavaScript that Meteor/Babel is tree shaking and only including the SVGs that you import.
  2. You should import all needed font awesome icons in a single file, render them there, export the rendered element, and then import them all into the components context. Then use them from the components context everywhere they are needed. That way all icons used in the app can be managed in a single file, making it easier for someone to swap out.

For example in imports/plugins/core/router/client/theme/ you can add icons.js with something like:

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";

export const iconChevronLeft = <FontAwesomeIcon icon={faChevronLeft} />;
// etc...

And then in appComponents.js:

import { iconChevronLeft, // etc... } from "./theme/icons";

export default {
  iconChevronLeft,
  // etc...
};

If you then wrap Sidebar and such in withComponents HOC, you can get any icon off components prop.

@rymorgan
Copy link
Contributor

It's probably worth noting that in the future I plan on using custom icons for a few things, then using font awesome as fall back icons. Basically, for the left nav navigation icons, I plan on using custom icons in the future and for directional where the font awesome icons get too bulky. Therefore, I don't know that we need the whole library.

@aldeed aldeed self-assigned this Nov 29, 2018
@impactmass impactmass changed the base branch from release-2.0.0-rc.7 to release-2.0.0-rc.8 November 30, 2018 16:13
@aldeed
Copy link
Contributor

aldeed commented Nov 30, 2018

I fixed most of the issues mentioned in review and other style responsiveness issues I saw. Since this is still hidden, I'm merging it and any additional issues people find can be submitted in separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants