De-Sarah the leaderboard surface.

7ee32f5fa304 · AtlantisPleb · · parent 6063fbdf0daa

De-Sarah the leaderboard surface.

- Update LeaderboardLive title, aria-label, and copy to OpenAgents.

- Update the leaderboard header assertion from SARAH to OpenAgents.

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified lib/openagents_web/live/leaderboard_live.ex
  • modified test/openagents_web/live/leaderboard_live_test.exs

Diff

2 files changed, +5 -6

lib/openagents_web/live/leaderboard_live.ex modified +4 -4

@@ -3,7 +3,7 @@ defmodule OpenAgentsWeb.LeaderboardLive do

3 3
  The public leaderboard.
4 4
5 5
  A read-only projection of `OpenAgents.Leaderboard`. It mounts without a session,
6
  holds no conversation, and offers no action that can invoke Sarah, which is
6
  holds no conversation, and offers no action that can invoke OpenAgents, which is
7 7
  what lets a second public surface sit alongside the authentication boundary
8 8
  (`INVARIANTS.md` UI-001, LEADERBOARD-001).
9 9

@@ -23,7 +23,7 @@ defmodule OpenAgentsWeb.LeaderboardLive do

23 23
24 24
    {:ok,
25 25
     socket
26
     |> assign(:page_title, "Leaderboard · Sarah")
26
     |> assign(:page_title, "Leaderboard · OpenAgents")
27 27
     |> assign(:entries, Leaderboard.entries())}
28 28
  end
29 29

@@ -39,7 +39,7 @@ defmodule OpenAgentsWeb.LeaderboardLive do

39 39
    ~H"""
40 40
    <Layouts.app flash={@flash}>
41 41
      <main id="leaderboard-page" class="app-shell leaderboard-shell">
42
        <Layouts.command_bar aria_label="Sarah leaderboard" current_user={@current_user}>
42
        <Layouts.command_bar aria_label="OpenAgents leaderboard" current_user={@current_user}>
43 43
          <:lockup>
44 44
            <.button
45 45
              :if={@current_user}

@@ -56,7 +56,7 @@ defmodule OpenAgentsWeb.LeaderboardLive do

56 56
        <section class="leaderboard" aria-label="Token leaderboard">
57 57
          <header class="leaderboard-heading">
58 58
            <h1>Leaderboard</h1>
59
            <p>Accounts ranked by tokens used with Sarah, across typed and spoken turns.</p>
59
            <p>Accounts ranked by tokens used with OpenAgents, across typed and spoken turns.</p>
60 60
          </header>
61 61
62 62
          <.empty :if={@entries == []} id="leaderboard-empty" title="No tokens yet">
test/openagents_web/live/leaderboard_live_test.exs modified +1 -2

@@ -6,7 +6,6 @@ defmodule OpenAgentsWeb.LeaderboardLiveTest do

6 6
  """
7 7
8 8
  use OpenAgentsWeb.SarahConnCase, async: false
9
  @moduletag :skip
10 9
  import Phoenix.LiveViewTest
11 10
12 11
  alias OpenAgents.Accounts

@@ -42,7 +41,7 @@ defmodule OpenAgentsWeb.LeaderboardLiveTest do

42 41
    {:ok, _view, html} = live(conn, ~p"/leaderboard")
43 42
44 43
    assert html =~ ~s(class="command-bar")
45
    assert html =~ "SARAH"
44
    assert html =~ "OpenAgents"
46 45
    refute html =~ ~s(id="account-menu-trigger")
47 46
    refute html =~ ~s(id="return-to-conversation")
48 47
  end

This page updates live while a promote is in flight · changelog