@@ -9,28 +9,43 @@ const priorityColors = {
99} ; 
1010
1111const  PriorityBadge  =  ( {  priority } )  =>  ( 
12-   < span   
12+   < span 
1313    className = { styles . priorityBadge } 
1414    style = { {  backgroundColor : priorityColors [ priority ]  } } 
1515  > 
1616    { priority } 
1717  </ span > 
1818) ; 
1919
20- const  RoadmapItem  =  ( {  title,  priority,  acceptance,  children } )  =>  ( 
21-   < div  className = { styles . roadmapItem } > 
22-     < div  className = { styles . itemHeader } > 
23-       < h4  className = { styles . itemTitle } > { title } </ h4 > 
24-       < PriorityBadge  priority = { priority }  /> 
25-     </ div > 
26-     { children  &&  < div  className = { styles . itemDescription } > { children } </ div > } 
27-     { acceptance  &&  ( 
28-       < div  className = { styles . acceptance } > 
29-         < strong > Acceptance:</ strong >  { acceptance } 
20+ // Counter for generating unique task numbers 
21+ let  taskCounter  =  0 ; 
22+ 
23+ const  RoadmapItem  =  ( {  title,  priority,  acceptance,  children,  id } )  =>  { 
24+   taskCounter ++ ; 
25+   const  taskId  =  id  ||  `task-${ taskCounter }  ` ; 
26+   const  taskNumber  =  taskCounter ; 
27+ 
28+   return  ( 
29+     < div  className = { styles . roadmapItem }  id = { taskId } > 
30+       < div  className = { styles . itemHeader } > 
31+         < h4  className = { styles . itemTitle } > 
32+           < a  href = { `#${ taskId }  ` }  className = { styles . taskLink } > 
33+             #{ taskNumber } 
34+           </ a > 
35+           { ' ' } 
36+           { title } 
37+         </ h4 > 
38+         < PriorityBadge  priority = { priority }  /> 
3039      </ div > 
31-     ) } 
32-   </ div > 
33- ) ; 
40+       { children  &&  < div  className = { styles . itemDescription } > { children } </ div > } 
41+       { acceptance  &&  ( 
42+         < div  className = { styles . acceptance } > 
43+           < strong > Acceptance:</ strong >  { acceptance } 
44+         </ div > 
45+       ) } 
46+     </ div > 
47+   ) ; 
48+ } ; 
3449
3550const  AreaSection  =  ( {  title,  children } )  =>  ( 
3651  < div  className = { styles . areaSection } > 
@@ -42,6 +57,9 @@ const AreaSection = ({ title, children }) => (
4257) ; 
4358
4459export  default  function  RoadmapV01 ( )  { 
60+   // Reset task counter for consistent numbering on re-renders 
61+   taskCounter  =  0 ; 
62+ 
4563  return  ( 
4664    < Layout 
4765      title = "Roadmap v0.1" 
0 commit comments