Use the full public code canvas

bf68015dd0bf · AtlantisPleb · · parent 415b3cb12270

Use the full public code canvas

Give every anonymous repository code surface the same full-width frame that authenticated readers receive.

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/components/layouts.ex
  • modified lib/openagents_web/live/code_blob_live.ex
  • modified lib/openagents_web/live/code_commit_live.ex
  • modified lib/openagents_web/live/code_repo_live.ex
  • modified lib/openagents_web/live/code_tree_live.ex
  • modified test/openagents_web/live/code_live_test.exs

Diff

6 files changed, +15 -1

lib/openagents_web/components/layouts.ex modified +10 -1

@@ -46,6 +46,10 @@ defmodule OpenAgentsWeb.Layouts do

46 46
    default: false,
47 47
    doc: "use a wider content column for catalog and list surfaces"
48 48
49
  attr :full_width, :boolean,
50
    default: false,
51
    doc: "let a signed-out application surface use the full content area"
52
49 53
  attr :title, :string, default: nil, doc: "the page title to display in the command bar"
50 54
51 55
  attr :subtitle, :string, default: nil, doc: "the page subtitle to display in the command bar"

@@ -116,7 +120,12 @@ defmodule OpenAgentsWeb.Layouts do

116 120
          <%= if @flush or @current_scope do %>
117 121
            {render_slot(@inner_block)}
118 122
          <% else %>
119
            <div class={["mx-auto space-y-4", @wide && "max-w-6xl", !@wide && "max-w-2xl"]}>
123
            <div class={[
124
              "mx-auto w-full space-y-4",
125
              @full_width && "max-w-none",
126
              !@full_width && @wide && "max-w-6xl",
127
              !@full_width && !@wide && "max-w-2xl"
128
            ]}>
120 129
              {render_slot(@inner_block)}
121 130
            </div>
122 131
          <% end %>
lib/openagents_web/live/code_blob_live.ex modified +1

@@ -103,6 +103,7 @@ defmodule OpenAgentsWeb.CodeBlobLive do

103 103
      sidebar_sections={assigns[:sidebar_sections]}
104 104
      current_scope={assigns[:current_scope]}
105 105
      title="Code"
106
      full_width
106 107
    >
107 108
      <main id="code-blob-page" class="app-shell code-shell">
108 109
        <section class="code" aria-label="File view">
lib/openagents_web/live/code_commit_live.ex modified +1

@@ -145,6 +145,7 @@ defmodule OpenAgentsWeb.CodeCommitLive do

145 145
      sidebar_sections={assigns[:sidebar_sections]}
146 146
      current_scope={@current_scope}
147 147
      title="Commit"
148
      full_width
148 149
    >
149 150
      <main id="code-commit-page" class="app-shell code-shell">
150 151
        <section class="code" aria-label="Commit view">
lib/openagents_web/live/code_repo_live.ex modified +1

@@ -171,6 +171,7 @@ defmodule OpenAgentsWeb.CodeRepoLive do

171 171
      sidebar_sections={assigns[:sidebar_sections]}
172 172
      current_scope={@current_scope}
173 173
      title="Code"
174
      full_width
174 175
    >
175 176
      <main id="code-repo-page" class="app-shell code-shell">
176 177
        <.repo_view
lib/openagents_web/live/code_tree_live.ex modified +1

@@ -76,6 +76,7 @@ defmodule OpenAgentsWeb.CodeTreeLive do

76 76
      sidebar_sections={assigns[:sidebar_sections]}
77 77
      current_scope={@current_scope}
78 78
      title="Code"
79
      full_width
79 80
    >
80 81
      <main id="code-tree-page" class="app-shell code-shell">
81 82
        <.repo_view
test/openagents_web/live/code_live_test.exs modified +1

@@ -178,6 +178,7 @@ defmodule OpenAgentsWeb.CodeLiveTest do

178 178
      assert html =~ ~s(aria-label="OpenAgentsInc / openagents.com")
179 179
      assert html =~ ~s(class="repo-view)
180 180
      assert html =~ ~s(class="repo-tabs)
181
      assert html =~ ~s(class="mx-auto w-full space-y-4 max-w-none")
181 182
      assert html =~ "Add the transparency audit fixture"
182 183
      assert html =~ "First commit"
183 184
      assert html =~ ~s(id="repo-refs")

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