Skip to content

Commit

Permalink
open correct run when suite activity is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
nigogo committed Nov 24, 2024
1 parent 8713702 commit d8ec66e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 39 deletions.
6 changes: 3 additions & 3 deletions internal/html/component/suite_activity.templ
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ templ SuiteActivity(runs []model.TestSuiteRun) {
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div>
<p class="text-sm text-gray-500"><a href="#" class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> failed for <b>{ run.SuiteName }</b></a></p>
<p class="text-sm text-gray-500"><a href={ templ.URL(fmt.Sprintf("/suites/%s/runs/%d", run.SuiteName, run.ID)) } class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> failed for <b>{ run.SuiteName }</b></a></p>
</div>
<div class="whitespace-nowrap text-right text-sm text-gray-500">
<time datetime="2020-09-28">{ util.FormatRelativeTime(run.End) }</time>
Expand All @@ -41,7 +41,7 @@ templ SuiteActivity(runs []model.TestSuiteRun) {
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div>
<p class="text-sm text-gray-500"><a href="#" class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> passed for <b>{ run.SuiteName }</b></a></p>
<p class="text-sm text-gray-500"><a href={ templ.URL(fmt.Sprintf("/suites/%s/runs/%d", run.SuiteName, run.ID)) } class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> passed for <b>{ run.SuiteName }</b></a></p>
</div>
<div class="whitespace-nowrap text-right text-sm text-gray-500">
<time datetime="2020-09-28">{ util.FormatRelativeTime(run.End) }</time>
Expand All @@ -57,7 +57,7 @@ templ SuiteActivity(runs []model.TestSuiteRun) {
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div>
<p class="text-sm text-gray-500"><a href="#" class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> pending for <b>{ run.SuiteName }</b></a></p>
<p class="text-sm text-gray-500"><a href={ templ.URL(fmt.Sprintf("/suites/%s/runs", run.SuiteName)) } class="font-medium text-gray-900">Test Run <b>{ fmt.Sprintf("%d", run.ID) }</b> pending for <b>{ run.SuiteName }</b></a></p>
</div>
<div class="whitespace-nowrap text-right text-sm text-gray-500">
<time datetime="2020-09-28">{ util.FormatRelativeTime(run.End) }</time>
Expand Down
99 changes: 63 additions & 36 deletions internal/html/component/suite_activity_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8ec66e

Please sign in to comment.