mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 11:46:43 +02:00
Implements the same CommandBar quick-create functionality from Todo in Calendar and Contacts apps with a shared base parser architecture. - Add base-parser in shared-utils with common patterns (date, time, tags) - Refactor task-parser to use base-parser - Create event-parser for Calendar with duration, location, @calendar - Create contact-parser for Contacts with email, phone, @company detection - Integrate Quick-Create into Calendar and Contacts layouts Natural language syntax: - Common: heute, morgen, Montag, 15.12., um 14 Uhr, #tags - Calendar: für 2h, 30 min, in Berlin, @Kalender, ganztägig - Contacts: @Firma, bei Company, auto email/phone detection 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
470 B
TypeScript
26 lines
470 B
TypeScript
/**
|
|
* Natural Language Parsers
|
|
*
|
|
* Base parser with common patterns, extended by app-specific parsers.
|
|
*/
|
|
|
|
export {
|
|
// Types
|
|
type BaseParsedInput,
|
|
type ExtractResult,
|
|
// Extraction functions
|
|
extractDate,
|
|
extractTime,
|
|
extractTags,
|
|
extractAtReference,
|
|
// Combination
|
|
combineDateAndTime,
|
|
// Preview formatting
|
|
formatDatePreview,
|
|
formatTimePreview,
|
|
formatDateTimePreview,
|
|
// Main parser
|
|
parseBaseInput,
|
|
// Utilities
|
|
cleanTitle,
|
|
} from './base-parser';
|