feat(calendar): add drag-create, resize, recurring scope, quick-create, and duplication

- Click-drag on empty time slots to create events with pre-filled time range
- Resize events by dragging bottom edge (15-min snap, optimistic JMAP update)
- Recurring event edit/delete scope dialog (this/following/all occurrences)
- Double-click quick event creation with inline title input
- Event duplication button in modal (+1 day offset)
- Shared interaction hook for pointer-based calendar interactions

Fixes #13
This commit is contained in:
Matthieu MALVACHE
2026-02-22 17:32:10 +01:00
committed by Matthieu MALVACHE
parent fb7cfe1634
commit ccbab654f3
22 changed files with 2011 additions and 322 deletions
+31 -1
View File
@@ -1177,9 +1177,21 @@
"all_day": "Dia inteiro",
"more": "+{count} mais",
"no_title": "(Sem título)",
"resize": "Redimensionar evento",
"duplicate": "Duplicar",
"today_header": "Hoje",
"tomorrow_header": "Amanhã"
},
"detail": {
"add_note": "Adicionar uma nota...",
"save_note": "Salvar",
"note_saved": "Nota adicionada",
"open_link": "Abrir link",
"meeting_link": "Link da reunião",
"tentative": "Provisório",
"cancelled": "Cancelado",
"delete_confirm": "Excluir este evento?"
},
"form": {
"title": "Título",
"description": "Descrição",
@@ -1230,6 +1242,17 @@
"until": "Até",
"occurrences": "{count} repetições"
},
"recurrence_scope": {
"edit_title": "Editar evento recorrente",
"delete_title": "Excluir evento recorrente",
"description": "Este é um evento recorrente. Quais eventos você deseja modificar?",
"this_event": "Apenas este evento",
"this_and_future": "Este evento e os seguintes",
"all_events": "Todos os eventos",
"cancel": "Cancelar",
"save": "Salvar",
"delete": "Excluir"
},
"alerts": {
"title": "Lembrete",
"none": "Sem lembrete",
@@ -1275,17 +1298,24 @@
"calendar_created": "Calendário criado",
"calendar_deleted": "Calendário excluído",
"event_move_error": "Falha ao mover o evento",
"event_resize_error": "Falha ao redimensionar o evento",
"alert_title": "Evento próximo",
"alert_now": "Começa agora",
"alert_in_minutes": "Em {count} min",
"invitation_sent": "Convites enviados",
"rsvp_updated": "Resposta atualizada",
"rsvp_error": "Falha ao atualizar resposta"
"rsvp_error": "Falha ao atualizar resposta",
"event_duplicated": "Evento duplicado",
"event_error": "Falha ao salvar o evento"
},
"status": {
"loading_calendars": "Carregando calendários...",
"loading_events": "Carregando eventos..."
},
"quick_create": {
"placeholder": "Título do novo evento",
"aria_label": "Criação rápida de evento"
},
"nav_prev": "Anterior",
"nav_next": "Próximo",
"import": {