Skip to content

[Feature]: "Load More Articles” with Pagination in News Section #672

@Rahul-R79

Description

@Rahul-R79

Feature Type

UI/UX Enhancement

Problem Description

Hey SugarLabs Team,

Currently, the News section on the Sugar Labs website uses a “Load More Articles” button for pagination. Each click loads 6 additional cards, appending them to the existing list.

This approach creates several usability issues:

  1. To reach older or last articles, users must repeatedly click Load More, which is time-consuming.
  2. As more articles load, the page becomes very long.
  3. If a user scrolls down and then wants to return to the top or revisit a previously loaded section, they must manually scroll back through all loaded content.
  4. There is no clear indication of the total number of pages or the user’s current position in the content.

Impact on User Experience

  1. Poor navigation for users who want to browse older news.
  2. Increased scrolling effort, especially on mobile devices.
  3. Reduced accessibility and discoverability of content.
  4. Not ideal for users who want to jump directly to a specific section or page.

Proposed Solution

Replace the “Load More Articles” button with a standard pagination system

Key Benefits of Pagination

  • Users can directly navigate to any page without loading all articles.
  • Clear visibility of total pages and current page.
  • Faster access to older content.
  • Reduced scrolling and better performance.
  • Improved accessibility and overall user experience.
  • More familiar and intuitive interaction pattern for users.

Alternative Solutions

No response

Mockups or Examples

BEFORE

Image

AFTER

Image

Implementation Details

Pagination Logic

  • Replace the existing “Load More Articles” button with a page-based pagination system.
  • Display a fixed number of articles per page (e.g., 6 articles per page, matching the current behavior).
  • Fetch and render articles based on the selected page number instead of appending all previous results.

Frontend Changes

  • Introduce a reusable Pagination component below the news cards.
  • Include: Page numbers (e.g., 1, 2, 3…), Previous and Next navigation buttons, Highlight the active page clearly, Smoothly scroll the page to the top when a new page is selected.

Styling & Theme Consistency

  • Style the pagination buttons using the existing website color theme to maintain visual consistency.
  • Use the same typography, border radius, hover states, and spacing already defined in the design system.
  • Ensure clear visual feedback for: Active page, Hover state etc..

Responsiveness & Accessibility

  • Ensure pagination works seamlessly across desktop, tablet, and mobile devices.
  • On smaller screens: Reduce visible page numbers or use a compact layout, Add accessibility support, Proper ARIA labels, Keyboard navigation support, Screen-reader friendly buttons

Performance Considerations

  • Load only the required articles for the selected page to avoid unnecessary data rendering.
  • Prevent loading all articles at once, improving page performance and memory usage.
  • Cache previously visited pages where applicable to reduce repeated requests.

Additional Context

No response

Code of Conduct

  • I have searched for similar feature requests before creating this one
  • I understand this is a feature request for the website only, not Sugar Labs software
  • I agree to follow the project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions