From e0c054671dbfa397cf0361592aac942afee9c13a Mon Sep 17 00:00:00 2001 From: DaxServer Date: Fri, 17 Oct 2025 11:16:18 +0200 Subject: [PATCH] chore: update dependencies --- .github/workflows/test.yml | 2 +- .github/workflows/typecheck.yml | 2 +- .trae/rules/code-conventions.md | 183 ++++++++++++- .trae/rules/product.md | 20 +- .trae/rules/structure.md | 82 +++++- .trae/rules/tech.md | 95 ++++++- backend/eslint.config.ts | 2 +- backend/package.json | 9 +- backend/src/index.ts | 1 + backend/src/plugins/error-handler.ts | 8 +- backend/tests/api/project/import.test.ts | 2 +- bun.lock | 246 +++++++++--------- frontend/eslint.config.ts | 10 - frontend/package.json | 21 +- .../components/ColumnHeaderMenu.vue | 6 +- .../useProjectCreationComposable.ts | 4 +- .../composables/useProjectListComposable.ts | 7 +- .../components/SchemaSelector.vue | 11 +- .../__tests__/useSchemaApi.test.ts | 2 +- .../composables/useSchemaApi.ts | 2 - package.json | 26 +- prompts/Backend.md | 70 ----- prompts/Frontend.md | 73 ------ 23 files changed, 547 insertions(+), 337 deletions(-) mode change 120000 => 100644 .trae/rules/code-conventions.md mode change 120000 => 100644 .trae/rules/product.md mode change 120000 => 100644 .trae/rules/structure.md mode change 120000 => 100644 .trae/rules/tech.md delete mode 100644 prompts/Backend.md delete mode 100644 prompts/Frontend.md diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55be68e..314bca6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - name: Determine Bun version id: bun-version - run: echo "BUN_VERSION=$(cat package.json | grep 'bun-types' | head -1 | awk -F'"' '{print $4}')" >> $GITHUB_OUTPUT + run: echo "BUN_VERSION=$(jq -r '.engines."bun"' package.json)" >> $GITHUB_OUTPUT - name: Setup Bun uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 23aefcc..c27e066 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -14,7 +14,7 @@ jobs: - name: Determine Bun version id: bun-version - run: echo "BUN_VERSION=$(cat package.json | grep 'bun-types' | head -1 | awk -F'"' '{print $4}')" >> $GITHUB_OUTPUT + run: echo "BUN_VERSION=$(jq -r '.engines."bun"' package.json)" >> $GITHUB_OUTPUT - name: Setup Bun uses: oven-sh/setup-bun@v2 diff --git a/.trae/rules/code-conventions.md b/.trae/rules/code-conventions.md deleted file mode 120000 index 8dd2dbf..0000000 --- a/.trae/rules/code-conventions.md +++ /dev/null @@ -1 +0,0 @@ -../../.kiro/steering/code-conventions.md \ No newline at end of file diff --git a/.trae/rules/code-conventions.md b/.trae/rules/code-conventions.md new file mode 100644 index 0000000..d775d0d --- /dev/null +++ b/.trae/rules/code-conventions.md @@ -0,0 +1,182 @@ +# Coding Guidelines + +## General Standards + +- **Function Declarations**: Always use arrow functions (`const fn = () => {}`) instead of function declarations (`function fn() {}`) +- **TypeScript**: Use strict typing throughout the codebase +- **Path Aliases**: Always use `@frontend/` and `@backend/` instead of relative paths + +## Testing Standards + +### Test Framework + +- **Bun Test**: Use Bun's native test runner for all tests +- **Import Pattern**: `import { describe, test, expect } from 'bun:test'` +- **File Naming**: Tests must use `.test.ts` or `.spec.ts` suffix + +### Test Structure + +- **Frontend Tests**: Place in `src/**/__tests__/` directories +- **Backend Tests**: Place in `tests/` directory mirroring `src/` structure +- **Test Organization**: Group related tests using `describe` blocks +- **Test Naming**: Use descriptive names that explain the behavior being tested + +### Testing Approach + +- **Logic Testing**: Focus on testing component logic, business rules, and data transformations +- **Type Validation**: Test TypeScript interfaces and type definitions +- **State Management**: Test store interactions and state mutations +- **Integration**: Test composable interactions and data flow +- **Avoid DOM Testing**: Prefer logic testing over complex DOM manipulation tests + +### Test Examples + +```typescript +import { describe, test, expect } from 'bun:test' + +describe('Component Logic', () => { + test('should compute values correctly', () => { + const input = 'test' + const result = processInput(input) + expect(result).toBe('expected') + }) + + test('should handle edge cases', () => { + const emptyInput = '' + const result = processInput(emptyInput) + expect(result).toBe('default') + }) +}) +``` + +## Vue Component Standards + +### Single File Component Structure + +Vue components MUST follow this exact order: + +1. **`