Skip to content

Commit 479b919

Browse files
committed
cleanup and linting
1 parent 03de508 commit 479b919

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

packages/web/app/src/components/ui/date-range-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type Preset = {
4343
range: { from: string; to: string };
4444
};
4545

46-
export function buildDateRangeString(range: ResolvedDateRange, locale = 'en-us'): string {
46+
export function buildDateRangeString(range: ResolvedDateRange): string {
4747
const fromDate = formatDate(range.from, 'MMM d');
4848
const fromTime = formatDate(range.from, 'HH:mm');
4949
const toDate = formatDate(range.to, 'MMM d');

packages/web/app/src/pages/target-app-version.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/comp
3030
import { graphql } from '@/gql';
3131
import { useRedirect } from '@/lib/access/common';
3232
import { DotsHorizontalIcon } from '@radix-ui/react-icons';
33-
import { Link } from '@tanstack/react-router';
33+
import { Link, useRouter } from '@tanstack/react-router';
3434

3535
const TargetAppsVersionQuery = graphql(`
3636
query TargetAppsVersionQuery(

packages/web/app/src/pages/target-traces.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Fragment, memo, ReactNode, useCallback, useMemo, useRef, useState } from 'react';
2-
import { formatDate, formatISO, parse as parseDate } from 'date-fns';
2+
import { formatDate, formatISO } from 'date-fns';
33
import { formatInTimeZone, toZonedTime } from 'date-fns-tz';
44
import {
55
ArrowDown,
@@ -218,7 +218,7 @@ const TrafficBucketDiagram = memo(function Traffic(props: TrafficProps) {
218218
/>
219219
<Bar stackId="all" dataKey="ok" fill="var(--color-ok)" name="Ok" />
220220
<Bar stackId="all" dataKey="error" fill="var(--color-error)" name="Error" />
221-
// TODO: hide this if there is no filter declared
221+
{/*TODO: hide this if there is no filter declared */}
222222
<Bar stackId="all" dataKey="remaining" fill="rgba(170,175,180,0.1)" name="Filtered out" />
223223
{refAreaLeft && refAreaRight && (
224224
<ReferenceArea x1={refAreaLeft} x2={refAreaRight} fill="white" fillOpacity={0.2} />
@@ -247,19 +247,6 @@ type SortProps = {
247247
sorting: SortState;
248248
};
249249

250-
const TargetTracesPaginationShape = z.object({
251-
pageIndex: z.number().min(0).default(0),
252-
pageSize: z.number().min(10).max(100).default(20),
253-
});
254-
export const TargetTracesPagination = {
255-
shape: TargetTracesPaginationShape,
256-
};
257-
258-
export type PaginationState = z.infer<typeof TargetTracesPaginationShape>;
259-
type PaginationProps = {
260-
pagination: PaginationState;
261-
};
262-
263250
const TracesList_Trace = graphql(`
264251
fragment TracesList_Trace on Trace {
265252
id

packages/web/app/src/router.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ import { TargetSettingsPage, TargetSettingsPageEnum } from './pages/target-setti
8080
import { TargetTracePage } from './pages/target-trace';
8181
import {
8282
FilterState,
83-
PaginationState,
8483
TargetTracesFilterState,
8584
TargetTracesPage,
86-
TargetTracesPagination,
8785
TargetTracesSort,
8886
} from './pages/target-traces';
8987

0 commit comments

Comments
 (0)