From c6d564836f545539c78cb082ef95ecbba6dc12f9 Mon Sep 17 00:00:00 2001 From: "T. Zehetbauer" <125989630+4thTomost@users.noreply.github.com> Date: Thu, 2 Apr 2026 11:02:58 +0200 Subject: [PATCH] fix: add missing newlines at the end of JSON files; clean up formatting in page components --- apps/web/.bg-shell/manifest.json | 2 +- apps/web/app/[locale]/admin/audit/page.tsx | 5 +- .../club/[slug]/portal/invite/page.tsx | 4 +- .../_components/portal-linked-accounts.tsx | 8 +- .../club/[slug]/portal/profile/page.tsx | 8 +- .../[account]/bookings/[bookingId]/page.tsx | 7 +- .../home/[account]/bookings/calendar/page.tsx | 32 ++- .../[locale]/home/[account]/bookings/page.tsx | 5 +- .../courses/[courseId]/edit/page.tsx | 3 +- .../[account]/courses/[courseId]/page.tsx | 6 +- .../home/[account]/courses/calendar/page.tsx | 21 +- .../[locale]/home/[account]/courses/page.tsx | 5 +- .../home/[account]/events/[eventId]/page.tsx | 11 +- .../[locale]/home/[account]/events/page.tsx | 10 +- .../[account]/events/registrations/page.tsx | 10 +- .../[account]/finance/invoices/[id]/page.tsx | 22 +- .../[locale]/home/[account]/finance/page.tsx | 26 ++- .../home/[account]/finance/payments/page.tsx | 24 +- .../[account]/finance/sepa/[batchId]/page.tsx | 32 ++- .../home/[account]/finance/sepa/page.tsx | 10 +- .../app/[locale]/home/[account]/layout.tsx | 160 ++++++++++--- .../app/[locale]/home/[account]/loading.tsx | 8 +- .../meetings/protocols/[protocolId]/page.tsx | 4 +- .../members-cms/[memberId]/edit/page.tsx | 3 +- .../modules/[moduleId]/[recordId]/page.tsx | 3 +- .../modules/[moduleId]/import/page.tsx | 3 +- .../[account]/modules/[moduleId]/new/page.tsx | 3 +- .../newsletter/[campaignId]/page.tsx | 6 +- .../home/[account]/newsletter/page.tsx | 24 +- .../home/[account]/site-builder/new/page.tsx | 3 +- .../home/[account]/site-builder/page.tsx | 5 +- .../[account]/site-builder/posts/new/page.tsx | 3 +- .../[account]/site-builder/posts/page.tsx | 5 +- .../site-builder/publish-toggle-button.tsx | 15 +- .../settings/_components/settings-content.tsx | 4 +- apps/web/components/account-not-found.tsx | 3 +- apps/web/components/cms-page-shell.tsx | 4 +- .../config/team-account-navigation.config.tsx | 220 +++--------------- apps/web/i18n/messages/de/bookings.json | 2 +- apps/web/i18n/messages/de/cms.json | 2 +- apps/web/i18n/messages/de/common.json | 2 +- apps/web/i18n/messages/de/courses.json | 12 +- apps/web/i18n/messages/de/meetings.json | 2 +- apps/web/i18n/messages/de/members.json | 2 +- apps/web/i18n/messages/de/newsletter.json | 2 +- apps/web/i18n/messages/en/bookings.json | 2 +- apps/web/i18n/messages/en/cms.json | 2 +- apps/web/i18n/messages/en/common.json | 2 +- apps/web/i18n/messages/en/courses.json | 12 +- apps/web/i18n/messages/en/meetings.json | 2 +- apps/web/i18n/messages/en/members.json | 2 +- apps/web/i18n/messages/en/newsletter.json | 2 +- apps/web/lib/status-badges.ts | 3 +- .../src/makerkit/navigation-config.schema.ts | 2 +- .../ui/src/makerkit/sidebar-navigation.tsx | 44 ++-- packages/ui/src/shadcn/collapsible.tsx | 28 ++- 56 files changed, 471 insertions(+), 381 deletions(-) diff --git a/apps/web/.bg-shell/manifest.json b/apps/web/.bg-shell/manifest.json index 0637a088a..fe51488c7 100644 --- a/apps/web/.bg-shell/manifest.json +++ b/apps/web/.bg-shell/manifest.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/apps/web/app/[locale]/admin/audit/page.tsx b/apps/web/app/[locale]/admin/audit/page.tsx index b619f166b..a09968f26 100644 --- a/apps/web/app/[locale]/admin/audit/page.tsx +++ b/apps/web/app/[locale]/admin/audit/page.tsx @@ -54,10 +54,7 @@ async function AuditPage(props: AdminAuditPageProps) { return ( - +
{/* Filters */} diff --git a/apps/web/app/[locale]/club/[slug]/portal/invite/page.tsx b/apps/web/app/[locale]/club/[slug]/portal/invite/page.tsx index e07488dbb..fafecbad6 100644 --- a/apps/web/app/[locale]/club/[slug]/portal/invite/page.tsx +++ b/apps/web/app/[locale]/club/[slug]/portal/invite/page.tsx @@ -75,7 +75,9 @@ export default async function PortalInvitePage({

{t('invite.expiredTitle')}

- {t('invite.expiredDesc', { date: formatDate(invitation.expires_at) })} + {t('invite.expiredDesc', { + date: formatDate(invitation.expires_at), + })}

diff --git a/apps/web/app/[locale]/club/[slug]/portal/profile/_components/portal-linked-accounts.tsx b/apps/web/app/[locale]/club/[slug]/portal/profile/_components/portal-linked-accounts.tsx index af847c91b..6210d65d5 100644 --- a/apps/web/app/[locale]/club/[slug]/portal/profile/_components/portal-linked-accounts.tsx +++ b/apps/web/app/[locale]/club/[slug]/portal/profile/_components/portal-linked-accounts.tsx @@ -179,13 +179,17 @@ export function PortalLinkedAccounts({ slug }: { slug: string }) { - {t('linkedAccounts.title')} + + {t('linkedAccounts.title')} + {t('linkedAccounts.disconnectDesc')} - {t('linkedAccounts.cancel')} + + {t('linkedAccounts.cancel')} + handleUnlink(identity)} className="bg-destructive text-destructive-foreground hover:bg-destructive/90" diff --git a/apps/web/app/[locale]/club/[slug]/portal/profile/page.tsx b/apps/web/app/[locale]/club/[slug]/portal/profile/page.tsx index 7cf495b14..b044c78c9 100644 --- a/apps/web/app/[locale]/club/[slug]/portal/profile/page.tsx +++ b/apps/web/app/[locale]/club/[slug]/portal/profile/page.tsx @@ -3,13 +3,7 @@ import { redirect } from 'next/navigation'; import { createClient } from '@supabase/supabase-js'; -import { - UserCircle, - Mail, - MapPin, - Shield, - Link2, -} from 'lucide-react'; +import { UserCircle, Mail, MapPin, Shield, Link2 } from 'lucide-react'; import { getTranslations } from 'next-intl/server'; import { formatDate } from '@kit/shared/dates'; diff --git a/apps/web/app/[locale]/home/[account]/bookings/[bookingId]/page.tsx b/apps/web/app/[locale]/home/[account]/bookings/[bookingId]/page.tsx index 14c4bf3b7..37b7750c3 100644 --- a/apps/web/app/[locale]/home/[account]/bookings/[bookingId]/page.tsx +++ b/apps/web/app/[locale]/home/[account]/bookings/[bookingId]/page.tsx @@ -99,7 +99,12 @@ export default async function BookingDetailPage({ params }: PageProps) { {/* Header */}
- -

- {t('calendar.subtitle')} -

+

{t('calendar.subtitle')}

@@ -154,13 +157,23 @@ export default async function BookingCalendarPage({ params }: PageProps) {
- {MONTH_NAMES[month]} {year} -
@@ -232,7 +245,10 @@ export default async function BookingCalendarPage({ params }: PageProps) {

{bookings.data.length}

- {t('calendar.daysOccupied', { occupied: occupiedDates.size, total: daysInMonth })} + {t('calendar.daysOccupied', { + occupied: occupiedDates.size, + total: daysInMonth, + })} diff --git a/apps/web/app/[locale]/home/[account]/bookings/page.tsx b/apps/web/app/[locale]/home/[account]/bookings/page.tsx index d77333e65..5acea6ee0 100644 --- a/apps/web/app/[locale]/home/[account]/bookings/page.tsx +++ b/apps/web/app/[locale]/home/[account]/bookings/page.tsx @@ -250,7 +250,10 @@ export default async function BookingsPage({ 'secondary' } > - {t(STATUS_LABEL_KEYS[String(booking.status)] ?? String(booking.status))} + {t( + STATUS_LABEL_KEYS[String(booking.status)] ?? + String(booking.status), + )} diff --git a/apps/web/app/[locale]/home/[account]/courses/[courseId]/edit/page.tsx b/apps/web/app/[locale]/home/[account]/courses/[courseId]/edit/page.tsx index 77dcf0cd7..63e0d0dd4 100644 --- a/apps/web/app/[locale]/home/[account]/courses/[courseId]/edit/page.tsx +++ b/apps/web/app/[locale]/home/[account]/courses/[courseId]/edit/page.tsx @@ -1,7 +1,8 @@ +import { getTranslations } from 'next-intl/server'; + import { createCourseManagementApi } from '@kit/course-management/api'; import { CreateCourseForm } from '@kit/course-management/components'; import { getSupabaseServerClient } from '@kit/supabase/server-client'; -import { getTranslations } from 'next-intl/server'; import { AccountNotFound } from '~/components/account-not-found'; import { CmsPageShell } from '~/components/cms-page-shell'; diff --git a/apps/web/app/[locale]/home/[account]/courses/[courseId]/page.tsx b/apps/web/app/[locale]/home/[account]/courses/[courseId]/page.tsx index ee776fc6f..83dd2ac8a 100644 --- a/apps/web/app/[locale]/home/[account]/courses/[courseId]/page.tsx +++ b/apps/web/app/[locale]/home/[account]/courses/[courseId]/page.tsx @@ -88,8 +88,10 @@ export default async function CourseDetailPage({ params }: PageProps) { 'secondary' } > - {t(COURSE_STATUS_LABEL_KEYS[String(courseData.status)] ?? - String(courseData.status))} + {t( + COURSE_STATUS_LABEL_KEYS[String(courseData.status)] ?? + String(courseData.status), + )} diff --git a/apps/web/app/[locale]/home/[account]/courses/calendar/page.tsx b/apps/web/app/[locale]/home/[account]/courses/calendar/page.tsx index b036fc6d1..06e51fc5c 100644 --- a/apps/web/app/[locale]/home/[account]/courses/calendar/page.tsx +++ b/apps/web/app/[locale]/home/[account]/courses/calendar/page.tsx @@ -129,7 +129,12 @@ export default async function CourseCalendarPage({ {/* Header */}
-
) : ( - )} @@ -366,7 +377,12 @@ export default async function FinancePage({ params, searchParams }: PageProps) { ) : ( - )} diff --git a/apps/web/app/[locale]/home/[account]/finance/payments/page.tsx b/apps/web/app/[locale]/home/[account]/finance/payments/page.tsx index 5ebe762e6..c688e5893 100644 --- a/apps/web/app/[locale]/home/[account]/finance/payments/page.tsx +++ b/apps/web/app/[locale]/home/[account]/finance/payments/page.tsx @@ -1,13 +1,13 @@ import Link from 'next/link'; import { Euro, CreditCard, TrendingUp, ArrowRight } from 'lucide-react'; +import { getTranslations } from 'next-intl/server'; import { createFinanceApi } from '@kit/finance/api'; import { getSupabaseServerClient } from '@kit/supabase/server-client'; import { Badge } from '@kit/ui/badge'; import { Button } from '@kit/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card'; -import { getTranslations } from 'next-intl/server'; import { AccountNotFound } from '~/components/account-not-found'; import { CmsPageShell } from '~/components/cms-page-shell'; @@ -84,9 +84,7 @@ export default async function PaymentsPage({ params }: PageProps) {
{/* Header */}
-

- {t('payments.subtitle')} -

+

{t('payments.subtitle')}

{/* Stats */} @@ -121,7 +119,9 @@ export default async function PaymentsPage({ params }: PageProps) {
- {t('payments.openInvoices')} + + {t('payments.openInvoices')} + 0 ? 'default' : 'secondary'} > @@ -131,7 +131,10 @@ export default async function PaymentsPage({ params }: PageProps) {

{openInvoices.length > 0 - ? t('payments.invoicesOpenSummary', { count: openInvoices.length, total: formatCurrency(openTotal) }) + ? t('payments.invoicesOpenSummary', { + count: openInvoices.length, + total: formatCurrency(openTotal), + }) : t('payments.noOpenInvoices')}