feat: pre-existing local changes — fischerei, verband, modules, members, packages
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 6m20s
Workflow / ⚫️ Test (push) Has been skipped

Commits all remaining uncommitted local work:

- apps/web: fischerei, verband, modules, members-cms, documents,
  newsletter, meetings, site-builder, courses, bookings, events,
  finance pages and components
- apps/web: marketing page updates, layout, paths config,
  next.config.mjs, styles/makerkit.css
- apps/web/i18n: documents, fischerei, marketing, verband (de+en)
- packages/features: finance, fischerei, member-management,
  module-builder, newsletter, sitzungsprotokolle, verbandsverwaltung
  server APIs and components
- packages/ui: button.tsx updates
- pnpm-lock.yaml
This commit is contained in:
Zaid Marzguioui
2026-04-02 01:19:54 +02:00
parent a1719671df
commit b26e5aaafa
153 changed files with 2329 additions and 1227 deletions

View File

@@ -3,6 +3,7 @@
import { useState } from 'react';
import { Plus, Pencil, Trash2, Settings } from 'lucide-react';
import { useTranslations } from 'next-intl';
import { Button } from '@kit/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card';
@@ -141,7 +142,7 @@ function SettingsSection({
<>
<div>
<span className="font-medium">{String(item.name)}</span>
{item.description && (
{Boolean(item.description) && (
<p className="text-muted-foreground text-xs">
{String(item.description)}
</p>
@@ -183,6 +184,7 @@ export default function SettingsContent({
types,
feeTypes,
}: SettingsContentProps) {
const t = useTranslations('verband');
// Roles
const { execute: execCreateRole, isPending: isCreatingRole } =
useActionWithToast(createRole, {
@@ -228,14 +230,13 @@ export default function SettingsContent({
return (
<div className="space-y-6">
<div>
<h1 className="text-2xl font-bold">Einstellungen</h1>
<p className="text-muted-foreground">
Funktionen, Vereinstypen und Beitragsarten verwalten
{t('settings.subtitle')}
</p>
</div>
<SettingsSection
title="Funktionen (Rollen)"
title={t('settings.roles')}
items={roles}
onAdd={(name, description) =>
execCreateRole({ accountId, name, description, sortOrder: 0 })
@@ -247,7 +248,7 @@ export default function SettingsContent({
/>
<SettingsSection
title="Vereinstypen"
title={t('settings.types')}
items={types}
onAdd={(name, description) =>
execCreateType({ accountId, name, description, sortOrder: 0 })
@@ -259,7 +260,7 @@ export default function SettingsContent({
/>
<SettingsSection
title="Beitragsarten"
title={t('settings.feeTypes')}
items={feeTypes}
onAdd={(name, description) =>
execCreateFeeType({ accountId, name, description, isActive: true })

View File

@@ -1,3 +1,5 @@
import { getTranslations } from 'next-intl/server';
import { getSupabaseServerClient } from '@kit/supabase/server-client';
import { createVerbandApi } from '@kit/verbandsverwaltung/api';
import { VerbandTabNavigation } from '@kit/verbandsverwaltung/components';
@@ -14,6 +16,7 @@ interface Props {
export default async function SettingsPage({ params }: Props) {
const { account } = await params;
const client = getSupabaseServerClient();
const t = await getTranslations('verband');
const { data: acct } = await client
.from('accounts')
@@ -31,7 +34,7 @@ export default async function SettingsPage({ params }: Props) {
]);
return (
<CmsPageShell account={account} title="Verbandsverwaltung - Einstellungen">
<CmsPageShell account={account} title={t('pages.settingsTitle')}>
<VerbandTabNavigation account={account} activeTab="settings" />
<SettingsContent
accountId={acct.id}