feat: extract shared types, colors, priority and recurrence (#34) #41

Merged
maximus merged 2 commits from issue-34-shared-types into master 2026-04-06 16:57:30 +00:00
Owner

Fixes #34

Summary

  • Create src/shared/ with types.ts, colors.ts, priority.ts, recurrence.ts
  • Original files re-export from shared/ (zero breaking changes)
  • Add updatedAt column to tags schema (migration 0003)
  • Update createTag/updateTag to set updatedAt
  • Move type imports in useTaskStore and tasks.ts repository to shared/types
Fixes #34 ## Summary - Create `src/shared/` with `types.ts`, `colors.ts`, `priority.ts`, `recurrence.ts` - Original files re-export from `shared/` (zero breaking changes) - Add `updatedAt` column to `tags` schema (migration 0003) - Update `createTag`/`updateTag` to set `updatedAt` - Move type imports in `useTaskStore` and `tasks.ts` repository to `shared/types`
maximus added 1 commit 2026-04-06 14:38:31 +00:00
Create src/shared/ with platform-agnostic types and helpers for
mobile/web code sharing. Add updatedAt to tags schema for sync.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
maximus added 1 commit 2026-04-06 14:39:16 +00:00
Re-export from shared/recurrence instead of redefining.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

Review — APPROVE

Summary: Clean extraction of shared types, colors, priority helpers and recurrence logic into src/shared/. Original files re-export to preserve all existing imports. Migration 0003 adds nullable updated_at to tags for future sync.

Checklist:

  • No secrets or credentials
  • No injection risks
  • TypeScript compiles cleanly
  • Migration is backwards-compatible (nullable column)
  • Duplicate RecurrenceType fixed in follow-up commit
  • Consistent with project conventions
## Review — APPROVE **Summary**: Clean extraction of shared types, colors, priority helpers and recurrence logic into `src/shared/`. Original files re-export to preserve all existing imports. Migration 0003 adds nullable `updated_at` to tags for future sync. **Checklist**: - [x] No secrets or credentials - [x] No injection risks - [x] TypeScript compiles cleanly - [x] Migration is backwards-compatible (nullable column) - [x] Duplicate RecurrenceType fixed in follow-up commit - [x] Consistent with project conventions
maximus merged commit d486be9227 into master 2026-04-06 16:57:30 +00:00
maximus deleted branch issue-34-shared-types 2026-04-06 16:57:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: maximus/simpl-liste#41
No description provided.