Skip to content

fix(embedded-forms, RenderTemplate): improve error handling#830

Open
dmitrymalk wants to merge 16 commits into
mainfrom
error-handling-forms
Open

fix(embedded-forms, RenderTemplate): improve error handling#830
dmitrymalk wants to merge 16 commits into
mainfrom
error-handling-forms

Conversation

@dmitrymalk
Copy link
Copy Markdown
Member

No description provided.

@dmitrymalk dmitrymalk requested a review from Copilot February 16, 2026 07:22
@dmitrymalk dmitrymalk changed the title Error handling forms fix(embedded-forms, RenderTemplate): improve error handling Feb 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves error handling for form loading and submission by introducing a centralized error extraction utility and suppressing global error dialogs for deployed forms in iframes that handle their own errors via postMessage.

Changes:

  • Added new error.js utility module with functions to extract user-friendly error messages from various error formats (Axios, BPM SDK) and detect specific form-related errors
  • Modified global error handler in init.js to skip error dialogs for deployed form routes ('deployed-form' and 'start-deployed-form') as they manage their own error display
  • Updated form components to use extractErrorMessage for consistent error message extraction and display custom messages for specific error patterns
  • Added translation keys for form-not-found and deployed-form-not-found errors across all language files (EN, DE, ES, RU, UA)
  • Changed default error type in RenderTemplate.vue from 'errorSaveTask' to 'SystemException'

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
frontend/src/utils/error.js New utility module with error extraction and form-specific error detection functions
frontend/src/utils/init.js Added deployed form route detection to skip global error dialogs for iframe forms
frontend/src/embedded-form/embedded-form.js Updated to use extractErrorMessage throughout and display custom messages for form errors
frontend/src/components/render-template/RenderTemplate.vue Changed default error type and fixed indentation
frontend/src/components/forms/DeployedForm.vue Added extractErrorMessage usage and custom handling for deployed form not found errors
frontend/src/components/forms/StartDeployedForm.vue Added extractErrorMessage usage for consistent error display
frontend/src/assets/translations_*.json Added formNotFound and deployedFormNotFound translation keys across all languages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/utils/error.js Outdated
Comment thread frontend/src/embedded-form/embedded-form.js Outdated
Comment thread frontend/src/embedded-form/embedded-form.js Outdated
Comment thread frontend/src/utils/error.js Outdated
Comment thread frontend/src/embedded-form/embedded-form.js Outdated
Comment thread frontend/src/components/render-template/RenderTemplate.vue
Comment thread frontend/src/components/render-template/RenderTemplate.vue
Comment thread frontend/src/utils/error.js
dmitrymalk and others added 2 commits February 16, 2026 10:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

@dmitrymalk I've opened a new pull request, #831, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

@dmitrymalk I've opened a new pull request, #832, to work on those changes. Once the pull request is ready, I'll request review from you.

@dmitrymalk dmitrymalk marked this pull request as ready for review February 16, 2026 11:52
@dmitrymalk
Copy link
Copy Markdown
Member Author

CIB7-1039

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.

4 participants