Implementing the edit mentor application view in ScholarX

Hi all,
I’ve assigned to implement the following task.
In the ScholarX platform, a user should be able to apply as a mentor for a specific program that is in the MENTOR_APPLICATION lifecycle state. Furthermore, the application should be editable within the lifecycle as well.

The apply functionality is already implemented and here’s a screenshot of the view:

The goal of this task is to implement the edit functionality of the same application that allows the user to edit their own application. In order to achieve it, I’m planning to use GET: programs/{programId}/mentor/application API to retrieve data of the submitted application and pre-fill the form when the user visits the view. The PUT: programs/{programId}/mentor/application API will be used to submit the changed data.

Since we are considering only the happy path in this stage, the following would not be developed,

  • Considering the program’s current lifecycle
  • Adding form validations

Here’s the Github issue for the above task:

Here’s the PR for the above task: