From 1a6e30dd0e4e77ad3f68cc1c824c59a544bbfffe Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 29 May 2026 14:54:36 +0100 Subject: [PATCH] icons: directory for custom icons Signed-off-by: oppiliappan --- appview/models/notifications.go | 4 ++-- .../templates/layouts/fragments/footer.html | 4 ++-- .../templates/user/fragments/profileCard.html | 2 +- .../fragments/bluesky.html => icons/bluesky.svg | 4 +--- icons/user-round-arrow-forward.svg | 17 +++++++++++++++++ nix/pkgs/appview-static-files.nix | 1 + 6 files changed, 24 insertions(+), 8 deletions(-) rename appview/pages/templates/user/fragments/bluesky.html => icons/bluesky.svg (82%) create mode 100644 icons/user-round-arrow-forward.svg diff --git a/appview/models/notifications.go b/appview/models/notifications.go index a99017a9..faaf6188 100644 --- a/appview/models/notifications.go +++ b/appview/models/notifications.go @@ -93,9 +93,9 @@ func (n *Notification) Icon() string { case NotificationTypeUserMentioned: return "at-sign" case NotificationTypeIssueAssigned, NotificationTypePullAssigned: - return "user-round-check" + return "user-round-arrow-forward" case NotificationTypeIssueUnassigned, NotificationTypePullUnassigned: - return "user-round-x" + return "user-round-minus" default: return "" } diff --git a/appview/pages/templates/layouts/fragments/footer.html b/appview/pages/templates/layouts/fragments/footer.html index 41554989..27fb4f69 100644 --- a/appview/pages/templates/layouts/fragments/footer.html +++ b/appview/pages/templates/layouts/fragments/footer.html @@ -35,7 +35,7 @@
Social
{{ i "message-circle" $iconStyle }} Discord {{ i "hash" $iconStyle }} IRC - {{ template "user/fragments/bluesky" $iconStyle }} Bluesky + {{ i "bluesky" $iconStyle }} Bluesky {{ template "user/fragments/x" $iconStyle }} Twitter (X) @@ -83,7 +83,7 @@
Social
{{ i "message-circle" $iconStyle }} Discord {{ i "hash" $iconStyle }} IRC - {{ template "user/fragments/bluesky" $iconStyle }} Bluesky + {{ i "bluesky" $iconStyle }} Bluesky {{ template "user/fragments/x" $iconStyle }} Twitter (X) diff --git a/appview/pages/templates/user/fragments/profileCard.html b/appview/pages/templates/user/fragments/profileCard.html index 4921c51d..ea201656 100644 --- a/appview/pages/templates/user/fragments/profileCard.html +++ b/appview/pages/templates/user/fragments/profileCard.html @@ -60,7 +60,7 @@ {{ end }} {{ if .IncludeBluesky }}
- {{ template "user/fragments/bluesky" "w-4 h-4 text-black dark:text-white" }} + {{ i "bluesky" "w-4 h-4 text-black dark:text-white" }} {{ primaryHandle $.UserDid }}
{{ end }} diff --git a/appview/pages/templates/user/fragments/bluesky.html b/icons/bluesky.svg similarity index 82% rename from appview/pages/templates/user/fragments/bluesky.html rename to icons/bluesky.svg index 98d1d400..85649583 100644 --- a/appview/pages/templates/user/fragments/bluesky.html +++ b/icons/bluesky.svg @@ -1,6 +1,4 @@ -{{ define "user/fragments/bluesky" }} - + Bluesky -{{ end }} diff --git a/icons/user-round-arrow-forward.svg b/icons/user-round-arrow-forward.svg new file mode 100644 index 00000000..4d117f9c --- /dev/null +++ b/icons/user-round-arrow-forward.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/nix/pkgs/appview-static-files.nix b/nix/pkgs/appview-static-files.nix index 0d127241..7b1edd2f 100644 --- a/nix/pkgs/appview-static-files.nix +++ b/nix/pkgs/appview-static-files.nix @@ -23,6 +23,7 @@ runCommandLocal "appview-static-files" { cp -f ${htmx-ws-src} htmx-ext-ws.min.js cp -f ${mermaid-src} mermaid.min.js cp -rf ${lucide-src}/*.svg icons/ + cp -rf ${src}/icons/*.svg icons/ cp -f ${inter-fonts-src}/web/InterVariable*.woff2 fonts/ cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/ cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/ -- 2.51.2