From 446e557cd0d454aa53b467dbc831e09f02ac0415 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 03 Oct 2025 12:16:53 +0000 Subject: [PATCH] appview/gfi: style tweaks Signed-off-by: oppiliappan --- appview/state/gfi.go | 14 +++++++++++++- appview/pages/templates/goodfirstissues/index.html | 7 +++---- 2 file(s) changed, 16 insertion(s)(+), 5 deletion(s)(-) diff --git a/appview/state/gfi.go b/appview/state/gfi.go --- a/appview/state/gfi.go +++ b/appview/state/gfi.go @@ -47,8 +47,11 @@ repoUris = append(repoUris, rl.RepoAt.String()) } - allIssues, err := db.GetIssues( + allIssues, err := db.GetIssuesPaginated( s.db, + pagination.Page{ + Limit: 500, + }, db.FilterIn("repo_at", repoUris), db.FilterEq("open", 1), ) @@ -83,6 +86,15 @@ } sort.Slice(sortedGroups, func(i, j int) bool { + iIsTangled := sortedGroups[i].Repo.Did == consts.TangledDid + jIsTangled := sortedGroups[j].Repo.Did == consts.TangledDid + + // If one is tangled and the other isn't, non-tangled comes first + if iIsTangled != jIsTangled { + return jIsTangled // true if j is tangled (i should come first) + } + + // Both tangled or both not tangled: sort by name return sortedGroups[i].Repo.Name < sortedGroups[j].Repo.Name }) diff --git a/appview/pages/templates/goodfirstissues/index.html b/appview/pages/templates/goodfirstissues/index.html --- a/appview/pages/templates/goodfirstissues/index.html +++ b/appview/pages/templates/goodfirstissues/index.html @@ -37,7 +37,7 @@ {{ else }} {{ range .RepoGroups }}
-
+
{{ if .Repo.Source }} @@ -103,14 +103,13 @@
- {{ i "message-square" "w-3 h-3 md:hidden" }} + {{ i "message-square" "w-3 h-3" }} {{ len .Comments }} -
- {{ template "repo/fragments/time" .Created }} + {{ template "repo/fragments/shortTimeAgo" .Created }}