Skip to content

fix: populate JobDetail identification form when disc is auto-detected - #103

Merged
negativeeddy merged 1 commit into
masterfrom
feat/fix-jobdetails-autodetect
Aug 16, 2026
Merged

fix: populate JobDetail identification form when disc is auto-detected#103
negativeeddy merged 1 commit into
masterfrom
feat/fix-jobdetails-autodetect

Conversation

@negativeeddy

Copy link
Copy Markdown
Owner

Fixes #67 and #69.

Problem

When a movie/disc is auto-detected while the JobDetail page is open, the
identification form stays empty. The SignalR JobUpdate handler only refreshed
the H1, poster, progress and disc-type — the identification form's Auto and
Final columns for Title, Year, Video Type, IMDb ID, Season, Disc, Starting
Episode and Poster URL kept showing placeholder dashes, so:

Fix

  • JobUpdate now carries the auto/final identification fields
    (TitleAuto, YearAuto, VideoTypeAuto, VideoType, ImdbIdAuto,
    PosterUrlAuto, SeasonNumber(Manual/Auto), DiscNumber(Manual/Auto),
    StartingEpisodeNumber, HasNiceTitle) so the SignalR payload reflects
    what IdentifyService persisted.
  • JobDetail.cshtml gives the identification form cells stable ids and
    live-populates the Auto/Final columns as soon as the update arrives. Manual
    inputs are left untouched so the user can still edit/override them.
  • The Approve Title / Clear Approval buttons now swap automatically once
    HasNiceTitle lands from autodetection.

Tests

  • JobUpdateTests: FromJob maps the identification fields (identified + unidentified cases)
  • WebUi integration test asserting the identification markup/ids the live-update JS depends on

Verification

  • dotnet build — 0 warnings, 0 errors
  • Core tests: 252 passed · WebUi tests: 78 passed · ArmMedia tests: 112 passed

Fixes #67 and #69.

When a movie/disc was auto-detected while the JobDetail page was open,
the identification form stayed empty: only the H1/poster updated via
SignalR, while the Title/Year/Video Type/IMDb/Season/Disc/Poster cells
kept showing placeholder dashes.

- Extend JobUpdate with the auto/final identification fields so the
  SignalR payload carries them after IdentifyService completes
- Give the identification form cells stable ids and live-populate the
  Auto/Final columns in JobDetail.cshtml (manual inputs untouched)
- Swap the Approve Title / Clear Approval buttons once HasNiceTitle lands
- Add JobUpdateTests for the mapping and a WebUi test asserting the
  identification markup the live-update JS depends on
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.

Job details form do not populate when movie is autodetected

1 participant