diff --git a/src/ui/components.rs b/src/ui/components.rs index cd95ed0..04a0128 100644 --- a/src/ui/components.rs +++ b/src/ui/components.rs @@ -158,6 +158,20 @@ pub fn render_detail( ))); } + if let Some(created) = task.created_at { + lines.push(Line::from(Span::styled( + format!("Created: {}", created.format("%d/%m/%Y %H:%M")), + Style::default().fg(Color::DarkGray), + ))); + } + + if let Some(updated) = task.updated_at { + lines.push(Line::from(Span::styled( + format!("Updated: {}", updated.format("%d/%m/%Y %H:%M")), + Style::default().fg(Color::DarkGray), + ))); + } + if let Some(notes) = &task.notes { if !notes.is_empty() { lines.push(Line::from(""));