Skip to content

Commit 1cc4611

Browse files
committed
feat(agent): add chat maximize/minimize feature for agent panel
- Introduced a new icon button in the agent chat header to toggle the chat section between maximized and minimized states, enhancing vertical space for chat logs while keeping Tasks, Context, and compose visible. - Implemented a compact voice hero style (`agent-hero--compact`) for the minimized state. - Added localization keys for the maximize and restore actions across all supported languages. - Updated styles to support the new compact layout and button interactions.
1 parent 15a50cb commit 1cc4611

19 files changed

Lines changed: 163 additions & 18 deletions

File tree

.agents/plans/PLANS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Persistent plans for multi-step work on **blxcode**. Individual plans live as Ma
1515
| planned | [kanban-board-view.md](kanban-board-view.md) | Kanban-View im Plans-Panel fuer alle Plan-Tasks eines Workspaces: Status-Spalten, Drag-and-Drop fuer Karten und Spalten, Spalten ein-/ausblenden und Markdown-Writeback |
1616
| done | [coordinated-subagents.md](coordinated-subagents.md) | Coordinated Subagents fuer BLXCode Agent mit Rollen, i18n Live-Subcards, Provider-Reuse, Environment Detection, Shell/Git/Web Toolsets und scoped Toolgruppen |
1717
| done | [better-harness.md](better-harness.md) | BetterHarness: Shrink system prompt by extracting tool docs into 6 embedded Core Skills; Skills tab gets Core/User sub-tabs |
18+
| done | [agent-chat-maximize.md](agent-chat-maximize.md) | Agent-Tab: Chat-Maximize-Toggle vor Reset; Voice-Hero kompakt (`agent-hero--compact`), mehr Platz fuer Chat-Verlauf |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Agent Chat Section Maximize
2+
3+
**Status:** done (implemented on `feat/agent-chat-maximize`)
4+
5+
## Summary
6+
7+
Icon-Toggle im Agent-Tab-Chat-Header (vor Reset): maximiert die Chat-Sektion, indem der Voice-Hero (`agent-hero`) in eine kompakte Leiste wechselt. Tasks, Context und Compose bleiben sichtbar. Nur innerhalb des Agent-Right-Panel-Tabs.
8+
9+
## Decisions
10+
11+
- Voice minimieren via `agent-hero--compact`, kein Ausblenden von Tasks/Context.
12+
- Lokales `chat_maximized` RwSignal, nicht in `WorkspaceEntry`.
13+
- Feature-Branch: `feat/agent-chat-maximize` von `main`.
14+
15+
## Tests
16+
17+
- Agent-Tab: Toggle links vom Reset; Hero kompakt/voll; andere Tabs unberührt.
18+
- `cargo check -p blxcode-ui --target wasm32-unknown-unknown`
19+
20+
## Tasks
21+
22+
- [x] `git-branch` - Branch von main
23+
- [x] `plan-file` - Plan + PLANS.md Index
24+
- [x] `i18n-keys` - AgChatMaximize / AgChatRestore
25+
- [x] `ui-toggle` - Button + Signal + Hero-Modifier
26+
- [x] `css-hero-compact` - Compact hero + icon button styles
27+
- [x] `manual-verify` - wasm check

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- **Subagent protocol & UI**: new `AgentEvent::Subagent{Started,Step,ToolCall,Finished}` events, `TimelineItem::SubagentGroup` (tolerant serde for older `sessions.json`), inline subcards with live steps and compact tool-call icons, ~50 ms debounce for parallel event bursts.
2929
- **Core skills**: embedded harness skills `subagents.md`, `environment.md`, `shell.md`, `git.md`, `web.md` plus updated `file-access.md` / `harness.md` (harness-vs-shell boundary). `system_prompt.rs` skill/tool index expanded with subagent activation triggers.
3030
- **i18n**: subagent UI states, role display names (Scout / Review / Security Analyst with auto-suffix on conflict), all new tool/environment/shell/git/web labels and the web-disabled hint added to every locale.
31+
- **Agent chat maximize**: new maximize/minimize icon button in the agent chat header (before Reset). Toggles a compact voice hero (`agent-hero--compact`) inside the Agent right-panel tab only — smaller orb and status line, tagline hidden — so the chat log gains vertical space while Tasks, Context and compose stay visible. Session-local `chat_maximized` state (not persisted per workspace). i18n: `AgChatMaximize`, `AgChatRestore` in all locales.
3132

3233
### Changed
3334

src/i18n/keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ pub enum I18nKey {
213213
AgCancel,
214214
AgResetChat,
215215
AgResetChatAria,
216+
AgChatMaximize,
217+
AgChatRestore,
216218
AgErrNeedPrompt,
217219
AgYou,
218220
AgAssistant,

src/i18n/locales/de_de.rs

Lines changed: 4 additions & 2 deletions
Large diffs are not rendered by default.

src/i18n/locales/en_us.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ Classic: Ctrl+O quick open, Ctrl+` new terminal, Ctrl+Shift+P palette."
238238
I18nKey::AgResetChatAria => {
239239
"Clear the chat view and the model conversation history on the server"
240240
}
241+
I18nKey::AgChatMaximize => "Expand chat (minimize voice area)",
242+
I18nKey::AgChatRestore => "Restore voice area",
241243
I18nKey::AgErrNeedPrompt => "Please enter a prompt.",
242244
I18nKey::AgYou => "You",
243245
I18nKey::AgAssistant => "Agent",

src/i18n/locales/es_es.rs

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

src/i18n/locales/fr_fr.rs

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

src/i18n/locales/hu_hu.rs

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

src/i18n/locales/it_it.rs

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)