Show the deploy branch in the app page title and early in the app list (closes #240)
Check / check (pull_request) Skipped

The app page shows the configured branch as a neutral label next to the
status badge; the line under the title now shows only the repository.
The app list moves the Branch column to right after Name and lets the
table scroll sideways inside its card, so narrow screens no longer cut
columns off. A new test renders both pages for an app on a non-main
branch.

Model: opus-5-5
This commit is contained in:
2026-09-29 09:47:13 +00:00
parent 0a94484795
commit f68e755bd2
4 changed files with 88 additions and 4 deletions
+3 -2
View File
@@ -26,11 +26,12 @@
<!-- Header -->
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8">
<div>
<div class="flex items-center gap-3">
<div class="flex flex-wrap items-center gap-3">
<h1 class="text-2xl font-medium text-gray-900">{{.App.Name}}</h1>
<span x-bind:class="statusBadgeClass" x-text="statusLabel"></span>
<span class="badge-neutral font-mono break-all" title="Branch">{{.App.Branch}}</span>
</div>
<p class="text-gray-500 font-mono text-sm mt-1">{{.App.RepoURL}}@{{.App.Branch}}</p>
<p class="text-gray-500 font-mono text-sm mt-1">{{.App.RepoURL}}</p>
</div>
<div class="flex gap-3">
<a href="/apps/{{.App.ID}}/edit" class="btn-secondary">Edit</a>
+4 -2
View File
@@ -21,12 +21,13 @@
{{if .AppStats}}
<div class="card overflow-hidden">
<div class="overflow-x-auto">
<table class="table">
<thead class="table-header">
<tr>
<th>Name</th>
<th>Repository</th>
<th>Branch</th>
<th>Repository</th>
<th>Status</th>
<th>Last Deploy</th>
<th>Deploys</th>
@@ -41,8 +42,8 @@
{{.App.Name}}
</a>
</td>
<td class="text-gray-500 font-mono text-xs">{{.App.RepoURL}}</td>
<td class="text-gray-500">{{.App.Branch}}</td>
<td class="text-gray-500 font-mono text-xs">{{.App.RepoURL}}</td>
<td>
{{if eq .App.Status "running"}}
<span class="badge-success">Running</span>
@@ -78,6 +79,7 @@
{{end}}
</tbody>
</table>
</div>
</div>
{{else}}
<div class="card">