Reduce default pagination limit to 10 and add description column to

transactions table

Add description column to the Transactions page with ellipsis styling
for long text
Update default limit from 20 to 10 across all paginated endpoints
(deals, transactions, and upload confirmation)
This commit is contained in:
2026-05-05 23:58:46 +08:00
parent fa33128506
commit 9aa5b48b5f
4 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ router.get("/", (req, res) => {
const db = getDB();
const {
page = 1,
limit = 20,
limit = 10,
start_date,
end_date,
category,
+1 -1
View File
@@ -11,7 +11,7 @@ router.get("/", (req, res) => {
const {
page = 1,
limit = 20,
limit = 10,
start_date,
end_date,
source_type,
+1 -2
View File
@@ -155,7 +155,7 @@ router.post("/confirm", (req, res) => {
const ins = db.prepare(`INSERT OR IGNORE INTO transactions (
transaction_code, source_id, source_type, transaction_date, transaction_time,
counterparty, description, notes, amount, direction, status, method, balance
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)`);
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)`);
let inserted = 0,
skip = 0;
@@ -180,7 +180,6 @@ router.post("/confirm", (req, res) => {
tx.status || "",
tx.method || "",
tx.balance || null,
null,
);
if (r.changes > 0) inserted++;
else skip++;