From 1799a7c7ff9ffc032968c6d2ce38de198292fe34 Mon Sep 17 00:00:00 2001 From: AdityaKhatri Date: Tue, 7 Jul 2026 09:56:43 +0545 Subject: [PATCH 1/2] feat: make locate tutorial and mapping screen consistent --- app.prod.json | 2 +- app.staging.json | 2 +- app/(auth)/project/[id]/map/index.tsx | 2 + components/LocateFeaturesMappingSession.tsx | 29 +++- components/TileGridMappingSession.tsx | 29 +++- components/tutorial/LocateTutorialSession.tsx | 126 ++++++++++++++---- public/locales/en/mappingSession.json | 1 - 7 files changed, 161 insertions(+), 30 deletions(-) diff --git a/app.prod.json b/app.prod.json index 047541d..ebac2ec 100644 --- a/app.prod.json +++ b/app.prod.json @@ -11,7 +11,7 @@ "userInterfaceStyle": "light", "ios": { "bundleIdentifier": "org.missingmaps.mapswipe", - "buildNumber": "12", + "buildNumber": "13", "backgroundColor": "#0D1949", "supportsTablet": true, "infoPlist": { diff --git a/app.staging.json b/app.staging.json index 3f9bc71..6aac11c 100644 --- a/app.staging.json +++ b/app.staging.json @@ -11,7 +11,7 @@ "userInterfaceStyle": "light", "ios": { "bundleIdentifier": "org.missingmaps.mapswipe-dev", - "buildNumber": "12", + "buildNumber": "13", "backgroundColor": "#0D1949", "supportsTablet": true, "infoPlist": { diff --git a/app/(auth)/project/[id]/map/index.tsx b/app/(auth)/project/[id]/map/index.tsx index d7a887c..e2f5f8b 100644 --- a/app/(auth)/project/[id]/map/index.tsx +++ b/app/(auth)/project/[id]/map/index.tsx @@ -174,6 +174,8 @@ function MapProjectIndex() { )} {mode === 'selection' && ( - <> - - - + )} )} @@ -329,6 +360,51 @@ function LocateTutorialSession(props: TutorialSessionProps) { ); })} + {effectiveSelectionMode && ( + + + {options.map((option) => { + const dotColor = option.color === 'transparent' + ? theme.textMuted + : option.color; + return ( + handleApplyOptionToSelected(option.value)} + disabled={selectedCount === 0} + accessibilityRole="button" + accessibilityLabel={option.label} + > + + + {option.label} + + + ); + })} + + + )} ); } diff --git a/public/locales/en/mappingSession.json b/public/locales/en/mappingSession.json index 2b19c27..d9370bb 100644 --- a/public/locales/en/mappingSession.json +++ b/public/locales/en/mappingSession.json @@ -18,6 +18,5 @@ "discardSession": "Discard session", "discardSessionHelp": "Throw away your answers from this session and return to the home screen.", "enterSelectionMode": "Enter selection mode", - "cycleSelectedCells": "Cycle value of selected cells", "exitSelectionMode": "Exit selection mode" } From f4951820485d416247b6e412c093f09fe835b2a6 Mon Sep 17 00:00:00 2001 From: crsstha Date: Tue, 7 Jul 2026 10:44:55 +0545 Subject: [PATCH 2/2] fix(changelog): stop modal open on fresh install --- components/ChangeLogModal.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/ChangeLogModal.tsx b/components/ChangeLogModal.tsx index 7aea47d..7154b8d 100644 --- a/components/ChangeLogModal.tsx +++ b/components/ChangeLogModal.tsx @@ -50,6 +50,13 @@ function ChangeLogModal() { return; } AsyncStorage.getItem(LAST_VIEWED_CHANGELOG_VERSION_KEY).then((value) => { + if (value === null) { + AsyncStorage.setItem( + LAST_VIEWED_CHANGELOG_VERSION_KEY, + currentVersion, + ); + return; + } if (value !== currentVersion) { setVisible(true); } @@ -89,8 +96,9 @@ function ChangeLogModal() { nestedScrollEnabled > - {currentVersionChanges.map((change) => ( - + {currentVersionChanges.map((change, index) => ( + // eslint-disable-next-line react/no-array-index-key + - {change}