feat(brand): new logo in the README, Registry icon and browser tabs (#632) (#633)

The README opens with the PromptManager banner, the Comfy Registry icon
is the new app icon from this repository, and every page Prompt Manager
serves links a 32 px favicon and a 128 px touch icon.

Only small files are added: the two page icons (12 KB) ship in the
Registry package, the banner is a 26 KB WebP and the Registry icon a
43 KB PNG.
This commit is contained in:
Vito
2026-11-15 02:17:40 +00:00
committed by GitHub
parent 1a177e39a2
commit a387643946
12 changed files with 83 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
![PromptManager by ComfyAssets](assets/brand/banner.webp)
# ComfyUI Prompt Manager
**Every prompt you run, every image it made, and every negative you tried, in one searchable library inside ComfyUI.**
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

+1 -1
View File
@@ -18,7 +18,7 @@ Repository = "https://github.com/ComfyAssets/ComfyUI_PromptManager"
[tool.comfy]
PublisherId = "kiko9"
DisplayName = "ComfyUI_PromptManager"
Icon = "https://avatars.githubusercontent.com/u/213204677?s=200"
Icon = "https://raw.githubusercontent.com/ComfyAssets/ComfyUI_PromptManager/main/assets/brand/icon-256.png"
[tool.black]
line-length = 88
+70
View File
@@ -0,0 +1,70 @@
"""The logo and icons are wired in where a user sees them (#632).
Every page Prompt Manager serves names the favicon, the files it names exist
at the sizes they claim, the README and the Registry metadata point at files
that are in the repository, and the Registry package keeps what the pages
load at run time.
"""
import re
import tomllib
import unittest
from pathlib import Path
from PIL import Image
try:
from tests.test_package_contents import _ignored
except ImportError: # discovered with tests/ as the top-level directory
from test_package_contents import _ignored
ROOT = Path(__file__).resolve().parent.parent
PAGES = ("workspace.html", "admin.html", "gallery.html", "metadata.html", "index.html")
ICON_LINK = re.compile(
r'<link rel="(icon|apple-touch-icon)"(?: type="image/png")?'
r' sizes="(\d+)x(\d+)" href="(lib/brand/[a-z0-9-]+\.png)">'
)
RAW_PREFIX = "https://raw.githubusercontent.com/ComfyAssets/ComfyUI_PromptManager/main/"
def _size(path: Path) -> tuple[int, int]:
with Image.open(path) as image:
return image.size
class TestBrandAssets(unittest.TestCase):
def test_every_page_links_icons_that_exist_at_the_stated_size(self):
for page in PAGES:
with self.subTest(page=page):
html = (ROOT / "web" / page).read_text(encoding="utf-8")
links = ICON_LINK.findall(html)
self.assertEqual(
[kind for kind, *_ in links], ["icon", "apple-touch-icon"]
)
for _kind, width, height, href in links:
# Pages sit beside lib/ under /prompt_manager/, like their CSS.
file = ROOT / "web" / href
self.assertEqual(_size(file), (int(width), int(height)), href)
def test_page_icons_ship_in_the_registry_package(self):
for file in sorted((ROOT / "web" / "lib" / "brand").iterdir()):
relative = file.relative_to(ROOT).as_posix()
self.assertFalse(_ignored(relative), relative)
self.assertLess(file.stat().st_size, 16 * 1024, relative)
def test_readme_opens_with_the_banner(self):
readme = (ROOT / "README.md").read_text(encoding="utf-8")
first = next(line for line in readme.splitlines() if line.strip())
match = re.fullmatch(r"!\[[^\]]+\]\((assets/brand/[a-z0-9-]+\.webp)\)", first)
self.assertIsNotNone(match, first)
self.assertEqual(_size(ROOT / match.group(1)), (1280, 640))
def test_registry_icon_is_the_app_icon_in_this_repository(self):
with open(ROOT / "pyproject.toml", "rb") as handle:
icon = tomllib.load(handle)["tool"]["comfy"]["Icon"]
self.assertTrue(icon.startswith(RAW_PREFIX), icon)
self.assertEqual(_size(ROOT / icon[len(RAW_PREFIX) :]), (256, 256))
if __name__ == "__main__":
unittest.main()
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<title>PromptManager - Admin Dashboard</title>
<script src="js/theme-bridge.js"></script>
<script src="js/html-escape.js"></script>
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<title>PromptManager - Gallery</title>
<script src="js/theme-bridge.js"></script>
<script src="js/html-escape.js"></script>
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<title>PromptManager - Opening the workspace</title>
<style>
body {
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<title>Image Gallery - Generation Data</title>
<script src="js/theme-bridge.js"></script>
<script src="js/html-escape.js"></script>
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<meta name="color-scheme" content="light dark">
<title>Prompt Manager · Workspace</title>
<link rel="stylesheet" href="js/shared/toolkit/controls.css">