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 @@
Slug can only be edited in draft mode. diff --git a/src/routes/(app)/app/accounts/+page.svelte b/src/routes/(app)/app/accounts/+page.svelte index 08e08c0..efbbd38 100644 --- a/src/routes/(app)/app/accounts/+page.svelte +++ b/src/routes/(app)/app/accounts/+page.svelte @@ -99,9 +99,11 @@