## Search & Retrieval - Improved search ranking with scoring (title match, favorites, recency) - Highlight matches with excerpt extraction - Fuzzy search with string-similarity - Unified noteQuery function ## Quick Capture - Quick Add API (POST /api/notes/quick) with type prefixes - Quick add parser with tag extraction - Global Quick Add UI (Ctrl+N shortcut) - Tag autocomplete in forms ## Note Relations - Automatic backlinks with sync on create/update/delete - Backlinks API (GET /api/notes/[id]/backlinks) - Related notes with scoring and reasons ## Guided Forms - Type-specific form fields (command, snippet, decision, recipe, procedure, inventory) - Serialization to/from markdown - Tag suggestions based on content (GET /api/tags/suggest) ## UX by Type - Command: Copy button for code blocks - Snippet: Syntax highlighting with react-syntax-highlighter - Procedure: Interactive checkboxes ## Quality - Standardized error handling across all APIs - Integration tests (28 tests passing) - Unit tests for search, tags, quick-add Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1019 B
TypeScript
29 lines
1019 B
TypeScript
/**
|
|
* Tests for quick-add.ts module
|
|
*
|
|
* NOTE: quick-add.ts does not exist yet in src/lib/
|
|
* These tests use describe.skip and will need to be implemented
|
|
* once quick-add.ts is created by the quick-add-dev task.
|
|
*/
|
|
|
|
describe.skip('quick-add.ts (to be implemented)', () => {
|
|
// TODO: Once quick-add.ts is created, implement tests for:
|
|
// - quickAddNote(title, content, type): Note creation shortcut
|
|
// - parseQuickAddInput(input: string): Parse "title :: content :: type" format
|
|
// - Validation of quick add input format
|
|
|
|
it('should parse quick add input format', () => {
|
|
// Will test: parseQuickAddInput("My Note :: Note content :: note")
|
|
// Expected: { title: "My Note", content: "Note content", type: "note" }
|
|
})
|
|
|
|
it('should create note from quick add input', () => {
|
|
// Will test: quickAddNote("title :: content")
|
|
// Should create a note and return it
|
|
})
|
|
|
|
it('should handle type inference from content', () => {
|
|
// Will test: parseQuickAddInput with inferred type
|
|
})
|
|
})
|