-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Create "Tax Detail" view in Orders Dashboard #2005
Conversation
* Convert social settings to React with new cards * Save card open state * Add new SettingsCard component - SettingsCard component wraps many components necessary for a dashboard settings card. - Added method for updating user preferences * Added a custom React semi-auto Form component To help standardize all settings cards a new `Form` component has been added that can use `SimpleSchema` to generate a basic, single level form with validation. * Update social settings and form component - Add success message on submit - Remove unused code - Fix glitch with auto form and error messages * Added prop type for switchName
* Add the ability to switch PDP template Adds a select box to the PDP Admin view which allows a user to switch between different registered templates. * Add a templateFor array for tagging templates for specific views * Removed console log * Update select with i18n
* Added switch component to list item * Remove unused prop
* Remove broken check for bulk write support * Check that batch is not empty before trying to execute it
* Add a spinner to capture payment button * Add conditional display of spinner * Add loading state onto capture payment button * Add loading state for refunds * Disable the buttons when spinner is displayed/ when loading * Remove unnecessary import * Add loading state while waiting for refunds
* remove unused email setting dashboard tab * camelCase filenames * pull * remove unused templates * remove unneeded limit function (griddle includes this) * remove no longer needed functionality * update email publication * remove react-bootstrap * i18n updates * add new sizes to actionView via registry * customize griddle columns for data display * remove react-bootstrap * switch TextField to Reaction version * pass correct props to select field * move i18n into package * ALL CAPS * remove FieldGroup component * remove fieldGroup component * remove fieldGroup component * remove react-bootstrap
* Update product handle when title changes Ensure the handle is always set to the slugified product title, custom input from user, the product id. * Remove log statement * Redirect on handle change * Fix product grid link to use published product handle, not revision * Better handling for validation errors - Catch collection error - Force update component with validation error so blank fields like product title, will get the original title put back to keep it from being blank * Update logic for product handle update
e7c9c8a
to
9e2f2c2
Compare
When I click on the "print" or "print invoice" link I get a 404 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can just fix the print link it's all looks good to me
Joy says the print is working for her so if someone else could test that. Otherwise it looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and everything looks good to me
constructor(props) { | ||
super(props); | ||
|
||
this.renderConditionalDisplay = this.renderConditionalDisplay.bind(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these need to be bind-ed to the component instance? You should only need to do that in the case of event handlers for onClick
and etc. Normal function calls in a class generally don't need to be explicitly bound.
And in those cases you can do the following as we have class properties enabled through babel.
myFunctionName = () => {
}
} | ||
} | ||
|
||
Invoice.propTypes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be moved into the class as:
class Invoice extends Component {
static propTypes = {}
...
Though the way you did it is fine too, I've just been moving the to new style when I can.
@@ -9,7 +9,7 @@ export default class DiscountForm extends Component { | |||
this.state = { | |||
discount: this.props.discount, | |||
validationMessage: null, | |||
validatedInput: false, | |||
validatedInput: false || this.props.validatedInput, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be reversed as the false
will always execute the second part of that statement.
this.props.validatedInput || false
Just some syntax things for my review, otherwise everything looks really good 👍 |
…erce/reaction into joykare-taxdetail-view-1857
When you call When you attach an event handler to a button, like so For example
From the React documentation
Our |
@mikemurray Changed it. Hope I got it right this time. |
looks good |
* development: fix elasticsearch errors skip npm install outside of container on CI wait longer on CI for Docker test update CI config for Evereve add ReactionPublicCustomFolder update data_import update data_import update data_import add submodules to circle config add plugin submodules Don't reload when the main product is not in tbe modified products (reactioncommerce#2033) If default provider is not available, then add it. (reactioncommerce#2025) Dashboard panel keeps re-opening during checkout (reactioncommerce#2010) fixing issue 2008 getting 404 error on variant option (reactioncommerce#2021) Create "Tax Detail" view in Orders Dashboard (reactioncommerce#2005)
Resolve #1857
Related to #1849
Description
Require a view where it can display the taxes charged per line item. Redesign UI on Invoice section on the Orders Dashboard.
Testing
Approve the order and Capture Payment
Expect a captured payment popup
7. Refund an amount. Expect details on refunded amount and adjusted payment detail.