From 624a0f8ebe4d2083526c0df41b344181cfcbb912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= <14975046+skjnldsv@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:13:14 +0100 Subject: [PATCH] feat(employees): show 200 people before "Load more" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HR's employee list showed 50 people and added 50 per "Load more", so a company of 160 took three clicks to see in full. It now shows 200 first; "Load more" still adds 50. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com> --- src/views/hr/HrEmployees.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/hr/HrEmployees.vue b/src/views/hr/HrEmployees.vue index 734c57bd..aaad8571 100644 --- a/src/views/hr/HrEmployees.vue +++ b/src/views/hr/HrEmployees.vue @@ -297,7 +297,9 @@ interface EditedEntitlement { balance: BalanceRow } -/** Rows shown at first and added by "Load more" */ +/** Rows shown at first: the whole company on most installs */ +const FIRST_PAGE = 200 +/** Rows "Load more" adds */ const PAGE = 50 const matches: Record boolean> = { @@ -315,7 +317,7 @@ const employeesGroupName = ref('') const contacts = ref(false) const search = ref('') const filter = ref('all') -const limit = ref(PAGE) +const limit = ref(FIRST_PAGE) const year = ref(currentYear) const years = [currentYear - 1, currentYear, currentYear + 1] const sessionStore = useSessionStore() @@ -355,11 +357,11 @@ watch(year, () => { }) watch(search, () => { - limit.value = PAGE + limit.value = FIRST_PAGE }) watch(filter, () => { - limit.value = PAGE + limit.value = FIRST_PAGE }) onMounted(() => {