Skip to content

Commit 7300f0a

Browse files
committed
docs: add feature development checklist to CLAUDE.md
1 parent 1bfd3dd commit 7300f0a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CLAUDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,14 @@ See `.env` for full list of variables including router config, MCP servers, auth
114114
- Prettier: tabs, 100 char width, Tailwind class sorting
115115
- Server vs client separation via SvelteKit conventions (`+page.server.ts` vs `+page.ts`)
116116
- Path alias: `$api``src/lib/server/api`
117+
118+
## Feature Development Checklist
119+
120+
When building new features, consider:
121+
122+
1. **HuggingChat vs self-hosted**: Wrap HuggingChat-specific features with `publicConfig.isHuggingChat`
123+
2. **Settings persistence**: Add new fields to `src/lib/types/Settings.ts`, update API schema in `src/lib/server/api/routes/groups/user.ts`
124+
3. **Rich dropdowns**: Use `bits-ui` (Select, DropdownMenu) instead of native elements when you need icons/images in options
125+
4. **Scrollbars**: Use `scrollbar-custom` class for styled scrollbars
126+
5. **Icons**: Custom icons in `$lib/components/icons/`, use Carbon (`~icons/carbon/*`) or Lucide (`~icons/lucide/*`) for standard icons
127+
6. **Provider avatars**: Use `PROVIDERS_HUB_ORGS` from `@huggingface/inference` for HF provider avatar URLs

0 commit comments

Comments
 (0)