Skip to content

feat(dir): use total_count in ListAgents and AI Catalog UI - #1875

Merged
csirmazbendeguz merged 1 commit into
mainfrom
fix/total-count
Jul 23, 2026
Merged

csirmazbendeguz merged 1 commit into
mainfrom
fix/total-count

Conversation

@csirmazbendeguz

@csirmazbendeguz csirmazbendeguz commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

let's display the proper count on the AI Catalog instead of calculating it from the fetched items

this PR will display the count of the filtered items, which is consistent with the current behaviour ...


but we could consider displaying the count of ALL AI cards indexed here + add a new count for the filtered results.
so top right corner count = all
top of the list count = filtered count

which I think is better design? not sure

Screenshot 2026-07-23 at 10 38 07

@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped✅ passedJul 23, 2026, 8:37 AM

@github-actions github-actions Bot added the size/S Denotes a PR that changes 50-199 lines label Jul 23, 2026
@csirmazbendeguz
csirmazbendeguz marked this pull request as ready for review July 23, 2026 08:26
@csirmazbendeguz
csirmazbendeguz requested a review from a team as a code owner July 23, 2026 08:26
Signed-off-by: Bendegúz Csirmaz <[email protected]>
 Please enter the commit message for your changes. Lines starting
@csirmazbendeguz
csirmazbendeguz force-pushed the fix/total-count branch 3 times, most recently from 9e2737b to 4ed8c1b Compare July 23, 2026 08:49
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.85714% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/database/gorm/catalog.go 60.9% 5 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

@paralta paralta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Would be nice to see both counts (total on top + filtered on top of record cards as suggested) ✅

@csirmazbendeguz
csirmazbendeguz merged commit c0ddf33 into main Jul 23, 2026
41 checks passed
@csirmazbendeguz
csirmazbendeguz deleted the fix/total-count branch July 23, 2026 09:09
@csirmazbendeguz

Copy link
Copy Markdown
Contributor Author

thanks @paralta , I'm going to add that in a next PR then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 50-199 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(catalog): server-side tag/trusted filtering and pagination for AI Catalog UI

2 participants