Give the repository page the composed repository view The page was a stack of cards. It now uses the view the component library already had: the owner trail, the section bar, the file tree, and the rail beside it. Only the sections that exist are drawn. Pull requests, wiki, insights and settings have no routes, so no tabs are rendered for them, and the Issues tab carries a count only when there is something to count. The tree's ref bar states how many branches and tags there are but not how many commits, because that total is not a bounded query and an invented number beside two real ones is worse than one missing number. The ref list stays below: the bar counts refs, and without the list a branch that is not the default one has no trace anywhere on the page. Clone moved into the ref bar as a copy control, and stays a card while the repository is empty -- an empty repository has no ref bar, and telling someone how to push the first commit is the only thing the page can do for them. Two dead links removed on the way. The rail linked a guessed `README.md`, so a repository whose readme is named anything else got a link to a 404; it links the file that was actually found, under its own name. And `repo_view/1` defaulted the owner's name to a link to `/OWNER`, which nothing serves -- an absent path now means the owner is plain text rather than a link to a 404.
Give the repository page the composed repository view
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/ui.ex -
modified
lib/openagents_web/live/code_repo_live.ex -
modified
test/openagents_web/live/code_live_test.exs
Diff
3 files changed, +158 -48
lib/openagents_web/components/ui.ex modified +8 -4
@@ -1114,7 +1114,12 @@ defmodule OpenAgentsWeb.UI do
| 1114 | 1114 |
|
| 1115 | 1115 |
|
| 1116 | 1116 |
|
| 1117 |
|
|
| 1117 |
|
|
| 1118 |
|
|
| 1119 |
|
|
| 1120 |
|
|
| 1121 |
|
|
| 1122 |
|
|
| 1118 | 1123 |
|
| 1119 | 1124 |
|
| 1120 | 1125 |
|
@@ -1125,8 +1130,6 @@ defmodule OpenAgentsWeb.UI do
| 1125 | 1130 |
|
| 1126 | 1131 |
|
| 1127 | 1132 |
|
| 1128 |
|
|
| 1129 |
|
|
| 1130 | 1133 |
|
| 1131 | 1134 |
|
| 1132 | 1135 |
|
@@ -1138,7 +1141,8 @@ defmodule OpenAgentsWeb.UI do
| 1138 | 1141 |
|
| 1139 | 1142 |
|
| 1140 | 1143 |
|
| 1141 |
|
|
| 1144 |
|
|
| 1145 |
|
|
| 1142 | 1146 |
|
| 1143 | 1147 |
|
| 1144 | 1148 |
|
lib/openagents_web/live/code_repo_live.ex modified +145 -43
@@ -42,6 +42,14 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 42 | 42 |
|
| 43 | 43 |
|
| 44 | 44 |
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 45 | 53 |
|
| 46 | 54 |
|
| 47 | 55 |
|
@@ -61,7 +69,12 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 61 | 69 |
|
| 62 | 70 |
|
| 63 | 71 |
|
| 64 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 65 | 78 |
|
| 66 | 79 |
|
| 67 | 80 |
|
@@ -88,6 +101,35 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 88 | 101 |
|
| 89 | 102 |
|
| 90 | 103 |
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 91 | 133 |
|
| 92 | 134 |
|
| 93 | 135 |
|
@@ -98,25 +140,20 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 98 | 140 |
|
| 99 | 141 |
|
| 100 | 142 |
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 120 | 157 |
|
| 121 | 158 |
|
| 122 | 159 |
|
@@ -174,33 +211,69 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 174 | 211 |
|
| 175 | 212 |
|
| 176 | 213 |
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 | 214 |
|
| 183 | 215 |
|
| 184 | 216 |
|
| 185 | 217 |
|
| 186 | 218 |
|
| 187 | 219 |
|
| 188 |
|
|
| 220 |
|
|
| 189 | 221 |
|
| 190 | 222 |
|
| 191 |
|
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 226 |
|
|
| 227 |
|
|
| 228 |
|
|
| 229 |
|
|
| 230 |
|
|
| 202 | 231 |
|
| 203 | 232 |
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
|
| 245 |
|
|
| 246 |
|
|
| 247 |
|
|
| 248 |
|
|
| 249 |
|
|
| 250 |
|
|
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 257 |
|
|
| 258 |
|
|
| 259 |
|
|
| 260 |
|
|
| 261 |
|
|
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 |
|
|
| 268 |
|
|
| 269 |
|
|
| 270 |
|
|
| 271 |
|
|
| 272 |
|
|
| 273 |
|
|
| 274 |
|
|
| 275 |
|
|
| 276 |
|
|
| 204 | 277 |
|
| 205 | 278 |
|
| 206 | 279 |
|
@@ -214,13 +287,42 @@ defmodule OpenAgentsWeb.CodeRepoLive do
| 214 | 287 |
|
| 215 | 288 |
|
| 216 | 289 |
|
| 217 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 290 |
|
|
| 291 |
|
|
| 292 |
|
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 222 | 301 |
|
| 223 |
|
|
| 302 |
|
|
| 303 |
|
|
| 304 |
|
|
| 305 |
|
|
| 306 |
|
|
| 307 |
|
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
|
| 317 |
|
|
| 318 |
|
|
| 319 |
|
|
| 320 |
|
|
| 321 |
|
|
| 322 |
|
|
| 323 |
|
|
| 324 |
|
|
| 325 |
|
|
| 224 | 326 |
|
| 225 | 327 |
|
| 226 | 328 |
|
test/openagents_web/live/code_live_test.exs modified +5 -1
@@ -165,7 +165,11 @@ defmodule OpenAgentsWeb.CodeLiveTest do
| 165 | 165 |
|
| 166 | 166 |
|
| 167 | 167 |
|
| 168 |
|
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| 172 |
|
|
| 169 | 173 |
|
| 170 | 174 |
|
| 171 | 175 |
|