import type { ModuleManifest } from "./module";
import { z } from "zod";

const coreManifest: ModuleManifest = {
  id: "_core",
  name: "Core",
  entities: [],
  dashboardWidgets: [
    {
      id: "core.activity",
      title: "Recent activity",
      description: "Latest changes across your household.",
      category: "Core",
      defaultSize: { w: 4, h: 3 },
      minSize: { w: 3, h: 2 },
      defaultPriority: 50,
      configSchema: z.object({
        limit: z.number().int().min(1).max(50).optional(),
      }),
      defaultConfig: { limit: 10 },
      resolveConfigOptions: async () => undefined,
      render: () => (
        <div className="flex h-full items-center justify-center text-sm text-muted-foreground">
          Activity log coming in task 22
        </div>
      ),
    },
  ],
};

export default coreManifest;
