Skip to content

Ledger Logs

  • File: src/features/ledger/partials/LogViewer.svelte

Overview

Displays a chronological, icon-coded timeline of an event (call session) — started / ended / joined / left — read from the GraphQL ledger query. Each log is mapped to an icon and colour, with the time on the right.

Module Functions

ts
export async function getLedgerEvents(search?): Promise<...>   // ledger list
export async function getALedger(eventId): Promise<...>        // event + logs

Log mapping

typeIconColour
startedPlaygreen
endedStopgray
joinedUserAddgreen
leftUserRemovered

UI Structure

  • Header: event title + time.
  • Vertical timeline: each log row has a coloured circle + icon, a connector line, the log notes, and a timestamp.
  • Empty state: "There are no event logs".

Released under the MIT License.