@@ -187,15 +187,6 @@ function pctWidth(start: Date, end: Date): number {
187187
188188// ─── Color utilities ─────────────────────────────────────────────────────────
189189
190- function hexToRgb(hex : string | null ): string {
191- if (! hex ) return ' 0,0,0'
192- const clean = hex .replace (' #' , ' ' )
193- const r = parseInt (clean .substring (0 , 2 ), 16 )
194- const g = parseInt (clean .substring (2 , 4 ), 16 )
195- const b = parseInt (clean .substring (4 , 6 ), 16 )
196- return ` ${r },${g },${b } `
197- }
198-
199190const now = new Date ()
200191const nowYear = now .getUTCFullYear ()
201192const nowMonth = now .getUTCMonth ()
@@ -241,10 +232,20 @@ for (const rootTeam of rootTeams) {
241232 const teamProjects = collectTeamProjects (rootTeam .id )
242233 if (teamProjects .length === 0 ) continue
243234 const teamColor = rootTeam .color ?? ' #888888'
244- gridItems .push ({ type: ' team-header' , team: rootTeam , row: currentRow , teamColor })
235+ gridItems .push ({
236+ type: ' team-header' ,
237+ team: rootTeam ,
238+ row: currentRow ,
239+ teamColor
240+ })
245241 currentRow ++
246242 for (const proj of teamProjects ) {
247- gridItems .push ({ type: ' project' , project: proj , row: currentRow , teamColor })
243+ gridItems .push ({
244+ type: ' project' ,
245+ project: proj ,
246+ row: currentRow ,
247+ teamColor
248+ })
248249 currentRow ++
249250 }
250251}
@@ -338,7 +339,6 @@ for (const proj of uncategorised) {
338339
339340 const { project : proj, row, teamColor } = item
340341 const projColor = proj .color ?? ' #888'
341- const tintRgb = hexToRgb (teamColor )
342342 const iconEmoji = resolveIcon (proj .icon )
343343 const hasDates = !! (proj .startDate && proj .targetDate )
344344 const barLeft = hasDates
0 commit comments