@@ -65,8 +65,7 @@ templ section(executionReport reporter.PlaybookExecutionReport) {
6565
6666templ playbookInfoCard (executionReport reporter.PlaybookExecutionReport ) {
6767 @ statusIndicator (executionReport.Status )
68- <span class =" text-md mb-8 font-bold text-gray-800" >Playbook:</span >
69- <span >{ executionReport.ExecutionId }</span >
68+ <span class =" text-md font-bold text-gray-800 mb-8" >{ executionReport.Name }</span >
7069 <hr class =" mt-2" />
7170 <div class =" mb-6" >
7271 <table class =" table-auto text-sm text-gray-600" >
@@ -76,7 +75,11 @@ templ playbookInfoCard(executionReport reporter.PlaybookExecutionReport) {
7675 <td >{ executionReport.ExecutionId }</td >
7776 </tr >
7877 <tr >
79- <th class =" pr-4 text-left font-semibold" >Started:</th >
78+ <th class =" font-semibold text-left pr-4" >Description:</th >
79+ <td >{ executionReport.Description }</td >
80+ </tr >
81+ <tr >
82+ <th class =" font-semibold text-left pr-4" >Started:</th >
8083 <td >{ executionReport.Started .Format (time.ANSIC ) }</td >
8184 </tr >
8285 <tr >
@@ -163,20 +166,23 @@ templ formatCacaoVariables(name string, result cacao.Variable) {
163166 </div >
164167}
165168
166- templ actionStepInfoCard (executionId string , stepResult reporter.StepExecutionReport ) {
169+ templ actionStepInfoCard (stepResult reporter.StepExecutionReport ) {
167170 <div { utils.CreateClassAttrs (" relative border bg-gray-50 rounded-lg p-4 mb-4" , reportingBorderColorStatus (stepResult.Status ))... }>
168171 @ statusIndicator (stepResult.Status )
169- <span class =" text-md mb-8 font-bold text-gray-800" >Action Name:</span >
170- <span >{ executionId }</span >
172+ <span class =" text-md font-bold text-gray-800 mb-8" >{ stepResult.Name }</span >
171173 <hr class =" mt-2" />
172174 <table class =" table-auto text-sm text-gray-600" >
173175 <tbody >
174176 <tr >
175- <th class =" pr-4 text-left font-semibold" >Execution ID:</th >
176- <td >{ executionId }</td >
177+ <th class =" font-semibold text-left pr-4" >Execution ID:</th >
178+ <td >{ stepResult.ExecutionId }</td >
179+ </tr >
180+ <tr >
181+ <th class =" font-semibold text-left pr-4" >Description:</th >
182+ <td >{ stepResult.Description }</td >
177183 </tr >
178184 <tr >
179- <th class =" pr-4 text-left font-semibold " >Started:</th >
185+ <th class =" font-semibold text-left pr-4 " >Started:</th >
180186 <td >{ stepResult.Started .Format (time.ANSIC ) }</td >
181187 </tr >
182188 <tr >
@@ -216,24 +222,24 @@ templ actionStepInfoCards(stepResults map[string]reporter.StepExecutionReport) {
216222
217223templ timelineView (stepResults map [string ]reporter.StepExecutionReport ) {
218224 <div class =" relative m-4" >
219- <ol class =" border-s border-gray-200 dark:border-gray-700" >
220- for executionId , stepResult := range stepResults {
225+ <ol class =" border-s border-gray-200 dark:border-gray-700" >
226+ for _ , stepResult := range stepResults {
221227 <li class =" mb-5 ms-6" >
222228 <span class =" absolute -start-3 flex h-6 w-6 items-center justify-center rounded-full bg-white ring-8 ring-white" >
223229 @ indicators.ReportingStatusTagNoText (stepResult.Status )
224230 </span >
225- <h3 class =" mb-1 flex items-center text-lg font-semibold text-gray-900 dark:text-white" >{ executionId }</h3 >
226- <time class =" mb-2 block text-sm font-normal leading-none text-gray-400 dark:text-gray-500" >Started: { stepResult.Started .Format (time.ANSIC ) }</time >
227- <time class =" mb-2 block text-sm font-normal leading-none text-gray-400 dark:text-gray-500" >Duration: { formatDuration (stepResult.Started , stepResult.Ended ) }</time >
231+ <h3 class =" flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white" >{ stepResult. Name }</h3 >
232+ <time class =" block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500" >Started: { stepResult.Started .Format (time.ANSIC ) }</time >
233+ <time class =" block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500" >Duration: { formatDuration (stepResult.Started , stepResult.Ended ) }</time >
228234 </li >
229235 }
230236 </ol >
231237 </div >
232238}
233239
234240templ detailedView (stepResults map [string ]reporter.StepExecutionReport ) {
235- for executionId , stepResult := range stepResults {
236- @ actionStepInfoCard (executionId, stepResult) {
241+ for _ , stepResult := range stepResults {
242+ @ actionStepInfoCard (stepResult) {
237243 @ expander () {
238244 @ expandActionInfoCard (stepResult)
239245 }
0 commit comments