ucsb-cs156 / proj-happycows

https://ucsb-cs156.github.io/proj-happycows/
1 stars 0 forks source link

FEATURE: Refactor Ourtable component to be a pagination table #81

Closed LeonFeng0325 closed 5 months ago

LeonFeng0325 commented 11 months ago

Have you updated the title?

As a...

user

I can...

paginate my table

So that...

If there is a lot of data I can read all the data page by page of certain size instead of having to scroll constantly

Discussion

  1. Currently, OurTable.js component doesn't have a pagination feature, and all data will be rendered in a long list. As you can see, users have to scroll the web page if we have a lot of data, which is not ideal.

    Screenshot 2023-11-13 at 3 13 25 PM
  2. The goal of this feature is to add pagination so that users will only see certain number of rows of data at a time and they can use pagination to see more if they want to, providing better user experience.

    Screenshot 2023-11-12 at 3 54 52 PM
  3. The mockup UI above shows what a pagination table look like.

  4. Students can decide a default size for each page on their own. Our recommendation will be 10 entries per page.

  5. There are many ways to implement this feature and we will leave it up to students on how to do this feature.

Acceptance Criteria

Implementation Todos

Frontend:

Testing: