From ede602abbe0cdf0d80a9de19302d657ff86d4a23 Mon Sep 17 00:00:00 2001 From: Ashwin Date: Sat, 7 Jun 2025 15:39:31 +0530 Subject: [PATCH] feat: enhance accessibility by adding labels to input fields across various components --- .github/copilot-instructions.md | 24 +++++++ .vscode/settings.json | 13 +++- src/routes/(admin)/+layout.svelte | 2 + .../admin/blogs/[id]/edit/+page.svelte | 67 ++++++++++--------- src/routes/(app)/app/accounts/+page.svelte | 4 ++ src/routes/(app)/app/invoices/+page.svelte | 9 ++- src/routes/(app)/app/leads/open/+page.svelte | 14 ++-- .../(app)/app/opportunities/+page.svelte | 4 ++ src/routes/(app)/app/tasks/+page.svelte | 3 +- src/routes/(app)/app/users/+page.svelte | 2 + src/routes/(site)/+layout.svelte | 2 + .../features/contact-management/+page.svelte | 3 +- src/routes/(site)/migration/+page.svelte | 2 + 13 files changed, 106 insertions(+), 43 deletions(-) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..4e66d70 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,24 @@ +Dear Copilot, + +## Project Overview + +BottleCRM is a dynamic, SaaS CRM platform designed to streamline the entire CRM needs of startups and enterprises. Built with modern web technologies, it offers a seamless experience for users through robust role-based access control (RBAC). Each user role is equipped with tailored functionalities to enhance efficiency, engagement, and management, ensuring a streamlined and secure business process. + +user types we have + +- Org + - user(s) + - Admin +- super admin - anyone with @micropyramid.com email to manage whole platform + +## Project Context + +BottleCRM is a modern CRM application built with: +- **Framework**: SvelteKit 2.21.x, Svelte 5.x, Prisma +- **Styling**: tailwind 4.1.x css +- **Database**: postgresql +- **Icons**: fontawesome, we are migrating to lucide icons + +## Important Notes +- We need to ensure access control is strictly enforced based on user roles. No record is accessible unless the user or the org has the appropriate permissions. +- When implementing forms in sveltekit A form label must be associated with a control \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 981fc08..6ebefa2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,16 @@ "[svelte]": { "editor.tabSize": 2, "editor.insertSpaces": true - } + }, + "github.copilot.chat.codeGeneration.instructions": [ + { + "file": "prisma/schema.prisma", + }, + { + "file": "src/hooks.server.js", + }, + { + "file": "src/lib/prisma.js", + }, + ] } \ No newline at end of file diff --git a/src/routes/(admin)/+layout.svelte b/src/routes/(admin)/+layout.svelte index b58f13e..8658f13 100644 --- a/src/routes/(admin)/+layout.svelte +++ b/src/routes/(admin)/+layout.svelte @@ -101,8 +101,10 @@
+
-
-
-
-
-