feat: add configurable data table filtering and update API endpoints for the example module

This commit is contained in:
Firman Ramdhani
2026-07-23 13:24:08 +07:00
parent ddf11741e9
commit fa119deec2
7 changed files with 227 additions and 16 deletions
@@ -1,8 +1,7 @@
import React, { useCallback, useMemo, useRef, useState } from 'react';
import { Box, Button, Group, List, Modal, Paper, Progress, Stack, Text, ThemeIcon } from '@mantine/core';
import { Box, Button, Group, Modal, Progress, Stack, Text } from '@mantine/core';
import { useForm, FormProvider } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { Check, X, Info } from 'lucide-react';
import type { BaseEntity } from '@repo/core-api/data-services';
import type {
@@ -197,8 +196,8 @@ export function BulkActionConfirmationModal<E extends BaseEntity = BaseEntity>(
const [phase, setPhase] = useState<ProcessingPhase>('idle');
const [progress, setProgress] = useState(0);
const [currentBatch, setCurrentBatch] = useState(0);
const [totalBatches, setTotalBatches] = useState(0);
const [, setCurrentBatch] = useState(0);
const [, setTotalBatches] = useState(0);
const [aggregatedResult, setAggregatedResult] = useState<AggregatedResult | null>(null);
// Ref to track cancellation requests during processing