Skip to content

Commit 5ed0fda

Browse files
renemadsenclaude
andcommitted
feat(calendar): wire custom repeat meta through to backend
Frontend: - Store CalendarRepeatMeta from custom modal (was silently discarded) - Map custom kind back to standard RepeatType (Day/Week/Month/Year) - Send repeatEvery from meta.n (was hardcoded to 1) - Include repeatEndMode, repeatOccurrences, repeatUntilDate in payload Backend: - CalendarTaskCreateRequestModel: add RepeatEndMode, RepeatOccurrences, RepeatUntilDate fields - CreateTask: write end mode fields to AreaRulePlanning after creation - GetTasksForWeek: filter occurrences by RepeatEndMode — stop after N occurrences (mode 1) or past until-date (mode 2) - CalendarTaskResponseModel: add EformId + ItemPlanningTagId (missing from host app copy) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5992bd5 commit 5ed0fda

File tree

4 files changed

+1281
-4
lines changed

4 files changed

+1281
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Microting.eForm.Infrastructure.Models;
4+
5+
namespace BackendConfiguration.Pn.Infrastructure.Models.Calendar;
6+
7+
public class CalendarTaskCreateRequestModel
8+
{
9+
public int PropertyId { get; set; }
10+
public int? FolderId { get; set; }
11+
public int? ItemPlanningTagId { get; set; }
12+
public List<int> TagIds { get; set; } = [];
13+
public List<CommonTranslationsModel> Translates { get; set; } = [];
14+
public int EformId { get; set; }
15+
public DateTime StartDate { get; set; }
16+
public int RepeatType { get; set; }
17+
public int RepeatEvery { get; set; }
18+
public int Status { get; set; }
19+
public List<int> Sites { get; set; } = [];
20+
public bool ComplianceEnabled { get; set; }
21+
public double StartHour { get; set; }
22+
public double Duration { get; set; }
23+
public int? BoardId { get; set; }
24+
public string Color { get; set; }
25+
public int? RepeatEndMode { get; set; }
26+
public int? RepeatOccurrences { get; set; }
27+
public DateTime? RepeatUntilDate { get; set; }
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace BackendConfiguration.Pn.Infrastructure.Models.Calendar;
5+
6+
public class CalendarTaskResponseModel
7+
{
8+
public int Id { get; set; }
9+
public string Title { get; set; }
10+
public double StartHour { get; set; }
11+
public double Duration { get; set; }
12+
public string TaskDate { get; set; }
13+
public List<string> Tags { get; set; } = [];
14+
public List<int> AssigneeIds { get; set; } = [];
15+
public int? BoardId { get; set; }
16+
public string Color { get; set; }
17+
public int RepeatType { get; set; }
18+
public int RepeatEvery { get; set; }
19+
public bool Completed { get; set; }
20+
public int PropertyId { get; set; }
21+
public int? ComplianceId { get; set; }
22+
public bool IsFromCompliance { get; set; }
23+
public DateTime? Deadline { get; set; }
24+
public DateTime? NextExecutionTime { get; set; }
25+
public int? PlanningId { get; set; }
26+
public bool IsAllDay { get; set; }
27+
public int? ExceptionId { get; set; }
28+
public int? EformId { get; set; }
29+
public int? ItemPlanningTagId { get; set; }
30+
}

0 commit comments

Comments
 (0)