Skip to content

feat(components): visualize api errors for steppers#1931

Open
huzaifaedhi22 wants to merge 13 commits intomainfrom
feat/errors/steppers
Open

feat(components): visualize api errors for steppers#1931
huzaifaedhi22 wants to merge 13 commits intomainfrom
feat/errors/steppers

Conversation

@huzaifaedhi22
Copy link
Copy Markdown
Contributor

📚 Description

This PR visualizes api errors for

  • early bird
  • password reset request
  • password reset
  • event report

📝 Checklist

  • All commits follow the Conventional Commit format or I'm fine with a squash merge of this PR
  • The PR's title follows the Conventional Commit format

@dargmuesli dargmuesli requested review from dargmuesli and removed request for dargmuesli May 14, 2025 04:27
@huzaifaedhi22 huzaifaedhi22 requested a review from dargmuesli May 14, 2025 23:29
if (result.error || !result.data) return

if (result.error || !result.data) {
modelError.value = new Error()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why an empty error here instead of adding a watch on api.value.errors as in the other places?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This function is going to fail silently (security reasons) and their would be no error response from backend so I suppose we only need to take care of broken network connection.

@dargmuesli dargmuesli changed the title feat(api-errors): visualize for steppers feat(components): visualize api errors for steppers May 15, 2025
@huzaifaedhi22 huzaifaedhi22 requested a review from dargmuesli May 15, 2025 22:57
createdBy: accountId,
},
})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no need to remove empty lines before if statements, we have them all across the code

text: t('globalErrorNoData'),
title: t('globalError'),
})
error.value = new Error(t('globalError'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not globalErrorNoData anymore?

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 28, 2025

CLA assistant check
All committers have signed the CLA.

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.

3 participants