+3
-4
appview/pages/templates/goodfirstissues/index.html
+3
-4
appview/pages/templates/goodfirstissues/index.html
···
37
{{ else }}
38
{{ range .RepoGroups }}
39
<div class="mb-4 gap-1 flex flex-col drop-shadow-sm rounded bg-white dark:bg-gray-800">
40
-
<div class="flex px-6 pt-4 flex-row gap-1 items-center justify-between">
41
<div class="font-medium dark:text-white flex items-center justify-between">
42
<div class="flex items-center min-w-0 flex-1 mr-2">
43
{{ if .Repo.Source }}
···
103
<div class="flex-shrink-0 flex items-center gap-2 text-gray-500 dark:text-gray-400">
104
<span>
105
<div class="inline-flex items-center gap-1">
106
-
{{ i "message-square" "w-3 h-3 md:hidden" }}
107
{{ len .Comments }}
108
-
<span class="hidden md:inline">comment{{ if ne (len .Comments) 1 }}s{{ end }}</span>
109
</div>
110
</span>
111
<span class="before:content-['·'] before:select-none"></span>
112
<span class="text-sm">
113
-
{{ template "repo/fragments/time" .Created }}
114
</span>
115
<div class="hidden md:inline-flex md:gap-1">
116
{{ $labelState := .Labels }}
···
37
{{ else }}
38
{{ range .RepoGroups }}
39
<div class="mb-4 gap-1 flex flex-col drop-shadow-sm rounded bg-white dark:bg-gray-800">
40
+
<div class="flex px-6 pt-4 flex-row gap-1 items-center justify-between flex-wrap">
41
<div class="font-medium dark:text-white flex items-center justify-between">
42
<div class="flex items-center min-w-0 flex-1 mr-2">
43
{{ if .Repo.Source }}
···
103
<div class="flex-shrink-0 flex items-center gap-2 text-gray-500 dark:text-gray-400">
104
<span>
105
<div class="inline-flex items-center gap-1">
106
+
{{ i "message-square" "w-3 h-3" }}
107
{{ len .Comments }}
108
</div>
109
</span>
110
<span class="before:content-['·'] before:select-none"></span>
111
<span class="text-sm">
112
+
{{ template "repo/fragments/shortTimeAgo" .Created }}
113
</span>
114
<div class="hidden md:inline-flex md:gap-1">
115
{{ $labelState := .Labels }}
+13
-1
appview/state/gfi.go
+13
-1
appview/state/gfi.go
···
47
repoUris = append(repoUris, rl.RepoAt.String())
48
}
49
50
-
allIssues, err := db.GetIssues(
51
s.db,
52
db.FilterIn("repo_at", repoUris),
53
db.FilterEq("open", 1),
54
)
···
83
}
84
85
sort.Slice(sortedGroups, func(i, j int) bool {
86
return sortedGroups[i].Repo.Name < sortedGroups[j].Repo.Name
87
})
88
···
47
repoUris = append(repoUris, rl.RepoAt.String())
48
}
49
50
+
allIssues, err := db.GetIssuesPaginated(
51
s.db,
52
+
pagination.Page{
53
+
Limit: 500,
54
+
},
55
db.FilterIn("repo_at", repoUris),
56
db.FilterEq("open", 1),
57
)
···
86
}
87
88
sort.Slice(sortedGroups, func(i, j int) bool {
89
+
iIsTangled := sortedGroups[i].Repo.Did == consts.TangledDid
90
+
jIsTangled := sortedGroups[j].Repo.Did == consts.TangledDid
91
+
92
+
// If one is tangled and the other isn't, non-tangled comes first
93
+
if iIsTangled != jIsTangled {
94
+
return jIsTangled // true if j is tangled (i should come first)
95
+
}
96
+
97
+
// Both tangled or both not tangled: sort by name
98
return sortedGroups[i].Repo.Name < sortedGroups[j].Repo.Name
99
})
100