Lie le nom du projet à son repo dans les listes d'entrées
Les entrées exposent repo_url ; sur /entries et l'accueil, le nom du projet ouvre le repo dans un nouvel onglet (soulignement pointillé). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
46d2596813
commit
cbc8ba8ce0
5 files changed
+17
-2
No files matched your search
@@ -41,6 +41,8 @@ pub struct Entry {
|
||||
/// The project's effective color.
|
||||
pub color: String,
|
||||
pub client_color: String,
|
||||
/// The project's repository link.
|
||||
pub repo_url: Option<String>,
|
||||
pub started_at: DateTime<Utc>,
|
||||
/// `None` while the timer is running.
|
||||
pub ended_at: Option<DateTime<Utc>>,
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ use crate::models::{Entry, EntryFilter, NewEntry, UpdateEntry};
|
||||
/// `?1` is always "now", used to measure running entries.
|
||||
const SELECT: &str =
|
||||
"SELECT e.id, e.project_id, p.name AS project_name, p.client_id, c.name AS client_name,
|
||||
COALESCE(p.color, c.color) AS color, c.color AS client_color,
|
||||
COALESCE(p.color, c.color) AS color, c.color AS client_color, p.repo_url,
|
||||
e.started_at, e.ended_at, e.note,
|
||||
strftime('%s', COALESCE(e.ended_at, ?1)) - strftime('%s', e.started_at) AS seconds,
|
||||
EXISTS (SELECT 1 FROM time_entries o
|
||||
|
||||
Reference in new issue
Block a user