Skip to content

fix: improve license section filtering and header counts#47

Merged
Petrica-B merged 1 commit intomainfrom
develop
Feb 17, 2026
Merged

fix: improve license section filtering and header counts#47
Petrica-B merged 1 commit intomainfrom
develop

Conversation

@aledefra
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 17, 2026 13:45
@cloudflare-workers-and-pages
Copy link

Deploying ratio1-dapp-test with  Cloudflare Pages  Cloudflare Pages

Latest commit: 631a8cf
Status: ✅  Deploy successful!
Preview URL: https://814cf500.ratio1-dapp-test.pages.dev
Branch Preview URL: https://develop.ratio1-dapp-test.pages.dev

View logs

@Petrica-B Petrica-B merged commit 1212d54 into main Feb 17, 2026
7 checks passed
Copy link

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 an issue with license section headers showing incorrect counts. Previously, section headers displayed only the count of licenses visible on the current page. Now they correctly show the total count of all filtered licenses across all pages, while still only rendering licenses for the current page.

Changes:

  • Renamed filterLicensesOfType to getPageLicensesOfType to clarify it filters licenses for the current page
  • Added getFilteredLicensesCountOfType to count all filtered licenses of a type across all pages
  • Updated section headers to display total filtered license counts instead of current page counts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments