updates on the bookings page and updated ai and more thngs

This commit is contained in:
2026-09-11 11:20:38 +05:30
parent 1caa7b71a9
commit 49ee0c5076
40 changed files with 5796 additions and 359 deletions

View File

@@ -404,9 +404,12 @@ export const getBookings = async (pageno, pagesize) => {
//
// getBookings returns `response.data.data` — just the rows — which means no
// caller can tell a full result from a truncated one. `pagesize` is capped at
// 1000 server-side (express-console-api.md, "Conventions": default 500, cap
// 1000), so any account with more than 1000 bookings silently gets a partial
// list from a single call. That's tolerable for a paginated table (it fetches
// 100 server-side, and the default is 20 — NOT "default 500, cap 1000", which
// is what express-console-api.md said until it was corrected. Asking for 1000
// returns 100 rows and an envelope whose own `pagesize` reads 100, so the
// under-fetch is silent unless you check it. Any account with more than 100
// bookings therefore gets a partial list from a single call. That's tolerable
// for a paginated table (it fetches
// the next page as you scroll) but NOT for anything that counts or sums, which
// would report a confidently wrong number.
//