From 98409ff88b9a6103351489e64d3a329f8e63c8fe Mon Sep 17 00:00:00 2001 From: Ruben Rosario Date: Sun, 21 Jun 2026 16:11:58 +0100 Subject: [PATCH] Feature 2: show created_at and updated_at in detail panel --- src/ui/components.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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(""));