3 Frontend model
b24idalu edited this page 2026-05-26 12:30:22 +00:00

Frontend models

Frontend Dataflow

The Activity Diagram

Illustrates the flow and communication between different frontend files. After React starts we call the view we want depending on what the card should show. We then set the initial state to loading, fetch the desired data and change the state depending on if the data was fetched successfully or not. If an error occurred, we should get a message displaying the error. If data was fetched succesfully, we use the existing "Card" to display the data with the correct layout.