Skip to content

Commit

Permalink
Add total result 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:
- The package list subtitle now indicates which packages are currently
  displayed as well as the total number of results, e.g. "Showing 1 - 20
  of 228"
- The pager is only shown if there are more results than the page
  limit, i.e. if 27 results are returned an the page limit is 20
- The pager includes individual page links for up to 11 pages
- If more than 11 pages of results are returned, "First" and "Last"
  page links are shown
- The pager page list includes ellipses to indicate when their are more
  pages then the indivdual page links shown. I.e. if 15 pages of
  results are returned and the current page is page 1, then an list item
  containing an ellipsis is shown after the list item for page 11.
  • Loading branch information
djjuhasz committed Oct 3, 2024
1 parent f6bf851 commit 7ea9144
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 296 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 7ea9144

Please sign in to comment.