kaliberjs / kaliberjs/pagination

Gap when no gap is needed

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Sometimes a gap is shown when the gap only represents a single number. In this case, the gap could show the number instead.

For example:
![image](https://user-images.githubusercontent.com/4712314/168552897-f7821309-f994-438a-8d38-e38a33b5b147.png)

This could be rendered as:

[1, ..., 12, 13, 14, 15, 16]

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the pagination-array entry point and reproduce the example where a gap represents only one number. Verify that this singleton gap is rendered as the number itself, while multi-number gaps still use the existing gap marker and the shown example produces the requested array.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.