refactor: improve storage handling, UI feedback, and defaults
- Update default admin email to admin@datastack.dev - Improve storage flush logic with partial success handling - Enhance CSV download reliability using fetch and Blob - Adjust simulator protocol resolution and timing - Fix date range filtering in data API query
This commit is contained in:
1 parent
40a6855724
commit
3ad9b1d4d2
17 files changed
+281
-78
No files matched your search
@@ -33,7 +33,7 @@ export async function GET(request: NextRequest) {
|
||||
let total = 0;
|
||||
|
||||
const addIfMatching = (event: DataEvent) => {
|
||||
const eventDate = CSVStorageManager.extractSafePartitionDate(event.timestamp);
|
||||
const eventDate = CSVStorageManager.extractSafePartitionDate(event.timestamp, null);
|
||||
const dedupeKey = `${event.clientId}:${event.eventId}`;
|
||||
const matchesSearch =
|
||||
!search ||
|
||||
@@ -43,8 +43,7 @@ export async function GET(request: NextRequest) {
|
||||
|
||||
if (
|
||||
(clientId !== "all" && event.clientId !== clientId) ||
|
||||
(from && eventDate < from) ||
|
||||
(to && eventDate > to) ||
|
||||
((from || to) && (!eventDate || (from && eventDate < from) || (to && eventDate > to))) ||
|
||||
!matchesSearch ||
|
||||
eventIds.has(dedupeKey)
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user