fix: add 'Show Icons for Projects' toggle to settings modal

Per-view setting with translations in all 5 languages (EN, DE, FR, ES, IT).

v1.59.2
This commit is contained in:
mARTin 2026-03-23 12:45:35 +01:00
parent b26d710fec
commit ccd069ae80
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.59.1",
"version": "1.59.2",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -333,6 +333,7 @@ const translations: Record<string, any> = {
goalFallback: "Goal Fallback Type",
defaultGoal: "Custom Default Goal",
showTaskCheckboxes: "Show Checkboxes on Tasks",
showProjectIcons: "Show Icons for Projects",
showSomeday: "Show Someday Section",
showAllDay: "Show All-Day Section",
allDayPosition: "All-Day Events Position",
@ -549,6 +550,7 @@ const translations: Record<string, any> = {
goalFallback: "Ziel-Fallback-Typ",
defaultGoal: "Benutzerdefiniertes Standardziel",
showTaskCheckboxes: "Checkboxen bei Aufgaben anzeigen",
showProjectIcons: "Icons für Projekte anzeigen",
showSomeday: "Irgendwann-Bereich anzeigen",
showAllDay: "Ganztägige Ereignisse anzeigen",
allDayPosition: "Position ganztägiger Ereignisse",
@ -764,6 +766,7 @@ const translations: Record<string, any> = {
goalFallback: "Type d'objectif par défaut",
defaultGoal: "Objectif par défaut personnalisé",
showTaskCheckboxes: "Afficher les cases à cocher",
showProjectIcons: "Afficher les icônes de projets",
showSomeday: "Afficher la section Un jour",
showAllDay: "Afficher la section Journée entière",
allDayPosition: "Position des événements journée entière",
@ -979,6 +982,7 @@ const translations: Record<string, any> = {
goalFallback: "Tipo de objetivo por defecto",
defaultGoal: "Objetivo predeterminado personalizado",
showTaskCheckboxes: "Mostrar casillas en las tareas",
showProjectIcons: "Mostrar iconos de proyectos",
showSomeday: "Mostrar sección Algún día",
showAllDay: "Mostrar sección Todo el día",
allDayPosition: "Posición de eventos de todo el día",
@ -1194,6 +1198,7 @@ const translations: Record<string, any> = {
goalFallback: "Tipo di obiettivo predefinito",
defaultGoal: "Obiettivo predefinito personalizzato",
showTaskCheckboxes: "Mostra caselle di spunta sulle attività",
showProjectIcons: "Mostra icone per i progetti",
showSomeday: "Mostra sezione Un giorno",
showAllDay: "Mostra sezione Giornata intera",
allDayPosition: "Posizione eventi giornata intera",
@ -11892,6 +11897,16 @@ function SettingsSidebar({
<label htmlFor="showTaskCheckboxes" style={{ fontSize: "0.9rem", fontWeight: 600 }}>{t.showTaskCheckboxes}</label>
</div>
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
<input type="checkbox" id="showProjectIcons"
checked={perView.getEffective("showProjectIcons", profile.showProjectIcons) as boolean}
onChange={(e) => {
perView.saveViewSetting("showProjectIcons", e.target.checked, true);
}}
style={{ width: "16px", height: "16px" }} />
<label htmlFor="showProjectIcons" style={{ fontSize: "0.9rem", fontWeight: 600 }}>{t.showProjectIcons}</label>
</div>
{viewStyle !== "kanban" && (
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
<input type="checkbox" id="protectEventTimes" checked={profile.protectEventTimes || false}