ai-cfia / fertiscan-frontend

Frontend code for the `Fertiscan` project
MIT License
2 stars 1 forks source link

As a dev, I want to refactor the user page call `DashboardPage` component. #283

Open SamuelPelletierEvraire opened 1 month ago

SamuelPelletierEvraire commented 1 month ago

Description

Refactor the user information that wasn't include previously in the project

Prototype

Dashboard design

image

Header button to go to dashboard

Header button to go to dashboard

Animation on dashboard

Animation dashboard page

Tasks

Implement the dashboard page for user information.

Acceptance Criteria

Additional information

Figma design (Please note that the dimension on the design are not accurate)

https://www.figma.com/design/wZAiODRsAfqa8cAxJtQAYr/Untitled?node-id=0-1&t=jbtVtLENKlvQoKjX-1

SamuelPelletierEvraire commented 1 month ago

@Francois-Werbrouck can it be possible to add this since it is not a sensitive data? (I need more data on user to full fill the dashboard page more professionally

  • [ ] The page contain the location of the inspector (For now this information is not include into our database)
SamuelPelletierEvraire commented 1 month ago

@Francois-Werbrouck

Can it be possible to include picture only for this page. The picture would be loaded by pagination request of 10 to reduce the the loading time. Since inspector would not have 2000 label on is account I thinks this would not be a big difference. Feel free to rectify me if this is not a good idea.

SamuelPelletierEvraire commented 1 month ago

@Francois-Werbrouck @k-allagbe is this possible to include to put more information on the dashboard?

  • [ ] The page contain the number of inspection done by the user (For now this information is not include into our database).
Francois-Werbrouck commented 1 month ago

to put more information on the dashboard?

Yes but is it relevant information? (Number of inspection can be calculated easily)


Can it be possible to include picture only for this page.

Yes one of the 'restriction' we currently have is the picture are store inside the the user's container. We can easily fetch the user's own pictures.

I'm still uncertain about how we want to handle the pagination. Fetching the data from the DB is quicker in one go. However, loading the blobs (picture files) could be done by batch of 10.

I dont know about the best practice of pagination. There probably exists design pattern for such tasks.


Can it be possible to add [the location of the user] since it is not a sensitive data? (I need more data on user to full fill the dashboard page more professionally

I mean, sure; However that means requiring the user to fill in that data when creating its account. We have no way of knowing the user's name, location, email, etc. if it isn't provided to us manually. I get you want the dashboad to look more "professional", but adding those field doesn't bring much value in the eyes of the Inspector nor does it bring value to our prototype. I'd leave displaying extra data for later on in the life cycle of our project.

k-allagbe commented 1 month ago

I agree with @Francois-Werbrouck. Let's keep in mind the objective of just giving a more professional look to what we currently have, without requiring too many additional features or core data modification.