tangled
alpha
login
or
join now
pds.ls
/
pdsls
398
fork
atom
atmosphere explorer
pds.ls
tool
typescript
atproto
398
fork
atom
overview
issues
1
pulls
pipelines
move log validation icon
handle.invalid
1 week ago
6cfb391b
5e5f968f
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+20
-16
1 changed file
expand all
collapse all
unified
split
src
views
logs.tsx
+20
-16
src/views/logs.tsx
···
6
} from "@atcute/did-plc";
7
import { useLocation } from "@solidjs/router";
8
import { createEffect, createResource, createSignal, For, onCleanup, Show } from "solid-js";
0
9
import { localDateFromTimestamp } from "../utils/date.js";
10
import { createOperationHistory, DiffEntry, groupBy } from "../utils/plc-logs.js";
11
import PlcValidateWorker from "../workers/plc-validate.ts?worker";
···
261
return (
262
<div class="flex w-full flex-col gap-3 wrap-anywhere">
263
<div class="flex flex-col gap-2">
264
-
<div class="flex items-center gap-1.5 text-sm">
265
<div class="iconify lucide--filter" />
266
-
<p class="font-medium">Filter by type</p>
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
267
</div>
268
<div class="flex flex-wrap gap-1">
269
<FilterButton event="handle" label="Alias" />
···
271
<FilterButton event="verification_method" label="Verification" />
272
<FilterButton event="rotation_key" label="Rotation Key" />
273
</div>
274
-
</div>
275
-
<div class="flex items-center gap-1.5 text-sm font-medium">
276
-
<Show when={validLog() === true}>
277
-
<span class="iconify lucide--check text-green-600 dark:text-green-400"></span>
278
-
<span>Valid log</span>
279
-
</Show>
280
-
<Show when={validLog() === false}>
281
-
<span class="iconify lucide--x text-red-500 dark:text-red-400"></span>
282
-
<span>Log validation failed</span>
283
-
</Show>
284
-
<Show when={validLog() === undefined}>
285
-
<span class="iconify lucide--loader-circle animate-spin"></span>
286
-
<span>Validating log...</span>
287
-
</Show>
288
</div>
289
<div class="flex flex-col gap-3">
290
<For each={plcOps()}>
···
6
} from "@atcute/did-plc";
7
import { useLocation } from "@solidjs/router";
8
import { createEffect, createResource, createSignal, For, onCleanup, Show } from "solid-js";
9
+
import Tooltip from "../components/tooltip.jsx";
10
import { localDateFromTimestamp } from "../utils/date.js";
11
import { createOperationHistory, DiffEntry, groupBy } from "../utils/plc-logs.js";
12
import PlcValidateWorker from "../workers/plc-validate.ts?worker";
···
262
return (
263
<div class="flex w-full flex-col gap-3 wrap-anywhere">
264
<div class="flex flex-col gap-2">
265
+
<div class="flex items-center gap-1.5 text-sm font-medium text-neutral-700 dark:text-neutral-300">
266
<div class="iconify lucide--filter" />
267
+
<p>Filter by type</p>
268
+
<div class="mr-1.5 ml-auto">
269
+
<Show when={validLog() === true}>
270
+
<Tooltip text="Valid log">
271
+
<span class="iconify lucide--check text-green-600 dark:text-green-400"></span>
272
+
</Tooltip>
273
+
</Show>
274
+
<Show when={validLog() === false}>
275
+
<Tooltip text="Validation failed">
276
+
<span class="iconify lucide--x text-red-500 dark:text-red-400"></span>
277
+
</Tooltip>
278
+
</Show>
279
+
<Show when={validLog() === undefined}>
280
+
<Tooltip text="Validating...">
281
+
<span class="iconify lucide--loader-circle animate-spin"></span>
282
+
</Tooltip>
283
+
</Show>
284
+
</div>
285
</div>
286
<div class="flex flex-wrap gap-1">
287
<FilterButton event="handle" label="Alias" />
···
289
<FilterButton event="verification_method" label="Verification" />
290
<FilterButton event="rotation_key" label="Rotation Key" />
291
</div>
0
0
0
0
0
0
0
0
0
0
0
0
0
0
292
</div>
293
<div class="flex flex-col gap-3">
294
<For each={plcOps()}>