refactor: Liefergebiet bekommt einen eigenen Abschnitt "Versand"
Die Einstellung lag unter "Firmendaten" — zwischen Firmenname, Slogan und Anschrift. Dort sucht sie niemand: eine Versandregel ist keine Stammdatenangabe. Genau das ist beim ersten Suchen auch passiert. Jetzt ein eigener Abschnitt "Versand" (englisch "Shipping") unter Admin → Inhalte → Texte, direkt hinter den Firmendaten. Der Feldtyp-Vertrag der Registry bekommt dafuer die Gruppe "shipping". Rein organisatorisch — Schluessel, Wert und Verhalten bleiben gleich, ein bereits gepflegter Wert wandert einfach mit. tsc: 0 Fehler. vitest: 359/359 gruen. eslint: 0 Warnungen. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 parent
1bdf4df04a
commit
7f9ed7262f
5 files changed
+6
-2
No files matched your search
@@ -205,6 +205,7 @@ export default async function AdminInhaltePage(props: PageProps<"/admin/inhalte"
|
||||
|
||||
const groups: { key: ContentFieldDef["group"]; heading: string }[] = [
|
||||
{ key: "company", heading: t.adminContentPage.groupCompany },
|
||||
{ key: "shipping", heading: t.adminContentPage.groupShipping },
|
||||
{ key: "home", heading: t.adminContentPage.groupHome },
|
||||
{ key: "pages", heading: t.adminContentPage.groupPages },
|
||||
{ key: "social", heading: t.adminContentPage.groupSocial },
|
||||
|
||||
@@ -1164,6 +1164,7 @@ export const de: Dictionary = {
|
||||
sectionText: "Texte",
|
||||
sectionTextIntro: "Alle Textinhalte, sortiert nach Bereich.",
|
||||
groupCompany: "Firmendaten",
|
||||
groupShipping: "Versand",
|
||||
groupHome: "Homepage",
|
||||
groupPages: "Weitere Seiten",
|
||||
groupLegal: "Rechtstexte",
|
||||
|
||||
@@ -1163,6 +1163,7 @@ export const en: Dictionary = {
|
||||
sectionText: "Text",
|
||||
sectionTextIntro: "Every text field, grouped by section.",
|
||||
groupCompany: "Company details",
|
||||
groupShipping: "Shipping",
|
||||
groupHome: "Homepage",
|
||||
groupPages: "Other pages",
|
||||
groupLegal: "Legal pages",
|
||||
|
||||
@@ -856,6 +856,7 @@ export interface Dictionary {
|
||||
sectionText: string;
|
||||
sectionTextIntro: string;
|
||||
groupCompany: string;
|
||||
groupShipping: string;
|
||||
groupHome: string;
|
||||
groupPages: string;
|
||||
groupLegal: string;
|
||||
|
||||
@@ -18,7 +18,7 @@ export type ContentFieldType =
|
||||
|
||||
export interface ContentFieldDef {
|
||||
key: string;
|
||||
group: "company" | "home" | "pages" | "legal" | "social";
|
||||
group: "company" | "shipping" | "home" | "pages" | "legal" | "social";
|
||||
labelDe: string;
|
||||
labelEn: string;
|
||||
type: ContentFieldType;
|
||||
@@ -73,7 +73,7 @@ export const CONTENT_REGISTRY: ContentFieldDef[] = [
|
||||
// Auswahl und kein Freitext — siehe "options" oben.
|
||||
{
|
||||
key: "shipping.region",
|
||||
group: "company",
|
||||
group: "shipping",
|
||||
labelDe: "Liefergebiet",
|
||||
labelEn: "Shipping region",
|
||||
type: "select",
|
||||
|
||||
Reference in new issue
Block a user