Skip to content

Commit

Permalink
Add total package count and improved pager
Browse files Browse the repository at this point in the history
Fixes #988: The package list shows the total number of packages found,
before paging.

Other changes:
- Show text indicating which packages are currently displayed as well
  as the total number of results, e.g. "Showing 1 - 20 of 228"
- Show the pager only when there are more results than the page
  limit, e.g. if 27 results are returned an the page limit is 20
- Include individual page links for up to 7 pages
- Show "first" and "last" page links when more than 7 pages of results
  are returned
- Show an ellipsis before or after the page links to indicated there are
  more pages than the page links show
- Hide page links and ellipses on narrow screens
  • Loading branch information
djjuhasz committed Oct 11, 2024
1 parent f6bf851 commit 566cfca
Show file tree
Hide file tree
Showing 15 changed files with 650 additions and 297 deletions.
2 changes: 0 additions & 2 deletions dashboard/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { usePackageStore } from "./stores/package";
export interface Client {
package: api.PackageApi;
storage: api.StorageApi;
upload: api.UploadApi;
connectPackageMonitor: () => void;
}

Expand Down Expand Up @@ -79,7 +78,6 @@ function createClient(): Client {
return {
package: new api.PackageApi(config),
storage: new api.StorageApi(config),
upload: new api.UploadApi(config),
connectPackageMonitor,
};
}
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/openapi-generator/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 77 additions & 12 deletions dashboard/src/openapi-generator/apis/PackageApi.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 0 additions & 91 deletions dashboard/src/openapi-generator/apis/UploadApi.ts

This file was deleted.

1 change: 0 additions & 1 deletion dashboard/src/openapi-generator/apis/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 566cfca

Please sign in to comment.