Restore header build info
Keep the deploy fixes while showing build SHA/date again in the\nheader, and regenerate the built frontend assets.
This commit is contained in:
@@ -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({});
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user