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

Fix FireFox Admin search modal display #1831

Merged
merged 2 commits into from
Feb 15, 2017

Conversation

kieckhafer
Copy link
Member

@kieckhafer kieckhafer commented Feb 15, 2017

Fixes #1552
Fixes #1827

Search Modal close button was not displaying on FireFox.

Search Modal was not displaying on FireFox - and un-ticketed, was also not displaying correctly in Safari - when logged in as an admin.

This change should fix those issues

@mikemurray mikemurray merged commit bf48e2a into release-0.19.0 Feb 15, 2017
@mikemurray mikemurray removed the review label Feb 15, 2017
@mikemurray mikemurray deleted the ek-firefoxSearchIcons branch February 15, 2017 18:19
mikemurray pushed a commit that referenced this pull request Feb 16, 2017
* Remove logging

* Update package.json to reflect release number

* Discounts (#1556)

* discount skeleton

- remove from core
- add core/discounts
- add discounts-rates
- add discount-codes
- new discount schemas [WIP]

* local module import of translations

- adds `loadTranslations` and `loadTranslation` methods
- removes necessity to add translations to core
- `import { loadTranslations } from "/server/startup/i18n”;`
- multiple file import illustrated in reaction-taxes
- single import illustrated in reaction-discounts
- introduces mergeDeep helper in i18n/startup and updates to
translation resource structure to accommodate additional
namespaces for package (uses package name).

* updated i18n namespace and handling

- add i18n handling for griddle column headers
- add local i18n imports to discounts
- updated i18n taxSettings namespace (into packages + admin)

* change info logging to debug

* schemas, forms, ui, i18n for discount modules

* updated Discount schemas

- implement client collections for DiscountCodes, DiscountRates
- implement multi-schema on server Discounts collection

* updated discounts pub

- split security out

* Meteor 1.4.2.1

updated to Meteor 1.4.2.1.

*  group payments packages

- resolves #1408
- consolidates all payment packages into a single admin group
- rename include payment package folders `payment-`
- add initial local i18n, moved from en.json (TODO, other lang).
- move “default method” setting from shop to new `core/payments`
package.
- move checkout/payment templates from core to `core/payments` package.
- expose icon in public registry

* PDP Package Layout - ReactionLayout (#1536)

* Build product detail page from JS object

* Allow for nested blocks, custom styling.

Removed old code.
Added default columns of 12 if block columns not specified.

* Fix responsive image issues in media gallery

* Fix pdp add to cart button styles

* ReactionLayout for react

Moved layout generator to "layout" core module.
Added permission check for top level blocks.

* Permissions for components in React ReactionLayout renderer

* Pass ProductDetail props to component in layout tree.

* Style updates for product detail page configuration.

* Remove logger, as it doesn't provide useful data in its current form

* Adds ability to add react template layout to database to render full page views

* Adds ability to use media queries when defining blocks

* add missing dependency for radium

* fix broken template tests

* More email templates (#1557)

* added some comments to break up html table

* reorganized data for email template

removed all [0]. type variables from new.html email template, so all
variables are set in orders.js for easy manipulation

* welcome to the shop email template

* extract social from template, add on/off switch

* invite shop member email

* shopName variable updates

* update reaction address

This was driving me crazy seeing the wrong address in all these emails
being tested.

* add Collections imports for Accounts, Cart, Shopts

* password reset emails

* update subject of order confirmation email

* lint fix

* renamed file for email template

* removed test text

* path file organization

* mail -> SMTP for clarification

* Merge branch 'release-0.18.0' into email-template-expansion-v2

# Conflicts:
#	imports/plugins/included/email-templates/lib/paths.js

* i18n for email template admin

* publication for Templates

* conflict fix

* add email subject into saved DB data

* add server methods for deleting email templates

* Add a duplicate, editable template to the template collection (#1548)

Mark one of those templates and an original, which can be used to
revert editable templates.

* server methods for updating email templates

* added check for original template

* new translations

* Merge branch 'release-0.18.0' into email-template-expansion-v2

* core workflow emails - processing & completed

* test - new workflow email exports

* Update email schema

* shipping email

* conflict fixes

* removed comments

* removed comments

* import new email schema

* template updates

* removed commented code

* organize templates

* added todo to schema

* updated comments

* cleanup methods file

* updated error messaging

* schema update

* update comments

* i18n updates

* removed testing alerts

* i18n updates

* file organization

* Revision control for images (#1555)

* Add media hook. Rename file to "hooks'"

* Only return published images for non-admin users

* Only set product images as unpublished

* Capture revision record and show Publish button when image changes are made

* Adding images deferred until published

* Removing images deferred until published

* Capturing and deferring other changes to metadata (priority really)

* Combine revisions when making multiple changes before publishing

* Properly handle non-product revisions in applyProductRevision so that product doesn't get wiped.

* Find the product correctly based on revision type

* Fix regression where images weren't being published because revision data was wrong

* Setting priceRange should be in an `else` statement

* If you add an image and then delete it before publishing it, just remove it.

* Update revisions with media

* Show visual indicator on image if there are pending revisions

* Discard drafts of image revisions

* Sometimes rendering the "edited" marker

* Reset revisions so that removals take effect

* Set priority to revision priority

* Fix issue where changing order wouldn't stick

* Remove logging

* Change lost in merge

* Another change from merge

* Green flash on fields in PDP page after change success (#1558)

* Green flash on fields in PDP page after change success

* Updated tags and metafields with a flash of green on success submit

* Fixed broken PDP template

Removed duplicate Templates publication

* Patched 0.18 tests (#1566)

* updated tests for discount methods

* updated meteor versions

- includes update johanbrook:publication-collector

* move discount rates to catalog/codes to payments

* restore default method data

* Expandable cards

PDP admin panel now has expandable cards with selecting fields to edit
from PDP page.

* Loading component added for reactionLayout

* Add missing NPM dependency

* Use App helper rather than ad-hoc query

* change templates importing to use Assets collection

* renamed templates function

* fixed listing errors

* add flush & changed onCoreInit -> afterCoreInit

* removed isOriginalTemplate, which is no longer used

* InitTemplates() -> initTemplates()

* move import settings (#1573)

- moved “Import” from settings/settings.html to import/import.html
- is currently not used and won’t be visible, but can be basis for
import settings.

resolves #1050

* Update Order Progress Workflow (#1580)

* update workflow when process is not done the traditional way

* update import order

* fixed linting issues

* removed old / unused nom packages

* PDP 500 (#1572)

* Added add button for variant list.

Hide available options divider, if there are no available options.

* UX tweaks for varying numbers of variants in list

- Hide options label when there is only one top level variant
- add tooltip to add button

* Hide add button for non-admin users

* More UI tweaks for products without variants

Hide add to cart button if there are no variant options available.
Hide options separator if there are no variant options and use is not
an admin.

* Added i18n

* i18n updates for the Templates package (#1571)

* fix for templates not loading on initial reaction startup

* changed the order

* move i18n to new modular style

* formatting

* Update core.js

* Update core.js

* Update index.js

* Update email.html

* removed "moo"

* Fix remove icon not displaying / revision change (#1564)

* Add media hook. Rename file to "hooks'"

* Only return published images for non-admin users

* Only set product images as unpublished

* Capture revision record and show Publish button when image changes are made

* Adding images deferred until published

* Removing images deferred until published

* Capturing and deferring other changes to metadata (priority really)

* Combine revisions when making multiple changes before publishing

* Properly handle non-product revisions in applyProductRevision so that product doesn't get wiped.

* Find the product correctly based on revision type

* Fix regression where images weren't being published because revision data was wrong

* Setting priceRange should be in an `else` statement

* If you add an image and then delete it before publishing it, just remove it.

* Update revisions with media

* Show visual indicator on image if there are pending revisions

* Discard drafts of image revisions

* Sometimes rendering the "edited" marker

* Reset revisions so that removals take effect

* Set priority to revision priority

* Fix issue where changing order wouldn't stick

* Remove logging

* Change lost in merge

* Another change from merge

* Don't show remove icon once an item has been removed.

* Protect against a non-existent product

* updated subject to use SSR

* update templates to use SSR

* update templates to use SSR

* added new field to update

* update schema for email templates

* removed unused fields

* converted old shipping code to email template

* Added ecmascript dependency to gridfs package

* updated npm dependencies

 country-data          ^0.0.30  →     ^0.0.31
 griddle-react          ^0.6.1  →      ^0.7.0
 i18next                ^3.4.3  →      ^4.0.0
 sortablejs             ^1.4.2  →  ^1.5.0-rc1
 sweetalert2            ^5.3.8  →      ^6.1.0
 wdio-mocha-framework   ^0.4.3  →      ^0.5.4

* removed no longer needs isOriginalTemplate

* remove old console.logs

* fixed type

* add ecmascript to gridfs to enable strict

* Fixed issue with closing cards on edit

cleanup of various eslint issues.

* fixed prop validation

* updated welcome email to use SSR for subject

* Upgrade to react-komposer v2

Added composeWithTracker wrapper around v2 features in lib.
Updated all react-komposer imports to use version from lib.

* Fix alerts

Was trying to call Alerts on the server, instead of the client. Fixed.

* New Email: Refunds

* remove unused email templates

* finalizing email templates - recovery commit

* email template registration

* linting fixes

* launchdock verification email

* removed errant console

* subject update

* camelCasing some things

* updated subject for unavailable templates

* disabled form fields that shouldn't be touched

* send order notification when user adds email

* [WIP] Updates to package registry

* updated reaction Apps

Updated package registry handling, updates for payments.

* Add localhost WS browser-policy

Resolve `websocket because it does not appear in the connect-src
directive of the Content Security Policy` error in safari when using
—production build.

* Payment package updates, removes name

- removes name from some payment method registry entries
- use name if separate settings and permissions are needed
- applies permission checks in package publication for filtering
enabled views
- uses package name as default settings key,  used when no name

* Move mergeDeep into /lib/api/helpers

* Update settings handling

- Cleanup handling in taxes, discounts, catalog package handling
- Fix error where registry update was overwriting existing settings
- use mergeDeep for registry updates

* Cleanup panels in payments, taxes

- remove excessive panels
- add i18n
- generic alerts
- convert panel-title to alert info
- show alert message only pre-setup

* Updated package

momentjs:moment  upgraded from 2.16.0 to 2.17.0

* PayPal as split payment methods

- Process multiple matching entries in registry
- adds i18n for PayPal client views
- splits PayPal into two payment methods for settings/checkout
- todo add migration for express_enabled to express.enabled
- todo add migration for payflow_enabled to payflow.enabled
- add browser policy akamai.mathtag.com
- apply standard button style + i18n to all payment settings

* Add Month Translations to monthOptions helper

* updated payments styling, missing i18n

- single card payment layout
- removes default payment method and collapse handling in checkout
- commented in dashboard payment settings. TBD.
- resolves #1408

* object-curly-spacing lint rules applied

* Avoid localLocale.defineLocale warning

* Clarify Auth.net credentials messaging

* Only display enabled payment methods to admin in checkout

- could have just used if in template, or alternate display
- but this is clean and simple for now.

* Updated import/requires for moment

Fix error loading moment for template helpers.

* Updated translation

* Update styling for payment settings

- remove Authnet/dashboard - unused legacy settings?

* Templates fixes (#1600)

* Remove unused settings icon

* Fix "required" name field

* Update sidebar Reactively when changes are made

* Removed references to "email"

Templates are not just for emails, so I removed references to “Email”
in all the i18n translations

* Removed "email" as Templates are more than email

* Remove unused functions

* Updated i18n

* Renamed variable away from "template"

* Use description for HTML description (#1606)

* Fix permissions on Order when "guest" user (#1607)

* Don't publish changes on a product when product is not found (happens during tests) (#1603)

* initiazize shippo's UI

* shippo ui configuration

* fix admin UI

* Fix bug that causes duplicated variants to be missing images. (#1611)

* Fix bug that causes duplicated variants to be missing images.

Added a copyFile helper that will bypass revision control to copy a
file.

* Add missing export

* basic UI implementation with valid api key confirmation

* multilanguage support .delete existing api key support

* fix delete api key message

* 1st pr review fixes

* fix misspelling

* Don't blank out titles (#1617)

* fix browser-policy for websockets in Safari

* Fix for page title not updating when selecting product. (#1623)

This fix also ensures all metadata related to a product is updated when
the product is selected.

* Default product to blank object for instances where it may be undefined. (#1619)

* Build index immediately on startup so that search doesn't throw an error (#1621)

* starting with checkout flow

* added audience permissions to registry schema, and Reaction.Apps now checks audience perms against user roles and registry item audience if any

* add shippoApi Schema

* Fix typo in i18n file so that error message showed key instead of text (#1635)

* audience is passed as an array to match any user role, excluded owner from audience check

* trivial fix

* Prerender.io Integration - Feature #1249 (#1643)

* Move Template editing to Sidebar (#1612)

* Move Template editing to Sidebar

* Removed logs

* Linting fixes

* i18n updates

* renamed filed to remove email designation

* package name update

* add info box around React message

* get user and shop email for address

* Fix price updates (#1633)

* add applyProductRevision to Products.findOne

* fix price range for revisions

* fix isVisible price updates

* fix for price object not initially being created

* add product.range updating to non-revision enabled app

* Checkout discount code input (#1620)

* Fix typo in CircularProgress

indetermate -> indeterminate

* Enabled false for Express on initial startup

* Updated payments method

- Replaces `payments/paymentMethod` with `payments/cart/apply`
- add discounts/codes/remove
- add discounts/codes/apply

* Initial DiscountList DiscountForm components

* functional discount code input

* basic discount calculations in cart

* Updated discount input loader

* Only display shipping, discounts, taxes gt 0

* Order discount not to exceed 0 (no neg values)

* Update plugin structure

* fix typo in taxes input

numericInputProps "taxes"

* apply discounts in order process

- DiscountList and DiscountForm components can be used for Orders or
Cart collection
- working CODES as discounts through order process
- a number of outstanding TODO’s remain for discount conditional logic
and limit handling
- Order process is easily broken, and will need modification to payment
handling to check for authorization below above current authorization
if discount is removed.

* Fix event handling in FF

* disable delete discount in admin ui

* Format discount

* Implement credit/debit payment method selectors

- Replace order.billing[0] with credit selector
- update and enforce that paymentMethod.method should be “credit”,
“debit”.
- refactor Order updates to allow for credit to be in any position

* Minor lint updates

* Updated billing constants

* Updated billing constants

* Updated selector constants

* Set min-height on cart-items

- prevent some of the ugly transitions. Needs loader.

* add fallback paymentMethod for email

- add processor in case there isn’t a storedCard

* Add calculation method to schema/forms

* info -> debug

- for `not creating default admin user”`
- for `Reaction.init() has run`

* implement hooks for per processor calculation methods

* Info -> debug logging

* discount, credit, sale, shipping calculations

* Discount code form cleanup

- add a few additional checks on fresh carts

* import indexOf

* Codes disabled by default

* autoEnable discount-codes

- is actually required right now, as the logic in payment doesn’t
extend to enabling the package.

* Patch link for non-configured payments

* Add default calculation method

- ensure that rates/discount exists
- cleanup jsdocs

* Updated orders discounts/credit/shipping summary

* enhance shippo schema  validations

* update package.json with version 0.19.0

* added body class for current route based on theme and routeName

* minor fixes

* PR #1655 re-merge (#1658)

* Variants without media to inherit media from their parents (#1664)

* optimised method by setting/getting session

* fixed import order

* add Shippo provider from Settings to Shipping Collection.Get Active Carriers List from shippo account

* starting..

* show & select shippo rates on checkout flow.update cart when editing default address

* make it more clean and secure

* fix multiple bugs of previous commit

* React no-ui Slider implementation

* React MultiSelect component implementation

* fixes of reaction-421 pr review

* shippo providers are saved in different shipping documents

* add admin settings translation for templates (#1661)

* add shipping Details in order confirmation screen and Admin order review.add shippoMethod and carrier in ShippingMethodSchema

* React MultiSelect component implementation (#1681)

* React no-ui Slider implementation (#1680)

* Route theme body class (#1672)

* added body class for current route based on theme and routeName

* optimised method by setting/getting session

* fixed import order

* seller can purchase carrier labels from shippo.He can print the label throush order summary and view tracking number

* clean code , fix pr issues

* small fix

* small form fixes

* cleaner boundaries between shippo and shippoapi methods. JsDocs for the exported functions/methods

* make pr review fixes

* get Registry for Current route for enabled package only

* get rates only of enabled shipping providers

* update shippo provider by fetching activated carriers from shippo account

* small typos fixes

*  a little bit more error handling

* Variable cleanup (#1712)

* removed old unused styles

* updated brand color hex: 1c98d5 -> 1999dd

* killed @brand-muted-color (for now, as it's currently unused)

* update font to Source Sans Pro in emails

* update search variables

* variables.less cleanup

* bright colors for secondary, accent, vivid color for easy visibility

* Update package.json

* 1628 Move Toolbar & Admin View is Dashboard (#1723)

* Moving toolbars

Moved Admin toolbar (vertical one) to the left
Moved DashboardHeader template region to top
Moved ProductDetailsSimple toolbar into own component ( ProductToolbar )
Moved ProductToolbar to DashboardHeader template region in registry

* Adding react switch control

Updating button component to allow for better toggling
Update product toolbar and publish bar

* Improve layout and styles for switch component

* Clean up styles related to publish bar

* Toolbar reorg (#1713)

* Move dashboard to admin controls drawer

* admin links in account dropdown to open action view

* Added navigation stack to action view

Added back button to settings panel

* Added package list component for dashboard package list

Added List and ListItem components

* Code cleanup
Added basic styles for lists

* Adding react ActionView component

* Added blaze react package

Fixing imports for actionView

* Added admin context provider

AdminContextProvider provides context props to all components wrapped
as Admin() components.

* CSS-IN-JS styles for admin view header with animations

* Added add product button

Added icon button with Reaction logo to open actionView

* Package list re-org

* Filter entries with a template

* Added detail view to action view

* cleanup

* Fix for missing grid settings view in action view

* Split generic toolbar and publish bar functionality

* Fix action view close on orders view

Remove legacy functionality in orders template that interferes with the
action view close.

* Cleanup

* Cleanup

Remove filter controls from orders list

* Open shipping details in action detail view

* Moved add product functionality to generic admin toolbar

Moving add product callback function from the publish controls into the
admin toolbar.

* Only show vertical divider if there is a dashboardHeaderTemplate

Cleanup of propTypes

* Allow for no loading templates

Fixes issue where the publish controls would display a large loading
spinner causing the toolbar to resize briefly.

* Clear action view on close to prevent odd behavior. Will revisit.

Other various cleanup of source

* Fixed broken preview toggle

Fix eslint issues

* Fix archive product. Should pass full product object, not _id

* 1709 Allow users to change their default currency across the app using a dropdown   (#1728)

* currency-dropdown

* ui fix

* fixes

* fixed

* fixed profile

* profile of registered user

* profile of registered user

* typeof

* admin-customer currency view

* Shippo tracking status (#1735)

* untested first version

* getting trackingStatus shippo fields

* switch to using methods for updating shipment status

* created mocking the caller inside the Job's code

* clean PR

* job is started by server.Job's code is run by mocking Owner using DDP's current invocation

* Mocking Owner in Shippo's Job by using dispatch:run-as-user

* update shippingSummary.js

* add lodash.pick

Resolves error that was occurring in tracker during order processing.

* Updated versions

* Update dashboard and settings related registry entries (#1739)

* Modified core registry entry titles

Removed the word `Settings` from the label any entry that `provides:
'settings'`)
Added an icon to any entry that `provides: 'settings'`

* Moved translations to catalog

* Copied translations to all modules

Copied translations from core i18n/en.json (shortcut | dashboard |
settings ) into all packages that did not already have a local
i18n/en.json.

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translation imports for plugins with translation to import.

* Updated translations

* Fix i18n json for revisions

* Updated registry entries for all packages

Removed settings from name.
Removed unused templates.

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translations and keys

* Updated shop translation

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Remove console log

* IOS / safari flex-wrap not working #1695 (#1727)

* #1695

* #1695

* #1695

* #1710 - Cart Icon styling
Cart icon padding reduced to fit on media @screen-xs-max
Cart icon margin removed so it now sits flush to right edge of screen and signin button

#1710 - Menu icons styling
(Safari) search and notification icons centered in buttons

#1710 - Menu drop-downs
ltr screen - menus go left
rtf screen - menus go right
Menus (i.e. notification) can now be displayed on 480px screens

* Fix inventory notifications (#1736)

* add Inventory Status to childVariants

* add limited supply warning badge to top-level variants

* add sold out warning badge to child variants

* call inventoryAdjust

* update badge location on product grid

* commented out testing colors

* add logic to get variant inventory from grid page

* updating revision control for quantity

* yarn.lock

* update viewAs to used profile saved data (#1748)

* update viewAs to used profile saved data

* update gitignore to account for yarn.lock

* undo gitignore changes

* add default state

* add default state

* add default state

* add default state

* add global function for user preferences

* update to use getUserPreferences

* add Reaction wrapper to getUserPreferences

* use Reaction.setUserPreferences

* Color fix (#1750)

* color updates

* Added all bootstrap 3 variables

* Added list group hover color to normal list group item

* First color iteration fixes

* Silence of the Logs (#1745)

* Change most Logger.infos to Logger.debug

* Change email settings logging back to info

* Grid View Behavior Updates (#1752)

* remove visibility button from product grid

* add Reaction.isPreview() bool

* remove edit button from grid view

* variable-ice some things to lessen line length

* wrap showActionView in isPreview

* wrap in isPreview

* wrap in isPreview

* update click functionality

* turn off actionView Saved state

We need to figure out what to do with the saved state, so turning it
off until we have that discussion

* add dblclick functionality to selected products

* actionView - now with context!

* Dashboard cleanup (#1755)

* Added expanded view for packages that have "actions", like orders

Added a new view to items on dashboard in the “actions” group. They can
now show an extra detail view with analytics / metrics / or custom
controls.

* Added the ability to collapse groups cleanup of structure

* Updated i18n

* Moved PDP publish controls to ActionView

Removed PDP toolbar components

* Added distinct detail view panel

Cleanup errors in console

* Updating UX of actionview

* Tweaks to UX

* Fix preference get for preview mode

* add class for not found page (#1754)

* Card, Button UI Updates (#1757)

* Clean up buttons styles

Fix admin panel data issues

* Card header switch style and behavior fixes

Card header switch can be used to open a close panel if switch to on
state.
Properly apply styles to action view in card header

* Updated button props for our various button styles

Remove props solid, flat, outline in favor go "bezelStyle" which
accepts "solid", "flat" or "outline".

Simple use `<Button bezelStyle="solid" />`

* Tweak button colors

* Removed hot pink color, replaced with brand dark color

* removed old button style from search

* Simplified the new MultiSelect component (#1760)

* page not found

* page not found

* clean multiselect

* Add tracking / shipping to emails (#1761)

* add shipping info to new and shipped email templates

* fix error on dashboard orders

* Shipping panel normalization (#1740)

* Migrate flat rates to shipping-rates plugin

Resolves #1404
WIP #421

Moves more i18n into plugins/core/shipping
Moves flat rates into plugins/included/shipping-rates
Normalized settings panels
WIP -> Update shipping to griddle.
WIP -> remove inheritEvents, introduce summary rates.

* Update from release-0.19

* Initial shipping grid refactor

* Merge branch 'release-0.19.0' into 1404-shipping-dashboard-panels

# Conflicts:
#	imports/plugins/included/default-theme/client/styles/variables.less

* Catch invalid product grid filters

Fix exception thrown when invalid params are passed to grid.

* Add transform

- add transform property, provide a function to modify grid results
prior to rendering

* Flat rate editing

- griddle editing for flat rates
- add new methods
- shipping/rates/add,update,delete

* Remove old shipping ui

* remove Loading template

- `Loading`, alas, has falling out of popularity. It is only used in
one place.  It had a good life, as it’s been here since the earliest of
days. However, the spinner class has taken over, and is generally more
fun to hang out with.  If you depended on Loading, you too could use a
spinner class.

* Rename shippoMethod -> settings

- a generic name for reuse.

* consolidated checkout shipping template

* Default groups

* fallback to shop email for guest orders

- shippo requires email
- normalize shippoMethod -> settings

* make transform optional

* Silence of the logs

* Catch case where items is undefined

* Updated SMS label

* Update imports, add roles

- add some more of the shipping package roles to permissions

* bs form defaults

- set bs3 form defaults, attempts to somewhat gracefully resolve
missing styles so that we can remove class=“form-controls” that are
littered all over the place.

* Refactor notes

 - tip comments

* Add shippo carrier UI

* Implement onGetShippingRates hook

- isolates flat rate, shippo calculation into their own callbacks
- adds package enable/disable checking for shipping packages
- adds removal of rates, when no rates returned.

* Updated configuration alert

* Deprecate core shipping methods

Deprecated (ui specific) shipping methods
- shipping/methods/add
- shipping/methods/update
- shipping/methods/remove
- shipping/provider/add
- shipping/provider/update
- shipping/provider/remove

* Shippo Carrier editing

* Add flatten-obj dependency

- useful helper for flattening object into mongo $set

* Remove iconButton from carriers

* Update shipping configuration check

* Updated provider enable/disable handling

- Add method `shipping/provider/toggle`
- Disable all methods by default.

* Updated payment package toggle handling

- handle package, settings enabled states

* Lint / review cleanup

* Updated dependencies

* [better] pattern implementation for roles.

* Add loader, revised loading state check

- to resolve warning message displayed before button loads.
- slight refactor for legibility

* Removed default enabled

- we just want this as fixture data, we don’t want re-enabled
automatically in import.
- default shipping methods to false

* Remove carrier label editing

- for now, we need a better definition

* 1759 Publish controls in toolbar (#1767)

* Move publish bar back to toolbar

* Move publish controls to toolbar.

- Move PDP publish controls back to toolbar.
- Move Grid Settings publish controls to toolbar.
- Added default setting and workflow for homepage for product grid.

**Updated grid behavior.**
- Side panel no longer opened when clicking on main view for deselect
when in preview mode.
- Also does not open if you’re in edit mode and deselecting nothing.

* Darken default buttons for readability

* Fix return value not matching expected result

ReactionProduct.selectedProduct should return undefined if no product
is found. Was returning an array, causing PropType validation errors in
React components.

* Tweaked colors

* Added UI Slider onSlide event (#1774)

* page not found

* page not found

* Added onSlide event in Slider

* fix "sold out" showing on all products with tags (#1776)

* Release Cleanup (#1769)

* Add Greek Translations

Resolve #1768

* Add onOrderPaymentCaptured hook

- cleanup shipping methods
- add onOrderPaymentCaptured Hook

* Implement Template.instance scope

- add Template.instance to limit DOM query scope

* Wait for packages to load before beginning tests

* Check that package data is present and exit if not

* Fix failing test for products publication

* Merge 1775-checkout-configure

* Restore public label and refresh

- kludge disabling of input (due to a validation issue in AF), which is
because we don’t yet support updating the label (but is required).
- Restore a way to refresh methods.

* Updated configure now links to open proper dashboard settings (#1777)

Added ability to set action view with an array.

* Reverse edit mode toggle functions (#1788)

* update i18n for different views

* update edit mode button

* fix + button / addVariant on PDP

+ / addVariant was showing on the PDP even in preview mode. This fixes
that issue.

* 1782 fix navbar tags (#1789)

* Fix width of tagnav dropdown

* Tag navigation UIX fixes

- Updated edit button style to make it more visible
- Increased the size of the tagnav dropdown to full width of screen.
- Added min-width to tag group so prevent them from getting too small
- Added a max-width to tag group to prevent them from getting too big
- Modified the color of the show menu (hamburger) icon to be visible on
light background
- Added app brand (title) component to header of vertical tag nav
- Centered edit button in vertical tag nav
- Fixed "close tag nav on click of link" action to no close if tag nav
group is opened. Fixed it so it will close when sub items are clicked.

* Add updated styles for last commit

* Hide tagnav edit button in preview mode

* Tag nav UX updates

- Updated tagGroup colors
- Updated create tag form colors
- Added overlay
- Added slide in transition for tagnav vertical

* Added overlay component

- Use new overlay component for tagnav overlay

* Close navbar and overlay on resize past mobile breakpoint

* Animate box shadow on tagnav

* Fix prop type for switch onLabel

* Add button primary

* Add indicator for unpublished product

* Sort dashboard apps by priority

* Fix width of inventory warning field (#1803)

* remove text and VerticalDivider from Toolbar

* update @warn number field width

* fixes double line on pages without revision control buttons

* Added order to orders list view (#1809)

- Added TabList and TabItem components

* 1791 action view responsive (#1806)

* Tweak UIX of action view

- Add overlay for action view
- Use velocity for slide animation of action view
- Fix for completely hidden action view at phone breakpoint
- Move close button to left for action view - master view

* Update UI for action view

- Fixing various issues with responsiveness
- Added animations and overlays

* Style tweaks for dashboard

- Fixing dual borders on panels in panel groups for package list
- Improve enter / leave animation for action view - detail view

* Update grid settings panel (#1812)

- Add hover and active states to list items
- Add arrow to each list item
- Improve layout and style of size selector

* Make Edit Mode on by default (#1813)

* auto enable edit mode for first time admin logins

* update to make "admin" mode default, if you haven't turned it off.

* removed unused field

* moved accounts registry into new core package (#1810)

* moved accounts registry into new core package

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translation imports

* Prevent archived products from showing in search (#1821)

* Fix media gallery flickering and missing thumbnail (#1794)

* LESS updates for PDP media gallery

* split into featured media and thumbnails

* pass props down to mediaGallery

* always return featured media as true

* always allow featuredMediaOnHover

* add react-measure

* update less

* add react-measure

* pull image measurements from mediaGallery

* fix sizing issue on admin featuredImage

* fix error when removing unpublished media

* add key to Measure to fix error

* Fix missing Tags import/error (#1826)

* 1780 product archive (#1816)

* Prevent product deletion from creating revisions for archived products

Prevent instances where archiving a product would also archive products
that are already archived, resulting in more revision documents being
created when not necessary.

* Prevent variant deletion from creating revisions for archived products

* Prevent broken ancestors during archived product restoration

- Prevent a child variant from being restored if its parent variant is
still marked as `isDeleted` (archived).

* - Import Tags collection to fix errors on product create

* Prevent child variants from being added to a deleted parent variant

* Add default label for variant so it doesn't look broken when new.

* Update error messaging for add top variant

* Don't allow a product to be cloned if its parent is deleted

* Updated translations and comments

* Adjust import order

* Shorten i18n text

* Fix alert display when archiving products

* Grid Publish Updates (#1824)

* Added ability to publish all items on product grid

When no items are selected on the product grid, the publish controls in
the toolbar defaults to publishing all changes to all products on the
grid.

* Update product grid display

- Add overlay to products when they are not visible
- Add indicator when products have changes
- Sort product grid after revision data is applied

* Removed sort and limit from product find

* Simplify product positions update.

Simplify update for product positions to prevent cases where updating
the size and then position will cause products to be rendered in
incorrect positions or sizes.

* Avalara Tax Reporting (#1733)

* Remove deprecated avalara package

* Replace npm package

* Add new fields

* Use new internal module

* Implement new TaxRate API

* Get and save company code

* Submittting cart to Avalara (not working yet)

* Adding JSDOc and debug

* Succesfully submitting cart to TaxRate API

* Use TaxRate API for cart calcularions

* Eliminate files for unused Avalara API

* Capturing orders for SalesInvoice

* Properly recording orders

* Recording returns

* Work around "duplicate transaction" error.

* Record refunds

* Fix typo/eslint/JSDoc issues

* Add Geocoding package

* Add Geocoding package

* Geocoding is for chumps

* Run unit tests in CI

* Add Meteor method for discoverability

* Pull up the proper geocoding function and call it

* Convert method to synchronous

* Use latest version of library

* Lengthen timeout

* simple "pass/fail" validation via geocoding

* Add USPS zipcode verification library

* Add zipcode validation to addAccount

* Fix country code fix

* Fix validation results

* Make refunds committed

* Remove zipcode validation

* Remove zipcode package

* Use Avalara validation if enabled

* Destructure and restructure address to Avalara format

* Compare addresses item by item

* Show message when addresses don't match

* Substitute validated address for entered address, show warning.

* Set dropdown values

* Have "edit" addressbook also validate address

* When no address validators are enabled, skip it

* When no address validators are enabled, skip it

* Remove providerName key

* Change method of registering addressValidation methods based on Aaron's feedback

* Add enable/disable address validation

* Handle validation messages from validator when it has additional things to say about address

* Remove generic geocoding plugin

* Changes to edit form as well

* Handles cases where address validation is not supported for this country

* Fix issue with Avalara trying to calc tax when it's not enabled.

* Only pass in taxrate if it's defined and is a number

* Reenable all tests

* Protect against being passed in an undefined order

* Fixing tests

* Trying to fix tests

* Remove running unit test

* Up the timeout on the discounts test

* Fix issue with "Expected the after hook to return a value" message

* removed "form-control" class

* Fix FireFox Admin search modal display (#1831)

* fix close button not showing in FireFox

* fix search modal display

* Fix overlapping product grid alerts (#1832)

* put grid alerts into same container

* fix spacing for visibility indicator

* Fix typo. Resolves #1828 (#1830)

* Fix typo. Resolves #1828

* Also another place with same typo

* switch email methods to use Reaction.hasPermission API (#1829)

* Resolve access-denied error on non-admin checkout (#1833)

* Use a direct import instead of a Meteor method and remove security check

* moved inventory adjustment into payment approval

* Fix height for action view - detail view (#1842)

* Fix flexbox issues with icon buttons in safari (#1840)

* Fix flex issues with detail view

* Fix accounts import (#1839)

* Added import for Meteor Accounts package.

- Also prevent Accounts (meteor) from colliding with Accounts (reaction
collection)

* Updated import order
mikemurray pushed a commit that referenced this pull request Feb 21, 2017
* change templates importing to use Assets collection

* renamed templates function

* fixed listing errors

* add flush & changed onCoreInit -> afterCoreInit

* removed isOriginalTemplate, which is no longer used

* InitTemplates() -> initTemplates()

* move import settings (#1573)

- moved “Import” from settings/settings.html to import/import.html
- is currently not used and won’t be visible, but can be basis for
import settings.

resolves #1050

* Update Order Progress Workflow (#1580)

* update workflow when process is not done the traditional way

* update import order

* fixed linting issues

* removed old / unused nom packages

* PDP 500 (#1572)

* Added add button for variant list.

Hide available options divider, if there are no available options.

* UX tweaks for varying numbers of variants in list

- Hide options label when there is only one top level variant
- add tooltip to add button

* Hide add button for non-admin users

* More UI tweaks for products without variants

Hide add to cart button if there are no variant options available.
Hide options separator if there are no variant options and use is not
an admin.

* Added i18n

* i18n updates for the Templates package (#1571)

* fix for templates not loading on initial reaction startup

* changed the order

* move i18n to new modular style

* formatting

* Update core.js

* Update core.js

* Update index.js

* Update email.html

* removed "moo"

* Fix remove icon not displaying / revision change (#1564)

* Add media hook. Rename file to "hooks'"

* Only return published images for non-admin users

* Only set product images as unpublished

* Capture revision record and show Publish button when image changes are made

* Adding images deferred until published

* Removing images deferred until published

* Capturing and deferring other changes to metadata (priority really)

* Combine revisions when making multiple changes before publishing

* Properly handle non-product revisions in applyProductRevision so that product doesn't get wiped.

* Find the product correctly based on revision type

* Fix regression where images weren't being published because revision data was wrong

* Setting priceRange should be in an `else` statement

* If you add an image and then delete it before publishing it, just remove it.

* Update revisions with media

* Show visual indicator on image if there are pending revisions

* Discard drafts of image revisions

* Sometimes rendering the "edited" marker

* Reset revisions so that removals take effect

* Set priority to revision priority

* Fix issue where changing order wouldn't stick

* Remove logging

* Change lost in merge

* Another change from merge

* Don't show remove icon once an item has been removed.

* Protect against a non-existent product

* updated subject to use SSR

* update templates to use SSR

* update templates to use SSR

* added new field to update

* update schema for email templates

* removed unused fields

* converted old shipping code to email template

* Added ecmascript dependency to gridfs package

* updated npm dependencies

 country-data          ^0.0.30  →     ^0.0.31
 griddle-react          ^0.6.1  →      ^0.7.0
 i18next                ^3.4.3  →      ^4.0.0
 sortablejs             ^1.4.2  →  ^1.5.0-rc1
 sweetalert2            ^5.3.8  →      ^6.1.0
 wdio-mocha-framework   ^0.4.3  →      ^0.5.4

* removed no longer needs isOriginalTemplate

* remove old console.logs

* fixed type

* add ecmascript to gridfs to enable strict

* Fixed issue with closing cards on edit

cleanup of various eslint issues.

* fixed prop validation

* updated welcome email to use SSR for subject

* Upgrade to react-komposer v2

Added composeWithTracker wrapper around v2 features in lib.
Updated all react-komposer imports to use version from lib.

* Fix alerts

Was trying to call Alerts on the server, instead of the client. Fixed.

* New Email: Refunds

* remove unused email templates

* finalizing email templates - recovery commit

* email template registration

* linting fixes

* launchdock verification email

* removed errant console

* subject update

* camelCasing some things

* updated subject for unavailable templates

* disabled form fields that shouldn't be touched

* send order notification when user adds email

* [WIP] Updates to package registry

* updated reaction Apps

Updated package registry handling, updates for payments.

* Add localhost WS browser-policy

Resolve `websocket because it does not appear in the connect-src
directive of the Content Security Policy` error in safari when using
—production build.

* Payment package updates, removes name

- removes name from some payment method registry entries
- use name if separate settings and permissions are needed
- applies permission checks in package publication for filtering
enabled views
- uses package name as default settings key,  used when no name

* Move mergeDeep into /lib/api/helpers

* Update settings handling

- Cleanup handling in taxes, discounts, catalog package handling
- Fix error where registry update was overwriting existing settings
- use mergeDeep for registry updates

* Cleanup panels in payments, taxes

- remove excessive panels
- add i18n
- generic alerts
- convert panel-title to alert info
- show alert message only pre-setup

* Updated package

momentjs:moment  upgraded from 2.16.0 to 2.17.0

* PayPal as split payment methods

- Process multiple matching entries in registry
- adds i18n for PayPal client views
- splits PayPal into two payment methods for settings/checkout
- todo add migration for express_enabled to express.enabled
- todo add migration for payflow_enabled to payflow.enabled
- add browser policy akamai.mathtag.com
- apply standard button style + i18n to all payment settings

* Add Month Translations to monthOptions helper

* updated payments styling, missing i18n

- single card payment layout
- removes default payment method and collapse handling in checkout
- commented in dashboard payment settings. TBD.
- resolves #1408

* object-curly-spacing lint rules applied

* Avoid localLocale.defineLocale warning

* Clarify Auth.net credentials messaging

* Only display enabled payment methods to admin in checkout

- could have just used if in template, or alternate display
- but this is clean and simple for now.

* Updated import/requires for moment

Fix error loading moment for template helpers.

* Updated translation

* Update styling for payment settings

- remove Authnet/dashboard - unused legacy settings?

* Templates fixes (#1600)

* Remove unused settings icon

* Fix "required" name field

* Update sidebar Reactively when changes are made

* Removed references to "email"

Templates are not just for emails, so I removed references to “Email”
in all the i18n translations

* Removed "email" as Templates are more than email

* Remove unused functions

* Updated i18n

* Renamed variable away from "template"

* Use description for HTML description (#1606)

* Fix permissions on Order when "guest" user (#1607)

* Don't publish changes on a product when product is not found (happens during tests) (#1603)

* initiazize shippo's UI

* shippo ui configuration

* fix admin UI

* Fix bug that causes duplicated variants to be missing images. (#1611)

* Fix bug that causes duplicated variants to be missing images.

Added a copyFile helper that will bypass revision control to copy a
file.

* Add missing export

* basic UI implementation with valid api key confirmation

* multilanguage support .delete existing api key support

* fix delete api key message

* 1st pr review fixes

* fix misspelling

* Don't blank out titles (#1617)

* fix browser-policy for websockets in Safari

* Fix for page title not updating when selecting product. (#1623)

This fix also ensures all metadata related to a product is updated when
the product is selected.

* Default product to blank object for instances where it may be undefined. (#1619)

* Build index immediately on startup so that search doesn't throw an error (#1621)

* starting with checkout flow

* added audience permissions to registry schema, and Reaction.Apps now checks audience perms against user roles and registry item audience if any

* add shippoApi Schema

* Fix typo in i18n file so that error message showed key instead of text (#1635)

* audience is passed as an array to match any user role, excluded owner from audience check

* trivial fix

* Prerender.io Integration - Feature #1249 (#1643)

* Move Template editing to Sidebar (#1612)

* Move Template editing to Sidebar

* Removed logs

* Linting fixes

* i18n updates

* renamed filed to remove email designation

* package name update

* add info box around React message

* get user and shop email for address

* Fix price updates (#1633)

* add applyProductRevision to Products.findOne

* fix price range for revisions

* fix isVisible price updates

* fix for price object not initially being created

* add product.range updating to non-revision enabled app

* Checkout discount code input (#1620)

* Fix typo in CircularProgress

indetermate -> indeterminate

* Enabled false for Express on initial startup

* Updated payments method

- Replaces `payments/paymentMethod` with `payments/cart/apply`
- add discounts/codes/remove
- add discounts/codes/apply

* Initial DiscountList DiscountForm components

* functional discount code input

* basic discount calculations in cart

* Updated discount input loader

* Only display shipping, discounts, taxes gt 0

* Order discount not to exceed 0 (no neg values)

* Update plugin structure

* fix typo in taxes input

numericInputProps "taxes"

* apply discounts in order process

- DiscountList and DiscountForm components can be used for Orders or
Cart collection
- working CODES as discounts through order process
- a number of outstanding TODO’s remain for discount conditional logic
and limit handling
- Order process is easily broken, and will need modification to payment
handling to check for authorization below above current authorization
if discount is removed.

* Fix event handling in FF

* disable delete discount in admin ui

* Format discount

* Implement credit/debit payment method selectors

- Replace order.billing[0] with credit selector
- update and enforce that paymentMethod.method should be “credit”,
“debit”.
- refactor Order updates to allow for credit to be in any position

* Minor lint updates

* Updated billing constants

* Updated billing constants

* Updated selector constants

* Set min-height on cart-items

- prevent some of the ugly transitions. Needs loader.

* add fallback paymentMethod for email

- add processor in case there isn’t a storedCard

* Add calculation method to schema/forms

* info -> debug

- for `not creating default admin user”`
- for `Reaction.init() has run`

* implement hooks for per processor calculation methods

* Info -> debug logging

* discount, credit, sale, shipping calculations

* Discount code form cleanup

- add a few additional checks on fresh carts

* import indexOf

* Codes disabled by default

* autoEnable discount-codes

- is actually required right now, as the logic in payment doesn’t
extend to enabling the package.

* Patch link for non-configured payments

* Add default calculation method

- ensure that rates/discount exists
- cleanup jsdocs

* Updated orders discounts/credit/shipping summary

* enhance shippo schema  validations

* update package.json with version 0.19.0

* added body class for current route based on theme and routeName

* minor fixes

* PR #1655 re-merge (#1658)

* Variants without media to inherit media from their parents (#1664)

* optimised method by setting/getting session

* fixed import order

* add Shippo provider from Settings to Shipping Collection.Get Active Carriers List from shippo account

* starting..

* show & select shippo rates on checkout flow.update cart when editing default address

* make it more clean and secure

* fix multiple bugs of previous commit

* React no-ui Slider implementation

* React MultiSelect component implementation

* fixes of reaction-421 pr review

* shippo providers are saved in different shipping documents

* add admin settings translation for templates (#1661)

* add shipping Details in order confirmation screen and Admin order review.add shippoMethod and carrier in ShippingMethodSchema

* React MultiSelect component implementation (#1681)

* React no-ui Slider implementation (#1680)

* Route theme body class (#1672)

* added body class for current route based on theme and routeName

* optimised method by setting/getting session

* fixed import order

* seller can purchase carrier labels from shippo.He can print the label throush order summary and view tracking number

* clean code , fix pr issues

* small fix

* small form fixes

* cleaner boundaries between shippo and shippoapi methods. JsDocs for the exported functions/methods

* make pr review fixes

* get Registry for Current route for enabled package only

* get rates only of enabled shipping providers

* update shippo provider by fetching activated carriers from shippo account

* small typos fixes

*  a little bit more error handling

* Variable cleanup (#1712)

* removed old unused styles

* updated brand color hex: 1c98d5 -> 1999dd

* killed @brand-muted-color (for now, as it's currently unused)

* update font to Source Sans Pro in emails

* update search variables

* variables.less cleanup

* bright colors for secondary, accent, vivid color for easy visibility

* Update package.json

* 1628 Move Toolbar & Admin View is Dashboard (#1723)

* Moving toolbars

Moved Admin toolbar (vertical one) to the left
Moved DashboardHeader template region to top
Moved ProductDetailsSimple toolbar into own component ( ProductToolbar )
Moved ProductToolbar to DashboardHeader template region in registry

* Adding react switch control

Updating button component to allow for better toggling
Update product toolbar and publish bar

* Improve layout and styles for switch component

* Clean up styles related to publish bar

* Toolbar reorg (#1713)

* Move dashboard to admin controls drawer

* admin links in account dropdown to open action view

* Added navigation stack to action view

Added back button to settings panel

* Added package list component for dashboard package list

Added List and ListItem components

* Code cleanup
Added basic styles for lists

* Adding react ActionView component

* Added blaze react package

Fixing imports for actionView

* Added admin context provider

AdminContextProvider provides context props to all components wrapped
as Admin() components.

* CSS-IN-JS styles for admin view header with animations

* Added add product button

Added icon button with Reaction logo to open actionView

* Package list re-org

* Filter entries with a template

* Added detail view to action view

* cleanup

* Fix for missing grid settings view in action view

* Split generic toolbar and publish bar functionality

* Fix action view close on orders view

Remove legacy functionality in orders template that interferes with the
action view close.

* Cleanup

* Cleanup

Remove filter controls from orders list

* Open shipping details in action detail view

* Moved add product functionality to generic admin toolbar

Moving add product callback function from the publish controls into the
admin toolbar.

* Only show vertical divider if there is a dashboardHeaderTemplate

Cleanup of propTypes

* Allow for no loading templates

Fixes issue where the publish controls would display a large loading
spinner causing the toolbar to resize briefly.

* Clear action view on close to prevent odd behavior. Will revisit.

Other various cleanup of source

* Fixed broken preview toggle

Fix eslint issues

* Fix archive product. Should pass full product object, not _id

* 1709 Allow users to change their default currency across the app using a dropdown   (#1728)

* currency-dropdown

* ui fix

* fixes

* fixed

* fixed profile

* profile of registered user

* profile of registered user

* typeof

* admin-customer currency view

* Shippo tracking status (#1735)

* untested first version

* getting trackingStatus shippo fields

* switch to using methods for updating shipment status

* created mocking the caller inside the Job's code

* clean PR

* job is started by server.Job's code is run by mocking Owner using DDP's current invocation

* Mocking Owner in Shippo's Job by using dispatch:run-as-user

* update shippingSummary.js

* add lodash.pick

Resolves error that was occurring in tracker during order processing.

* Updated versions

* Update dashboard and settings related registry entries (#1739)

* Modified core registry entry titles

Removed the word `Settings` from the label any entry that `provides:
'settings'`)
Added an icon to any entry that `provides: 'settings'`

* Moved translations to catalog

* Copied translations to all modules

Copied translations from core i18n/en.json (shortcut | dashboard |
settings ) into all packages that did not already have a local
i18n/en.json.

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translation imports for plugins with translation to import.

* Updated translations

* Fix i18n json for revisions

* Updated registry entries for all packages

Removed settings from name.
Removed unused templates.

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translations and keys

* Updated shop translation

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Remove console log

* IOS / safari flex-wrap not working #1695 (#1727)

* #1695

* #1695

* #1695

* #1710 - Cart Icon styling
Cart icon padding reduced to fit on media @screen-xs-max
Cart icon margin removed so it now sits flush to right edge of screen and signin button

#1710 - Menu icons styling
(Safari) search and notification icons centered in buttons

#1710 - Menu drop-downs
ltr screen - menus go left
rtf screen - menus go right
Menus (i.e. notification) can now be displayed on 480px screens

* Fix inventory notifications (#1736)

* add Inventory Status to childVariants

* add limited supply warning badge to top-level variants

* add sold out warning badge to child variants

* call inventoryAdjust

* update badge location on product grid

* commented out testing colors

* add logic to get variant inventory from grid page

* updating revision control for quantity

* yarn.lock

* update viewAs to used profile saved data (#1748)

* update viewAs to used profile saved data

* update gitignore to account for yarn.lock

* undo gitignore changes

* add default state

* add default state

* add default state

* add default state

* add global function for user preferences

* update to use getUserPreferences

* add Reaction wrapper to getUserPreferences

* use Reaction.setUserPreferences

* Color fix (#1750)

* color updates

* Added all bootstrap 3 variables

* Added list group hover color to normal list group item

* First color iteration fixes

* page not found

* page not found

* Silence of the Logs (#1745)

* Change most Logger.infos to Logger.debug

* Change email settings logging back to info

* Grid View Behavior Updates (#1752)

* remove visibility button from product grid

* add Reaction.isPreview() bool

* remove edit button from grid view

* variable-ice some things to lessen line length

* wrap showActionView in isPreview

* wrap in isPreview

* wrap in isPreview

* update click functionality

* turn off actionView Saved state

We need to figure out what to do with the saved state, so turning it
off until we have that discussion

* add dblclick functionality to selected products

* actionView - now with context!

* Dashboard cleanup (#1755)

* Added expanded view for packages that have "actions", like orders

Added a new view to items on dashboard in the “actions” group. They can
now show an extra detail view with analytics / metrics / or custom
controls.

* Added the ability to collapse groups cleanup of structure

* Updated i18n

* Moved PDP publish controls to ActionView

Removed PDP toolbar components

* Added distinct detail view panel

Cleanup errors in console

* Updating UX of actionview

* Tweaks to UX

* Fix preference get for preview mode

* add class for not found page (#1754)

* Card, Button UI Updates (#1757)

* Clean up buttons styles

Fix admin panel data issues

* Card header switch style and behavior fixes

Card header switch can be used to open a close panel if switch to on
state.
Properly apply styles to action view in card header

* Updated button props for our various button styles

Remove props solid, flat, outline in favor go "bezelStyle" which
accepts "solid", "flat" or "outline".

Simple use `<Button bezelStyle="solid" />`

* Tweak button colors

* Removed hot pink color, replaced with brand dark color

* removed old button style from search

* Simplified the new MultiSelect component (#1760)

* page not found

* page not found

* clean multiselect

* Add tracking / shipping to emails (#1761)

* add shipping info to new and shipped email templates

* fix error on dashboard orders

* Shipping panel normalization (#1740)

* Migrate flat rates to shipping-rates plugin

Resolves #1404
WIP #421

Moves more i18n into plugins/core/shipping
Moves flat rates into plugins/included/shipping-rates
Normalized settings panels
WIP -> Update shipping to griddle.
WIP -> remove inheritEvents, introduce summary rates.

* Update from release-0.19

* Initial shipping grid refactor

* Merge branch 'release-0.19.0' into 1404-shipping-dashboard-panels

# Conflicts:
#	imports/plugins/included/default-theme/client/styles/variables.less

* Catch invalid product grid filters

Fix exception thrown when invalid params are passed to grid.

* Add transform

- add transform property, provide a function to modify grid results
prior to rendering

* Flat rate editing

- griddle editing for flat rates
- add new methods
- shipping/rates/add,update,delete

* Remove old shipping ui

* remove Loading template

- `Loading`, alas, has falling out of popularity. It is only used in
one place.  It had a good life, as it’s been here since the earliest of
days. However, the spinner class has taken over, and is generally more
fun to hang out with.  If you depended on Loading, you too could use a
spinner class.

* Rename shippoMethod -> settings

- a generic name for reuse.

* consolidated checkout shipping template

* Default groups

* fallback to shop email for guest orders

- shippo requires email
- normalize shippoMethod -> settings

* make transform optional

* Silence of the logs

* Catch case where items is undefined

* Updated SMS label

* Update imports, add roles

- add some more of the shipping package roles to permissions

* bs form defaults

- set bs3 form defaults, attempts to somewhat gracefully resolve
missing styles so that we can remove class=“form-controls” that are
littered all over the place.

* Refactor notes

 - tip comments

* Add shippo carrier UI

* Implement onGetShippingRates hook

- isolates flat rate, shippo calculation into their own callbacks
- adds package enable/disable checking for shipping packages
- adds removal of rates, when no rates returned.

* Updated configuration alert

* Deprecate core shipping methods

Deprecated (ui specific) shipping methods
- shipping/methods/add
- shipping/methods/update
- shipping/methods/remove
- shipping/provider/add
- shipping/provider/update
- shipping/provider/remove

* Shippo Carrier editing

* Add flatten-obj dependency

- useful helper for flattening object into mongo $set

* Remove iconButton from carriers

* Update shipping configuration check

* Updated provider enable/disable handling

- Add method `shipping/provider/toggle`
- Disable all methods by default.

* Updated payment package toggle handling

- handle package, settings enabled states

* Lint / review cleanup

* Updated dependencies

* [better] pattern implementation for roles.

* Add loader, revised loading state check

- to resolve warning message displayed before button loads.
- slight refactor for legibility

* Removed default enabled

- we just want this as fixture data, we don’t want re-enabled
automatically in import.
- default shipping methods to false

* Remove carrier label editing

- for now, we need a better definition

* 1759 Publish controls in toolbar (#1767)

* Move publish bar back to toolbar

* Move publish controls to toolbar.

- Move PDP publish controls back to toolbar.
- Move Grid Settings publish controls to toolbar.
- Added default setting and workflow for homepage for product grid.

**Updated grid behavior.**
- Side panel no longer opened when clicking on main view for deselect
when in preview mode.
- Also does not open if you’re in edit mode and deselecting nothing.

* Darken default buttons for readability

* Fix return value not matching expected result

ReactionProduct.selectedProduct should return undefined if no product
is found. Was returning an array, causing PropType validation errors in
React components.

* Tweaked colors

* Added UI Slider onSlide event (#1774)

* page not found

* page not found

* Added onSlide event in Slider

* fix "sold out" showing on all products with tags (#1776)

* Release Cleanup (#1769)

* Add Greek Translations

Resolve #1768

* Add onOrderPaymentCaptured hook

- cleanup shipping methods
- add onOrderPaymentCaptured Hook

* Implement Template.instance scope

- add Template.instance to limit DOM query scope

* Wait for packages to load before beginning tests

* Check that package data is present and exit if not

* Fix failing test for products publication

* Merge 1775-checkout-configure

* Restore public label and refresh

- kludge disabling of input (due to a validation issue in AF), which is
because we don’t yet support updating the label (but is required).
- Restore a way to refresh methods.

* Updated configure now links to open proper dashboard settings (#1777)

Added ability to set action view with an array.

* Reverse edit mode toggle functions (#1788)

* update i18n for different views

* update edit mode button

* fix + button / addVariant on PDP

+ / addVariant was showing on the PDP even in preview mode. This fixes
that issue.

* 1782 fix navbar tags (#1789)

* Fix width of tagnav dropdown

* Tag navigation UIX fixes

- Updated edit button style to make it more visible
- Increased the size of the tagnav dropdown to full width of screen.
- Added min-width to tag group so prevent them from getting too small
- Added a max-width to tag group to prevent them from getting too big
- Modified the color of the show menu (hamburger) icon to be visible on
light background
- Added app brand (title) component to header of vertical tag nav
- Centered edit button in vertical tag nav
- Fixed "close tag nav on click of link" action to no close if tag nav
group is opened. Fixed it so it will close when sub items are clicked.

* Add updated styles for last commit

* Hide tagnav edit button in preview mode

* Tag nav UX updates

- Updated tagGroup colors
- Updated create tag form colors
- Added overlay
- Added slide in transition for tagnav vertical

* Added overlay component

- Use new overlay component for tagnav overlay

* Close navbar and overlay on resize past mobile breakpoint

* Animate box shadow on tagnav

* Fix prop type for switch onLabel

* Add button primary

* Add indicator for unpublished product

* Sort dashboard apps by priority

* Fix width of inventory warning field (#1803)

* remove text and VerticalDivider from Toolbar

* update @warn number field width

* fixes double line on pages without revision control buttons

* Added order to orders list view (#1809)

- Added TabList and TabItem components

* 1791 action view responsive (#1806)

* Tweak UIX of action view

- Add overlay for action view
- Use velocity for slide animation of action view
- Fix for completely hidden action view at phone breakpoint
- Move close button to left for action view - master view

* Update UI for action view

- Fixing various issues with responsiveness
- Added animations and overlays

* Style tweaks for dashboard

- Fixing dual borders on panels in panel groups for package list
- Improve enter / leave animation for action view - detail view

* Update grid settings panel (#1812)

- Add hover and active states to list items
- Add arrow to each list item
- Improve layout and style of size selector

* Make Edit Mode on by default (#1813)

* auto enable edit mode for first time admin logins

* update to make "admin" mode default, if you haven't turned it off.

* removed unused field

* moved accounts registry into new core package (#1810)

* moved accounts registry into new core package

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Updated translation imports

* Prevent archived products from showing in search (#1821)

* Fix media gallery flickering and missing thumbnail (#1794)

* LESS updates for PDP media gallery

* split into featured media and thumbnails

* pass props down to mediaGallery

* always return featured media as true

* always allow featuredMediaOnHover

* add react-measure

* update less

* add react-measure

* pull image measurements from mediaGallery

* fix sizing issue on admin featuredImage

* fix error when removing unpublished media

* add key to Measure to fix error

* Fix missing Tags import/error (#1826)

* 1780 product archive (#1816)

* Prevent product deletion from creating revisions for archived products

Prevent instances where archiving a product would also archive products
that are already archived, resulting in more revision documents being
created when not necessary.

* Prevent variant deletion from creating revisions for archived products

* Prevent broken ancestors during archived product restoration

- Prevent a child variant from being restored if its parent variant is
still marked as `isDeleted` (archived).

* - Import Tags collection to fix errors on product create

* Prevent child variants from being added to a deleted parent variant

* Add default label for variant so it doesn't look broken when new.

* Update error messaging for add top variant

* Don't allow a product to be cloned if its parent is deleted

* Updated translations and comments

* Adjust import order

* Shorten i18n text

* Fix alert display when archiving products

* Grid Publish Updates (#1824)

* Added ability to publish all items on product grid

When no items are selected on the product grid, the publish controls in
the toolbar defaults to publishing all changes to all products on the
grid.

* Update product grid display

- Add overlay to products when they are not visible
- Add indicator when products have changes
- Sort product grid after revision data is applied

* Removed sort and limit from product find

* Simplify product positions update.

Simplify update for product positions to prevent cases where updating
the size and then position will cause products to be rendered in
incorrect positions or sizes.

* Avalara Tax Reporting (#1733)

* Remove deprecated avalara package

* Replace npm package

* Add new fields

* Use new internal module

* Implement new TaxRate API

* Get and save company code

* Submittting cart to Avalara (not working yet)

* Adding JSDOc and debug

* Succesfully submitting cart to TaxRate API

* Use TaxRate API for cart calcularions

* Eliminate files for unused Avalara API

* Capturing orders for SalesInvoice

* Properly recording orders

* Recording returns

* Work around "duplicate transaction" error.

* Record refunds

* Fix typo/eslint/JSDoc issues

* Add Geocoding package

* Add Geocoding package

* Geocoding is for chumps

* Run unit tests in CI

* Add Meteor method for discoverability

* Pull up the proper geocoding function and call it

* Convert method to synchronous

* Use latest version of library

* Lengthen timeout

* simple "pass/fail" validation via geocoding

* Add USPS zipcode verification library

* Add zipcode validation to addAccount

* Fix country code fix

* Fix validation results

* Make refunds committed

* Remove zipcode validation

* Remove zipcode package

* Use Avalara validation if enabled

* Destructure and restructure address to Avalara format

* Compare addresses item by item

* Show message when addresses don't match

* Substitute validated address for entered address, show warning.

* Set dropdown values

* Have "edit" addressbook also validate address

* When no address validators are enabled, skip it

* When no address validators are enabled, skip it

* Remove providerName key

* Change method of registering addressValidation methods based on Aaron's feedback

* Add enable/disable address validation

* Handle validation messages from validator when it has additional things to say about address

* Remove generic geocoding plugin

* Changes to edit form as well

* Handles cases where address validation is not supported for this country

* Fix issue with Avalara trying to calc tax when it's not enabled.

* Only pass in taxrate if it's defined and is a number

* Reenable all tests

* Protect against being passed in an undefined order

* Fixing tests

* Trying to fix tests

* Remove running unit test

* Up the timeout on the discounts test

* Fix issue with "Expected the after hook to return a value" message

* removed "form-control" class

* Fix FireFox Admin search modal display (#1831)

* fix close button not showing in FireFox

* fix search modal display

* Fix overlapping product grid alerts (#1832)

* put grid alerts into same container

* fix spacing for visibility indicator

* Fix typo. Resolves #1828 (#1830)

* Fix typo. Resolves #1828

* Also another place with same typo

* switch email methods to use Reaction.hasPermission API (#1829)

* Resolve access-denied error on non-admin checkout (#1833)

* Use a direct import instead of a Meteor method and remove security check

* moved inventory adjustment into payment approval

* Fix height for action view - detail view (#1842)

* Fix flexbox issues with icon buttons in safari (#1840)

* Fix flex issues with detail view

* Fix accounts import (#1839)

* Added import for Meteor Accounts package.

- Also prevent Accounts (meteor) from colliding with Accounts (reaction
collection)

* Updated import order

* Aaron's fix to cart's broken urls
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.

2 participants