Skip to content

fix(FR-890): Fix pagination count issue in agent summary table #3567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Apr 23, 2025

Resolves #3566 (FR-890)

Fix pagination total count in AgentSummaryList

This PR updates the pagination total count in the AgentSummaryList component to use the length of the filtered agent summary list instead of the total count from the agent summary list. This ensures that the pagination accurately reflects the number of items currently being displayed after filtering.

Checklist:

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup): dogbowl
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the size:XS ~10 LoC label Apr 23, 2025
@agatha197 agatha197 requested a review from yomybaby April 23, 2025 04:33
Copy link

github-actions bot commented Apr 23, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 3.93% 409/10408
🔴 Branches 3.3% 240/7277
🔴 Functions 2.39% 79/3299
🔴 Lines 3.87% 394/10185

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 251d35d

@yomybaby yomybaby requested a review from Copilot May 20, 2025 01:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the pagination total count in the AgentSummaryList component so that it reflects the number of filtered agent summaries rather than the entire list.

  • Replaces the use of agent_summary_list.total_count with filteredAgentSummaryList.length for the pagination total.
  • Updates the pagination configuration in AgentSummaryList to accurately display the count after filtering.

Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

graphite-app bot commented May 22, 2025

Merge activity

Resolves #3566 ([FR-890](https://lablup.atlassian.net/browse/FR-890))

# Fix pagination total count in AgentSummaryList

This PR updates the pagination total count in the AgentSummaryList component to use the length of the filtered agent summary list instead of the total count from the agent summary list. This ensures that the pagination accurately reflects the number of items currently being displayed after filtering.

**Checklist:**

- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review (eg., KB link, endpoint or how to setup): dogbowl
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after

[FR-890]: https://lablup.atlassian.net/browse/FR-890?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@graphite-app graphite-app bot force-pushed the fix_FR-890_/fix-pagination-count-in-agent-summary-table branch from b2c9448 to 251d35d Compare May 22, 2025 02:14
@graphite-app graphite-app bot merged commit 251d35d into main May 22, 2025
8 checks passed
@graphite-app graphite-app bot deleted the fix_FR-890_/fix-pagination-count-in-agent-summary-table branch May 22, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix pagination count issue in agent summary table
2 participants