Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): add port id #2453

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading