+3
-4
appview/pages/templates/goodfirstissues/index.html
+3
-4
appview/pages/templates/goodfirstissues/index.html
···
37
37
{{ else }}
38
38
{{ range .RepoGroups }}
39
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">
40
+
<div class="flex px-6 pt-4 flex-row gap-1 items-center justify-between flex-wrap">
41
41
<div class="font-medium dark:text-white flex items-center justify-between">
42
42
<div class="flex items-center min-w-0 flex-1 mr-2">
43
43
{{ if .Repo.Source }}
···
103
103
<div class="flex-shrink-0 flex items-center gap-2 text-gray-500 dark:text-gray-400">
104
104
<span>
105
105
<div class="inline-flex items-center gap-1">
106
-
{{ i "message-square" "w-3 h-3 md:hidden" }}
106
+
{{ i "message-square" "w-3 h-3" }}
107
107
{{ len .Comments }}
108
-
<span class="hidden md:inline">comment{{ if ne (len .Comments) 1 }}s{{ end }}</span>
109
108
</div>
110
109
</span>
111
110
<span class="before:content-['·'] before:select-none"></span>
112
111
<span class="text-sm">
113
-
{{ template "repo/fragments/time" .Created }}
112
+
{{ template "repo/fragments/shortTimeAgo" .Created }}
114
113
</span>
115
114
<div class="hidden md:inline-flex md:gap-1">
116
115
{{ $labelState := .Labels }}
+13
-1
appview/state/gfi.go
+13
-1
appview/state/gfi.go
···
47
47
repoUris = append(repoUris, rl.RepoAt.String())
48
48
}
49
49
50
-
allIssues, err := db.GetIssues(
50
+
allIssues, err := db.GetIssuesPaginated(
51
51
s.db,
52
+
pagination.Page{
53
+
Limit: 500,
54
+
},
52
55
db.FilterIn("repo_at", repoUris),
53
56
db.FilterEq("open", 1),
54
57
)
···
83
86
}
84
87
85
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
86
98
return sortedGroups[i].Repo.Name < sortedGroups[j].Repo.Name
87
99
})
88
100