Skip to content

Commit 68cc025

Browse files
committed
Event migration improved UX
1 parent 3d4fc3c commit 68cc025

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/clickhouse-migration

apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/clickhouse-migration/page-client.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,8 @@ export default function PageClient() {
9595

9696
const resetMigration = React.useCallback(() => {
9797
stopMigration();
98-
cursorRef.current = null;
99-
timeWindowRef.current = null;
10098
setCursor(null);
10199
setError(null);
102-
setTotalMigratedEvents(0);
103-
setTotalInsertedRows(0);
104100
setBatchCount(0);
105101
setDone(false);
106102
}, [stopMigration]);
@@ -161,7 +157,8 @@ export default function PageClient() {
161157
value={minCreatedAt}
162158
onChange={(e) => {
163159
setMinCreatedAt(e.target.value);
164-
resetMigration();
160+
cursorRef.current = null;
161+
timeWindowRef.current = null;
165162
}}
166163
placeholder="1735689600000 or 2024-08-01T00:00"
167164
/>
@@ -173,7 +170,8 @@ export default function PageClient() {
173170
value={maxCreatedAt}
174171
onChange={(e) => {
175172
setMaxCreatedAt(e.target.value);
176-
resetMigration();
173+
cursorRef.current = null;
174+
timeWindowRef.current = null;
177175
}}
178176
placeholder="1767225600000 or 2024-12-01T00:00"
179177
/>

0 commit comments

Comments
 (0)