feat: pre-existing local changes — fischerei, verband, modules, members, packages
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:
@@ -1,3 +1,5 @@
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { createMeetingsApi } from '@kit/sitzungsprotokolle/api';
|
||||
import {
|
||||
MeetingsTabNavigation,
|
||||
@@ -15,6 +17,7 @@ interface PageProps {
|
||||
export default async function MeetingsPage({ params }: PageProps) {
|
||||
const { account } = await params;
|
||||
const client = getSupabaseServerClient();
|
||||
const t = await getTranslations('meetings');
|
||||
|
||||
const { data: acct } = await client
|
||||
.from('accounts')
|
||||
@@ -33,7 +36,7 @@ export default async function MeetingsPage({ params }: PageProps) {
|
||||
]);
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title="Sitzungsprotokolle">
|
||||
<CmsPageShell account={account} title={t('pages.overviewTitle')}>
|
||||
<MeetingsTabNavigation account={account} activeTab="overview" />
|
||||
<MeetingsDashboard
|
||||
stats={stats}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import {
|
||||
MeetingsTabNavigation,
|
||||
CreateProtocolForm,
|
||||
@@ -14,6 +16,7 @@ interface PageProps {
|
||||
export default async function NewProtocolPage({ params }: PageProps) {
|
||||
const { account } = await params;
|
||||
const client = getSupabaseServerClient();
|
||||
const t = await getTranslations('meetings');
|
||||
|
||||
const { data: acct } = await client
|
||||
.from('accounts')
|
||||
@@ -24,11 +27,10 @@ export default async function NewProtocolPage({ params }: PageProps) {
|
||||
if (!acct) return <AccountNotFound />;
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title="Sitzungsprotokolle">
|
||||
<CmsPageShell account={account} title={t('pages.newProtocolTitle')}>
|
||||
<MeetingsTabNavigation account={account} activeTab="protocols" />
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">Neues Protokoll erstellen</h1>
|
||||
<p className="text-muted-foreground">
|
||||
Erstellen Sie ein neues Sitzungsprotokoll mit Tagesordnungspunkten.
|
||||
</p>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { createMeetingsApi } from '@kit/sitzungsprotokolle/api';
|
||||
import {
|
||||
MeetingsTabNavigation,
|
||||
@@ -20,6 +22,7 @@ export default async function ProtocolsPage({
|
||||
const { account } = await params;
|
||||
const sp = await searchParams;
|
||||
const client = getSupabaseServerClient();
|
||||
const t = await getTranslations('meetings');
|
||||
|
||||
const { data: acct } = await client
|
||||
.from('accounts')
|
||||
@@ -42,7 +45,7 @@ export default async function ProtocolsPage({
|
||||
});
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title="Sitzungsprotokolle">
|
||||
<CmsPageShell account={account} title={t('pages.protocolsTitle')}>
|
||||
<MeetingsTabNavigation account={account} activeTab="protocols" />
|
||||
<ProtocolsDataTable
|
||||
data={result.data}
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { createMeetingsApi } from '@kit/sitzungsprotokolle/api';
|
||||
import {
|
||||
MeetingsTabNavigation,
|
||||
OpenTasksView,
|
||||
type OpenTask,
|
||||
} from '@kit/sitzungsprotokolle/components';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
@@ -17,6 +20,7 @@ export default async function TasksPage({ params, searchParams }: PageProps) {
|
||||
const { account } = await params;
|
||||
const sp = await searchParams;
|
||||
const client = getSupabaseServerClient();
|
||||
const t = await getTranslations('meetings');
|
||||
|
||||
const { data: acct } = await client
|
||||
.from('accounts')
|
||||
@@ -33,18 +37,17 @@ export default async function TasksPage({ params, searchParams }: PageProps) {
|
||||
const result = await api.listOpenTasks(acct.id, { page });
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title="Sitzungsprotokolle">
|
||||
<CmsPageShell account={account} title={t('pages.tasksTitle')}>
|
||||
<MeetingsTabNavigation account={account} activeTab="tasks" />
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">Offene Aufgaben</h1>
|
||||
<p className="text-muted-foreground">
|
||||
Alle offenen und in Bearbeitung befindlichen Tagesordnungspunkte
|
||||
über alle Protokolle.
|
||||
</p>
|
||||
</div>
|
||||
<OpenTasksView
|
||||
data={result.data as any}
|
||||
data={result.data as OpenTask[]}
|
||||
total={result.total}
|
||||
page={result.page}
|
||||
pageSize={result.pageSize}
|
||||
|
||||
Reference in New Issue
Block a user