Refactor observation handling: centralize constants and improve context settings

- Introduced `observation-metadata.ts` to define valid observation types and concepts, along with their corresponding emoji mappings.
- Updated `context-hook.ts` to utilize new constants for observation types and concepts, enhancing maintainability.
- Refactored `worker-service.ts` to validate observation types and concepts against the new centralized constants.
- Consolidated settings management in `Sidebar.tsx` to streamline state handling for context settings.
- Improved error handling and logging for context loading failures.
This commit is contained in:
Alex Newman
2025-12-01 17:29:48 -05:00
parent e1017b483b
commit d1876cb6e0
7 changed files with 271 additions and 249 deletions
File diff suppressed because one or more lines are too long