Repository navigation
Description
ADR-0138 (PR #1082) · grilled with Vain on 2026-10-07 in the BotHarness project thread "Profile 与 sidebar 重设计".
Problem
The PersonaBot Profile view has turned into a settings page: model presets, standing memory limits, Bot Zip export, IM identities, pairing, Channel Bridges and the Wake Policy table sit below the identity and charts. Each one has its own visual style, and none of them match the rounded card rows of the Channel sidebar. The Group Profile carries member Wake Policy and Bridge tables the same way. The token card spends a lot of space on text and filters. UI copy mixes in internal terms (Human, PersonaBot, Source Event, "Channel Bridge and authorization", "Attention policy").
Decisions
Profile = shareable identity + read-only activity
- PersonaBot Profile: X-style header with the Profile Banner behind the Avatar, the Display name, Tags (renamed from role badges) and Bio (renamed from description, max 160 chars), plus a share button that runs Bot Zip export (also kept in the App Sidebar context menu). Then the activity cards.
bot.jsongainsbioandbanner, and writestagsinstead ofroles. Readers, including the Marketplace Worker, keep acceptingroles. A banner is always also written as an image under.botharness/.- Group Profile: name, avatar and message activity only. A Group has no banner.
Activity cards
- Token usage, full view: a segmented 「每日总量 | 按模型」 switch plus a range of 7 / 30 / 90 days / all (custom goes in an overflow menu). Remove the role and route filters and the ratio description; the cache and output split moves into the tooltip.
- Remove the Totals card.
- Event activity (Bot Inbox Admissions) and Memory commits (Memory repo commits) keep their current counting. Heatmaps fill the width of the outer block, newest week on the right. Scrolling left loads older weeks, back to the Bot's creation. The popover heatmap fills its width and does not scroll. The per-reason list folds into the heatmap tooltip.
Channel sidebar entries (separate collapsible entries, reorderable and hideable like the existing ones)
- PersonaBot DM, appended after the existing entries in this order: 模型 / Model (Model Plan), 唤醒策略 / Wake policy (renamed from 提醒策略), 外部身份 / External identities, 外部连接器 / External connectors (Bridges: IM now, webhook later), 审批 / Approvals (later, Hub: IM questions, approvals, feedback and non-blocking waits — Lark → Discord → Slack #1019).
- Group: members, 唤醒策略, 外部连接器, group management.
- Standing memory limits become one row inside the Memory files entry.
- Wide tables become card rows (icon + one-line summary + chips) that open a Modal to edit. The collapsed header shows a summary, for example Model「deepseek-v4 · high」, External connectors「2」.
Approvals (layout reserved here, implemented under #1019)
- The Approvals entry holds pending requests (approvable from Web), Approvers (paired IM users; pairing requests move here) and Approval destinations (DMs or groups picked from the External connectors). External identities only covers the Bot's own IM accounts.
- The first accepted decision from any Approver wins. In a group everyone sees the card, but a decision from a non-Approver is refused and never reaches the Bot as an answer.
- A pending approval shows a count badge, styled differently from unread, on the Bot avatar in the DM header and in the App Sidebar. It is fed from the existing Human Inbox "requires approval" attention; there is no new store.
Profile Banner (last)
- New BotPixel package
@botharness/pixel-banner:{scene, seed}recipe with scenes spring / summer / autumn / winter / sea / mountain / desert / forest / night sky / space. It renders at low resolution (about 192×64), is scaled by an integer factor to a 1500×500 PNG, is static, and is locked by a golden test. - The recipe is seeded from the Display name at creation and saved, so a rename does not change it. The editor offers a scene picker, a reroll and an image upload. Existing Bots get a name-seeded banner on first open.
Copy
- The UI never shows internal terms: Human → 你 / you, PersonaBot → Bot, Source Event → 事件 / event. Orchestrator and Assignment stay. Each section has one name.
Slices (one issue = one PR, serial, in this order)
- Sidebar tracer: Model and Wake policy entries in the PersonaBot DM Channel sidebar #1084 Sidebar tracer: Model and Wake policy entries in the PersonaBot DM sidebar
- External identities and External connectors move to the PersonaBot DM sidebar; standing limits join Memory files #1085 External identities and External connectors entries; standing limits move into Memory files
- Group sidebar: Wake policy and External connectors entries; Group Profile shows identity and activity only #1086 Group sidebar: Wake policy and External connectors entries; Group Profile trimmed
- Profile header: Tags and Bio in bot.json, share button, settings-free Profile view #1087 Profile header: Tags and Bio (
bot.json), share button, settings-free Profile view - Token usage card: daily total / by model, simple range, no Totals card #1088 Token card simplification and Totals card removal
- Activity heatmaps fill the width and scroll back to the Bot's creation #1089 Heatmaps fill the width and scroll back to creation
- UI copy sweep: PersonaBot → Bot, no internal terms, one name per section #1090 UI copy sweep (PersonaBot → Bot, no internal terms, one name per section)
- BotPixel: @botharness/pixel-banner generator for pixel nature Profile Banners #1091 BotPixel
@botharness/pixel-bannerpackage and release - Profile Banner in the Profile view, popover, editor and bot.json #1092 Profile Banner in the Profile, popover, editor and
bot.json - Marketplace Worker and site show the Profile Banner and Bio #1093 (later) Marketplace Worker and site show the banner and bio
Each PR includes before/after screenshots (zh/en, light/dark where it matters) kept for docs, and updates the affected zh/en guides.
Out of scope
- Approval implementation (Hub: IM questions, approvals, feedback and non-blocking waits — Lark → Discord → Slack #1019 slices Lark tracer: paired DM Allow once and Reject with canonical execution receipts #1029, Lark tracer: management conversation destinations with per-actor question and approval checks #1034). This spec only places it.
- Marketplace and site banner rendering beyond Marketplace Worker and site show the Profile Banner and Bio #1093.
Activity
DoodleBears commentedon Oct 8, 2026
Issue 归属整理 — 2026-10-08 (Asia/Tokyo)
已按 Human 授权将本 hub 和全部子票 #1084–#1093(包括已关闭切片)统一归入 Profile & Presentation: https://github.com/orgs/BotHarness/projects/12 。Milestone v1.2 保持一致;既有 native parent/dependency、claim 和 PR 状态保留。
DoodleBears commentedon Oct 8, 2026
All ten slices are closed. They ship together in the 1.2.0 Release Ledger (#1234).
@botharness/pixel-banner0.1.0 on npm, and the Profile Banner in the Profile, popover, editor andbot.json.Approvals stays out of scope, as the spec says, and is tracked in #1019.
Generated by Claude Code