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

Marketplace merge development #2501

Merged
merged 83 commits into from
Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
b9a5237
Allow customer to move past validation after one pass
brent-hoover Apr 17, 2017
6917f5c
Silencing needless warning
brent-hoover Apr 17, 2017
cca678a
Add missing imports
brent-hoover Apr 17, 2017
433bef6
When we get a "GetTax" error, revert to addressbook
brent-hoover Apr 17, 2017
5b64575
Capture and parse errors
brent-hoover Apr 17, 2017
564dfdf
Creating a "review and fix" address review screen
brent-hoover Apr 20, 2017
7f7a02a
Show highlited diff. Copy over values on click.
brent-hoover Apr 21, 2017
9a56646
Removing "debug" HTML
brent-hoover Apr 21, 2017
28db441
Add "review address" translation
brent-hoover Apr 21, 2017
f5c7c9e
Basic "review address" flow working
brent-hoover Apr 21, 2017
c5c79a4
Remove console.log
brent-hoover Apr 21, 2017
540c24e
Merge branch 'development' into brent-fix-issue-2104
brent-hoover Apr 25, 2017
9393e16
Fix missing import
brent-hoover Apr 25, 2017
9218f31
Fix import error
brent-hoover Apr 25, 2017
4ac11b2
Return to edit and refresh address when you cancel out of review
brent-hoover Apr 25, 2017
9f8da99
Make edit behave the same as add
brent-hoover Apr 25, 2017
3d972d0
Tweak styling
brent-hoover Apr 25, 2017
5ce8394
Merge branch 'development' into brent-fix-issue-2104
brent-hoover May 14, 2017
de48f0b
Merge branch 'development' into brent-fix-issue-2104
brent-hoover May 24, 2017
7e330d9
More and more style changes
brent-hoover May 24, 2017
4729320
Use proper color variables
brent-hoover May 25, 2017
31c0349
Create proper behaviors
brent-hoover May 25, 2017
62b9c45
Merge branch 'development' into brent-fix-issue-2104
brent-hoover May 25, 2017
1de63a3
Fix bad evaluation
brent-hoover May 25, 2017
e263769
Fix import order
brent-hoover May 25, 2017
239680d
Add i18n
brent-hoover May 25, 2017
c72247a
Don't throwback a step if tax fails
brent-hoover May 25, 2017
0d069d7
Make this more of an "exception" flag
brent-hoover May 26, 2017
c1c4b3f
Adding the license description with link on README (#2365)
rafaelstz May 30, 2017
df6739d
added Nigerian Naira to currency list in (#2366)
casoetan May 31, 2017
5b446c7
CollectionFS cfs:tempstore and cfs:worker to fix concurrency issues …
lcampanis Jun 4, 2017
eef7f18
Correct the way we record tax overrides
brent-hoover Jun 5, 2017
9cfe6e8
[WIP] Meteor 1.5 (#2371)
Jun 7, 2017
6d88f3c
Declare variable (#2401)
brent-hoover Jun 8, 2017
133e764
Implement missing router functions (#2393)
mikemurray Jun 8, 2017
ea5aa34
2332 Fix Improper Cart Merge (#2387)
abdulsemiu-atanda Jun 8, 2017
278756a
Change line width to match GH PR review width (#2407)
brent-hoover Jun 8, 2017
bcd7d1d
Orders updates (#2400)
kieckhafer Jun 8, 2017
f3ca0d4
use route permissions in register.js files (#2388)
Jun 8, 2017
1e4d7fc
Milestone 54 / Convert Navbar to React (#2306)
brent-hoover Jun 8, 2017
6e45ad6
Merge branch 'development' into brent-fix-issue-2104
brent-hoover Jun 8, 2017
a0b44da
import order
kieckhafer Jun 8, 2017
d202a0a
Merge pull request #2162 from reactioncommerce/brent-fix-issue-2104
kieckhafer Jun 8, 2017
18d45a2
remove duplicate babel preset packages
jshimko Jun 9, 2017
42ffc56
Merge pull request #2415 from reactioncommerce/fix-duplicate-packages
kieckhafer Jun 9, 2017
73274c9
Updated yarn.lock and removed npm-shrinkwrap.json
Jun 9, 2017
da41bc0
Admin should be able to invite a user with the same name (#2386)
Jun 12, 2017
754e66b
Merge branch 'master' into development
Jun 12, 2017
c8409ff
Update version
Jun 13, 2017
9858361
switch to Reaction’s new fork of Nodemailer (#2427)
jshimko Jun 13, 2017
4512d75
Added module aliases (#2436)
mikemurray Jun 15, 2017
352c98d
LingoHub Update :rocket: (#2420)
Jun 16, 2017
43e0a60
Add css style to differentiate read from unread notifications (#2442)
Jun 16, 2017
b2b8e7f
Remove acceptance tests (#2430)
brent-hoover Jun 16, 2017
5d0fc79
Fixed console error when dragging product images (#2443)
rhenshaw56 Jun 16, 2017
e4bade3
Add closeOnClick option to DropDownMenu component (#2418)
spencern Jun 16, 2017
6d50cea
add missing "orders not found" text (#2424)
kieckhafer Jun 17, 2017
c5ee98a
Merge branch 'development' into Release-1.3.0
Jun 17, 2017
f7aa04b
Updated chai package
Jun 17, 2017
4efb14e
Merge branch 'Release-1.3.0' into development
Jun 17, 2017
dd0a77b
Bunyan and Loggly updates (#2425)
jshimko Jun 19, 2017
b64ee84
refactor default admin user creation (#2453)
jshimko Jun 19, 2017
72d1ad3
update memory usage in CircleCI build (#2462)
jshimko Jun 19, 2017
25e8942
Navbar hover issue (#2451)
rhenshaw56 Jun 20, 2017
cea9557
set css property overflow on horizontal to hidden (#2458)
rhenshaw56 Jun 20, 2017
1d0fd64
[WIP] 2452 fix on UI icon toolbar (#2460)
rhenshaw56 Jun 20, 2017
1a6a8f3
[WIP] 2356 fix on tag menu-sidebar glitch (#2472)
rhenshaw56 Jun 20, 2017
b59263b
update media gallery new / deleted image indicators (#2469)
kieckhafer Jun 20, 2017
c9a0b28
Remove random regex checks on names. Fixes #2461 (#2471)
brent-hoover Jun 20, 2017
670ee6b
remove older Blaze based launchdock plugin (#2467)
jshimko Jun 20, 2017
e87ea72
2459 router range error fix (#2476)
prosf Jun 20, 2017
c737ac9
2422 Fix on email invite link leading to blank screen (#2437)
rhenshaw56 Jun 21, 2017
c27f70e
Update current user's name on Navbar and profile page when address is…
Jun 21, 2017
3144dc3
Updated dependencies (#2463)
Jun 21, 2017
3f252fe
Revert minifier to abernix fork (#2486)
jshimko Jun 22, 2017
db4e8d2
Release 1.3.0 (#2417)
Jun 22, 2017
543ddc0
Fix error when inviting already invited user (#2433)
Jun 22, 2017
b2460bd
Updated timeout time. (#2492)
rymorgan Jun 22, 2017
075defe
Fixed product images not displaying on order completed page (#2490)
Jun 23, 2017
f7e1c4c
Fix hard refresh on clicking tag link on product detail page (#2489)
Jun 23, 2017
34162e0
Remove redundant risul:moment-timezone (#2491)
Jun 23, 2017
6e05c46
Merge 1.3.0 master into development
Jun 23, 2017
500fc9e
Merge branch 'development' into marketplace-merge-development
spencern Jun 26, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ [email protected] # Enable ECMAScript2015+ syntax in app code
[email protected] # ensure meteor method argument validation
[email protected] # security-related policies enforced by newer browsers
juliancwirko:postcss # CSS post-processing plugin (replaces standard-minifier-css)
standard-minifier-js # a minifier plugin used for Meteor apps by default
[email protected] # ReactiveDict whose contents are preserved across Hot Code Push
[email protected] # Meteor transparent reactive programming library
[email protected]
Expand Down Expand Up @@ -71,7 +70,6 @@ meteorhacks:subs-manager
natestrauser:select2
ongoworks:security
raix:ui-dropped-event
risul:moment-timezone
tmeasday:publish-counts
vsivsi:job-collection@=1.4.0
react-meteor-data@=0.2.9
Expand All @@ -95,3 +93,4 @@ johanbrook:publication-collector
# meteorhacks:sikka # additional ddp, login security

# Custom Packages
abernix:[email protected]
14 changes: 7 additions & 7 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
abernix:[email protected]
abernix:[email protected]
[email protected]
[email protected]
[email protected]
Expand All @@ -17,7 +19,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected].2
[email protected].3
[email protected]
[email protected]
[email protected]
Expand Down Expand Up @@ -53,7 +55,7 @@ cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
[email protected]
[email protected].3_1
[email protected].6_1
dburles:[email protected]
[email protected]
[email protected]
Expand All @@ -65,7 +67,7 @@ [email protected]
dispatch:[email protected]
dispatch:[email protected]
[email protected]
[email protected].0
[email protected].1
[email protected]
[email protected]
[email protected]
Expand All @@ -84,7 +86,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
johanbrook:[email protected].7
johanbrook:[email protected].8
jparker:[email protected]
jparker:[email protected]
jparker:[email protected]
Expand All @@ -106,11 +108,10 @@ [email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected].1
[email protected].2
[email protected]
momentjs:[email protected]
[email protected]
Expand Down Expand Up @@ -141,7 +142,6 @@ [email protected]
[email protected]
[email protected]
[email protected]
risul:[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
1 change: 1 addition & 0 deletions client/modules/accounts/templates/members/memberForm.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template name="memberForm">
<div class="panel panel-default">
<div class="panel-body">
{{> inlineAlerts placement="memberform"}}
<form class="">
<div class="form-group">
<label for="member-form-name"><span data-i18n="accountsUI.name">Name</span></label>
Expand Down
12 changes: 9 additions & 3 deletions client/modules/accounts/templates/members/memberForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Reaction, i18next } from "/client/api";
import { Meteor } from "meteor/meteor";
import { Template } from "meteor/templating";


/**
* memberForm events
*
Expand All @@ -19,16 +20,21 @@ Template.memberForm.events({
let message;
if (error.reason === "Unable to send invitation email.") {
message = i18next.t("accountsUI.error.unableToSendInvitationEmail");
} else if (error.reason === "A user with this email address already exists") {
message = i18next.t("accountsUI.error.userWithEmailAlreadyExists");
} else if (error.reason !== "") {
message = error;
} else {
message = `${i18next.t("accountsUI.error.errorSendingEmail")
} ${error}`;
}
Alerts.toast(message, "error", {
html: true,
timeout: 10000

Alerts.inline(message, "error", {
placement: "memberform"
});

template.$("input[type=text], input[type=email]").val("");

return false;
}
if (result) {
Expand Down
1 change: 1 addition & 0 deletions client/modules/i18n/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import i18next from "i18next";
import moment from "moment";
import { Meteor } from "meteor/meteor";
import { Tracker } from "meteor/tracker";
import { SimpleSchema } from "meteor/aldeed:simple-schema";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from "react";
import moment from "moment-timezone";
import { Meteor } from "meteor/meteor";
import { Reaction, i18next } from "/client/api";
import { composeWithTracker } from "/lib/api/compose";
Expand Down
32 changes: 18 additions & 14 deletions imports/plugins/core/orders/client/templates/list/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ import { Media } from "/lib/collections";
*/
Template.ordersListItems.helpers({
media: function () {
const variantImage = Media.findOne({
"metadata.productId": this.productId,
"metadata.variantId": this.variants._id
});
// variant image
if (variantImage) {
return variantImage;
}
// find a default image
const productImage = Media.findOne({
"metadata.productId": this.productId
});
if (productImage) {
return productImage;
const cartImagesSub = Meteor.subscribe("CartItemImage", this);
if (cartImagesSub.ready()) {
const variantImage = Media.findOne({
"metadata.productId": this.productId,
"metadata.variantId": this.variants._id
});
// variant image
if (variantImage) {
return variantImage;
}
// find a default image
const productImage = Media.findOne({
"metadata.productId": this.productId
});
if (productImage) {
return productImage;
}
return false;
}
return false;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ Template.CoreNavigationBar.events({
});

Template.CoreNavigationBar.helpers({
// isMarketplaceOwner() {
// return Reaction.hasMarketplaceAccess("owner");
// /* REQUIRES /lib/api version of Reaction */
// },
dropdown() {
return {
component: MainDropdown
Expand Down
12 changes: 6 additions & 6 deletions imports/plugins/core/ui/client/components/menu/dropDownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ class DropDownMenu extends Component {
}
}

handleDropdownToggle = () => {
this.setState({
isOpen: !this.state.isOpen
});
}

get isOpen() {
return this.props.isOpen || this.state.isOpen;
}
Expand All @@ -32,12 +38,6 @@ class DropDownMenu extends Component {
return typeof this.props.isOpen === "boolean";
}

handleDropdownToggle = () => {
this.setState({
isOpen: !this.state.isOpen
});
}

handleMenuItemChange = (event, value, menuItem) => {
this.setState({
label: menuItem.props.label || value,
Expand Down
9 changes: 1 addition & 8 deletions imports/plugins/core/ui/client/components/tags/tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import classnames from "classnames";
import Autosuggest from "react-autosuggest";
import Velocity from "velocity-animate";
import "velocity-animate/velocity.ui";
import { Router } from "/client/api";
import { i18next } from "/client/api";
import { Button, Handle } from "/imports/plugins/core/ui/client/components";
import { SortableItem } from "../../containers";
Expand Down Expand Up @@ -170,12 +169,6 @@ class Tag extends Component {
* @return {JSX} simple tag
*/
renderTag() {
const url = Router.pathFor("tag", {
hash: {
slug: this.props.tag.slug
}
});

const baseClassName = classnames({
"rui": true,
"tag": true,
Expand All @@ -186,7 +179,7 @@ class Tag extends Component {
return (
<a
className={baseClassName}
href={url}
href="#"
onMouseOut={this.handleTagMouseOut}
onMouseOver={this.handleTagMouseOver}
onClick={this.handleClick}
Expand Down
7 changes: 7 additions & 0 deletions imports/plugins/core/ui/client/components/tags/tags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Component } from "react";
import PropTypes from "prop-types";
import { PropTypes as ReactionPropTypes } from "/lib/api";
import { TagItem } from "./";
import { Router } from "/client/api";
import classnames from "classnames";

class Tags extends Component {
Expand Down Expand Up @@ -63,6 +64,10 @@ class Tags extends Component {
}
};

handleTagClick = (event, tag) => {
Router.go("tag", { slug: tag.slug });
}

hasDropdownClassName = (tag) => {
if (this.props.hasDropdownClassName) {
return this.props.hasDropdownClassName(tag);
Expand Down Expand Up @@ -97,6 +102,7 @@ class Tags extends Component {
tag={tag}
onMove={this.props.onMoveTag}
draggable={this.props.draggable}
onTagClick={this.handleTagClick}
onTagInputBlur={this.handleTagSave}
onTagMouseOut={this.handleTagMouseOut}
onTagMouseOver={this.handleTagMouseOver}
Expand Down Expand Up @@ -181,6 +187,7 @@ Tags.propTypes = {
onMoveTag: PropTypes.func,
onNewTagSave: PropTypes.func,
onNewTagUpdate: PropTypes.func,
onTagClick: PropTypes.func,
onTagMouseOut: PropTypes.func,
onTagMouseOver: PropTypes.func,
onTagRemove: PropTypes.func,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint camelcase: 0 */
import Braintree from "braintree";
import accounting from "accounting-js";
import moment from "moment";
import Future from "fibers/future";
import { Meteor } from "meteor/meteor";
import { Packages } from "/lib/collections";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h4 class="panel-title" data-i18n="productDetailEdit.size">Size</h4>
<template name="productSettingsListItem">
<div class="list-group-item product-settings-list-item {{listItemActiveClassName _id}}" data-id="{{_id}}" id="{{_id}}">
<a
href="{{pdpPath}}"
href="#"
data-event-category="grid"
data-event-action="product-click"
data-event-label="grid product click"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,15 @@ Template.productSettings.helpers({
}
});

Template.productSettingsListItem.helpers({
pdpPath() {
const product = this;

if (product) {
let handle = product.handle;

if (product.__published) {
handle = product.__published.handle;
}

return Reaction.Router.pathFor("product", {
hash: {
handle
}
});
}

return "/";
},
Template.productSettingsListItem.events({
"click [data-event-action=product-click]": function () {
Reaction.Router.go("product", {
handle: this.handle
});
}
});

Template.productSettingsListItem.helpers({
displayPrice() {
if (this._id) {
return ReactionProduct.getProductPriceRange(this._id).range;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint camelcase: 0 */
import _ from "lodash";
import moment from "moment";
import { Meteor } from "meteor/meteor";
import { check, Match } from "meteor/check";
import { Reaction, Logger } from "/server/api";
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@
},
"jest": {
"moduleNameMapper": {
"^/lib(.*)": "<rootDir>/lib/$1",
"^/imports/plugins(.*)": "<rootDir>/imports/plugins/$1",
"^/client/api(.*)": "<rootDir>/imports/test-utils/__mocks__/client/api$1",
"^\/lib(.*)": "<rootDir>/lib/$1",
"^\/imports\/plugins(.*)": "<rootDir>/imports/plugins/$1",
"^\/client\/api(.*)": "<rootDir>/imports/test-utils/__mocks__/client/api$1",
"^meteor/aldeed:simple-schema": "<rootDir>/imports/test-utils/__mocks__/meteor/aldeed-simple-schema",
"^meteor/(.*)": "<rootDir>/imports/test-utils/__mocks__/meteor/$1"
}
Expand Down
1 change: 1 addition & 0 deletions private/data/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@
"emailDoesntMatchTheCriteria": "Email doesn't match the criteria.",
"errorSendingEmail": "Error sending email, possible configuration issue.",
"unableToSendInvitationEmail": "Unable to send invitation email.",
"userWithEmailAlreadyExists": "A user with this email address already exists",
"failedToLogout": "Failed to logout.",
"invalidLoginToken": "Invalid login token",
"loginForbidden": "Login forbidden",
Expand Down
1 change: 1 addition & 0 deletions server/api/core/accounts/password.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import _ from "lodash";
import moment from "moment";
import { Meteor } from "meteor/meteor";
import { Accounts } from "meteor/accounts-base";
import { SSR } from "meteor/meteorhacks:ssr";
Expand Down
Loading