Page MenuHomePhabricator

Codex: Implement Error Handling and Display Error Message Box for API Request
Closed, ResolvedPublic

Description

Currently, our Vue.js application is making an API request without proper error handling. In the event that the API request fails, there is no mechanism to inform the user of the failure. This ticket aims to implement error handling for the API request and display an error message box to provide a better user experience and error feedback.

  • Modify the viewDiff method in the Vue component to include error handling for the API request using a .fail block.
  • Create a component or an element to display error messages to the user. If the API request fails, set an error message to be displayed to the user in the Vue component.

Use Codex component for the error message

Outcome:

MessageBox.png (1,556×517 px, 39 KB)

Event Timeline

Change 967413 had a related patch set uploaded (by Mareike Heuer; author: Mareike Heuer):

[mediawiki/extensions/FileImporter@master] Bug: T349278

https://gerrit.wikimedia.org/r/967413

WMDE-Fisch renamed this task from Implement Error Handling and Display Error Message Box for API Request to Codex: Implement Error Handling and Display Error Message Box for API Request.Oct 30 2023, 9:36 AM
WMDE-Fisch moved this task from Backlog to Tickets in sprint on the Move-Files-To-Commons board.