Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Align 1.7.2 agent and skill entry layout

wyt72655ded7536
diff --git a/src/renderer/index.html b/src/renderer/index.html
index b830c1e8..2e58b1e4 100644
--- a/src/renderer/index.html
+++ b/src/renderer/index.html
@@ -78,14 +78,6 @@
</div>
</div>
<div class="sidebar-footer-actions">
- <button type="button" class="sb-connect" id="new-chat-external-agent-btn">
- <span class="sb-connect-ic"><span data-ui-icon="terminal" data-ui-icon-class="sb-connect-icon"></span></span>
- <span class="sb-connect-tx">
- <b data-i18n="sidebar.connect_agent">Connect agents</b>
- <small data-i18n="sidebar.connect_agent_sub">Claude Code · Codex &amp; more</small>
- </span>
- <span data-ui-icon="plus" data-ui-icon-class="sb-connect-plus"></span>
- </button>
<div class="sidebar-footer-action-row">
<button class="sidebar-footer-btn" id="settings-btn" data-i18n-title="sidebar.settings_title" title="Settings">
<span data-ui-icon="settings" data-ui-icon-class="sidebar-footer-icon"></span>
diff --git a/src/renderer/modules/state.js b/src/renderer/modules/state.js
index a1ccc6d2..8d405309 100644
--- a/src/renderer/modules/state.js
+++ b/src/renderer/modules/state.js
@@ -424,17 +424,6 @@ function bindStaticHandlers() {
// The "Create agent" inline entry is dynamically created inside
// conversation.js and binds its own click handler.
- document.getElementById('new-chat-external-agent-btn')?.addEventListener('click', () => {
- _trackAgentCreateOpen('new_chat_external_agent', { agent_type: 'cli' });
- openAgentModal({
- initialTab: 'external',
- externalOnly: true,
- returnFocusId: 'new-chat-input',
- entryPoint: 'new_chat_external_agent',
- sourceView: currentView || '',
- });
- });
-
// Agents (grid + detail)
// "Done" button (only visible while editing) — exits edit mode.
document.getElementById('create-agent-btn')?.addEventListener('click', () => {
diff --git a/src/renderer/style.css b/src/renderer/style.css
index 66ee2768..4e99ebe4 100644
--- a/src/renderer/style.css
+++ b/src/renderer/style.css
@@ -15783,9 +15783,43 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }
}
/* Wrapper for the multi-button cluster on the right side of agents-grid-header /
- skills-grid-header. Keeps `+ Create` / `More` glued together while the parent
+ skills-grid-header. Keeps the entries glued together while the parent
header's `justify-content: space-between` still separates title from cluster. */
.header-actions { display: flex; gap: 8px; align-items: center; }
+
+/* Named header entry cluster shared by AI Team and Skills. */
+.header-entry-actions {
+ gap: 6px;
+ flex-shrink: 0;
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ align-items: stretch;
+}
+.header-entry-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ min-height: 36px;
+ padding: 4px 10px;
+ font-size: 12px;
+ line-height: 16px;
+ white-space: nowrap;
+ background: var(--surface);
+ border-color: var(--border-strong);
+}
+.header-entry-btn-create { background: var(--surface-2); }
+.header-entry-btn:hover { background: var(--surface-2); }
+.header-entry-btn:active { background: var(--primary-soft); }
+.header-entry-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
+.header-entry-icon { width: 14px; height: 14px; flex-shrink: 0; }
+.header-entry-copy { display: flex; flex-direction: column; align-items: flex-start; }
+.header-entry-copy small {
+ font-size: 10px;
+ font-weight: 400;
+ color: var(--text-2);
+ line-height: 1.2;
+}
/* AI Team page header: bold title with a muted definition subtitle inline to
its RIGHT (baseline-aligned); action buttons stay right-aligned. The title
never shrinks; the subtitle truncates so a long definition can't push the
@@ -18541,19 +18575,6 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }
.driver-badge--cli { color: #8b5cf6; background: color-mix(in srgb, #8b5cf6 12%, transparent); }
.driver-badge--mcp { color: #10b981; background: color-mix(in srgb, #10b981 12%, transparent); }
-/* ---- sidebar coding-agent entry (relocated from home) ---- */
-.sb-connect {
- display: flex; align-items: center; gap: 9px; width: 100%; margin: 2px 0 6px;
- background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px;
- padding: 8px 10px; cursor: pointer; font-family: inherit; text-align: left; transition: background .16s;
-}
-.sb-connect:hover { background: var(--surface-2); }
-.sb-connect-ic { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
-.sb-connect-icon { width: 28px; height: 28px; color: var(--primary); stroke-width: 1.5; }
-.sb-connect-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1 1 auto; }
-.sb-connect-tx b { font-size: 13px; font-weight: 600; color: var(--text); }
-.sb-connect-tx small { font-size: 10.5px; color: var(--muted); }
-.sb-connect-plus { width: 15px; height: 15px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.agent-card .agent-card-use {
background: transparent;
color: var(--primary);
diff --git a/test/e2e/composer_e2e_interactions.spec.ts b/test/e2e/composer_e2e_interactions.spec.ts
index 4c0b0db8..d8cf077e 100644
--- a/test/e2e/composer_e2e_interactions.spec.ts
+++ b/test/e2e/composer_e2e_interactions.spec.ts
@@ -4,25 +4,14 @@ import path from 'node:path';
import { expect, test } from './fixtures/orkas';
test.describe('persistent sidebar', () => {
- test('keeps the commercial external-agent entry above Settings and opens its flow', async ({ appPage }) => {
- const entry = appPage.locator('.sidebar-footer-actions #new-chat-external-agent-btn');
+ test('keeps the open-source footer focused on local Settings', async ({ appPage }) => {
+ const footer = appPage.locator('.sidebar-footer-actions');
const settings = appPage.locator('.sidebar-footer-actions #settings-btn');
- await expect(entry).toContainText('Connect agents');
- await expect(entry).toContainText('Claude Code · Codex & more');
- await expect(appPage.locator('#panel-new-chat #new-chat-external-agent-btn')).toHaveCount(0);
-
- const [entryBox, settingsBox] = await Promise.all([entry.boundingBox(), settings.boundingBox()]);
- expect(entryBox).not.toBeNull();
- expect(settingsBox).not.toBeNull();
- expect(entryBox!.y + entryBox!.height).toBeLessThanOrEqual(settingsBox!.y);
-
- await entry.click();
- await expect(appPage.locator('#agent-modal')).toHaveClass(/\bopen\b/);
- await expect(appPage.locator('#agent-modal-tabs')).toBeHidden();
- await expect(appPage.locator('#agent-modal [data-agent-panel="external"]')).toHaveClass(/\bis-active\b/);
-
- await appPage.locator('#agent-modal .modal-actions .btn').first().click();
- await expect(appPage.locator('#agent-modal')).not.toHaveClass(/\bopen\b/);
+ await expect(footer.locator('#new-chat-external-agent-btn')).toHaveCount(0);
+ await expect(footer.locator('#sidebar-invite-btn')).toHaveCount(0);
+ await expect(settings).toBeVisible();
+ await settings.click();
+ await expect(appPage.locator('#panel-settings')).toHaveClass(/\bactive\b/);
});
});
diff --git a/test/renderer/new-chat-home.test.ts b/test/renderer/new-chat-home.test.ts
index 043b5491..dac97a2f 100644
--- a/test/renderer/new-chat-home.test.ts
+++ b/test/renderer/new-chat-home.test.ts
@@ -15,19 +15,17 @@ function quickStartOrder(source: string, declaration: string) {
}
describe('new chat home surface', () => {
- it('keeps the external-agent entry fixed above Settings in the sidebar footer', () => {
+ it('keeps the open-source sidebar footer focused on local Settings', () => {
const html = read('src/renderer/index.html');
const sidebarFooter = html.slice(
html.indexOf('<div class="sidebar-footer-actions">'),
html.indexOf('<div class="sidebar-resize-handle"'),
);
- const landing = html.slice(html.indexOf('<section class="panel active" id="panel-new-chat">'), html.indexOf('<!-- Conversation Detail -->'));
- expect(sidebarFooter).toContain('class="sb-connect" id="new-chat-external-agent-btn"');
- expect(sidebarFooter).toContain('data-i18n="sidebar.connect_agent"');
- expect(sidebarFooter).toContain('data-i18n="sidebar.connect_agent_sub"');
- expect(sidebarFooter.indexOf('id="new-chat-external-agent-btn"'))
- .toBeLessThan(sidebarFooter.indexOf('id="settings-btn"'));
- expect(landing).not.toContain('new-chat-external-agent-btn');
+ expect(sidebarFooter).toContain('id="settings-btn"');
+ expect(sidebarFooter).not.toContain('new-chat-external-agent-btn');
+ expect(sidebarFooter).not.toContain('class="sb-connect"');
+ expect(sidebarFooter).not.toContain('sidebar-invite-btn');
+ expect(sidebarFooter.match(/<button\b/g)).toHaveLength(1);
});
it('keeps voice input filtered from the open-source composer', () => {
@@ -37,18 +35,20 @@ describe('new chat home surface', () => {
expect(html).not.toContain('data-ui-icon="mic"');
});
- it('uses the open-source sidebar external-agent handler contract', () => {
+ it('keeps external CLI onboarding on the AI Team header only', () => {
+ const html = read('src/renderer/index.html');
const state = read('src/renderer/modules/state.js');
const agents = read('src/renderer/modules/agents.js');
const handler = state.slice(
- state.indexOf("document.getElementById('new-chat-external-agent-btn')"),
- state.indexOf("document.getElementById('create-agent-btn')"),
+ state.indexOf("document.getElementById('agents-connect-cli-btn')"),
+ state.indexOf("document.getElementById('agents-back-btn')"),
);
+ expect(html).not.toContain('id="new-chat-external-agent-btn"');
+ expect(html).toContain('id="agents-connect-cli-btn"');
+ expect(state).not.toContain("document.getElementById('new-chat-external-agent-btn')");
expect(handler).toContain("initialTab: 'external'");
expect(handler).toContain('externalOnly: true');
- expect(handler).toContain("returnFocusId: 'new-chat-input'");
- expect(handler).toContain("entryPoint: 'new_chat_external_agent'");
- expect(handler).not.toContain("setView('agents'");
+ expect(handler).toContain("entryPoint: 'agents_connect_cli_button'");
expect(agents).toContain('if (tabBar) tabBar.hidden = externalOnly;');
expect(agents).toContain('closeAgentModal({ restoreFocus: true });');
});
@@ -90,7 +90,7 @@ describe('new chat home surface', () => {
expect(css).toMatch(/#panel-new-chat\s*{[\s\S]*?position:\s*relative;/);
expect(css).toContain('.quick-panel-more');
- expect(css).toContain('.sb-connect');
+ expect(css).not.toContain('.sb-connect');
expect(css).not.toContain('.sidebar-external-agent-btn');
expect(css).not.toContain('.new-chat-external-agent-btn');
expect(css).toMatch(/\.sidebar-footer-actions\s*{[\s\S]*?flex-direction:\s*column;[\s\S]*?align-items:\s*stretch;/);
diff --git a/test/renderer/settings-open.test.ts b/test/renderer/settings-open.test.ts
index ca54d994..adf7e5a3 100644
--- a/test/renderer/settings-open.test.ts
+++ b/test/renderer/settings-open.test.ts
@@ -160,6 +160,7 @@ describe('settings sidebar navigation', () => {
it('keeps all three named AI Team entries and the external-only CLI route', () => {
const html = fs.readFileSync(path.join(root, 'src/renderer/index.html'), 'utf8');
const state = fs.readFileSync(path.join(root, 'src/renderer/modules/state.js'), 'utf8');
+ const css = fs.readFileSync(path.join(root, 'src/renderer/style.css'), 'utf8');
const header = html.slice(
html.indexOf('<div class="agents-grid-header">'),
html.indexOf('<div class="marketplace-reconcile-banner" data-reconcile-banner data-reconcile-kind="agent"'),
@@ -175,6 +176,9 @@ describe('settings sidebar navigation', () => {
expect(handler).toContain("initialTab: 'external'");
expect(handler).toContain('externalOnly: true');
expect(handler).toContain("entryPoint: 'agents_connect_cli_button'");
+ expect(css).toMatch(/\.header-entry-actions\s*{[\s\S]*?gap:\s*6px;[\s\S]*?align-items:\s*stretch;/);
+ expect(css).toMatch(/\.header-entry-btn\s*{[\s\S]*?min-height:\s*36px;[\s\S]*?padding:\s*4px 10px;[\s\S]*?font-size:\s*12px;/);
+ expect(css).toMatch(/\.header-entry-icon\s*{[^}]*width:\s*14px;[^}]*height:\s*14px;/);
});
});
diff --git a/test/renderer/synced-surface-regression.test.ts b/test/renderer/synced-surface-regression.test.ts
index 312c2311..02971a86 100644
--- a/test/renderer/synced-surface-regression.test.ts
+++ b/test/renderer/synced-surface-regression.test.ts
@@ -89,23 +89,24 @@ describe('synced PC surface regressions', () => {
expect(css).toContain('.agents-grid-subtitle');
});
- it('keeps the sidebar external-agent entry aligned with the commercial copy', () => {
+ it('keeps the named AI Team and Skills header entries aligned with the commercial copy', () => {
const html = read('src/renderer/index.html');
const locales = Object.fromEntries(['en', 'zh', 'ja', 'pt'].map((locale) => [
locale,
JSON.parse(read(`src/renderer/locales/${locale}.json`)) as Record<string, string>,
]));
- expect(html).toContain('data-i18n="sidebar.connect_agent"');
- expect(html).toContain('data-i18n="sidebar.connect_agent_sub"');
- expect(locales.en['sidebar.connect_agent']).toBe('Connect agents');
- expect(locales.en['sidebar.connect_agent_sub']).toBe('Claude Code · Codex & more');
- expect(locales.zh['sidebar.connect_agent']).toBe('接入智能体');
- expect(locales.zh['sidebar.connect_agent_sub']).toBe('Claude Code · Codex 等');
- expect(locales.ja['sidebar.connect_agent']).toBe('エージェントを接続');
- expect(locales.ja['sidebar.connect_agent_sub']).toBe('Claude Code · Codex など');
- expect(locales.pt['sidebar.connect_agent']).toBe('Conectar agentes');
- expect(locales.pt['sidebar.connect_agent_sub']).toBe('Claude Code · Codex e mais');
+ expect(html).toContain('data-i18n="agents.connect_cli_btn"');
+ expect(html).toContain('data-i18n="agents.connect_cli_sub"');
+ expect(html).toContain('data-i18n="skills.more_btn"');
+ expect(locales.en['agents.connect_cli_btn']).toBe('Connect an agent');
+ expect(locales.en['skills.more_btn']).toBe('Skill marketplace');
+ expect(locales.zh['agents.connect_cli_btn']).toBe('接入智能体');
+ expect(locales.zh['skills.more_btn']).toBe('技能市场');
+ expect(locales.ja['agents.connect_cli_btn']).toBe('エージェントを接続');
+ expect(locales.ja['skills.more_btn']).toBe('スキルマーケット');
+ expect(locales.pt['agents.connect_cli_btn']).toBe('Conectar agente');
+ expect(locales.pt['skills.more_btn']).toBe('Mercado de habilidades');
});
it('exposes the local Commander profile to the renderer', () => {