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

PDP Cleanup- Basic Details Card, Tax Card & Inventory Card Updates #2032

Closed
rymorgan opened this issue Mar 22, 2017 · 13 comments
Closed

PDP Cleanup- Basic Details Card, Tax Card & Inventory Card Updates #2032

rymorgan opened this issue Mar 22, 2017 · 13 comments
Assignees

Comments

@rymorgan
Copy link
Contributor

rymorgan commented Mar 22, 2017

See annotated .png for details.

inventory
inventory-annotated

@rymorgan rymorgan mentioned this issue Mar 22, 2017
@rymorgan
Copy link
Contributor Author

Related to #1647

@aaronjudd aaronjudd added this to the Next milestone Mar 28, 2017
@kieha kieha self-assigned this Mar 30, 2017
@kieha kieha added in progress and removed ready labels Mar 30, 2017
@kieha
Copy link
Contributor

kieha commented Mar 30, 2017

@rymorgan two questions for clarity's sake on this ticket:

  1. Is the Allow Backorder toggle what is currently the Deny when out of stock checkbox?
  2. The Quantity field should be moved from the top of the details into the Inventory Tracking card?

Also, my thoughts on this ticket, should I just convert the template (which is what it is currently) to React? And (my opinion), should this ticket also include editing the whole section above taxable, since all this is in the same template?

screen shot 2017-03-30 at 6 19 04 pm

@rymorgan
Copy link
Contributor Author

rymorgan commented Mar 30, 2017

  1. Yes, it's the allow backorder toggle. Saying allow backorder is a clear and more concise way of saying it.
  2. Yes, move quantity field.
  3. Absolutely, we should convert to react. @mikemurray want everything converted to react as we work on it. :)
  4. Yes, let's do the card above taxable too. Here's a mock for that card.

pdp-details card

@kieha
Copy link
Contributor

kieha commented Mar 30, 2017

@rymorgan cool. Thanks!

@kieha
Copy link
Contributor

kieha commented Apr 4, 2017

@rymorgan is there any need to expand the Taxable card when the expand is determined by the toggle?
My thinking: When you toggle the Taxable card is when you should see the fields nested under it.

@kieha kieha changed the title PDP Cleanup- Tax Card & Inventory Card Updates PDP Cleanup- Basic Details Card, Tax Card & Inventory Card Updates Apr 4, 2017
@kieha
Copy link
Contributor

kieha commented Apr 5, 2017

@rymorgan this is what I have so far:

screen shot 2017-04-05 at 8 14 33 pm

Any nitpicks/suggestions for the UI part?

@mikemurray
Copy link
Member

can you make a [WIP] PR for this to better track changes?

The switches are are the old blaze / CSS version. You should use the <Switch> component. Also our card component has the ability to show a switch by default. The switch component also has a label built in.

Switch component: https://github.com/reactioncommerce/reaction/blob/development/imports/plugins/core/ui/client/components/switch/switch.js#L5

quick example:

Using the settings card will have everything you need to one of those settings panel, Its a combination of our Card component and a Switch so its pretty much a drop-in-repacement for Card.

https://github.com/reactioncommerce/reaction/blob/development/imports/plugins/included/social/client/components/settings.js#L71

          <SettingsCard
            key={index}
            i18nKeyTitle={`settings.${provider.name}`}
            expandable={true}
            onExpand={this.props.onSettingExpand}
            expanded={this.props.preferences[provider.name]}
            title={provider.name}
            name={provider.name}
            enabled={this.props.socialSettings.settings.apps[provider.name].enabled}
            icon={provider.icon}
            onSwitchChange={this.props.onSettingEnableChange}
          >
            <Form
              schema={SocialPackageConfig}
              doc={doc}
              docPath={`settings.public.apps.${provider.name}`}
              hideFields={[
                `settings.public.apps.${provider.name}.enabled`
              ]}
              name={`settings.public.apps.${provider.name}`}
              onSubmit={this.handleSubmit}
            />
          </SettingsCard>
        );

https://github.com/reactioncommerce/reaction/blob/development/imports/plugins/core/dashboard/client/components/toolbar.js#L65

      <Switch
        i18nKeyLabel="app.editMode"
        i18nKeyOnLabel="app.editMode"
        label={"Edit Mode"}
        onLabel={"Edit Mode"}
        checked={!this.props.isPreview}
        onChange={this.onViewContextChange}
      />

@rymorgan
Copy link
Contributor Author

rymorgan commented Apr 5, 2017

Thanks, @mikemurray -- here are my visual notes. This might end up being fixed when we switch over to Mike's components.

2032-2

2032

@rymorgan
Copy link
Contributor Author

rymorgan commented Apr 5, 2017

I also noticed that when you have all of the cards closed and go to open one of the variant options it opens up all the cards in the whole sidebar. It should only open that variant option only.

@kieha
Copy link
Contributor

kieha commented Apr 5, 2017

@rymorgan the Variant Options collapsible card request is in issue #2031. I'll add it when I'm done with this and take it up.

@kieha
Copy link
Contributor

kieha commented Apr 19, 2017

Status update:
Almost done with the ticket. Design part done. What's left is implementing some functionality.

@kieha
Copy link
Contributor

kieha commented Apr 25, 2017

Update:

  • All functionality implemented.

Pending:

  • Fixing reactivity issues
  • Implement update quantity field with child variant quantities

@aaronjudd aaronjudd modified the milestones: PDP UI Components, v1.2.x Apr 25, 2017
@aaronjudd aaronjudd removed the products label May 1, 2017
@kieha
Copy link
Contributor

kieha commented May 3, 2017

Closed by #2086

@kieha kieha closed this as completed May 3, 2017
@ghost ghost removed the review label May 3, 2017
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

No branches or pull requests

4 participants