feat: gitea: queries
runner nix smoke / nix label and flake smoke (push) Failing after 1m16s

This commit is contained in:
2026-09-29 17:23:48 +00:00
parent 3f7856b4aa
commit c93dee27b3
10 changed files with 686 additions and 3 deletions
@@ -5,7 +5,7 @@
<h2>{{.Project.Title}}</h2>
<div class="tw-flex-1"></div>
<div class="list-header-filters ui secondary menu tw-m-0">
{{$queryLink := QueryBuild "?" "labels" .SelectLabels "assignee" $.AssigneeID "milestone" $.MilestoneID "archived_labels" (Iif $.ShowArchivedLabels "true")}}
{{$queryLink := QueryBuild "?" "labels" .SelectLabels "assignee" $.AssigneeID "milestone" $.MilestoneID "archived_labels" (Iif $.ShowArchivedLabels "true") "filter" $.ProjectFilter "group_by" $.ProjectGroupBy}}
{{template "repo/issue/filter_item_label" dict "Labels" .Labels "QueryLink" $queryLink "SupportArchivedLabel" true}}
{{template "repo/issue/filter_item_user_assign" dict
"QueryParamKey" "assignee"
@@ -70,6 +70,33 @@
{{end}}
</div>
<div class="ui container project-board-controls">
<div class="ui action input project-filter-input">
<label class="tw-sr-only" for="project-filter-input">{{ctx.Locale.Tr "repo.projects.filter"}}</label>
<input id="project-filter-input" type="search" data-project-filter-input value="{{.ProjectFilter}}" placeholder="{{ctx.Locale.Tr "repo.projects.filter_placeholder"}}" autocomplete="off" aria-describedby="project-filter-error project-filter-empty">
<button type="button" class="ui button" data-project-filter-clear>{{ctx.Locale.Tr "repo.projects.filter_clear"}}</button>
</div>
<div class="project-group-select">
<label for="project-group-by">{{ctx.Locale.Tr "repo.projects.group_by"}}</label>
<select id="project-group-by" data-project-group-by>
<option value="none">{{ctx.Locale.Tr "repo.projects.group_by.none"}}</option>
<option value="assignee">{{ctx.Locale.Tr "repo.issues.filter_assignee"}}</option>
<option value="label">{{ctx.Locale.Tr "repo.issues.filter_label"}}</option>
<option value="milestone">{{ctx.Locale.Tr "repo.issues.filter_milestone"}}</option>
<option value="repository">{{ctx.Locale.Tr "repo.repository"}}</option>
<option value="state">{{ctx.Locale.Tr "repo.issues.filter_state"}}</option>
<option value="type">{{ctx.Locale.Tr "repo.issues.filter_type"}}</option>
<option value="status">{{ctx.Locale.Tr "repo.projects.column"}}</option>
</select>
</div>
<p id="project-filter-error" class="tw-text-red" data-project-filter-error role="alert" hidden
data-project-filter-error-unknown="{{ctx.Locale.Tr "repo.projects.filter.error.unknown"}}"
data-project-filter-error-malformed="{{ctx.Locale.Tr "repo.projects.filter.error.malformed"}}"
data-project-filter-error-unclosed="{{ctx.Locale.Tr "repo.projects.filter.error.unclosed"}}"
></p>
<p id="project-filter-empty" data-project-filter-empty role="status" hidden>{{ctx.Locale.Tr "repo.projects.filter.no_results"}}</p>
</div>
<div class="ui container project-description">
<div class="render-content markup">
{{$.Project.RenderedContent}}
@@ -77,8 +104,9 @@
<div class="divider"></div>
</div>
<div id="project-board" class="board {{if $canWriteProject}}sortable{{end}}" data-project-board-writable="{{$canWriteProject}}" {{if $canWriteProject}}data-url="{{$.Link}}/move"{{end}}>
<div id="project-board" class="board {{if $canWriteProject}}sortable{{end}}" data-project-board-writable="{{$canWriteProject}}" data-project-group-no-value="{{ctx.Locale.Tr "repo.projects.group_by.no_value"}}" {{if $canWriteProject}}data-url="{{$.Link}}/move"{{end}}>
{{range .Columns}}
{{$columnTitle := .Title}}
<div class="project-column" {{if .Color}}style="background: {{.Color}} !important; color: {{ContrastColor .Color}} !important"{{end}} data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}">
<div class="project-column-header{{if $canWriteProject}} tw-cursor-grab{{end}}">
<div class="ui circular label project-column-issue-count">
@@ -122,7 +150,18 @@
<div class="divider"{{if .Color}} style="color: {{ContrastColor .Color}} !important"{{end}}></div>
<div class="ui cards" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}">
{{range (index $.IssuesMap .ID)}}
<div class="issue-card tw-break-anywhere {{if $canWriteProject}}tw-cursor-grab{{end}}" data-issue="{{.ID}}">
<div class="issue-card tw-break-anywhere {{if $canWriteProject}}tw-cursor-grab{{end}}" data-issue="{{.ID}}"
data-project-card-id="{{.ID}}"
data-project-card-title="{{.Title}}"
data-project-card-assignees="[{{range $index, $assignee := .Assignees}}{{if $index}},{{end}}{{printf "%q" $assignee.Name}}{{end}}]"
data-project-card-author="{{if .OriginalAuthor}}{{.OriginalAuthor}}{{else}}{{.Poster.Name}}{{end}}"
data-project-card-labels="[{{range $index, $label := .Labels}}{{if $index}},{{end}}{{printf "%q" $label.Name}}{{end}}]"
data-project-card-milestone="{{if .MilestoneID}}{{.Milestone.Name}}{{end}}"
data-project-card-repository="{{.Repo.FullName}}"
data-project-card-state="{{if .IsClosed}}closed{{else}}open{{end}}"
data-project-card-type="{{if .IsPull}}pull{{else}}issue{{end}}"
data-project-card-status="{{$columnTitle}}"
>
{{template "repo/issue/card" (dict "Issue" . "Page" $)}}
</div>
{{end}}