blablageeks / open-shop

A simple open-source project using HTML, CSS, and Alpine.js to manage dummy ecommerce products.
MIT License
0 stars 3 forks source link

Add pagination system #2

Open denisakp opened 5 months ago

denisakp commented 5 months ago

Is your feature request related to a problem? Please describe

Users find it frustrating to scroll endlessly through large listings of items. As our project grows and the number of entries increases, accessing the products list gets more difficult and time-consuming, potentially leading to a negative user experience.

Describe the solution you'd like

Implement a pagination system that initially displays 8 items per page. Users would be able to navigate additional pages using a pagination control, including "First", "Prev", "Next", and "Last" buttons.

Use Case and Benefits

Potential Challenges

The main challenge in implementing a pagination system involves updating how we're currently processing the products data inside the Alpine x-data section.

Suggested Implementation

Implement the pagination system using "First", "Prev", "Next", and "Last" buttons as part of the user interface. You can find a sample pagination model from Flowbite

Impact on Existing Features

This feature is expected to integrate well with upcoming features like search bar and product filtering

Describe alternatives you've considered

An alternative considered was infinite scrolling, which continuously loads content as the user scrolls down. However, this approach may not suit our needs as well.

Additional context

N/A

adityapande403 commented 4 months ago

Can I get this issue assigned to me?

denisakp commented 4 months ago

Can I get this issue assigned to me?

Absolutely, feel free to fork the repo and start working on the issue! I appreciate your initiative and am looking forward to seeing your contributions. If you need any guidance or have any questions as you go along, please don't hesitate to ask. Happy coding!