feat: enhance type organization and import structure

- Added detailed tasks in `TODO.md` for isolating and organizing types/interfaces across various services, including analytics, task management, and integrations.
- Updated imports in multiple files to use the new `@/services/core/database` path for consistency.
- Ensured all type imports are converted to `import type { ... }` where applicable for better clarity and performance.
This commit is contained in:
Julien Froidefond
2025-09-23 10:35:52 +02:00
parent 88ab8c9334
commit bbb4e543c4
12 changed files with 41 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
import { Task, TaskStatus, TaskPriority, TaskSource } from '@/lib/types';
import { prisma } from '../core/database';
import { prisma } from '@/services/core/database';
import { getToday, parseDate, subtractDays } from '@/lib/date-utils';
export interface ProductivityMetrics {

View File

@@ -1,4 +1,4 @@
import { prisma } from '../core/database';
import { prisma } from '@/services/core/database';
import { startOfWeek, endOfWeek } from 'date-fns';
import { getToday } from '@/lib/date-utils';

View File

@@ -1,4 +1,4 @@
import { prisma } from '../core/database';
import { prisma } from '@/services/core/database';
import { startOfWeek, endOfWeek, eachDayOfInterval, format, startOfDay, endOfDay } from 'date-fns';
import { fr } from 'date-fns/locale';
import { formatDateForAPI, getDayName, getToday, subtractDays } from '@/lib/date-utils';