Repository navigation
History HistoryCurrentChapter
The open chapter of compacted history: a plain group header over its episode cards. It has no title or summary yet; those are written when the chapter closes, so the card is HistoryChapterCard only after that.
import 'package:agent_kit/agent_kit.dart';
Open chapter: "Current chapter · since Oct 27 · 3 episodes" over three episode cards. The gallery builds an open HistoryChapter whose episodes are in three states: one closed, one with its action log open, one with its messages open. The episodes are always listed; there is no fold.
| Parameter | Type | Notes |
|---|---|---|
chapter |
HistoryChapter (required) |
The open chapter. Read: startedAt, episodes, key. The header's start time comes from historyWhen(startedAt, null), so it reads "since ".
|
controller |
HistoryController (required) |
Holds each episode card's view and "+N more" state. |
messagesBuilder |
HistoryMessagesBuilder? |
Builds an episode's original messages, as for HistoryEpisodeCard. |
muted (header text), ink (the bold "Current chapter"), faint (the separators), typeScale.uiSmall.
Does not read the size class. The header and episode list take the width of their parent.
- No
Semanticsnode of its own. The header is oneText.rich, keyedhistory-current-<key>for tests, and its text is read as written. - The episode cards carry their own accessibility (see
HistoryEpisodeCard). - No reduced-motion handling in this file.
- Gallery scene: History (
GalleryScene.history,HistorySceneinapps/gallery/lib/src/history_scene.dart). The open chapter is built withHistoryCurrentChapterin the scene's chapter loop. - Golden:
apps/gallery/test/component_shots_test.dartwriteshistory_current_chapter(index 0),_light.pngand_dark.png. The whole scene is inapps/gallery/test/goldens/h_history_1600_<theme>.pngandh_history_390_<theme>.png. - Other tests,
packages/agent_kit/test/history/history_test.dart: "the current chapter is a plain header over its episodes".
Generated from docs/components/history/HistoryCurrentChapter.md. Edit the file there; changes made on the wiki are overwritten.
Guides
- Package layout and pinning
- agent_kit_core
- Backend mapping
- agent_kit and the gallery
- Icon and README assets
Component sheets
theme
status
transcript
- ActivityGroupView
- AssistantProse
- ChildQuestionRow
- CodeBlock
- DiffView
- ExecOutput
- FileEditRow
- PlanChecklist
- ReturnLine
- SystemLineView
- TranscriptList
- UserBubble
composer
chrome
context
history
outline
workspace
compositions
providers