fix(housekeeping): retain admin banner shim
CI / check (pull_request) Failing after 31s
CI / release (pull_request) Skipped
CI / deploy (pull_request) Skipped

This commit is contained in:
Simo committed 2026-08-30 12:11:14 +02:00
1 parent 08358b8aa4
commit b70bd401d1
2 files changed
+14 -1

No files matched your search

@@ -335,4 +335,13 @@ describe("Content legacy wrappers", () => {
).toBe(true);
}
});
it("routes the real banner manager through the required compatibility action", () => {
const source = readFileSync(
"src/app/admin/banners/banners-manager.tsx",
"utf8",
);
expect(source).toContain('from "@/actions/admin-banners"');
expect(source).not.toContain('from "@/actions/banners"');
});
});
+5 -1
View File
@@ -2,7 +2,11 @@
import { Pencil, Plus, Trash2 } from "lucide-react";
import { useState } from "react";
import { createBanner, deleteBanner, updateBanner } from "@/actions/banners";
import {
createBanner,
deleteBanner,
updateBanner,
} from "@/actions/admin-banners";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";