Skip to content

Your favorite shift management application!

feat: Adds view settings and display options (#51)

panteL0ed1defa7c84
diff --git a/app/page.tsx b/app/page.tsx
index 97eebfd..b978bbe 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -13,6 +13,7 @@ import { ExternalSyncManageDialog } from "@/components/external-sync-manage-dial
import { SyncNotificationDialog } from "@/components/sync-notification-dialog";
import { DayShiftsDialog } from "@/components/day-shifts-dialog";
import { SyncedShiftsDialog } from "@/components/synced-shifts-dialog";
+import { ViewSettingsDialog } from "@/components/view-settings-dialog";
import { LanguageSwitcher } from "@/components/language-switcher";
import { AppFooter } from "@/components/app-footer";
import { ShiftStats } from "@/components/shift-stats";
@@ -184,6 +185,7 @@ function HomeContent() {
const [syncLogRefreshTrigger, setSyncLogRefreshTrigger] = useState(0);
const [showDayShiftsDialog, setShowDayShiftsDialog] = useState(false);
const [showSyncedShiftsDialog, setShowSyncedShiftsDialog] = useState(false);
+ const [showViewSettingsDialog, setShowViewSettingsDialog] = useState(false);
const [selectedDayDate, setSelectedDayDate] = useState<Date | null>(null);
const [selectedDayShifts, setSelectedDayShifts] = useState<
ShiftWithCalendar[]
@@ -216,6 +218,86 @@ function HomeContent() {
commitHash?: string;
} | null>(null);
+ // View density state with localStorage persistence
+ const [shiftsPerDay, setShiftsPerDay] = useState<number | null>(() => {
+ if (typeof window !== "undefined") {
+ const stored = localStorage.getItem("shifts-per-day");
+ if (stored === "null") return null;
+ if (stored) {
+ const parsed = parseInt(stored);
+ return isNaN(parsed) ? 3 : parsed;
+ }
+ }
+ return 3;
+ });
+
+ const [externalShiftsPerDay, setExternalShiftsPerDay] = useState<
+ number | null
+ >(() => {
+ if (typeof window !== "undefined") {
+ const stored = localStorage.getItem("external-shifts-per-day");
+ if (stored === "null") return null;
+ if (stored) {
+ const parsed = parseInt(stored);
+ return isNaN(parsed) ? 3 : parsed;
+ }
+ }
+ return 3;
+ });
+
+ const [showShiftNotes, setShowShiftNotes] = useState<boolean>(() => {
+ if (typeof window !== "undefined") {
+ const stored = localStorage.getItem("show-shift-notes");
+ return stored === "true";
+ }
+ return false;
+ });
+
+ const [showFullTitles, setShowFullTitles] = useState<boolean>(() => {
+ if (typeof window !== "undefined") {
+ const stored = localStorage.getItem("show-full-titles");
+ return stored === "true";
+ }
+ return false;
+ });
+
+ const handleShiftsPerDayChange = useCallback((count: number | null) => {
+ setShiftsPerDay(count);
+ if (typeof window !== "undefined") {
+ localStorage.setItem(
+ "shifts-per-day",
+ count === null ? "null" : count.toString()
+ );
+ }
+ }, []);
+
+ const handleExternalShiftsPerDayChange = useCallback(
+ (count: number | null) => {
+ setExternalShiftsPerDay(count);
+ if (typeof window !== "undefined") {
+ localStorage.setItem(
+ "external-shifts-per-day",
+ count === null ? "null" : count.toString()
+ );
+ }
+ },
+ []
+ );
+
+ const handleShowShiftNotesChange = useCallback((show: boolean) => {
+ setShowShiftNotes(show);
+ if (typeof window !== "undefined") {
+ localStorage.setItem("show-shift-notes", show.toString());
+ }
+ }, []);
+
+ const handleShowFullTitlesChange = useCallback((show: boolean) => {
+ setShowFullTitles(show);
+ if (typeof window !== "undefined") {
+ localStorage.setItem("show-full-titles", show.toString());
+ }
+ }, []);
+
// Check if UI elements should be hidden (password required but not cached)
const selectedCalendarData = useMemo(() => {
return calendars.find((c) => c.id === selectedCalendar);
@@ -855,6 +937,7 @@ function HomeContent() {
onPasswordRequired={handlePresetPasswordRequired}
onManualShiftCreation={handleManualShiftCreation}
onMobileCalendarDialogChange={setShowMobileCalendarDialog}
+ onViewSettingsClick={() => setShowViewSettingsDialog(true)}
presetsLoading={presetsLoading}
/>
@@ -996,6 +1079,12 @@ function HomeContent() {
selectedPresetId={selectedPresetId}
togglingDates={togglingDates}
externalSyncs={externalSyncs}
+ maxShiftsToShow={shiftsPerDay === null ? undefined : shiftsPerDay}
+ maxExternalShiftsToShow={
+ externalShiftsPerDay === null ? undefined : externalShiftsPerDay
+ }
+ showShiftNotes={showShiftNotes}
+ showFullTitles={showFullTitles}
onDayClick={handleDayClick}
onDayRightClick={
shouldHideUIElements ? undefined : handleDayRightClick
@@ -1179,6 +1268,20 @@ function HomeContent() {
shifts={selectedSyncedShifts}
/>
+ {/* View Settings Dialog */}
+ <ViewSettingsDialog
+ open={showViewSettingsDialog}
+ onOpenChange={setShowViewSettingsDialog}
+ shiftsPerDay={shiftsPerDay}
+ externalShiftsPerDay={externalShiftsPerDay}
+ showShiftNotes={showShiftNotes}
+ showFullTitles={showFullTitles}
+ onShiftsPerDayChange={handleShiftsPerDayChange}
+ onExternalShiftsPerDayChange={handleExternalShiftsPerDayChange}
+ onShowShiftNotesChange={handleShowShiftNotesChange}
+ onShowFullTitlesChange={handleShowFullTitlesChange}
+ />
+
{/* Sync Notification Center */}
{selectedCalendar && (
<SyncNotificationDialog
diff --git a/components/app-header.tsx b/components/app-header.tsx
index dd087db..3bd0581 100644
--- a/components/app-header.tsx
+++ b/components/app-header.tsx
@@ -11,7 +11,7 @@ import {
DialogTitle,
DialogDescription,
} from "@/components/ui/dialog";
-import { Calendar as CalendarIcon, Plus } from "lucide-react";
+import { Calendar as CalendarIcon, Plus, Settings2 } from "lucide-react";
import { ShiftPreset } from "@/lib/db/schema";
interface AppHeaderProps {
@@ -35,6 +35,7 @@ interface AppHeaderProps {
onPasswordRequired: (action: () => Promise<void>) => void;
onManualShiftCreation: () => void;
onMobileCalendarDialogChange: (open: boolean) => void;
+ onViewSettingsClick: () => void;
presetsLoading?: boolean;
}
@@ -59,6 +60,7 @@ export function AppHeader({
onPasswordRequired,
onManualShiftCreation,
onMobileCalendarDialogChange,
+ onViewSettingsClick,
presetsLoading = false,
}: AppHeaderProps) {
const t = useTranslations();
@@ -215,19 +217,39 @@ export function AppHeader({
{/* Preset Selector */}
{selectedCalendar && (
- <div className="px-0.5 sm:px-0">
- <PresetSelector
- calendars={calendars}
- presets={presets}
- selectedPresetId={selectedPresetId}
- onSelectPreset={onSelectPreset}
- onPresetsChange={onPresetsChange}
- onShiftsChange={onShiftsChange}
- onStatsRefresh={onStatsRefresh}
- calendarId={selectedCalendar}
- onPasswordRequired={onPasswordRequired}
- loading={presetsLoading}
- />
+ <div className="flex flex-col sm:flex-row gap-3 px-0.5 sm:px-0">
+ <div className="flex-1">
+ <PresetSelector
+ calendars={calendars}
+ presets={presets}
+ selectedPresetId={selectedPresetId}
+ onSelectPreset={onSelectPreset}
+ onPresetsChange={onPresetsChange}
+ onShiftsChange={onShiftsChange}
+ onStatsRefresh={onStatsRefresh}
+ calendarId={selectedCalendar}
+ onPasswordRequired={onPasswordRequired}
+ loading={presetsLoading}
+ />
+ </div>
+
+ {/* View Settings Button */}
+ <motion.div
+ className="shrink-0"
+ initial={{ opacity: 0, y: -10 }}
+ animate={{ opacity: 1, y: 0 }}
+ transition={{ duration: 0.3, delay: 0.2 }}
+ >
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={onViewSettingsClick}
+ className="h-10 w-full sm:w-auto gap-2 bg-muted/30 backdrop-blur-sm border-border/50 hover:bg-accent/50 shadow-sm"
+ >
+ <Settings2 className="h-4 w-4" />
+ <span>{t("view.settingsTitleShort")}</span>
+ </Button>
+ </motion.div>
</div>
)}
</div>
diff --git a/components/calendar-grid.tsx b/components/calendar-grid.tsx
index e18fba4..c22d399 100644
--- a/components/calendar-grid.tsx
+++ b/components/calendar-grid.tsx
@@ -6,6 +6,7 @@ import { isToday } from "date-fns";
import { useTranslations } from "next-intl";
import { useRef, useEffect } from "react";
import { formatDateToLocal } from "@/lib/date-utils";
+import { CalendarShiftCard } from "./calendar-shift-card";
interface CalendarGridProps {
calendarDays: Date[];
@@ -15,6 +16,10 @@ interface CalendarGridProps {
selectedPresetId: string | undefined;
togglingDates: Set<string>;
externalSyncs: ExternalSync[];
+ maxShiftsToShow?: number; // undefined = show all (regular shifts)
+ maxExternalShiftsToShow?: number; // undefined = show all (external shifts)
+ showShiftNotes?: boolean; // show notes in shift cards
+ showFullTitles?: boolean; // show full titles without truncation
onDayClick: (date: Date) => void;
onDayRightClick?: (e: React.MouseEvent, date: Date) => void;
onNoteIconClick?: (e: React.MouseEvent, date: Date) => void;
@@ -31,6 +36,10 @@ export function CalendarGrid({
selectedPresetId,
togglingDates,
externalSyncs,
+ maxShiftsToShow,
+ maxExternalShiftsToShow,
+ showShiftNotes = false,
+ showFullTitles = false,
onDayClick,
onDayRightClick,
onNoteIconClick,
@@ -196,73 +205,86 @@ export function CalendarGrid({
}
});
- // Get shifts to display normally (regular + synced with normal mode)
- const normalDisplayShifts = dayShifts.filter((s) => {
- if (!s.syncedFromExternal) return true;
- if (!s.externalSyncId) return true;
+ // Get shifts to display normally - separate regular from external
+ const regularShifts = dayShifts.filter(
+ (s) => !s.syncedFromExternal
+ );
+ const externalNormalShifts = dayShifts.filter((s) => {
+ if (!s.syncedFromExternal) return false;
+ if (!s.externalSyncId) return false;
const sync = externalSyncs.find(
(sync) => sync.id === s.externalSyncId
);
- return !sync || sync.displayMode === "normal";
+ return sync && sync.displayMode === "normal";
});
return (
<>
- {/* Display normal shifts (first 2) */}
- {normalDisplayShifts.slice(0, 2).map((shift) => (
- <div
+ {/* Display regular shifts */}
+ {(maxShiftsToShow === undefined
+ ? regularShifts
+ : regularShifts.slice(0, maxShiftsToShow)
+ ).map((shift) => (
+ <CalendarShiftCard
key={shift.id}
- className="text-[10px] sm:text-xs px-0.5 py-0.5 sm:px-1.5 sm:py-1 rounded"
- style={{
- backgroundColor: shift.color
- ? `${shift.color}20`
- : "#3b82f620",
- borderLeft: `2px solid ${shift.color || "#3b82f6"}`,
- }}
- title={`${shift.title} ${
- shift.isAllDay
- ? `(${t("shift.allDay")})`
- : `(${shift.startTime} - ${shift.endTime})`
- }`}
- >
- <div className="font-semibold line-clamp-2 leading-[1.1] sm:leading-tight">
- {shift.title}
- </div>
- <div className="text-[9px] sm:text-[10px] opacity-70 leading-tight">
- {shift.isAllDay ? (
- t("shift.allDay")
- ) : (
- <>
- <span className="sm:hidden">
- {shift.startTime.substring(0, 5)}
- </span>
- <span className="hidden sm:inline">
- {shift.startTime.substring(0, 5)} -{" "}
- {shift.endTime.substring(0, 5)}
- </span>
- </>
- )}
+ shift={shift}
+ showShiftNotes={showShiftNotes}
+ showFullTitles={showFullTitles}
+ />
+ ))}
+
+ {/* Show "+X more" for regular shifts if limited by maxShiftsToShow */}
+ {maxShiftsToShow !== undefined &&
+ regularShifts.length > maxShiftsToShow && (
+ <div
+ onClick={(e) => {
+ if (selectedPresetId) return;
+ e.stopPropagation();
+ onShowAllShifts?.(day, regularShifts);
+ }}
+ className={`text-[10px] sm:text-xs text-primary font-semibold text-center pt-0.5 transition-colors ${
+ selectedPresetId
+ ? "cursor-not-allowed opacity-50"
+ : "hover:text-primary/80 hover:underline cursor-pointer"
+ }`}
+ >
+ +{regularShifts.length - maxShiftsToShow}
</div>
- </div>
+ )}
+
+ {/* Display external shifts with normal display mode */}
+ {(maxExternalShiftsToShow === undefined
+ ? externalNormalShifts
+ : externalNormalShifts.slice(0, maxExternalShiftsToShow)
+ ).map((shift) => (
+ <CalendarShiftCard
+ key={shift.id}
+ shift={shift}
+ showShiftNotes={showShiftNotes}
+ showFullTitles={showFullTitles}
+ />
))}
- {/* Show "+X more" for normal display shifts if more than 2 */}
- {normalDisplayShifts.length > 2 && (
- <div
- onClick={(e) => {
- if (selectedPresetId) return;
- e.stopPropagation();
- onShowAllShifts?.(day, normalDisplayShifts);
- }}
- className={`text-[10px] sm:text-xs text-primary font-semibold text-center pt-0.5 transition-colors ${
- selectedPresetId
- ? "cursor-not-allowed opacity-50"
- : "hover:text-primary/80 hover:underline cursor-pointer"
- }`}
- >
- +{normalDisplayShifts.length - 2}
- </div>
- )}
+ {/* Show "+X more" for external shifts if limited by maxExternalShiftsToShow */}
+ {maxExternalShiftsToShow !== undefined &&
+ externalNormalShifts.length > maxExternalShiftsToShow && (
+ <div
+ onClick={(e) => {
+ if (selectedPresetId) return;
+ e.stopPropagation();
+ onShowAllShifts?.(day, externalNormalShifts);
+ }}
+ className={`text-[10px] sm:text-xs text-primary font-semibold text-center pt-0.5 transition-colors ${
+ selectedPresetId
+ ? "cursor-not-allowed opacity-50"
+ : "hover:text-primary/80 hover:underline cursor-pointer"
+ }`}
+ >
+ +
+ {externalNormalShifts.length -
+ maxExternalShiftsToShow}
+ </div>
+ )}
{/* Show minimal badges for each sync with minimal display mode */}
{Object.entries(syncedShiftsByMode).map(
diff --git a/components/calendar-shift-card.tsx b/components/calendar-shift-card.tsx
new file mode 100644
index 0000000..9332dc5
--- /dev/null
+++ b/components/calendar-shift-card.tsx
@@ -0,0 +1,57 @@
+import { ShiftWithCalendar } from "@/lib/types";
+import { useTranslations } from "next-intl";
+
+interface CalendarShiftCardProps {
+ shift: ShiftWithCalendar;
+ showShiftNotes?: boolean;
+ showFullTitles?: boolean;
+}
+
+export function CalendarShiftCard({
+ shift,
+ showShiftNotes = false,
+ showFullTitles = false,
+}: CalendarShiftCardProps) {
+ const t = useTranslations();
+
+ return (
+ <div
+ className="text-[10px] sm:text-xs px-0.5 py-0.5 sm:px-1.5 sm:py-1 rounded"
+ style={{
+ backgroundColor: shift.color ? `${shift.color}20` : "#3b82f620",
+ borderLeft: `2px solid ${shift.color || "#3b82f6"}`,
+ }}
+ title={`${shift.title} ${
+ shift.isAllDay
+ ? `(${t("shift.allDay")})`
+ : `(${shift.startTime} - ${shift.endTime})`
+ }${shift.notes ? `\n${shift.notes}` : ""}`}
+ >
+ <div
+ className={`font-semibold leading-[1.1] sm:leading-tight break-words ${
+ showFullTitles ? "" : "line-clamp-2"
+ }`}
+ >
+ {shift.title}
+ </div>
+ <div className="text-[9px] sm:text-[10px] opacity-70 leading-tight">
+ {shift.isAllDay ? (
+ t("shift.allDay")
+ ) : (
+ <>
+ <span className="sm:hidden">{shift.startTime.substring(0, 5)}</span>
+ <span className="hidden sm:inline">
+ {shift.startTime.substring(0, 5)} -{" "}
+ {shift.endTime.substring(0, 5)}
+ </span>
+ </>
+ )}
+ </div>
+ {showShiftNotes && shift.notes && (
+ <div className="text-[9px] sm:text-[10px] opacity-60 leading-tight mt-0.5 line-clamp-2">
+ {shift.notes}
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/components/view-settings-dialog.tsx b/components/view-settings-dialog.tsx
new file mode 100644
index 0000000..83a21e0
--- /dev/null
+++ b/components/view-settings-dialog.tsx
@@ -0,0 +1,205 @@
+"use client";
+
+import { useTranslations } from "next-intl";
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogDescription,
+} from "@/components/ui/dialog";
+import { Checkbox } from "@/components/ui/checkbox";
+import { Label } from "@/components/ui/label";
+import { Slider } from "@/components/ui/slider";
+import { Maximize2, FileText, Infinity } from "lucide-react";
+
+interface ViewSettingsDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ shiftsPerDay: number | null;
+ externalShiftsPerDay: number | null;
+ showShiftNotes: boolean;
+ showFullTitles: boolean;
+ onShiftsPerDayChange: (count: number | null) => void;
+ onExternalShiftsPerDayChange: (count: number | null) => void;
+ onShowShiftNotesChange: (show: boolean) => void;
+ onShowFullTitlesChange: (show: boolean) => void;
+}
+
+export function ViewSettingsDialog({
+ open,
+ onOpenChange,
+ shiftsPerDay,
+ externalShiftsPerDay,
+ showShiftNotes,
+ showFullTitles,
+ onShiftsPerDayChange,
+ onExternalShiftsPerDayChange,
+ onShowShiftNotesChange,
+ onShowFullTitlesChange,
+}: ViewSettingsDialogProps) {
+ const t = useTranslations();
+
+ return (
+ <Dialog open={open} onOpenChange={onOpenChange}>
+ <DialogContent className="sm:max-w-[500px] max-w-[95vw] max-h-[85vh] flex flex-col p-0 gap-0 border border-border/50 bg-gradient-to-b from-background via-background to-muted/30 backdrop-blur-xl shadow-2xl">
+ <DialogHeader className="border-b border-border/50 bg-gradient-to-r from-primary/10 via-primary/5 to-transparent p-6 pb-5 space-y-1.5">
+ <DialogTitle className="text-xl font-semibold bg-gradient-to-r from-foreground to-foreground/70 bg-clip-text">
+ {t("view.settingsTitle")}
+ </DialogTitle>
+ <DialogDescription className="text-sm text-muted-foreground">
+ {t("view.settingsDescription")}
+ </DialogDescription>
+ </DialogHeader>
+
+ <div className="space-y-6 overflow-y-auto flex-1 px-6 py-6">
+ {/* Regular Shifts per Day */}
+ <div className="space-y-4">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <Maximize2 className="h-4 w-4 text-primary" />
+ <Label className="text-sm font-semibold">
+ {t("view.shiftsPerDay")}
+ </Label>
+ </div>
+ <div className="flex items-center gap-2 px-3 py-1.5 bg-primary/10 rounded-lg border border-primary/20">
+ {shiftsPerDay === null ? (
+ <>
+ <Infinity className="h-4 w-4 text-primary" />
+ <span className="text-sm font-semibold text-primary">
+ {t("view.showAll")}
+ </span>
+ </>
+ ) : (
+ <span className="text-sm font-semibold text-primary">
+ {shiftsPerDay}
+ </span>
+ )}
+ </div>
+ </div>
+ <div className="space-y-3">
+ <Slider
+ value={[shiftsPerDay === null ? 11 : shiftsPerDay]}
+ onValueChange={(value) =>
+ onShiftsPerDayChange(value[0] === 11 ? null : value[0])
+ }
+ min={1}
+ max={11}
+ step={1}
+ className="w-full"
+ />
+ <div className="flex justify-between text-xs text-muted-foreground px-1">
+ <span>1</span>
+ <span>{t("view.showAll")}</span>
+ </div>
+ </div>
+ <p className="text-xs text-muted-foreground">
+ {t("view.shiftsPerDayHint")}
+ </p>
+ </div>
+
+ {/* External Shifts per Day */}
+ <div className="space-y-4">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <Maximize2 className="h-4 w-4 text-primary" />
+ <Label className="text-sm font-semibold">
+ {t("view.externalShiftsPerDay")}
+ </Label>
+ </div>
+ <div className="flex items-center gap-2 px-3 py-1.5 bg-primary/10 rounded-lg border border-primary/20">
+ {externalShiftsPerDay === null ? (
+ <>
+ <Infinity className="h-4 w-4 text-primary" />
+ <span className="text-sm font-semibold text-primary">
+ {t("view.showAll")}
+ </span>
+ </>
+ ) : (
+ <span className="text-sm font-semibold text-primary">
+ {externalShiftsPerDay}
+ </span>
+ )}
+ </div>
+ </div>
+ <div className="space-y-3">
+ <Slider
+ value={[
+ externalShiftsPerDay === null ? 11 : externalShiftsPerDay,
+ ]}
+ onValueChange={(value) =>
+ onExternalShiftsPerDayChange(
+ value[0] === 11 ? null : value[0]
+ )
+ }
+ min={1}
+ max={11}
+ step={1}
+ className="w-full"
+ />
+ <div className="flex justify-between text-xs text-muted-foreground px-1">
+ <span>1</span>
+ <span>{t("view.showAll")}</span>
+ </div>
+ </div>
+ <p className="text-xs text-muted-foreground">
+ {t("view.externalShiftsPerDayHint")}
+ </p>
+ </div>
+
+ {/* Show Shift Notes */}
+ <div className="space-y-3">
+ <div className="flex items-center gap-2">
+ <FileText className="h-4 w-4 text-primary" />
+ <Label className="text-sm font-semibold">
+ {t("view.displayOptions")}
+ </Label>
+ </div>
+ <div className="space-y-3 pl-6 border-l-2 border-border/50">
+ <div className="flex items-start gap-3">
+ <Checkbox
+ id="show-notes"
+ checked={showShiftNotes}
+ onCheckedChange={onShowShiftNotesChange}
+ className="mt-0.5"
+ />
+ <div className="flex-1 space-y-1">
+ <Label
+ htmlFor="show-notes"
+ className="text-sm font-medium cursor-pointer"
+ >
+ {t("view.showNotes")}
+ </Label>
+ <p className="text-xs text-muted-foreground">
+ {t("view.showNotesHint")}
+ </p>
+ </div>
+ </div>
+
+ {/* Show Full Titles */}
+ <div className="flex items-start gap-3">
+ <Checkbox
+ id="show-full-titles"
+ checked={showFullTitles}
+ onCheckedChange={onShowFullTitlesChange}
+ className="mt-0.5"
+ />
+ <div className="flex-1 space-y-1">
+ <Label
+ htmlFor="show-full-titles"
+ className="text-sm font-medium cursor-pointer"
+ >
+ {t("view.showFullTitles")}
+ </Label>
+ <p className="text-xs text-muted-foreground">
+ {t("view.showFullTitlesHint")}
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/messages/de.json b/messages/de.json
index 5bac790..fb0fc12 100644
--- a/messages/de.json
+++ b/messages/de.json
@@ -147,6 +147,21 @@
"saturday": "Sa",
"sunday": "So"
},
+ "view": {
+ "settingsTitleShort": "Ansicht",
+ "settingsTitle": "Ansichtseinstellungen",
+ "settingsDescription": "Passe an, wie Schichten in allen Kalendern angezeigt werden",
+ "shiftsPerDay": "Normale Schichten pro Tag",
+ "shiftsPerDayHint": "Maximale Anzahl der normalen Schichten pro Tag",
+ "externalShiftsPerDay": "Externe Schichten pro Tag",
+ "externalShiftsPerDayHint": "Maximale Anzahl der Schichten aus externen Kalendern pro Tag",
+ "showAll": "Alle",
+ "displayOptions": "Anzeigeoptionen",
+ "showNotes": "Schichtnotizen anzeigen",
+ "showNotesHint": "Notizen der Schichten im Kalender anzeigen",
+ "showFullTitles": "Vollständige Schichttitel anzeigen",
+ "showFullTitlesHint": "Schichttitel vollständig ohne Kürzung anzeigen"
+ },
"stats": {
"title": "Schichtenstatistik",
diff --git a/messages/en.json b/messages/en.json
index a7661fd..244cf66 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -147,6 +147,21 @@
"saturday": "Sat",
"sunday": "Sun"
},
+ "view": {
+ "settingsTitleShort": "View",
+ "settingsTitle": "View Settings",
+ "settingsDescription": "Customize how shifts are displayed in all calendars",
+ "shiftsPerDay": "Regular shifts per day",
+ "shiftsPerDayHint": "Maximum number of regular shifts to display per day",
+ "externalShiftsPerDay": "External shifts per day",
+ "externalShiftsPerDayHint": "Maximum number of external calendar shifts to display per day",
+ "showAll": "All",
+ "displayOptions": "Display Options",
+ "showNotes": "Show shift notes",
+ "showNotesHint": "Display shift notes in calendar grid",
+ "showFullTitles": "Show full shift titles",
+ "showFullTitlesHint": "Display complete shift titles without truncation"
+ },
"stats": {
"title": "Shift Statistics",
diff --git a/messages/it.json b/messages/it.json
index 35ba217..d5681c0 100644
--- a/messages/it.json
+++ b/messages/it.json
@@ -147,6 +147,21 @@
"saturday": "Sab",
"sunday": "Dom"
},
+ "view": {
+ "settingsTitleShort": "Vista",
+ "settingsTitle": "Impostazioni Vista",
+ "settingsDescription": "Personalizza come vengono visualizzati i turni in tutti i calendari",
+ "shiftsPerDay": "Turni regolari al giorno",
+ "shiftsPerDayHint": "Numero massimo di turni regolari da visualizzare per giorno",
+ "externalShiftsPerDay": "Turni esterni al giorno",
+ "externalShiftsPerDayHint": "Numero massimo di turni da calendari esterni da visualizzare per giorno",
+ "showAll": "Tutti",
+ "displayOptions": "Opzioni di Visualizzazione",
+ "showNotes": "Mostra note turni",
+ "showNotesHint": "Visualizza note dei turni nella griglia calendario",
+ "showFullTitles": "Mostra titoli completi",
+ "showFullTitlesHint": "Visualizza titoli completi dei turni senza troncamento"
+ },
"stats": {
"title": "Statistiche Turni",
"week": "Settimana",