FEAT: Increase pagination limits to improve data display and update version to 1.2.1

This commit is contained in:
Dries Augustyns
2025-08-22 14:35:05 +02:00
parent 7a047f11d8
commit 4fe90adf1e
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plunk", "name": "plunk",
"version": "1.2.0", "version": "1.2.1",
"private": true, "private": true,
"license": "agpl-3.0", "license": "agpl-3.0",
"workspaces": { "workspaces": {
+2 -2
View File
@@ -33,8 +33,8 @@ export class ProjectService {
emails: { select: { createdAt: true } }, emails: { select: { createdAt: true } },
}, },
orderBy: [{ createdAt: "desc" }], orderBy: [{ createdAt: "desc" }],
take: 20, take: 100,
skip: (page - 1) * 20, skip: (page - 1) * 100,
}); });
}); });
}, },
@@ -237,8 +237,8 @@ export default function Index() {
<nav className="flex items-center justify-between py-3" aria-label="Pagination"> <nav className="flex items-center justify-between py-3" aria-label="Pagination">
<div className="hidden sm:block"> <div className="hidden sm:block">
<p className="text-sm text-neutral-700"> <p className="text-sm text-neutral-700">
Showing <span className="font-medium">{(page - 1) * 20}</span> to{" "} Showing <span className="font-medium">{(page - 1) * 100}</span> to{" "}
<span className="font-medium">{page * 20}</span> of <span className="font-medium">{filtered.length}</span>{" "} <span className="font-medium">{page * 100}</span> of <span className="font-medium">{contacts.count}</span>{" "}
contacts contacts
</p> </p>
</div> </div>