From cb124ba3ec2af7da184ef2259b238080a8470b56 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 3 Apr 2026 15:24:13 +0200 Subject: [PATCH] fix: show required indicator on day note title, disable save when empty --- client/src/components/Planner/DayPlanSidebar.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index 3b23efc..b9850f3 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -1554,8 +1554,9 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({ value={ui.text} onChange={e => setNoteUi(prev => ({ ...prev, [dayId]: { ...prev[dayId], text: e.target.value } }))} onKeyDown={e => { if (e.key === 'Enter') { e.preventDefault(); saveNote(Number(dayId)) } if (e.key === 'Escape') cancelNote(Number(dayId)) }} - placeholder={t('dayplan.noteTitle')} - style={{ fontSize: 13, fontWeight: 500, border: '1px solid var(--border-primary)', borderRadius: 8, padding: '8px 10px', fontFamily: 'inherit', outline: 'none', width: '100%', boxSizing: 'border-box', color: 'var(--text-primary)' }} + placeholder={t('dayplan.noteTitle') + ' *'} + required + style={{ fontSize: 13, fontWeight: 500, border: `1px solid ${!ui.text?.trim() ? 'var(--border-primary)' : 'var(--border-primary)'}`, borderRadius: 8, padding: '8px 10px', fontFamily: 'inherit', outline: 'none', width: '100%', boxSizing: 'border-box', color: 'var(--text-primary)' }} />