fix(ai): use color Pi logo on OAuth pages

This commit is contained in:
Vegard Stikbakke 2026-10-01 15:10:11 +02:00
parent 48dd1e2f0f
commit 233f174401
3 changed files with 8 additions and 1 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Changed
- Changed OAuth browser pages to use the color Pi logo.
## [0.99.2] - 2026-09-30
### Added

View file

@ -1,4 +1,4 @@
const LOGO_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" aria-hidden="true"><path fill="#fff" fill-rule="evenodd" d="M165.29 165.29 H517.36 V400 H400 V517.36 H282.65 V634.72 H165.29 Z M282.65 282.65 V400 H400 V282.65 Z"/><path fill="#fff" d="M517.36 400 H634.72 V634.72 H517.36 Z"/></svg>`;
const LOGO_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" aria-hidden="true"><path fill="#F09082" d="M165.29 165.29H517.36V400H400V282.65H165.29Z"/><path fill="#4D9ABF" d="M165.29 282.65H282.65V400H400V517.36H282.65V634.72H165.29Z"/><path fill="#F1BE58" d="M517.36 400H634.72V634.72H517.36Z"/></svg>`;
function escapeHtml(value: string): string {
return value

View file

@ -71,6 +71,9 @@ describe.sequential("OAuth callback server", () => {
expect(success).toMatchObject({ status: 200, contentType: "text/html; charset=utf-8" });
expect(success.body).toContain("Authentication successful");
expect(success.body).toContain("Signed in to Example.");
expect(success.body).toContain('fill="#F09082"');
expect(success.body).toContain('fill="#4D9ABF"');
expect(success.body).toContain('fill="#F1BE58"');
await expect(server.wait()).resolves.toBe("completed:the-code");
});