From a0d87a00136f3e27e236ec2a0dbf9fa1e7e00d54 Mon Sep 17 00:00:00 2001 From: Nicolas Drolet Date: Fri, 5 Dec 2025 16:07:12 -0500 Subject: [PATCH] feat(employee-list): complete functional advanced search for employee list enabling or disabling hide-inactive-employees will hide them or show them at the top. Also added more functionality to the search bar-- it can match many columns for terms separated by spaces in the search field. i.e. typing Bourdo and Solucom separated by commas will show all employees that have those words in any of the columns --- eslint.config.js | 5 +- src/boot/axios.ts | 1 + src/env.d.ts | 2 + src/i18n/en-ca/index.ts | 2 + src/i18n/fr-ca/index.ts | 2 + .../components/employee-list-table-item.vue | 12 +- .../components/employee-list-table.vue | 107 +++++++++++------- .../models/employee-profile.models.ts | 5 + .../components/overview-list.vue | 2 +- src/stores/store-flag.d.ts | 1 + 10 files changed, 88 insertions(+), 51 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 2498ecb..5923a57 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -63,14 +63,17 @@ export default defineConfigWithVueTs( } }, + files: ['**/*.ts', '**/*.vue'], + // add your custom rules here rules: { 'prefer-promise-reject-errors': 'off', // warn about unused but underscored variables + "@typescript-eslint/no-unused-vars": "off", 'no-unused-vars': [ 'warn', - { argsIgnorePattern: '^_' } + { argsIgnorePattern: '^_', varsIgnorePattern: '^_' } ], // allow debugger during development only diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 3ac8c4c..eb5145b 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -1,3 +1,4 @@ +/* eslint-disable */ import { defineBoot } from '#q-app/wrappers'; import axios, { type AxiosInstance } from 'axios'; diff --git a/src/env.d.ts b/src/env.d.ts index 12dcd18..dd757b1 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,3 +1,5 @@ +/* eslint-disable */ + declare namespace NodeJS { interface ProcessEnv { NODE_ENV: string; diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 70e9afa..5f04d12 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -10,6 +10,8 @@ export default { supervisor: "Supervisor", company: "Company", is_supervisor: "is a supervisor", + active: "active", + inactive: "inactive", }, }, diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 9e94c73..cc77711 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -10,6 +10,8 @@ export default { supervisor: "superviseur", company: "Compagnie", is_supervisor: "est un superviseur", + active: "actif", + inactive: "inactif", }, }, diff --git a/src/modules/employee-list/components/employee-list-table-item.vue b/src/modules/employee-list/components/employee-list-table-item.vue index ca2b4cb..652eb07 100644 --- a/src/modules/employee-list/components/employee-list-table-item.vue +++ b/src/modules/employee-list/components/employee-list-table-item.vue @@ -21,19 +21,21 @@