fix: QA audit — lint cleanup, i18n fixes, module visibility, sidebar UX
- Fix 97 lint errors → 0 (unused imports, params, variables across 40+ files) - Fix i18n key format: colon → dot notation for next-intl compatibility - Add missing i18n keys (routes.application, routes.home, confirm) - Fix module visibility: sidebar now respects per-account DB features - Fix inject function: use dot-notation keys, add collapsed:true defaults - Fix ConfirmDialog: use useTranslations instead of hardcoded German defaults - Fix events page: replace placeholder 'Beschreibung' with proper description - Fix Dockerfile: add NEXT_PUBLIC_CI ARG for Docker builds - Collapse secondary sidebar sections by default for cleaner UX
This commit is contained in:
@@ -11,7 +11,7 @@ export function createDocumentGeneratorApi() {
|
||||
* Generate a PDF document (member card, invoice, certificate, etc.)
|
||||
* Uses @react-pdf/renderer or jspdf at runtime.
|
||||
*/
|
||||
async generatePdf(params: {
|
||||
async generatePdf(_params: {
|
||||
title: string;
|
||||
content: Record<string, unknown>;
|
||||
format?: 'A4' | 'A5' | 'letter';
|
||||
@@ -28,7 +28,7 @@ export function createDocumentGeneratorApi() {
|
||||
* Generate an Excel workbook (reports, data exports)
|
||||
* Uses exceljs at runtime.
|
||||
*/
|
||||
async generateExcel(params: {
|
||||
async generateExcel(_params: {
|
||||
title: string;
|
||||
sheets: Array<{
|
||||
name: string;
|
||||
@@ -45,7 +45,7 @@ export function createDocumentGeneratorApi() {
|
||||
* Generate a Word document (mail merge, letters)
|
||||
* Uses docx at runtime.
|
||||
*/
|
||||
async generateWord(params: {
|
||||
async generateWord(_params: {
|
||||
title: string;
|
||||
templateContent: string;
|
||||
mergeFields: Record<string, string>;
|
||||
|
||||
Reference in New Issue
Block a user