Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): clarify active pet dock buttons (#2728)

Max791fe79a786e
diff --git a/docs/plans/2026-10-12-desktop-mini-main-agent.md b/docs/plans/2026-10-12-desktop-mini-main-agent.md
index 955f9f6ee..4176e8ed0 100644
--- a/docs/plans/2026-10-12-desktop-mini-main-agent.md
+++ b/docs/plans/2026-10-12-desktop-mini-main-agent.md
@@ -241,10 +241,12 @@ Known data limitations for P1:
- Background `#2a2a2e`, padding 4px, border 1px `white / 8%`, no shadow.
- Two 32px buttons with a 4px gap and a 1px × 16px `white / 10%` hairline
between them:
- - **mic** starts or stops dictation; it turns solid rose with a stop
- square while dictating;
- - **keyboard** opens or closes the input bubble; it is filled white while
- the bubble is open.
+ - **mic** starts or stops dictation; while dictating, it uses the same
+ background as the button hover state with a stop square icon;
+ - **keyboard** opens or closes the input bubble; while the bubble is open,
+ it uses the same background as the button hover state. Hover, dictation,
+ and the open keyboard state share this background and the normal button
+ icon color.
- Hidden by default. It fades and rises in (opacity 180ms ease, transform
220ms settle, from `translateY(-6px) scale(.92)`) on hover over Vibey or
the dock, or on keyboard focus.
diff --git a/ui/e2e/pet-mini/layout.spec.ts b/ui/e2e/pet-mini/layout.spec.ts
index de2072ee8..fae489928 100644
--- a/ui/e2e/pet-mini/layout.spec.ts
+++ b/ui/e2e/pet-mini/layout.spec.ts
@@ -211,6 +211,39 @@ test('Vibey and its dock are reported as the hover zone, and a shell hover shows
await expect(dock).toHaveCSS('opacity', '0');
});
+for (const theme of ['light', 'dark']) {
+ test(`dock active states use the hover surface (${theme})`, async ({ page }) => {
+ await page.goto('/e2e/pet-mini/fixture.html?main=true&layers=0');
+ await page.evaluate((theme) => { document.documentElement.dataset.theme = theme; }, theme);
+ const dock = page.locator('.pet-mini-dock');
+ await page.locator('.pet-mini-avatar-button').hover();
+ await expect(dock).toHaveCSS('opacity', '1');
+ const keyboard = dock.locator('button').last();
+ await keyboard.click();
+ await expect(keyboard).toHaveClass(/is-typing/);
+
+ const typingSurface = await keyboard.evaluate((node) => getComputedStyle(node).backgroundColor);
+ const typingColor = await keyboard.evaluate((node) => getComputedStyle(node).color);
+ expect(typingSurface).not.toBe('rgb(255, 255, 255)');
+
+ await keyboard.evaluate((node) => node.classList.remove('is-typing'));
+ await keyboard.hover();
+ const hoverSurface = await keyboard.evaluate((node) => getComputedStyle(node).backgroundColor);
+ expect(typingSurface).toBe(hoverSurface);
+
+ await keyboard.evaluate((node) => node.classList.add('is-listening'));
+ const listeningSurface = await keyboard.evaluate((node) => getComputedStyle(node).backgroundColor);
+ const listeningColor = await keyboard.evaluate((node) => getComputedStyle(node).color);
+ const regularColor = await keyboard.evaluate((node) => {
+ node.classList.remove('is-listening');
+ return getComputedStyle(node).color;
+ });
+ expect(listeningSurface).toBe(hoverSurface);
+ expect(typingColor).toBe(regularColor);
+ expect(listeningColor).toBe(regularColor);
+ });
+}
+
test('the reply bubble names Vibey as written', async ({ page }) => {
await page.goto('/e2e/pet-mini/fixture.html?main=true&layers=0');
const eyebrow = page.locator('.pet-mini-bubble-speaker');
diff --git a/ui/src/pet/pet-mini.css b/ui/src/pet/pet-mini.css
index a5a504c48..9c26fd399 100644
--- a/ui/src/pet/pet-mini.css
+++ b/ui/src/pet/pet-mini.css
@@ -519,11 +519,9 @@ to {
.pet-mini-dock button:hover {
background:color-mix(in srgb,var(--pet-ink) 10%,transparent)}
.pet-mini-dock button.is-listening {
- background:#f43f5e;
- color:var(--pet-ink)}
+ background:color-mix(in srgb,var(--pet-ink) 10%,transparent)}
.pet-mini-dock button.is-typing {
- background:#fff;
- color:#000}
+ background:color-mix(in srgb,var(--pet-ink) 10%,transparent)}
.pet-mini-dock-divider {
width:1px;
height:16px;
@@ -598,7 +596,7 @@ to {
background: color-mix(in srgb,var(--pet-ink) 16%,transparent);
}
-.pet-mini-stop.is-confirm, .pet-mini-dock button.is-listening {
+.pet-mini-stop.is-confirm {
color: #fff;
}
@@ -606,7 +604,7 @@ to {
background: #fb7185;
}
-.pet-mini-send, .pet-mini-dock button.is-typing {
+.pet-mini-send {
color: #000;
}