[FE] Alert Rule Templates: Pagination

Description

User story:

  • As a PMM Admin user, I need to be able to use pagination on Alerts Rule Templates Page so that I'll be able to configure a more suitable way of presenting data for me

UI/UX:

  • See Figma

Acceptance criteria

  • The user is able to see the Pagination element and use it

  • the default value is 25 items per page

  • the values in the "per page" selector: 25-50-100 (as in QAN)

Out of scope:

  • persist pagination settings across browsers for the user

Suggested implementation:

TBD

Details:

TBD

How to test

None

How to document

None

Smart Checklist

Activity

Show:

Zoriana Stefanyshyn March 8, 2021 at 8:13 AM

Verified on pmm-server-fb:PR-1570-4179f94.

Fábio Da Silva March 1, 2021 at 3:37 PM

Now that this call becomes paginated, one question arises: on the alert rule addition modal, we need to call the API to get the templates, which means we probably want to request all results. Being so, are we comfortable with doing something along these lines for the request ?:

  • index: 0

  • page_size: <sufficiently big number to retrieve all templates>

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Fix versions

Story Points

Sprint

Smart Checklist

Created February 12, 2021 at 10:15 PM
Updated March 6, 2024 at 3:12 AM
Resolved April 16, 2021 at 2:56 PM