Skip to content

test(bots): icon rule fields in test fixtures (#692) - #345

Merged
notFrost merged 1 commit into
feat/bot-icon-timeline-serverfrom
fix/bot-icon-timeline-typecheck-fixtures
Dec 1, 2026
Merged

notFrost merged 1 commit into
feat/bot-icon-timeline-serverfrom
fix/bot-icon-timeline-typecheck-fixtures

Conversation

@notFrost

@notFrost notFrost commented Dec 1, 2026

Copy link
Copy Markdown

Part of notFrost/sophie#692.

Part A adds iconRules to the Bot record and three timestamps (workingSince, deliveredAt, erroredAt) to the roster entry, all required once decoded. Three client test files build those records by hand, so without these fields the repo typecheck fails. Frost asked to split these out so part A stays contract and server only.

Only test data changes:

  • iconRules: DEFAULT_BOT_ICON_RULES (plus its import) in the Bot fixtures of packages/client-runtime/src/botForm.test.ts, packages/client-runtime/src/state/bots.test.ts and apps/web/src/components/bots/sidebarMode.logic.test.ts.
  • workingSince: null, deliveredAt: null, erroredAt: null on the hand-built roster entries in state/bots.test.ts and sidebarMode.logic.test.ts.

No source files and no assertions change.

Tests

Repo typecheck (vp run typecheck) on this branch:

vp run: 0/44 cache hit (0%), 44/44 successful. (Run `vp run --last-details` for full details)
exit=0

vp test run packages/client-runtime/src/botForm.test.ts packages/client-runtime/src/state/bots.test.ts apps/web/src/components/bots/sidebarMode.logic.test.ts:

      Tests  28 passed (28)

The pre-commit hook passed: fmt, lint and knip.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@notFrost
notFrost merged commit f4c35b6 into feat/bot-icon-timeline-server Dec 1, 2026

@notFrost notFrost left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lead review (Lukas). I verified this PR, then merged it into feat/bot-icon-timeline-server. It goes nowhere near custom-nightly. A formal approval wasn't possible because the account has no write-review permission.

Checks:

  • Fixtures only. Every added line is one of:

    • the DEFAULT_BOT_ICON_RULES import,
    • iconRules: DEFAULT_BOT_ICON_RULES,
    • workingSince/deliveredAt/erroredAt: null.

    The other changed lines are formatter reflow.

  • Same tree as the contract commit. This branch's tree is identical to 0b4854811b's. That commit held these lines until Frost asked for them to be split out.

  • Typecheck, run by me in the PR worktree: vp run typecheck gives 44/44 successful, exit 0.

  • Tests, run by me: the three touched files pass, 28 of 28 tests.

These are the typecheck fixes Frost asked to keep in their own PR. The PR is stacked on the server branch because the new fields only exist there.

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