Skip to content

Commit 5962110

Browse files
committed
feat: add agent icons in adminforth core so they can be reusable
1 parent 69de1c7 commit 5962110

6 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎adminforth/design/system-concepts.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The show, create and edit views list fields as a two-column table on a card: a 2
6868
- 16px (`w-4 h-4`) in controls and menus. Icons are muted (`text-lightInputIconColor`), destructive items color their icon too.
6969
- Don't add icons from other sets; replace flowbite, heroicons and humbleicons icons with Lucide when you touch a component. The old sets stay installed because apps and older plugins still import them.
7070
- Don't draw icons with inline `<svg>` or keep them as own `.vue` files, take the Lucide component. Inline SVG is only for graphics which are not icons: the two-tone `Spinner` ring, the `Toast` timer ring, charts.
71+
- Logos of AI agents (Claude Code, Codex, Gemini) are brand colored SVGs, not icons. They live once in `spa/src/assets/agents/`: plugins import them from `@/assets/agents/`, the docs copy them to `static/landing-previews/agents/` on `pnpm start` and `pnpm build`. Don't keep own copies in plugins or docs.
7172

7273
## Country flags and lazy loading
7374

documentation/static/landing-previews/agents/claude-code.svg renamed to adminforth/spa/src/assets/agents/claude-code.svg

File renamed without changes.
File renamed without changes.
File renamed without changes.

‎documentation/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
/afcl-preview/examples
1414
/static/afcl-preview
1515

16+
# logos of AI agents, copied from the SPA of adminforth by `pnpm copy:agent-logos`
17+
/static/landing-previews/agents
18+
1619
# Misc
1720
.DS_Store
1821
.env.local

‎documentation/package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"gendoc": "typedoc",
77
"docusaurus": "docusaurus",
88
"build:afcl": "pnpm --dir ../adminforth install && ln -sfn ../../adminforth/spa/node_modules afcl-preview/node_modules && node afcl-preview/node_modules/vite/bin/vite.js build afcl-preview",
9-
"start": "pnpm build:afcl && docusaurus start",
10-
"build": "pnpm build:afcl && docusaurus build",
9+
"copy:agent-logos": "cp -r ../adminforth/spa/src/assets/agents static/landing-previews/",
10+
"start": "pnpm build:afcl && pnpm copy:agent-logos && docusaurus start",
11+
"build": "pnpm build:afcl && pnpm copy:agent-logos && docusaurus build",
1112
"swizzle": "docusaurus swizzle",
1213
"deploy": "DEPLOYMENT_BRANCH=main docusaurus deploy",
1314
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)