Restore header build info
Deploy live / test (push) Successful in 24s
Deploy live / deploy (push) Successful in 7s

Keep the deploy fixes while showing build SHA/date again in the\nheader, and regenerate the built frontend assets.
This commit is contained in:
2026-08-11 14:39:37 +02:00
parent 32984ab6ab
commit d8cac38ed2
4 changed files with 51 additions and 56 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export const pollDelay = failures => failures ? Math.min(5000,1000*2**(failures-
function Modal({ trigger, title, children }) { return <Dialog><DialogTrigger asChild>{trigger}</DialogTrigger><DialogContent><DialogHeader><DialogTitle>{title}</DialogTitle></DialogHeader>{children}</DialogContent></Dialog>; }
function Field({ label, ...props }) { return <label className="grid gap-2 text-sm font-medium">{label}<Input {...props}/></label>; }
export function BuildSummary() { return null; }
export function BuildSummary({ build }) { return <p className="hidden max-w-md truncate text-xs text-muted-foreground sm:block">{build?`Build ${build.git_sha} · ${build.build_date}`:"Build information unavailable"}</p>; }
export function SettingsDialog({ status, refresh }) {
const [result,setResult]=useState({});
+2 -2
View File
@@ -39,8 +39,8 @@ describe("Importarr UI behavior", () => {
expect([pollDelay(0),pollDelay(1),pollDelay(2),pollDelay(4)]).toEqual([300,1000,2000,5000]);
});
it("hides the build commit and date from the header summary", () => {
it("shows the build commit and date in the header summary", () => {
render(<BuildSummary build={{ git_sha: "abc123def456", build_date: "2026-08-11T12:34:56+02:00" }} />);
expect(screen.queryByText("Build abc123def456 · 2026-08-11T12:34:56+02:00")).not.toBeInTheDocument();
expect(screen.getByText("Build abc123def456 · 2026-08-11T12:34:56+02:00")).toBeInTheDocument();
});
});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long