Skip to content

Conversation

@adnaan
Copy link
Contributor

@adnaan adnaan commented Jan 10, 2026

Summary

  • Update github.com/livetemplate/livetemplate from v0.7.7 to v0.7.12
  • Fix avatar-upload test to use Controller+State pattern matching v0.7.12 API
    • Replace undefined ProfileStore with ProfileState
    • Update createTestHandler to use lt.Handle(controller, AsState(state))

Test plan

  • Verified WebSocket test passes with new API pattern
  • Confirmed the ProfileStore issue was pre-existing (test was broken on main)

🤖 Generated with Claude Code

- Update github.com/livetemplate/livetemplate from v0.7.7 to v0.7.12
- Fix avatar-upload test to use Controller+State pattern matching v0.7.12 API
  - Replace undefined ProfileStore with ProfileState
  - Update createTestHandler to use lt.Handle(controller, AsState(state))

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 10, 2026 06:17
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the livetemplate dependency from v0.7.7 to v0.7.12 and fixes a broken test in the avatar-upload example to use the Controller+State pattern that matches the v0.7.12 API.

Changes:

  • Updated github.com/livetemplate/livetemplate dependency from v0.7.7 to v0.7.12
  • Fixed avatar-upload test by replacing undefined ProfileStore with ProfileState and updating the test handler to use the Controller+State pattern

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
go.mod Updates livetemplate dependency version from v0.7.7 to v0.7.12
go.sum Updates checksums for livetemplate v0.7.12
avatar-upload/avatar-upload_test.go Fixes broken test by replacing undefined ProfileStore with ProfileState and updating createTestHandler to use the Controller+State pattern matching v0.7.12 API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

adnaan and others added 2 commits January 10, 2026 08:16
- avatar-upload: serve client JS via lvttest.ServeClientLibrary at /livetemplate-client.js
- todos: update search tests to use lvt-input attribute with 'input' event (not lvt-change with 'change' event)
- todos-components: use text-based waiting for more reliable E2E tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Chat: Use e2etest helpers for consistent port management and server startup
- todos-components: Fix test timing by moving navigation outside subtests
- todos-components: Use count-based waiting instead of text-based for reliability
- todos-components: Add timeout contexts to prevent test hangs
- Upgrade lvt to latest for v0.7.12 tree serialization compatibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@adnaan adnaan merged commit 7ce72c9 into main Jan 10, 2026
9 checks passed
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.

2 participants