Right now, the FE retrieves some data from the BE (evaluation runs list,...) and then ends up calculating related information on the FE (evaluation status, evaluation score,...). This leads to inconsistencies (e.g. Different logic to calculate the same field) and increases the complexity of the codebase, making it harder whenever we need to make a change to the logic.
We need to identify what is currently being calculated by the FE and transition the logic to the BE where it makes sense. Ex: Right now the FE calculates the Evaluation score and status on the Agent detail page. There are situations where the FE can't correctly calculate and it leads to situations like this one.
Right now, the FE retrieves some data from the BE (evaluation runs list,...) and then ends up calculating related information on the FE (evaluation status, evaluation score,...). This leads to inconsistencies (e.g. Different logic to calculate the same field) and increases the complexity of the codebase, making it harder whenever we need to make a change to the logic.
We need to identify what is currently being calculated by the FE and transition the logic to the BE where it makes sense. Ex: Right now the FE calculates the Evaluation score and status on the Agent detail page. There are situations where the FE can't correctly calculate and it leads to situations like this one.