fix: show provider icon on all events, better save button feedback
- Always show provider icon (Google/Apple/Outlook/Synology) at bottom-right of event blocks using FontAwesome icons - Save button shows "Erstelle..." / "Creating..." while saving instead of just "..." to reduce user confusion during sync v1.74.3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b1deb80e1
commit
2f973bf8af
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.74.2",
|
"version": "1.74.3",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -908,7 +908,7 @@ export default function CalendarEventModal({
|
|||||||
boxShadow: '0 1px 3px rgba(0,0,0,0.1)',
|
boxShadow: '0 1px 3px rgba(0,0,0,0.1)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isSaving ? '...' : (language === 'de' ? 'Speichern' : 'Save')}
|
{isSaving ? (language === 'de' ? 'Erstelle...' : 'Creating...') : (language === 'de' ? 'Speichern' : 'Save')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -975,7 +975,7 @@ export default function CalendarEventModal({
|
|||||||
borderRadius: 8, cursor: 'pointer',
|
borderRadius: 8, cursor: 'pointer',
|
||||||
opacity: isSaving ? 0.6 : 1,
|
opacity: isSaving ? 0.6 : 1,
|
||||||
boxShadow: '0 1px 3px rgba(0,0,0,0.1)',
|
boxShadow: '0 1px 3px rgba(0,0,0,0.1)',
|
||||||
}}>{isSaving ? '...' : (language === 'de' ? 'Speichern' : 'Save')}</button>
|
}}>{isSaving ? (language === 'de' ? 'Erstelle...' : 'Creating...') : (language === 'de' ? 'Speichern' : 'Save')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -8131,7 +8131,6 @@ export default function WeeklyView() {
|
|||||||
{event.location && (
|
{event.location && (
|
||||||
<div className="event-location-row">{event.location}</div>
|
<div className="event-location-row">{event.location}</div>
|
||||||
)}
|
)}
|
||||||
{(event.isRecurring || event.description || profile.showCalendarProviderIcon) && (
|
|
||||||
<div className="event-icons-row">
|
<div className="event-icons-row">
|
||||||
{event.description && (
|
{event.description && (
|
||||||
<span className="event-note-icon" data-note={stripHtml(event.description || '')}>
|
<span className="event-note-icon" data-note={stripHtml(event.description || '')}>
|
||||||
@ -8139,22 +8138,11 @@ export default function WeeklyView() {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{event.isRecurring && <Repeat size={11} />}
|
{event.isRecurring && <Repeat size={11} />}
|
||||||
{profile.showCalendarProviderIcon && (
|
<FontAwesomeIcon
|
||||||
<img
|
icon={event.source === "google" ? faGoogle : event.source === "apple" ? faApple : event.source === "outlook" ? faMicrosoft : faServer}
|
||||||
src={
|
style={{ fontSize: '0.6rem' }}
|
||||||
event.source === "google" ? "/icons/google-calendar.svg"
|
|
||||||
: event.source === "apple" ? "/icons/apple-calendar.svg"
|
|
||||||
: event.source === "outlook" ? "/icons/outlook-calendar.svg"
|
|
||||||
: event.source === "synology" ? "/icons/synology-calendar.svg"
|
|
||||||
: undefined
|
|
||||||
}
|
|
||||||
alt={event.source}
|
|
||||||
style={{ width: 13, height: 13 }}
|
|
||||||
onError={(e) => { (e.target as HTMLImageElement).style.display = 'none'; }}
|
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
{/* Bottom resize handle */}
|
{/* Bottom resize handle */}
|
||||||
{event.editable && (
|
{event.editable && (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user