Skip to content

Commit

Permalink
feat(app): add port id (#2453)
Browse files Browse the repository at this point in the history
Add port id to channels
  • Loading branch information
Swepool authored Jul 16, 2024
2 parents 0076b55 + 8c054f0 commit 2efab83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 12 additions & 1 deletion app/src/routes/explorer/(components)/cell-origin-channel.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
<script lang="ts">
import { cn } from "$lib/utilities/shadcn.ts"
import * as Tooltip from "$lib/components/ui/tooltip"
import { truncate } from "$lib/utilities/format.ts"
export let value: {
chain_display_name: string
chain_id: string
connection_id: string
channel_id: string
port_id: string
}
</script>

<div class={cn("flex flex-col ")} {...$$restProps}>
<div {...$$restProps} class={cn("flex flex-col ")}>
<div class="font-bold">{value.chain_display_name}</div>
<div>{value.chain_id}</div>
<div>{value.connection_id}</div>
<div>{value.channel_id}</div>
<Tooltip.Root>
<Tooltip.Trigger>
<div class="text-start">{truncate(value.port_id, 10)}</div>
</Tooltip.Trigger>
<Tooltip.Content>
{value.port_id}
</Tooltip.Content>
</Tooltip.Root>
</div>
6 changes: 4 additions & 2 deletions app/src/routes/explorer/(components)/table-channels.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ let channels = createQuery({
chain_display_name: channel.source?.display_name,
chain_id: channel.from_chain_id ?? "unknown",
connection_id: channel.to_connection_id ?? "unknown",
channel_id: channel.from_channel_id ?? "unknown"
channel_id: channel.from_channel_id ?? "unknown",
port_id: channel.from_port_id ?? "unknown"
},
destination: {
chain_display_name: channel.destination?.display_name,
chain_id: channel.to_chain_id ?? "unknown",
connection_id: channel.to_connection_id ?? "unknown",
channel_id: channel.to_channel_id ?? "unknown"
channel_id: channel.to_channel_id ?? "unknown",
port_id: channel.to_port_id ?? "unknown"
},
status: channel.status
}))
Expand Down

0 comments on commit 2efab83

Please sign in to comment.