feat(ui): ekstre içe aktarma sihirbazı
Yükleme ve geçmiş, hesap kurulumu, kontroller, düzenlenebilir önizleme (süzgeçler, sayfalama, Kakeibo grubu) ve işleme / geri alma ekranı; İşlemler sayfasına "İçe aktar" girişi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
import { ImportWizard } from "@/features/imports/components/import-wizard";
|
||||
import { getImportDraft } from "@/features/imports/service";
|
||||
import { tr } from "@/i18n/tr";
|
||||
import { requireActiveHousehold } from "@/lib/dal";
|
||||
|
||||
export const metadata: Metadata = { title: tr.imports.title };
|
||||
|
||||
/** /islemler/ice-aktar/:id — aktarma taslağı ya da işlenmiş aktarma. */
|
||||
export default async function ImportPage({ params }: PageProps<"/islemler/ice-aktar/[id]">) {
|
||||
const { user, household } = await requireActiveHousehold("member");
|
||||
const { id } = await params;
|
||||
const draft = await getImportDraft(user.id, household.id, id);
|
||||
if (!draft) notFound();
|
||||
return <ImportWizard key={`${draft.id}-${draft.status}`} draft={draft} />;
|
||||
}
|
||||
Reference in New Issue
Block a user