From 556da71bab0ae3c1cd43c70bd2eb26515c52d289 Mon Sep 17 00:00:00 2001 From: Arunit Date: Sun, 27 Jul 2025 19:21:11 +0530 Subject: [PATCH] feat(frontend): added filtering,searching and sorting - added new FilterPanel to handle filters - used two way bindings for reactivity Closes #231 --- backend/.gitignore | 1 + frontend/components/FilterPanel.vue | 154 ++++++++++++++ frontend/components/ProductTable.vue | 300 ++++++++++++++------------- frontend/pages/manageProduct.vue | 85 ++++++-- 4 files changed, 377 insertions(+), 163 deletions(-) create mode 100644 frontend/components/FilterPanel.vue diff --git a/backend/.gitignore b/backend/.gitignore index 82e83ca..3bde13f 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -104,3 +104,4 @@ db.sqlite3 venv .env .vscode +.python-version \ No newline at end of file diff --git a/frontend/components/FilterPanel.vue b/frontend/components/FilterPanel.vue new file mode 100644 index 0000000..9ce4674 --- /dev/null +++ b/frontend/components/FilterPanel.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/frontend/components/ProductTable.vue b/frontend/components/ProductTable.vue index 8ffc23d..8ce3349 100644 --- a/frontend/components/ProductTable.vue +++ b/frontend/components/ProductTable.vue @@ -1,10 +1,10 @@