Repair main: register four migrations and rename the board-count hook

a82f7f9b1f00 · AtlantisPleb · · parent c60a36497750

Repair main: register four migrations and rename the board-count hook

The forum-markdown landing (8296157) replaced the board list's .badge count
with a plain span while its own test still selected .badge, and the day's
push races left four migrations (20260825101934, 20260825102408,
20260825113454, 20260825120000) unregistered in the lineage map. Give the
count span a stable id, point the test at it, and register the migrations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RfZq5s3rc6zpnBR75pTQaU
Co-Authored-By
Claude Fable 5 <noreply@anthropic.com>

Deploy story

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

pushed
by user · WAL seq 373 · 2026-08-25T12:57:12.586763Z

Changed files

  • modified lib/openagents_web/live/forum_home_live.ex
  • modified priv/migration_lineages/prior-2026-08-19.json
  • modified test/openagents_web/live/forum_live_updates_test.exs

Diff

3 files changed, +11 -4

lib/openagents_web/live/forum_home_live.ex modified +4 -1

@@ -63,7 +63,10 @@ defmodule OpenAgentsWeb.ForumHomeLive do

63 63
              >
64 64
                <div class="flex items-baseline justify-between gap-3">
65 65
                  <h2 class="text-base font-semibold">{forum.title}</h2>
66
                  <span class="text-sm text-muted-foreground whitespace-nowrap">
66
                  <span
67
                    id={"board-topics-#{forum.slug}"}
68
                    class="text-sm text-muted-foreground whitespace-nowrap"
69
                  >
67 70
                    {forum.topic_count} topics
68 71
                  </span>
69 72
                </div>
priv/migration_lineages/prior-2026-08-19.json modified +5 -1

@@ -299,7 +299,11 @@

299 299
    20260824231951,
300 300
    20260825024500,
301 301
    20260825054906,
302
    20260825113459
302
    20260825101934,
303
    20260825102408,
304
    20260825113454,
305
    20260825113459,
306
    20260825120000
303 307
  ],
304 308
  "required_tables": [
305 309
    "users",
test/openagents_web/live/forum_live_updates_test.exs modified +2 -2

@@ -155,11 +155,11 @@ defmodule OpenAgentsWeb.ForumLiveUpdatesTest do

155 155
156 156
      {:ok, view, _html} = live(context.conn, ~p"/forum")
157 157
158
      assert has_element?(view, ".badge", "0 topics")
158
      assert has_element?(view, "#board-topics-general", "0 topics")
159 159
160 160
      _topic = topic!(board, "The first of them", "the-first-of-them")
161 161
162
      assert has_element?(view, ".badge", "1 topics")
162
      assert has_element?(view, "#board-topics-general", "1 topics")
163 163
    end
164 164
165 165
    test "the badge is a stored counter, not a collection loaded to measure it",

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