47de5373b1 fix: add page size selector to CardsWithPagination (#253)
* fix: add page size selector to CardsWithPagination

Add an optional pageSizeOptions prop to CardsWithPagination that renders
a "Cards per page" dropdown selector, consistent with the existing
TablePaginationSize pattern used in DataTable.

- New PaginationSize component (standalone, no TanStack Table dependency)
- CardsWithPagination: manage pageSize as state, reset to page 1 on change
- Project databases page: increase default from 6 to 20, add selector [10, 20, 50]
- Projects list page: increase default from 9 to 12, add selector [12, 24, 48]
- Fully backward compatible: without pageSizeOptions, behavior is unchanged

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address CodeRabbit review feedback

- Validate pageSize in handlePageSizeChange (reject 0/negative/NaN)
- Guard empty pageSizeOptions array from rendering empty selector
- Restore className on PaginationNavigation for backward compatibility
- Add aria-label to SelectTrigger for accessibility on small screens

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(pagination-size): fallback to pageSizeOptions[0] when pageSize not in options

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(pagination-size): fix pageSize is not defined (placeholder ref)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 20:16:15 +02:00
2026-03-07 12:43:18 +01:00
2026-03-07 12:55:54 +01:00
2026-03-31 15:08:31 +02:00
2025-07-27 21:26:31 +02:00
2025-01-02 17:58:14 +01:00
2026-03-07 12:04:22 +01:00
2026-04-02 17:47:39 +00:00
2025-11-08 20:07:49 +01:00
2026-02-27 10:54:10 +01:00
2025-05-16 15:54:17 +02:00
2025-11-07 22:04:10 +01:00
2025-08-07 15:46:41 +02:00
fix
2026-02-12 15:48:51 +01:00
2026-04-02 17:47:39 +00:00
fix
2026-02-18 18:24:56 +01:00
2025-05-16 15:54:17 +02:00
2026-04-01 17:22:21 +02:00
2025-11-03 11:37:14 +01:00


Logo

Portabase

Portabase is a tool designed to simplify the backup and restoration of your database instances. It integrates seamlessly with Portabase agents for managing operations securely and efficiently.

License: Apache Docker Pulls Helm Chart Platform Support Portabase

PostgreSQL MySQL MariaDB SQLite Redis MongoDB Valkey Firebird

Self Hosted Open Source

NextJS BetterAuth Drizzle ShadcnUI Docker

WebsiteDocumentationDemoInstallationReport BugRequest Feature

portabase-dashboard

Installation

You have 4 ways to install Portabase:

Ensure Docker is installed on your machine before getting started.

Supported databases

Engine Support Supported Versions Restore
PostgreSQL Stable 12, 13, 14, 15, 16, 17 and 18 Yes
MySQL Stable 5.7, 8 and 9 Yes
MariaDB Stable 10 and 11 Yes
MongoDB Stable 4, 5, 6, 7 and 8 Yes
SQLite Stable 3.x Yes
Redis Stable 2.8+ No
Valkey Stable 7.2+ No
Firebird Stable 3.0, 4.0, 5.0 Yes
MSSQL Server Ongoing - Yes

See the Database Servers documentation for version-specific backup and restore details.

Contributors

Contributors

"Support Portabase"

License

Distributed under the Apache License. See LICENSE.txt for more details.

Languages
TypeScript 98.5%
JavaScript 0.4%
Shell 0.4%
CSS 0.3%
Dockerfile 0.2%
Other 0.2%