mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* Allow Linear context issue lists to load more Co-authored-by: Orca <help@stably.ai> * Simplify Linear load more footer copy Co-authored-by: Orca <help@stably.ai> * Page Linear issue reads past backend cap Co-authored-by: Orca <help@stably.ai> * Align Linear load more footer with GitHub pager Co-authored-by: Orca <help@stably.ai> * Use pager for Linear issue lists Co-authored-by: Orca <help@stably.ai> * Avoid phantom Linear issue pages Co-authored-by: Orca <help@stably.ai> * Fix local Linear issue pagination cap Co-authored-by: Orca <help@stably.ai> * Fix Linear pagination review issues Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Orca <help@stably.ai>
7 lines
258 B
TypeScript
7 lines
258 B
TypeScript
export const LINEAR_ISSUE_LIST_MAX = 216
|
|
export const LINEAR_ISSUE_API_PAGE_SIZE_MAX = 50
|
|
|
|
export function clampLinearIssueListLimit(limit: number | null | undefined): number {
|
|
return Math.min(Math.max(1, Math.floor(limit ?? 20)), LINEAR_ISSUE_LIST_MAX)
|
|
}
|