@@ -147,6 +147,8 @@ function finalizeMapSelection() {
147147
148148  if  ( guidedMapStep )  { 
149149    maybeAutoCompleteGuidedPair ( ) ; 
150+   }  else  if  ( ! isGuidedActive ( ) )  { 
151+     showToast ( 'Pair ready — tap "Confirm pair" to save it.' ) ; 
150152  } 
151153} 
152154
@@ -432,6 +434,9 @@ function beginPairMode() {
432434  clearActivePairMarkers ( ) ; 
433435  updatePairStatus ( ) ; 
434436  dom . addPairButton . disabled  =  true ; 
437+   if  ( ! isGuidedActive ( ) )  { 
438+     showToast ( 'Tap the photo to drop the pixel anchor.' ) ; 
439+   } 
435440} 
436441
437442function  cancelPairMode ( )  { 
@@ -497,6 +502,15 @@ function confirmPair() {
497502  recalculateCalibration ( ) ; 
498503
499504  const  savedIndex  =  state . pairs . length  -  1 ; 
505+   if  ( ! isGuidedActive ( ) )  { 
506+     const  residual  = 
507+       state . calibration  &&  Array . isArray ( state . calibration . residuals ) 
508+         ? state . calibration . residuals [ savedIndex ] 
509+         : null ; 
510+     const  residualText  =  residual  !==  null  &&  residual  !==  undefined  ? `${ residual . toFixed ( 1 ) }   : '—' ; 
511+     const  tone  =  residual  !==  null  &&  residual  <=  30  ? 'success'  : 'info' ; 
512+     showToast ( `Pair ${ savedIndex  +  1 } ${ residualText }  ,  {  tone } ) ; 
513+   } 
500514  showGuidedPairSavedToast ( savedIndex ) ; 
501515  advanceGuidedFlow ( ) ; 
502516} 
@@ -532,6 +546,8 @@ function handlePhotoClick(event) {
532546  if  ( guidedPhotoStep )  { 
533547    setActiveView ( 'osm' ) ; 
534548    showToast ( 'Now tap the matching spot on the map.' ) ; 
549+   }  else  if  ( ! isGuidedActive ( ) )  { 
550+     showToast ( 'Switch to the OpenStreetMap tab and tap the matching spot.' ) ; 
535551  } 
536552} 
537553
@@ -944,6 +960,7 @@ function init() {
944960  setActiveView ( 'photo' ) ; 
945961  updateStatusText ( ) ; 
946962  updateGpsStatus ( 'Import a map photo to get started.' ,  false ) ; 
963+   showToast ( 'Import a map photo to get started.' ) ; 
947964  registerServiceWorker ( ) ; 
948965} 
949966
0 commit comments