wsb-daemon 0.275.7622

wsb's daemon: the workbench, the GitHub mirror's schedule and peer continuity, for every workspace on the machine
<script lang="ts">
  import SessionBreadcrumb from "../layout/SessionBreadcrumb.svelte";
  import MessageList from "./MessageList.svelte";
  import { sessions } from "../../stores/sessions.svelte.js";
  import type { DisplayItem } from "../../utils/display-items.js";

  interface Props {
    bindMessageList?: {
      scrollToOrdinal: (o: number) => void;
      getDisplayItems: () => DisplayItem[];
      getNormalDisplayItems: () => DisplayItem[];
    } | undefined;
  }

  let { bindMessageList = $bindable() }: Props = $props();
</script>

{#if sessions.activeSessionId}
  <SessionBreadcrumb
    session={sessions.activeSession}
    onBack={() => sessions.deselectSession()}
  />
  <MessageList bind:this={bindMessageList} />
{:else}
  <div class="session-empty">Select a session from the sidebar.</div>
{/if}

<style>
  .session-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--vscode-disabledForeground);
    font-size: var(--wb-font-size-13);
  }
</style>