@@ -6910,6 +6910,35 @@ export async function onLoad() {
69106910 setupInfoModal ( 'powerInfoLink' , 'powerModal' , 'Radio Power' ) ;
69116911 setupInfoModal ( 'carpeaterInfoLink' , 'carpeaterModal' , 'Carpeater' ) ;
69126912
6913+ // Show deprecation notice modal on first page load
6914+ const noticeModal = document . getElementById ( 'noticeModal' ) ;
6915+ const noticeModalOk = document . getElementById ( 'noticeModalOk' ) ;
6916+ const NOTICE_STORAGE_KEY = 'meshmapper_notice_seen' ;
6917+
6918+ if ( noticeModal && noticeModalOk ) {
6919+ // Check if user has already seen the notice
6920+ const noticeSeen = localStorage . getItem ( NOTICE_STORAGE_KEY ) ;
6921+ if ( ! noticeSeen ) {
6922+ debugLog ( '[UI] Showing deprecation notice modal (first visit)' ) ;
6923+ noticeModal . classList . remove ( 'hidden' ) ;
6924+ }
6925+
6926+ // Handle OK button click
6927+ noticeModalOk . addEventListener ( 'click' , ( ) => {
6928+ debugLog ( '[UI] Notice modal OK clicked' ) ;
6929+ localStorage . setItem ( NOTICE_STORAGE_KEY , 'true' ) ;
6930+ noticeModal . classList . add ( 'hidden' ) ;
6931+ } ) ;
6932+
6933+ // Close modal when clicking backdrop
6934+ noticeModal . addEventListener ( 'click' , ( e ) => {
6935+ if ( e . target === noticeModal ) {
6936+ debugLog ( '[UI] Notice modal closed via backdrop click' ) ;
6937+ localStorage . setItem ( NOTICE_STORAGE_KEY , 'true' ) ;
6938+ noticeModal . classList . add ( 'hidden' ) ;
6939+ }
6940+ } ) ;
6941+ }
69136942
69146943 // Prompt location permission early (optional)
69156944 debugLog ( "[GPS] Requesting initial location permission" ) ;
0 commit comments