Skip to content

Commit a6d85e6

Browse files
committed
feat: UI & Architecture improvements
1 parent db7295f commit a6d85e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+706
-454
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
trigger: manual
3+
---
4+
5+
# SvelteKit Architecture Rules
6+
7+
## Services vs Stores Separation Pattern
8+
9+
### `lib/services/` - Pure Business Logic
10+
- **Purpose**: Stateless business logic and external communication
11+
- **Contains**:
12+
- Database operations (DatabaseService)
13+
- API calls to external services (ApiService)
14+
- Pure business logic functions (ChatService, etc.)
15+
- **Rules**:
16+
- NO Svelte runes ($state, $derived, $effect)
17+
- NO reactive state management
18+
- Pure functions and classes only
19+
- Can import types but not stores
20+
- Focus on "how" - implementation details
21+
22+
### `lib/stores/` - Reactive State Management
23+
- **Purpose**: Svelte-specific reactive state with runes
24+
- **Contains**:
25+
- Reactive state classes with $state, $derived, $effect
26+
- UI-focused state management
27+
- Store orchestration logic
28+
- **Rules**:
29+
- USE Svelte runes for reactivity
30+
- Import and use services for business logic
31+
- NO direct database operations
32+
- NO direct API calls (use services)
33+
- Focus on "what" - reactive state for UI
34+
35+
### Enforcement
36+
- Services should be testable without Svelte
37+
- Stores should leverage Svelte's reactivity system
38+
- Clear separation: services handle data, stores handle state
39+
- Services can be reused across multiple stores

tools/server/public/_app/immutable/assets/0.kK9qlJ7g.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/server/public/_app/immutable/assets/0.py4ptTVO.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/server/public/_app/immutable/assets/3.bHHIbcsu.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/server/public/_app/immutable/assets/_layout.kK9qlJ7g.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/server/public/_app/immutable/assets/_layout.py4ptTVO.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/server/public/_app/immutable/assets/_page.bHHIbcsu.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a.svelte-1fk696n,button.svelte-1fk696n{cursor:pointer}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a.svelte-1fk696n,button.svelte-1fk696n{cursor:pointer}

tools/server/public/_app/immutable/chunks/5DD-goE_.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)