-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add fonts * Add logo. Move header to common layout * Add shadcn theme * Change mermaid theme * Add json tree viewer * Tweak txs table columns styles * Move tx heading to txdata * Add span parser for Send * Add SpanDetails * Fix overflow in intercepted route * Make header title h1 * Add operationName and startTime to parser * Make title heading a link * Fix heading link spanning all screen * Tweak toolbar height and alignment
- Loading branch information
Showing
24 changed files
with
334 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import { TxsTable } from "@/components/txs-table"; | ||
|
||
export default async function Txs() { | ||
return ( | ||
<div className="h-full flex-1 flex-col space-y-8 p-8 flex"> | ||
<h2 className="text-2xl font-bold tracking-tight">CosmWasm Tracing UI</h2> | ||
<TxsTable /> | ||
</div> | ||
); | ||
return <TxsTable />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import JsonTreeViewer from "@/lib/json-tree"; | ||
import { getParsedSpanMap } from "@/lib/parse-span"; | ||
import { cn } from "@/lib/utils"; | ||
import { Span } from "@/types/txs"; | ||
import { Table, TableBody, TableCell, TableRow } from "../ui/table"; | ||
|
||
type SpanDetailsProps = { | ||
span: Span; | ||
}; | ||
|
||
export default function SpanDetails({ span }: SpanDetailsProps) { | ||
const parsedSpan = getParsedSpanMap(span); | ||
|
||
return ( | ||
<div className="flex flex-col gap-10 w-full max-w-[900px] mx-auto"> | ||
<div className="flex flex-col gap-4"> | ||
<h2>Relevant operation info:</h2> | ||
<Table> | ||
<TableBody> | ||
{Array.from(parsedSpan.entries()).map(([key, value], i) => ( | ||
<TableRow | ||
key={i} | ||
className={cn(i % 2 === 0 && "bg-card hover:bg-card")} | ||
> | ||
<TableCell>{key}</TableCell> | ||
<TableCell>{value}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</div> | ||
<div className="flex flex-col gap-4"> | ||
<h2>Full operation info:</h2> | ||
<JsonTreeViewer data={span} /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.