change: format

This commit is contained in:
lilong.129
2025-06-21 15:42:04 +08:00
parent f4b60f4d86
commit c802327e39
2 changed files with 3 additions and 24 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2506201936 v5.0.0-beta-2506211542

View File

@@ -369,7 +369,7 @@ func (g *HTMLReportGenerator) calculateTotalActions() int {
func (g *HTMLReportGenerator) calculateTotalSubActions() int { func (g *HTMLReportGenerator) calculateTotalSubActions() int {
return g.iterateTestData(func(action *ActionResult) int { return g.iterateTestData(func(action *ActionResult) int {
total := 0 total := 0
// Count sub-actions from planning results // Count sub-actions from start_to_goal results
if action.Plannings != nil { if action.Plannings != nil {
for _, planning := range action.Plannings { for _, planning := range action.Plannings {
if planning.SubActions != nil { if planning.SubActions != nil {
@@ -377,6 +377,7 @@ func (g *HTMLReportGenerator) calculateTotalSubActions() int {
} }
} }
} else { } else {
// Count other actions
total += 1 total += 1
} }
return total return total
@@ -965,10 +966,6 @@ const htmlTemplate = `<!DOCTYPE html>
line-height: 1.4; line-height: 1.4;
} }
.action-content { .action-content {
display: block; display: block;
} }
@@ -1017,8 +1014,6 @@ const htmlTemplate = `<!DOCTYPE html>
font-weight: bold; font-weight: bold;
} }
.planning-three-columns { .planning-three-columns {
display: flex; display: flex;
gap: 20px; gap: 20px;
@@ -1206,8 +1201,6 @@ const htmlTemplate = `<!DOCTYPE html>
display: block; display: block;
} }
.request-item-compact { .request-item-compact {
background: #ffffff; background: #ffffff;
border: 1px solid #e9ecef; border: 1px solid #e9ecef;
@@ -1319,8 +1312,6 @@ const htmlTemplate = `<!DOCTYPE html>
} }
} }
.action-details { .action-details {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -1366,8 +1357,6 @@ const htmlTemplate = `<!DOCTYPE html>
line-height: 1; line-height: 1;
} }
.arguments { .arguments {
background: #f8f9fa; background: #f8f9fa;
border: 1px solid #dee2e6; border: 1px solid #dee2e6;
@@ -1378,8 +1367,6 @@ const htmlTemplate = `<!DOCTYPE html>
font-size: 0.9em; font-size: 0.9em;
} }
.screenshots-section { .screenshots-section {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border: 2px solid #28a745; border: 2px solid #28a745;
@@ -1973,8 +1960,6 @@ const htmlTemplate = `<!DOCTYPE html>
gap: 8px; gap: 8px;
} }
.logs-header { .logs-header {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
@@ -1991,8 +1976,6 @@ const htmlTemplate = `<!DOCTYPE html>
gap: 6px; gap: 6px;
} }
.screenshots-grid { .screenshots-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 10px; gap: 10px;
@@ -2106,8 +2089,6 @@ const htmlTemplate = `<!DOCTYPE html>
margin-top: 15px; margin-top: 15px;
margin-bottom: 15px; margin-bottom: 15px;
} }
</style> </style>
</head> </head>
<body> <body>
@@ -2201,8 +2182,6 @@ const htmlTemplate = `<!DOCTYPE html>
</div> </div>
</div> </div>
<div class="test-cases"> <div class="test-cases">
{{range $caseIndex, $testCase := .Details}} {{range $caseIndex, $testCase := .Details}}
<div class="test-case"> <div class="test-case">