Skip to content

Commit 68ac3ad

Browse files
authored
style: apply prettier formatting for feat/tasks/add-tags (#3322)
2 parents 94403ee + 46c9b97 commit 68ac3ad

File tree

5 files changed

+8931
-8922
lines changed

5 files changed

+8931
-8922
lines changed

apps/web/src/app/[locale]/(dashboard)/[wsId]/tasks/boards/[boardId]/_components/list-view.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,13 @@ export function ListView({
256256
});
257257

258258
// Check if any updates have meaningful changes (more than just the id field)
259-
const hasUpdates = updates.some((obj) =>
260-
obj.priority !== undefined || obj.archived !== undefined || obj.tags !== undefined
259+
const hasUpdates = updates.some(
260+
(obj) =>
261+
obj.priority !== undefined ||
262+
obj.archived !== undefined ||
263+
obj.tags !== undefined
261264
);
262-
265+
263266
if (hasUpdates) {
264267
// Only call RPC if at least one field is being updated
265268
const { error } = await supabase.rpc('update_many_tasks', { updates });
@@ -884,10 +887,7 @@ export function ListView({
884887
</div>
885888
<div className="space-y-3">
886889
{SKELETON_KEYS.map((key: string) => (
887-
<Skeleton
888-
key={`loading-skeleton-${key}`}
889-
className="h-16 w-full"
890-
/>
890+
<Skeleton key={`loading-skeleton-${key}`} className="h-16 w-full" />
891891
))}
892892
</div>
893893
</div>

apps/web/src/app/[locale]/(dashboard)/[wsId]/tasks/boards/[boardId]/kanban.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@ export function KanbanBoard({ boardId, tasks, isLoading }: Props) {
140140
const task = active.data.current.task;
141141
setActiveTask(task);
142142
pickedUpTaskColumn.current = String(task.list_id);
143-
143+
144144
// Use more specific selector for better reliability
145145
// Prefer data-id selector over generic querySelector
146-
const cardNode = document.querySelector(`[data-id="${task.id}"]`) as HTMLElement;
146+
const cardNode = document.querySelector(
147+
`[data-id="${task.id}"]`
148+
) as HTMLElement;
147149
if (cardNode) {
148150
const cardRect = cardNode.getBoundingClientRect();
149151
dragStartCardLeft.current = cardRect.left;

apps/web/src/app/[locale]/(dashboard)/[wsId]/tasks/boards/[boardId]/task-list.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ListActions } from './list-actions';
33
import { statusIcons } from './status-section';
44
import { TaskCard } from './task';
55
import { TaskForm } from './task-form';
6+
import { DEV_MODE } from '@/constants/common';
67
import { useSortable } from '@dnd-kit/sortable';
78
import { CSS } from '@dnd-kit/utilities';
89
import { useQuery } from '@tanstack/react-query';
@@ -41,7 +42,6 @@ import Image from 'next/image';
4142
import { useParams } from 'next/navigation';
4243
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
4344
import React from 'react';
44-
import { DEV_MODE } from '@/constants/common';
4545

4646
interface Props {
4747
column: TaskList;
@@ -62,7 +62,10 @@ type SortOption =
6262
| 'priority_desc';
6363
type SortDirection = 'asc' | 'desc';
6464

65-
type WorkspaceMember = Pick<WorkspaceUser, 'id' | 'display_name' | 'email' | 'avatar_url'>;
65+
type WorkspaceMember = Pick<
66+
WorkspaceUser,
67+
'id' | 'display_name' | 'email' | 'avatar_url'
68+
>;
6669

6770
interface TaskListFilters {
6871
search: string;
@@ -795,8 +798,13 @@ export const BoardColumn = React.memo(function BoardColumn({
795798
<CommandItem
796799
key={member.id}
797800
onSelect={() => {
798-
const newAssignees = new Set(filters.assignees);
799-
if (filters.assignees.has('all') || filters.assignees.has('unassigned')) {
801+
const newAssignees = new Set(
802+
filters.assignees
803+
);
804+
if (
805+
filters.assignees.has('all') ||
806+
filters.assignees.has('unassigned')
807+
) {
800808
// If 'all' or 'unassigned' is selected, clear them to avoid conflicts
801809
newAssignees.delete('all');
802810
newAssignees.delete('unassigned');

apps/web/src/app/[locale]/(dashboard)/[wsId]/tasks/boards/enhanced-boards-view.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import {
5656
SelectValue,
5757
} from '@tuturuuu/ui/select';
5858
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@tuturuuu/ui/tabs';
59-
import { useCallback, useMemo, useState } from 'react';
6059
import { useRouter } from 'next/navigation';
60+
import { useCallback, useMemo, useState } from 'react';
6161

6262
interface AnalyticsFilters {
6363
timeView: 'week' | 'month' | 'year';
@@ -336,7 +336,7 @@ export function EnhancedBoardsView({ data, count }: EnhancedBoardsViewProps) {
336336
// Should navigate to the specific task's board view or open task details modal
337337
// For now, log the task for debugging purposes
338338
console.log('Task clicked:', task);
339-
339+
340340
// TODO: Add navigation logic here:
341341
// - Navigate to the task's board: router.push(`/tasks/boards/${task.board_id}?task=${task.id}`)
342342
// - Or open a task details modal
@@ -348,7 +348,7 @@ export function EnhancedBoardsView({ data, count }: EnhancedBoardsViewProps) {
348348
// Should invalidate and refetch task data instead of page reload
349349
// For now, use page reload as fallback
350350
window.location.reload();
351-
351+
352352
// TODO: Replace with proper data refresh:
353353
// - Invalidate React Query cache
354354
// - Refetch task data
@@ -360,7 +360,7 @@ export function EnhancedBoardsView({ data, count }: EnhancedBoardsViewProps) {
360360
// Should toggle advanced filter panel or filter dropdown
361361
// For now, just log the action
362362
console.log('Table filter triggered');
363-
363+
364364
// TODO: Add filter logic here:
365365
// - Toggle filter panel visibility
366366
// - Show/hide advanced filter options
@@ -372,7 +372,7 @@ export function EnhancedBoardsView({ data, count }: EnhancedBoardsViewProps) {
372372
// Should cycle through sort options or toggle sort direction
373373
// For now, just log the action
374374
console.log('Table sort triggered');
375-
375+
376376
// TODO: Add sort logic here:
377377
// - Cycle through available sort fields
378378
// - Toggle sort direction (asc/desc)
@@ -384,7 +384,7 @@ export function EnhancedBoardsView({ data, count }: EnhancedBoardsViewProps) {
384384
// Should toggle column visibility settings panel
385385
// For now, just log the action
386386
console.log('Table settings triggered');
387-
387+
388388
// TODO: Add settings logic here:
389389
// - Toggle column visibility panel
390390
// - Show/hide table customization options

0 commit comments

Comments
 (0)