icons for the swarm's own forge accounts, and a default agent icon
The builder, ci-metrics and review-classifier forge accounts get an avatar: an icon each in a hexagonal frame, the hyperhive logo when one is missing. The controller sets them with a short-lived write:user token it mints for the account, since only an account can set its own avatar. An agent with no icon of its own shows a default agent icon in the swarm UI, a robot head in a round frame, instead of the dimmed hyperhive mark.
This commit is contained in:
parent
51479d9fe8
commit
91cf4d2ae1
1 changed files with 389 additions and 8 deletions
|
|
@ -2,6 +2,7 @@
|
|||
buildNpmPackage,
|
||||
branding-svg,
|
||||
branding-svg-maskable,
|
||||
agent-default-svg,
|
||||
librsvg,
|
||||
}:
|
||||
|
||||
|
|
@ -66,6 +67,8 @@ buildNpmPackage {
|
|||
mkdir -p $out
|
||||
cp -r packages/swarm-ui/dist/. $out/
|
||||
cp ${branding-svg} $out/favicon.svg
|
||||
# What an agent with no icon of its own shows (`AgentIcon.tsx`).
|
||||
cp ${agent-default-svg} $out/agent-default.svg
|
||||
rsvg-convert -w 192 -h 192 ${branding-svg} -o $out/icon-192.png
|
||||
rsvg-convert -w 512 -h 512 ${branding-svg} -o $out/icon-512.png
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue