Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat(default-theme): display 400 errors right from the API #572

Merged

Conversation

mkucmus
Copy link
Collaborator

@mkucmus mkucmus commented Mar 31, 2020

closes #555

  • fixes my-account update forms issues
  • displaying appropriate error messages that come from API in case of 400 (bad request)

Checklist

@github-actions
Copy link

github-actions bot commented Mar 31, 2020

💙 shopware-pwa successfully deployed at https://d430480fec104b6cc21d6b858e61da6985b6c3e5.shopware-pwa.preview.storefrontcloud.io

@mkucmus mkucmus requested a review from patzick March 31, 2020 20:59
Copy link
Collaborator

@patzick patzick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just small simplification for error computed sections in components :)

Comment on lines 83 to 84
userError,
getMessagesFromErrorsArray
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
userError,
getMessagesFromErrorsArray
userErrorMessages

Comment on lines 94 to 102
computed: {
useUserErrorMessages() {
// all the 400 errors are in a raw format stright from the API - to be extracted easily depeding on needs.
return (
this.userError &&
this.getMessagesFromErrorsArray(this.userError.message)
)
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then we don't need this computed section in components

Copy link
Collaborator

@akrajna akrajna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On iOS during registration there is a problem with scrolling to the place where 'Don't have and account yet? Register today? ' is written.
RejestracjaiOS
Tested on browserstack.

methods: {
async invokeUpdate() {
const emailChanged = await this.updateEmail({
email: this.email,
confirmEmail: this.confirmEmail,
emailConfirmation: this.confirmEmail,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Michal-Dziedzinski tu jest fix

@Michal-Dziedzinski
Copy link
Collaborator

also closes; #416

@mkucmus mkucmus requested a review from patzick April 7, 2020 07:02
@mkucmus
Copy link
Collaborator Author

mkucmus commented Apr 7, 2020

On iOS during registration there is a problem with scrolling to the place where 'Don't have and account yet? Register today? ' is written.
RejestracjaiOS
Tested on browserstack.

thanks @akrajna 👍, could you create a new issue regarding this?

@akrajna
Copy link
Collaborator

akrajna commented Apr 7, 2020

@mkucmus the issue have been created #591 :-)

@mkucmus
Copy link
Collaborator Author

mkucmus commented Apr 8, 2020

@mkucmus the issue have been created #591 :-)

thanks!

@patzick as you can see - it's ready 👍

@patzick patzick merged commit 859c6cc into master Apr 9, 2020
@patzick patzick deleted the feat/consistent-api-errors-reporting-for-customer-#555 branch April 9, 2020 07:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the registration process consistent in terms of API errors notofications
4 participants