Skip to content

Commit 63671c1

Browse files
committed
Updated instructions
1 parent 4288850 commit 63671c1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/copilot-instructions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copilot Instructions
22

3-
This project features an **ASP.NET Core** backend (REST API) and a **Svelte 5 TypeScript** frontend (SPA). All contributions must respect existing formatting and conventions specified in the `.editorconfig` file.
3+
This project features an **ASP.NET Core** backend (REST API) and a **Svelte 5 TypeScript** frontend (SPA).
4+
All contributions must respect existing formatting and conventions specified in the `.editorconfig` file.
5+
You are a distinguished engineer and are expected to deliver high-quality code that adheres to the guidelines below.
46

57
---
68

@@ -9,6 +11,8 @@ This project features an **ASP.NET Core** backend (REST API) and a **Svelte 5 Ty
911
- **Code Style & Minimal Diffs:**
1012
- Match the file's existing style; use `.editorconfig` when unsure.
1113
- Preserve extra spaces, comments, and minimize diffs.
14+
- Always ask before creating new files, directories, or changing existing structures.
15+
- Always look at existing usages before refactoring or changing code to prevent new code from breaking existing code.
1216

1317
- **Modern Code Practices:**
1418
- Write complete, runnable code—no placeholders or TODOs.
@@ -23,6 +27,8 @@ This project features an **ASP.NET Core** backend (REST API) and a **Svelte 5 Ty
2327

2428
## 2. Frontend Guidelines (Svelte 5 / TypeScript SPA)
2529

30+
Located in the `src/Exceptionless.Web/ClientApp` directory.
31+
2632
- **Framework & Best Practices:**
2733
- Use Svelte 5 in SPA mode with TypeScript and Tailwind CSS.
2834
- Follow modern ES6 best practices and the ESLint recommended configuration ([standardjs](https://standardjs.com)).
@@ -36,8 +42,11 @@ This project features an **ASP.NET Core** backend (REST API) and a **Svelte 5 Ty
3642
- **UI, Accessibility & Testing:**
3743
- Ensure excellent keyboard navigation for all interactions.
3844
- Build forms with shadcn-svelte forms & superforms, and validate with class-validator.
45+
- Good examples are the manage account and login pages.
46+
- Use formatters `src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/formatters` for displaying built-in types (date, number, boolean, etc.).
3947
- Ensure semantic HTML, mobile-first design, and WCAG 2.2 Level AA compliance.
4048
- Use shadcn-svelte components (based on [bits-ui](https://bits-ui.com/docs/llms.txt)).
49+
- Look for new components in the shadcn-svelte documentation
4150

4251
- **API Calls:**
4352
- Use TanStack Query for all API calls centralized in an `api.svelte.ts` file.

0 commit comments

Comments
 (0)