Skip to content

✨ feat(bots): timeline icons and shapes by rule (#692) - #355

Draft
notFrost wants to merge 21 commits into
custom-nightlyfrom
feat/bot-icon-timeline
Draft

notFrost wants to merge 21 commits into
custom-nightlyfrom
feat/bot-icon-timeline

Conversation

@notFrost

@notFrost notFrost commented Dec 1, 2026

Copy link
Copy Markdown

Problem

Issue: timeline icons for Bots (#692). A Bot has one icon. Frost wants it to change while a rule applies: how long the Bot has been working, how long something has been left for you, and how long since its last activity. In image mode that's a timeline of images. In shape mode it's one shape per rule.

Change

Merged into feat/bot-icon-timeline, each reviewed by Lukas:

Scope

Verification

Draft until these land:

  • Rule faces in the shapes section (B2b, Carlos).
  • Sync with custom-nightly. Today it conflicts in BotStore.ts, BotDetailsPanel.browser.test.tsx and the 11 web catalogs, all keep-both (Jhon).
  • Full run on the synced branch: vp run typecheck, vp lint, vp run knip:check, node scripts/i18n-check.ts, vp test run, vp run build:desktop, and an Electron run. The outputs get pasted here.
  • Visual QA (Isabelle).

Nothing merges here without Frost.

🤖 Generated with Claude Code

notFrost and others added 19 commits November 30, 2026 23:12
…#692)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ck-fixtures

test(bots): icon rule fields in test fixtures (pingdotgg#692)
Add resolveBotIcon, a pure evaluator that picks a Bot's timeline image or
rule shape from its icon rules, with the next moment the result can change,
and botLeftForYouSinceMs for the leftOnDelivered minute 0. Add the start
time parser and short formatter for the editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread never visited now counts as read for leftOnDelivered, through the
same unread check the Bot list uses. resolveBotIcon no longer takes the
Bot's status, since each rule's start time already says whether it applies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed time (pingdotgg#692)

A stored rule order can hold fewer than three rules, or none, and the
lastCalled shape time can be 0. Pin that only rules in the order are used,
an empty order shows the Default Icon, and a 0 time holds at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BotAvatar now resolves a Bot's icon rules wherever it knows the Bot: a
timeline image or rule shape replaces the Default Icon in the one slot,
re-resolved once at each boundary instead of on a tick. The next timeline
image loads ahead, and a stored image stays up until the next one loads.
Muted Bots keep their Default Icon, now grayed out. Editors opt out.

The roster's workingSince, deliveredAt and erroredAt now reach the client
through ScopedBotEntry, and botIconInputs turns them and the Bot thread's
shell into each rule's minute 0. The evaluator uses the contract types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(bots): icon rules storage and roster timestamps (pingdotgg#692)
✨ feat(bots): resolve and show Bot icons from their rules (pingdotgg#692)
Draft model for icon rules (BotIconRulesDraft with stable keys and invalid
text), rule ownership in the evaluator, draft rules on BotAvatar, the
settings footer and Save gate, the picker mount points with stub sections,
and the shared rule parts: copy, order list, now badge, time field and the
draft resolution hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Count unreadable icon times as a change, so Discard and the close prompt
apply. Gate Save only on the mode the draft Default Icon turns on, and
send a hidden mode with a problem as saved. Refresh the editor's now
badge elapsed time once a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fills BotRuleShapesSection: one optional shape per rule in the shared
rule order, a popover with the (Default) off option and the shape grid
(Default Icon's shape disabled), the lastCalled "after" time, the now
badge and the muted status line. Adds the section's copy to every web
catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fills the Icon timeline section: three rule cards with image tracks,
add, replace and remove by click or drop, start times that re-sort with
a short slide, suggested times, invalid and duplicate messages, the
full, empty, loading and missing states, and the now badge and ring.

readAvatarImage moves unchanged into its own module so the picker and
the section share it without an import cycle. StoredBotImage falls back
when an image's URL resolves to nothing instead of holding a stale one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(bots): shapes by rule editor section
✨ feat(bots): edit a Bot's icon timeline in settings (pingdotgg#692)
@notFrost

notFrost commented Dec 1, 2026

Copy link
Copy Markdown
Author

Parked (Lukas, per Frost, 12-01 ~22:00Z): "let's stay in our pin, branch off it, updating to a new custom-nightly is a job on it's own".

  • feat/bot-icon-timeline stays based on Sophie's pin, d7519d4816. Frost runs his Sophie on that branch for now.
  • This PR stays a draft until the separate update-to-custom-nightly job exists.
  • That job has to resolve the conflicts my test merge found: BotStore.ts, BotDetailsPanel.browser.test.tsx and the 11 web catalogs, all keep-both.
  • The sync attempt was stopped before anything landed on the branch.

notFrost and others added 2 commits December 1, 2026 17:10
🐛 fix(bots): keep missing saved timeline images and center time fields (pingdotgg#692)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant