library: the MCP router's mark is the bird with its tail routed out to three ends
The owner asked for a mark that says MCP routing and picked, from three
generated drafts, magpie's bird whose tail fans out into lines ending in
dots. It is drawn as SVG on the bird itself, not a picture, so it stays
sharp at 17px and takes the theme's colour: the bird clipped short of its
tail (#bird-notail, beside #bird-tail in index.html), three strokes from
where the tail was and a dot at each end. Every place hubMark draws (the
Library's MCP router row, the Connect an app sheet) gets it.
Run on mote (macOS 27): library-mcp-hub now checks the clip, the three
routes and their ends (red on the old mark). library-*, i18n-keys and
old-webkit, both engines: 895 pass, 5 fail. The reds are i18n-keys
"a plugin's words are its own" (#4524) and library-row-remove's 3
subtests (#4304); both red the same at origin/main 2cfb8351d. Looked at
in dark and light at 17px, 34px and 220px.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -90,11 +90,13 @@ magpie.plugin("library", (ctx) => {
|
||||
});
|
||||
}
|
||||
|
||||
// the hub's mark: magpie's bird, the one server each agent is given
|
||||
// (the owner didn't like a made-up glyph for it)
|
||||
// the hub's mark: magpie's bird, the one server each agent is given,
|
||||
// its tail three lines out to three servers (the owner's pick, 10-31)
|
||||
function hubMark() {
|
||||
const g = el("span", "lib-glyph lib-hubmark");
|
||||
g.innerHTML = '<svg viewBox="0 0 44 44" aria-hidden="true"><use href="#bird"/></svg>';
|
||||
g.innerHTML = '<svg viewBox="0 0 44 44" aria-hidden="true"><use href="#bird" clip-path="url(#bird-notail)"/>'
|
||||
+ '<g fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M13.5 24C9 21 7 15 4.5 9.5"/><path d="M13 25C9 24 6 21.5 3 19.5"/><path d="M12.5 26.2C9 27 6.5 28 4 29.5"/></g>'
|
||||
+ '<g fill="currentColor"><circle cx="4" cy="8.5" r="2.6"/><circle cx="2.8" cy="19.2" r="2.6"/><circle cx="3.6" cy="29.8" r="2.6"/></g></svg>';
|
||||
return g;
|
||||
}
|
||||
function glyph(d, cls = "lib-glyph") {
|
||||
|
||||
@@ -179,8 +179,13 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
// what it serves: three servers, magpie-image among them, 2 tools each once checked, in Claude Code
|
||||
await page.waitForFunction((x) => document.querySelector("#view-library .lib-hubstats")?.textContent === x,
|
||||
[w("{n} servers", { n: 3 }), w("{n} tools", { n: 6 }), w("in {agents}", { agents: "Claude Code" })].join(" · "));
|
||||
// the hub's mark is magpie's bird (the owner didn't like a made-up glyph)
|
||||
assert.equal(await v.locator('.lib-hub > .lib-hubmark use[href="#bird"]').count(), 1);
|
||||
// the hub's mark is magpie's bird (the owner didn't like a made-up glyph),
|
||||
// its tail three routes out to three ends (the owner's pick, 10-31),
|
||||
// drawn by a clip the page has
|
||||
assert.equal(await v.locator('.lib-hub > .lib-hubmark use[href="#bird"][clip-path="url(#bird-notail)"]').count(), 1);
|
||||
assert.equal(await v.locator(".lib-hub > .lib-hubmark path").count(), 3);
|
||||
assert.equal(await v.locator(".lib-hub > .lib-hubmark circle").count(), 3);
|
||||
assert.equal(await page.locator("clipPath#bird-notail").count(), 1);
|
||||
// the address any other app connects at
|
||||
const at = v.locator(".lib-hubat");
|
||||
// the row says what it is (the owner: "Other apps" over an address read as nonsense)
|
||||
|
||||
Reference in New Issue
Block a user