• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Valian / live_vue / 59a3709afa851977ef2e57e5954f030d2932cc1f-PR-127
80%
main: 80%

Build:
Build:
LAST BUILD BRANCH: fix-stale-upload-ref
DEFAULT BRANCH: main
Ran 17 Mar 2026 10:33AM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Mar 2026 10:31AM UTC coverage: 80.374%. Remained the same
59a3709afa851977ef2e57e5954f030d2932cc1f-PR-127

Pull #127

github

Valian
fix: useLiveUpload now rebuilds hidden input when uploadConfig.ref changes

Previously, useLiveUpload() created the hidden input once in onMounted and never
rebuilt it when the server sent a new upload config ref. This caused LiveView
crashes with KeyError from Phoenix.LiveView.Upload.get_upload_by_ref!/2 when
users selected files after a reconnect or LiveView remount.

Extract createInput and removeInput helpers, add watch() on config structural
identity (ref|name|accept|auto_upload|max_entries), and rebuild the hidden input
when any of these fields change. Teardown and cleanup remain in onUnmounted.

Add 9 regression tests covering input rebuild on ref/accept/max_entries changes,
no rebuild on entry changes, and proper cleanup on unmount.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Pull Request #127: fix: useLiveUpload rebuilds input when uploadConfig.ref changes

344 of 428 relevant lines covered (80.37%)

40.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 59a3709afa851977ef2e57e5954f030d2932cc1f-PR-127.1 17 Mar 2026 10:33AM UTC 11
80.37
GitHub Action Run
Source Files on build 59a3709afa851977ef2e57e5954f030d2932cc1f-PR-127
  • Tree
  • List 11
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #127
  • PR Base - main (#010464B5...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc