Implement interval intersection and subtraction methods in GridCoverage, update GridPlan and related DTOs for PlanNote integration
Added new methods for intersecting and subtracting time intervals in the GridCoverage class to enhance scheduling capabilities. Updated the GridPlan and GridPlanDto classes to replace string notes with a structured PlanNote type, improving note management. Enhanced the GridPlanner class to utilize these new features, ensuring better handling of scheduling conflicts and notes during grid generation. Adjusted related tests to validate the new functionality.
This commit is contained in:
@@ -143,10 +143,17 @@ export function GenerateGridDialog({
|
||||
</p>
|
||||
)}
|
||||
|
||||
{/* Замечания разделены по цвету: красное останется дырой в эфире, янтарное —
|
||||
повод посмотреть, но сетка соберётся. */}
|
||||
{plan.notes.length > 0 && (
|
||||
<ul className="flex flex-col gap-0.5 text-xs text-amber-500">
|
||||
<ul className="flex flex-col gap-0.5 text-xs">
|
||||
{plan.notes.map((note) => (
|
||||
<li key={note}>{note}</li>
|
||||
<li
|
||||
key={note.text}
|
||||
className={note.isError ? 'text-red-500' : 'text-amber-500'}
|
||||
>
|
||||
{note.text}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user