redo photo upload screen as per mock
- instead of saving cloudinary image ids to local storage add to item and save at api in draft state, plan to add new state to item once complete, this is to allow cleanup of cloudinary images for incomplete items
- merge new/edit item pages
- move page specific css to it's own css file located under app/styles/templates folder for edit_images, loading and notification pages
- change cloudinary-upload component to be self contained by exposing events to indicate progress instead of accessing dom elements outside the component
Redirect to login screen instead of welcome screen on authentication expiry
Move text into translation file, remove duplicate class attribute in edit_images template
Fix edit page after edit_image page changes, show progress indicator on save, move page specific css into its own file
Update image thumbnail templates
- rename item.defaultImage to item.displayImage to be consistent with offer.displayImage
- only define one image url for thumb images and use css to resize so we get benefit from image caching
- bind image.thumbImageUrl instead of image.imageId so cloudinary is less coupled and can be more easily replaced if needed in future
- rename .thumb to .list-image since it's purpose is positioning images in lists, then rename .thumb-img to .thumb since it's purpose is styling thumbnails
Fix alignment of image on offer item list by copying offer list
Change item state to submitted via state events instead
Prevent last image from being deleted
If favourite image deleted set next image as favourite
Remove image sort because new image (id=0) initially appears at start then few seconds later moves to end (id=X)
Remove css class properties since bind-attr supports true/false toggle inline
Move sync-data to ApplicationRoute so no longer need to duplicate error handling and is easier to mock in tests
Move global error handler back to controller since it's accessing logMeOut action
Promises wrapped in all or allSettled don't trigger RSVP.on("error") so still need to manually catch error
Found jqXHR missing url on error in ajax-promise so add to help with diagnostic
Update ember-data, ember-data-factory-guy bring back mockjax
Mockjax will allow us to use factory-guy and create individual data specific to a test unlike ember http-mock
Add sorting back in for images on edit_images so setting next image after deleting favourite seems less random
Fix edit-images-tests
Fix remaining tests, fix item display page I'd missed we had
Merge master to image-upload-changes branch
Merge master with image-upload-changes
Hide draft items from various screens
Merge pull request #38 from crossroads/image-upload-changes

Image upload changes