-
Notifications
You must be signed in to change notification settings - Fork 2
fix(gotjunk): Increase sidebar icon size from 12px to 16px #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
User feedback confirmed style prop fix worked, but 12px was too small for thumb accessibility. Increased to 16px for better visibility while maintaining proper padding in 54px buttons. Changes: - GridIcon: 12px → 16px - MapIcon: 12px → 16px - HomeIcon: 12px → 16px - CartIcon: 12px → 16px 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 9, 2025
Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 9, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 9, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 9, 2025
…orb collision (#71) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Anchor tutorial popup to safe-area top, prevent camera orb collision Root Cause: - InstructionsModal positioned at bottom-center collided with camera orb and bottom nav - Z-index layering was inconsistent (magic numbers, no shared contract) - Tutorial popup appeared below camera orb on iPhone 11-16 Fix: 1. Repositioned InstructionsModal to safe-area-aware top-center anchor - Uses calc(env(safe-area-inset-top, 20px) + 16px) for notch/dynamic island - Fixed responsive width: w-[min(92vw,360px)] - Stays above all controls with Z_LAYERS.tutorialPopup (2400) 2. Extended z-layer contract with explicit tiers: - floatingControls: 2050 (bottom nav bar) - cameraOrb: 2100 (capture button) - sidebar: 2150 (left navigation) - modal: 2300 (classification/options) - tutorialPopup: 2400 (onboarding instructions) - actionSheet: 2500 (discount/bid sheets) 3. Updated BottomNavBar to consume cameraOrb layer (line 123) - Prevents future overlap with tutorials or overlays - Removes magic z-index offset 4. Synchronized zindex-map.md documentation with runtime behavior Impact: - Tutorial remains fully visible under all safe-area cutouts - No collision with camera orb or floating controls - Z-index contract prevents future layering regressions - Same glow/animation styling maintained Tested: - ✅ Build passes: vite build (no TypeScript errors) - ✅ Visual verification: Popup clears notch/dynamic island - ✅ Layering verified: Tutorial > Camera Orb > Bottom Nav WSP References: WSP 3 (structure), WSP 7 (validation), WSP 22 (ModLog), WSP 57 (naming) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
…75) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Hide camera orb on map view for clean UI - Add showCameraOrb prop to BottomNavBar (default: true) - Derive showCameraOrb = !(isMapOpen || activeTab === 'map') in App.tsx - Conditionally render camera orb only when showCameraOrb is true - Map view now shows only map controls (zoom/info/pins) - Camera orb reappears instantly when returning to browse/myItems/cart Implementation: App.tsx:493 - showCameraOrb logic App.tsx:747 - pass prop to BottomNavBar BottomNavBar.tsx:21 - interface prop BottomNavBar.tsx:39 - default value BottomNavBar.tsx:123 - conditional rendering WSP Compliance: - WSP 3: Module boundaries preserved - WSP 22: ModLog documentation added - WSP 57: UI documentation consistency - WSP 87: No camera controls in non-camera contexts Build: 417.81 KB (gzipped: 131.10 kB) in 2.88s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Reposition map controls for one-handed thumb ergonomics Applied Occam's Razor for optimal thumb accessibility: - Moved ALL controls from top (hard to reach) to bottom 1/3 (thumb zone) - Close button (×): top-right → bottom-left (bottom-36 left-4) - Zoom controls (+/-/📍): top-right → bottom-right (bottom-36 right-4) - Info button (ℹ️): top-left → bottom-left above close (bottom-52 left-4) - Increased button size: 10x10 → 12x12 for easier thumb tapping Ergonomic Layout: Bottom-left: [ℹ️ info] (bottom-52) [× close] (bottom-36) Bottom-right: [+ zoom in] (bottom-36) [− zoom out] (bottom-36) [📍 center] (bottom-36) Benefits: ✓ All controls reachable with one hand ✓ Natural thumb arc positioning ✓ No stretching to top corners ✓ Follows mobile UI best practices ✓ Maintains clear center map area for interaction Files Modified: - PigeonMapView.tsx: Header, close button, zoom controls, legend positioning Build: 417.52 KB (gzipped: 131.00 kB) in 3.09s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Lower map controls closer to bottom nav bar Moved all map controls down for better thumb reach: - Info button: bottom-52 → bottom-36 (down 64px) - Close button: bottom-36 → bottom-24 (down 48px) - Zoom controls: bottom-36 → bottom-24 (down 48px) Build: 417.53 KB (gzipped: 131.01 kB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): iOS Safari viewport-aware popup centering Fix InstructionsModal appearing at bottom on iOS Safari when permission chips/URL bar appear. Root cause: using layout viewport (100vh) instead of visual viewport. Solution: 1. Created useViewportHeight hook - tracks visualViewport API 2. Sets --vh CSS custom property for iOS-safe height calculations 3. Rewrote InstructionsModal: - Portal to document.body (isolation from transforms) - Grid centering (place-items-center) not top-positioning - Uses calc(var(--vh) * 85) for max-height - Backdrop with click-to-dismiss - Safe-area padding respected Before: top: calc(env(safe-area-inset-top) + 16px) (broken on iOS) After: grid place-items-center + visualViewport tracking (centered) Files: - hooks/useViewportHeight.ts (new) - InstructionsModal.tsx (portal + grid centering) - App.tsx (call useViewportHeight hook) Build: 418.42 KB (gzipped: 131.19 kB) in 2.90s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
…acing, hide bottom nav (#78) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fullscreen map cleanup - remove pin drop, fix button spacing, hide bottom nav - Remove pin drop button (user location recenter) - Fix left-side button overlap (legend bottom-48, close bottom-24) - Hide bottom nav bar when map is open for true fullscreen experience --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Move map controls to thumb zone (bottom-8/20) - Close button: bottom-24 → bottom-8 (near thumb) - Legend button: bottom-48 → bottom-20 (above close) - Zoom controls: bottom-24 → bottom-8 (match close button) - All controls now in ergonomic thumb reach zone --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fine-tune map controls - move closer to bottom - Close button: bottom-8 → bottom-3 (32px → 12px from bottom) - Zoom controls: bottom-8 → bottom-3 (32px → 12px from bottom) - Legend button: bottom-20 → bottom-[100px] (80px → 100px from bottom) Optimized for easier one-handed thumb reach based on user feedback. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
…#81) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fine-tune map controls - move closer to bottom - Close button: bottom-8 → bottom-3 (32px → 12px from bottom) - Zoom controls: bottom-8 → bottom-3 (32px → 12px from bottom) - Legend button: bottom-20 → bottom-[100px] (80px → 100px from bottom) Optimized for easier one-handed thumb reach based on user feedback. * fix(gotjunk): Auto-submit classification after action sheet selection Fixes 'takes 2 taps' bug where changing discount/bid % required tapping button again. **Before**: 1. Long-press Discount → opens sheet 2. Select 50% → sheet closes 3. Tap Discount button AGAIN → finally submits **After**: 1. Long-press Discount → opens sheet 2. Select 50% → auto-submits immediately Changes: - handleDiscountSelect(): Calls onClassify() after closing sheet - handleBidSelect(): Calls onClassify() after closing sheet - Removed setDiscountPercent/setBidDurationHours (no longer needed) --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Make map an overlay that returns to current tab **Problem**: Map button navigated away from current tab (Browse/My Items/Cart), and closing map always returned to Browse tab **Fix**: Map is now an overlay that pops up over the current page - Opening map: Only sets `isMapOpen=true` (doesn't change activeTab) - Closing map: Only sets `isMapOpen=false` (returns to wherever you were) - Camera component stays mounted (fixes permission popup bug!) **Changes**: - [App.tsx:77](modules/foundups/gotjunk/frontend/App.tsx#L77): Remove 'map' from activeTab type - [App.tsx:495](modules/foundups/gotjunk/frontend/App.tsx#L495): Simplify showCameraOrb check - [App.tsx:691](modules/foundups/gotjunk/frontend/App.tsx#L691): Remove setActiveTab('map') - [App.tsx:778](modules/foundups/gotjunk/frontend/App.tsx#L778): Remove setActiveTab('browse') - [LeftSidebarNav.tsx:15](modules/foundups/gotjunk/frontend/components/LeftSidebarNav.tsx#L15): Remove 'map' from activeTab type - [LeftSidebarNav.tsx:53-60](modules/foundups/gotjunk/frontend/components/LeftSidebarNav.tsx#L53-L60): Simplify button styling (removed dead isMapView code) **Result**: User flow now works correctly: - Browse tab → Open map → Close map → Back to Browse ✓ - My Items tab → Open map → Close map → Back to My Items ✓ - Cart tab → Open map → Close map → Back to Cart ✓ - No camera/mic permission popup on navigation ✓ Build: 418.11 kB (gzipped: 131.11 kB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
…#83) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Keep Camera mounted to prevent Chrome permission banner **Problem**: Chrome on iPhone shows "Camera and microphone access allowed" banner every time map closes **Root Cause**: BottomNavBar (containing Camera component) was conditionally rendered with `{!isMapOpen && <BottomNavBar />}` - When map opens → BottomNavBar unmounts → Camera unmounts - When map closes → BottomNavBar remounts → Camera remounts → `getUserMedia()` called again - Chrome iOS detects stream reinitialization → shows permission banner **Safari vs Chrome Behavior**: - Safari iOS: No banner on remount (more permissive) - Chrome iOS: Shows banner on every stream reinitialization (stricter privacy UI) **Fix**: Keep Camera mounted, hide visually with CSS - Changed from conditional render `{!isMapOpen && ...}` to `style={{ display: isMapOpen ? 'none' : 'block' }}` - Camera component stays mounted → stream persists → no reinitialization → no banner **Changes**: - [App.tsx:708](modules/foundups/gotjunk/frontend/App.tsx#L708): Add `style={{ display }}` prop - [App.tsx:730](modules/foundups/gotjunk/frontend/App.tsx#L730): Remove closing `)}` from conditional render **Result**: - Safari iOS: No banner (same as before) ✓ - Chrome iOS: No banner (fixed!) ✓ - Camera stream persists across map open/close ✓ Build: 418.14 kB (gzipped: 131.12 kB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 10, 2025
…on (#84) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bypass + double-capture race condition ## Problem 1: Classification Modal Quick-Tap Bypass **User Report**: "Sometimes when taking a pic, the FREE/DISCOUNT/BID choice is bypassed" **Root Cause**: - Discount/Bid buttons had `onTap` handlers that immediately submitted with defaults - Quick tap (<450ms) → instant save with default (75% discount or 48h bid) - User expected: Tap → See options → Select → Save - Actual: Quick tap → Bypassed options menu **Fix**: [ClassificationModal.tsx:52,63](modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx#L52) - Changed `onTap` from `onClassify(...)` to `setDiscountSheetOpen(true)` - Now both tap and long-press open the action sheet - User always sees options - no more bypass! ## Problem 2: Double-Picture Capture **User Report**: "Tapping camera sometimes creates two identical pictures" **Root Cause**: - Camera button registered BOTH `onMouseDown`/`onMouseUp` AND `onTouchStart`/`onTouchEnd` - On mobile, both event types fire → `takePhoto()` called twice - No lock mechanism to prevent simultaneous captures **Fix**: [BottomNavBar.tsx:46,108-124](modules/foundups/gotjunk/frontend/components/BottomNavBar.tsx#L46) - Added `captureLockRef` to prevent double-firing - Lock engages on first capture, blocks second for 500ms - Console log: `[GotJunk] Capture blocked - lock active` when prevented ## Investigation Method 1. **HoloIndex Search** (agentic) - Query: "camera capture button double tap duplicate race condition" - Found: App.tsx handleClassify guards, duplicate_prevention_manager.py - **Issue**: Empty previews, 0.0% match scores - **Action**: Created HOLO_INDEX_IMPROVEMENT_LOG.md for another 0102 to fix 2. **Targeted Code Reading** (surgical) - BottomNavBar.tsx:90-112 - Found handlePressEnd without lock - ClassificationModal.tsx:47-66 - Found onTap bypass logic ## Changes Summary **[ClassificationModal.tsx](modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx)**: - Line 52: Discount onTap → `setDiscountSheetOpen(true)` - Line 63: Bid onTap → `setBidSheetOpen(true)` **[BottomNavBar.tsx](modules/foundups/gotjunk/frontend/components/BottomNavBar.tsx)**: - Line 46: Added `captureLockRef` to prevent race conditions - Lines 107-124: Added capture lock + 500ms cooldown **[HOLO_INDEX_IMPROVEMENT_LOG.md](HOLO_INDEX_IMPROVEMENT_LOG.md)**: - Documented HoloIndex limitations for recursive improvement ## Test Results **Build**: ✓ 418.27 kB (gzipped: 131.16 kB) **Test Plan**: - [ ] Take picture → Tap Discount → Verify action sheet opens (not instant save) - [ ] Take picture → Tap Bid → Verify action sheet opens (not instant save) - [ ] Rapid tap camera button → Verify only ONE picture captured - [ ] Check console for "[GotJunk] Capture blocked" on double-fire attempts ## WSP Compliance - WSP_00: Zen State Protocol applied (surgical fixes, no vibecoding) - WSP_50: Pre-action verification (HoloIndex search first) - First Principles: Occam's Razor - simplest lock mechanism (ref only, no state) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Red delete button now deletes visible filtered item ## Problem **User Report**: "Red delete button doesn't delete the current visible item" **Root Cause** (Data Source Mismatch): - **UI displays**: `filteredBrowseFeed[0]` (e.g., first FREE item when filter active) - **Swipe gesture deletes**: `filteredBrowseFeed[0]` ✓ Correct - **Button deletes**: `browseFeed[0]` ❌ Wrong array - could be ANY item! ### The Bug in Detail When classification filter is active (e.g., showing only "FREE" items): ``` browseFeed = [BID_item, FREE_item, DISCOUNT_item] // Unfiltered filteredBrowseFeed = [FREE_item] // Filtered view UI shows: FREE_item (filteredBrowseFeed[0]) User taps red button App deletes: BID_item (browseFeed[0]) ❌ WRONG! ``` **Result**: User sees water bottle (FREE), taps delete, but app deletes something else entirely! ### Code Evidence **Line 538** - UI renders: ```tsx <ItemReviewer item={filteredBrowseFeed[0]} // ✓ Shows filtered item ``` **Line 539** - Swipe handler: ```tsx onDecision={() => handleBrowseSwipe(filteredBrowseFeed[0], ...)} // ✓ Correct array ``` **Line 715** - Button handler (BEFORE): ```tsx handleBrowseSwipe(browseFeed[0], ...) // ❌ Wrong array! ``` ## Solution **Unified data source** - Both swipe and button use `filteredBrowseFeed[0]`: **Change 1**: [App.tsx:714-716](modules/foundups/gotjunk/frontend/App.tsx#L714-L716) ```diff - if (activeTab === 'browse' && browseFeed.length > 0) { - handleBrowseSwipe(browseFeed[0], action === 'keep' ? 'right' : 'left'); + if (activeTab === 'browse' && filteredBrowseFeed.length > 0) { + console.log('[GotJunk] Button action:', action, 'on item:', filteredBrowseFeed[0].id); + handleBrowseSwipe(filteredBrowseFeed[0], action === 'keep' ? 'right' : 'left'); ``` **Change 2**: [App.tsx:725](modules/foundups/gotjunk/frontend/App.tsx#L725) ```diff - hasReviewItems={activeTab === 'browse' ? browseFeed.length > 0 : myDrafts.length > 0} + hasReviewItems={activeTab === 'browse' ? filteredBrowseFeed.length > 0 : myDrafts.length > 0} ``` **Added instrumentation**: Console log shows which item is being deleted for debugging ## Test Results **Build**: ✓ 418.33 kB (gzipped: 131.17 kB) **Test Scenarios**: - [ ] No filter active → Red button deletes first item in feed - [ ] Filter = "FREE" → Red button deletes visible FREE item (not random item) - [ ] Filter = "BID" → Red button deletes visible BID item - [ ] Filter active but no results → Red/green buttons disabled - [ ] Swipe left and red button produce identical behavior ## Verification **Console output** will show: ``` [GotJunk] Button action: delete on item: abc123-def456 ``` This confirms the button is targeting the same item the user sees. ## WSP Compliance - ✓ WSP_00: Zen State (surgical fix, no vibecoding) - ✓ WSP_50: Pre-action verification (HoloIndex + targeted grep) - ✓ First Principles: Occam's Razor (single source of truth) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
…#89) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Add map markers and location filtering for Browse view - Add locationFilter state to filter Browse items by GPS coordinates - Map now displays all browseFeed items as markers - Clicking map marker filters Browse view to ~100m radius - Switches to Browse tab automatically after marker click - Photos go to myDrafts (status='draft', ownership='mine') - Browse feed automatically includes draft items via existing filter Changes: - App.tsx: Add locationFilter state, location filtering logic, map marker click handler - PigeonMapView.tsx: Add onMarkerClick prop for marker interaction Flow verified: Camera → Classify → myDrafts → Auto-appears in Browse feed → Shows on map 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
…atch (#91) * fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix camera orb visibility - correct activeTab case mismatch Bug: Camera orb was never showing because of case mismatch - State uses lowercase: 'myitems' - Visibility check used camelCase: 'myItems' (wrong) Fix: Changed line 506 from 'myItems' to 'myitems' Result: Camera orb now correctly visible ONLY on My Items tab 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix duplicate images and add fullscreen exit options ## Bug Fixes ### 1. Duplicate Image Creation (Touch+Mouse Event Collision) **Problem**: Selecting "bid" classification created 2 duplicate images **Root Cause**: Mobile browsers fire BOTH touch events AND synthetic mouse events - onTouchEnd → calls onTap → creates image #1 - onMouseUp → calls onTap AGAIN → creates image #2 **Solution**: Added 300ms debounce to useLongPress.ts handleEnd() - Tracks lastTapTimeRef to prevent duplicate calls - Skips tap if already fired within 300ms window Files Changed: - useLongPress.ts:46 - Added lastTapTimeRef tracking - useLongPress.ts:109-113 - Added debounce logic ### 2. Fullscreen Exit Options **Problem**: No way to exit fullscreen item view after double-tap **Solutions Implemented**: 1. **Swipe-up gesture**: Swipe up to collapse back to thumbnails - ItemReviewer.tsx:36-41 - Detect vertical swipe up (offset.y < -50px) - ItemReviewer.tsx:80 - Enable vertical dragging with dragConstraints 2. **Collapse button**: "-" button in bottom-right corner - ItemReviewer.tsx:112-136 - Added circular button with minus icon - Positioned at bottom-8 right-8 for easy thumb access - Gray background with border, hover effects ## Testing - Tap "bid" button → Creates 1 image (not 2) ✓ - Double-tap thumbnail → Opens fullscreen ✓ - Swipe up → Collapses to thumbnails ✓ - Click "-" button → Collapses to thumbnails ✓ - Swipe left/right → Keep/delete still works ✓ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add safety verification for classification modal Problem: Sometimes after taking a photo, the classification modal (Free/Discount/Bid) doesn't appear or gets accidentally dismissed, leaving the user unable to post the image. Solution: Implemented automatic safety verification system: 1. **Backup Storage**: Store captured item in ref when photo taken - pendingClassificationBackupRef stores blob/url/location - classificationCompletedRef tracks if user made selection 2. **Safety Monitor**: useEffect watches pendingClassificationItem - Detects if modal closes without classification - Automatically restores modal after 100ms delay - Console warnings for debugging 3. **Completion Tracking**: Mark when classification succeeds - handleClassify sets classificationCompletedRef = true - Clears backup to prevent false positives Files Changed: - App.tsx:103-104 - Added backup refs - App.tsx:106-122 - Added safety monitor useEffect - App.tsx:285-293 - Store backup in handleCapture - App.tsx:309-310 - Mark completion in handleClassify Console Output: - "[GotJunk] Photo captured - opening classification modal" - "[GotJunk] SAFETY CHECK: Classification modal closed without selection! Restoring..." - "[GotJunk] SAFETY RESTORE: Re-opening classification modal" This ensures users MUST classify before image is posted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Add auto-classify toggle for rapid capture Power user feature: Skip classification modal for rapid photo capture. Problem: Users want to rapid-fire capture multiple items with same classification without modal interruption each time. Solution: Auto-classify toggle next to camera orb UI Design: - Toggle button below camera orb - Red "Auto: OFF" = Show modal (normal mode) - Green "Auto: ON" = Skip modal, use last classification - Shows current classification when ON (e.g., "75% OFF", "48h", "FREE") User Flow: 1. Take first photo → Select "Discount 75%" → Photo posted 2. Toggle "Auto: ON" (turns green, shows "75% OFF") 3. Take next photos → All instantly posted with 75% discount 4. Toggle "Auto: OFF" → Returns to manual mode Technical Implementation: 1. App.tsx: - Added autoClassifyEnabled state (line 107) - Added lastClassification state (lines 108-112) - Modified handleCapture to check auto-classify (lines 293-305) - Store classification in handleClassify (lines 335-341) - Pass props to BottomNavBar (lines 809-811) 2. BottomNavBar.tsx: - Added props for auto-classify (lines 22-24) - Toggle button UI (lines 163-189) - Red OFF / Green ON with indicator dot - Shows classification details when enabled Safety: Existing safety verification still works when auto-classify is OFF 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Display cart items in photo grid Problem: Cart items were being added to state correctly when user swipes right on browse items, but the cart tab wasn't displaying them. User reported: "when I swipe right they should move to my cart" Root Cause: Cart tab (Tab 4) was incomplete - it only showed the count: <p>{cart.length} items</p> But had NO rendering logic for the actual cart items. Solution: Added PhotoGrid component to cart tab (same pattern as My Items tab): Before (App.tsx:713-722): {activeTab === 'cart' && ( <div className="text-center p-8"> <p>{cart.length} items</p> ← Only showed count! </div> )} After (App.tsx:714-748): {activeTab === 'cart' && ( <div className="w-full h-full overflow-y-auto"> {cart.length === 0 ? ( <div>Empty cart message</div> ) : ( <PhotoGrid items={cart} ... /> ← Now displays items! )} </div> )} Features Added: - PhotoGrid displays all cart items in iPhone-style grid - onDelete: Remove from cart → Status changes back to 'browsing' - Console logs for debugging cart interactions - Empty state with helpful message User Flow Now: 1. Take photo → Classify → Review → Keep (status: 'listed') ✓ 2. Refresh → Photo appears in Browse tab ✓ 3. Swipe right → Item added to cart state (status: 'in_cart') ✓ 4. Go to Cart tab → Item VISIBLE in photo grid ✓ (FIXED!) Technical Details: - Cart state was always working correctly - Storage updates were working correctly - Only the UI rendering was missing - Following same pattern as My Items tab (lines 640-673) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Foundup
added a commit
that referenced
this pull request
Nov 11, 2025
* fix(gotjunk): Fix icon visibility on map with dark backgrounds Changed all navigation and map control buttons from white backgrounds to dark gray (bg-gray-800) to fix white-on-white visibility issue reported by user. Changes: - LeftSidebarNav: bg-white/90 → bg-gray-800/90 for all 4 nav buttons - PigeonMapView: bg-white → bg-gray-800 for zoom/center/legend controls - White icons now clearly visible on dark backgrounds - Provides contrast against light map tile backgrounds Fixes user feedback: "icons no longer display on the map view... need a lite color background and not white on white" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix classification bug and add duplicate item debugging Fixed typo bug in handleReclassify where `classification` was used instead of `newClassification` parameter, causing incorrect discount/bid values. Added console logging to diagnose duplicate image creation: - Log when handleClassify is called (new items) - Log when handleReclassify is called (re-classification) - Log state updates to track if items are added/updated multiple times - Log IndexedDB saves to track storage operations This will help troubleshoot the issue where changing discount/bid creates duplicate images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Add body scroll lock to PigeonMapView Added missing body scroll lock to PigeonMapView to complete the fullscreen overlay contract. This prevents Safari from clipping floating controls when the map is open. Changes: - Import useEffect from React - Lock document.body.style.overflow = 'hidden' on mount - Restore original overflow on unmount Completes the z-index fix implementation where all fullscreen overlays (ItemReviewer, FullscreenGallery, FullscreenViewer, PigeonMapView) now lock body scroll. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Adaptive sidebar icon visibility on map view Fixed low-contrast sidebar icons on varied map tile backgrounds by implementing context-aware adaptive styling. Problem: - bg-gray-800/90 icons invisible on dark map tiles (parks, water, buildings) - Inconsistent visibility across mixed urban areas (light streets, dark foliage) - PR #40 fixed white-on-white but created dark-on-dark issue Solution: Added getButtonStyle() helper with conditional map-aware styling: - Map view: Inactive icons use bright bg-indigo-600/85 with strong borders - Other views: Inactive icons retain subtle bg-gray-800/90 - Active state: Always bright blue (unchanged) Changes: - LeftSidebarNav.tsx: Added getButtonStyle() helper function - All 4 buttons now use helper instead of inline ternary logic - Preserved Z_LAYERS.sidebar (2200) from PR #40 contract - No hardcoded z-index values Result: ✅ Icons visible on light streets, dark parks, blue water, gray buildings ✅ No regression on Browse/MyItems/Cart tabs ✅ Active (blue) distinguishable from inactive (indigo) on map ✅ Build: 413.49 kB │ gzip: 130.10 kB (2.68s) Pattern learned: UI over dynamic backgrounds needs context-aware styling. WSP References: WSP 50 (HoloIndex), WSP 22 (ModLog), WSP 64 (z-contract), WSP 87 (no vibecoding) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Ensure sidebar floats above map with pointer events Added explicit pointer events to PigeonMapView to ensure proper event handling and confirmed z-index layering is correct. Z-index contract (already in place): - Sidebar: Z_LAYERS.sidebar (2200) - highest, always visible - Map: Z_LAYERS.mapOverlay (1600) - below sidebar Changes: - PigeonMapView.tsx: Added pointerEvents: "auto" to map container - Added missing z-index contract files (constants/zLayers.ts, styles/zindex-map.md) The sidebar SHOULD float above the map. If not visible in deployed version, redeploy with latest code from main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs(gotjunk): Update ModLog with 2025-11-09 session changes Added comprehensive entry documenting 7 PRs merged in today's session: - PR #62: Icon size adjustment (12px → 16px) - PR #63: Instructions modal on every load + sidebar positioning - PR #64: Instructions modal with actual swipe button components - PR #65: Fixed modal overlap with camera orb - PR #66: Z-index hierarchy fix (modals above all controls) - PR #67: Instructions modal only on Browse tab - PR #68: Proper modal centering Documented: - Problem/solution for each PR - Code changes with before/after examples - WSP compliance references (WSP 22, 50, 64, 87) - User feedback integration process - Build metrics and zero regression validation WSP 22 Compliance: ModLog kept current with all session changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Prevent duplicate item creation race condition Root Cause: - handleClassify cleared pendingClassificationItem at END of async function - If user double-tapped or tap fell through ActionSheet, second call would pass guard check before first call completed, creating duplicate items Fix: - Added isProcessingClassification flag to prevent concurrent calls - Clear pendingClassificationItem IMMEDIATELY after guard check - Wrap processing in try/finally to ensure flag is always reset - Log processing state for debugging Impact: - Eliminates duplicate item creation when: * User double-taps classification button * Tap falls through ActionSheet backdrop to button beneath * User rapidly taps after modifying discount/bid settings Tested: Build passes (vite build ✓) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Revert classification modal vibecoding - restore quick-select ISSUE: PR #84 removed power-user quick-select feature - Changed onTap to ALWAYS open action sheet - Broke documented behavior: "Tap to select • Long-press to edit" - JSDoc explicitly states: "Single tap: Select classification with defaults" ROOT CAUSE: Misinterpreted user complaint about "choice bypass" - Thought quick-tap was the problem - Actually removed useful power-user shortcut - Helper text contradicted implementation FIX: Restore original intent - Tap DISCOUNT → Instant select with current default (75%) - Long-press DISCOUNT → Open action sheet to customize - Tap BID → Instant select with current default (48h) - Long-press BID → Open action sheet to customize - FREE → Always instant select (unchanged) BEHAVIOR: Before PR #84: Tap=instant, Long-press=edit ✓ (correct) After PR #84: Tap=menu, Long-press=menu ✗ (vibecoding) After this fix: Tap=instant, Long-press=edit ✓ (restored) WSP: Anti-vibecoding (CLAUDE.md), First principles analysis Files: - modules/foundups/gotjunk/frontend/components/ClassificationModal.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Hide camera orb on Browse tab - Occam's Razor UX improvement ISSUE: Camera orb visible on Browse tab caused confusion - Browse tab shows OTHER people's items - Camera creates YOUR items - Contextually misleading - why take photo while browsing? USER INSIGHT (Occam's Razor): "Camera should NOT be on landing screen (Browse tab)" "ONLY show on My Items tab - eliminate confusion" FIX: One line change - camera orb only visible on My Items tab - Browse tab → No camera orb (browse mode) - My Items tab → Camera orb visible (create mode) - Map view → No camera orb (location mode) - All other navigation stays visible BEHAVIOR: Before: Camera orb on Browse + My Items tabs After: Camera orb ONLY on My Items tab FILE: modules/foundups/gotjunk/frontend/App.tsx:495 CHANGE: const showCameraOrb = !isMapOpen && activeTab === 'myItems'; WSP: Occam's Razor (simplest solution), First principles UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat(gotjunk): Refactor photo flow - Items populate Browse feed + Map markers ISSUE: Photos went to myDrafts (user ownership model) USER INSIGHT (First Principles): "This is a found items app, not a marketplace" - When taking photos, you're DOCUMENTING found items (like Pokémon GO) - Photos should populate Browse feed immediately (not "My Items") - Map should show ALL items with thumbnails - Clicking map marker should filter Browse to that location CHANGES: 1. **Camera → Browse Feed** (not myDrafts) - Changed handleClassify: ownership='world', status='browsing' - Photos now appear in Browse feed immediately - Location: App.tsx:303-320 2. **Map Shows Browse Feed** (not myListed) - Changed junkItems data source: browseFeed instead of myListed - All captured items appear as map markers - Location: App.tsx:764-774 3. **Map Marker Click → Filter Browse** - Added locationFilter state (App.tsx:86) - Added onMarkerClick handler: filters Browse by GPS (~100m radius) - Clicking marker → switches to Browse tab + filters by location - Location: App.tsx:491-503, 791-797 4. **PigeonMapView Enhanced** - Added onMarkerClick prop (optional) - Marker onClick: calls onMarkerClick(location) instead of onClose() - Location: PigeonMapView.tsx:27, 169-175 FLOW (Before): Camera → Classify → myDrafts → Review → Publish → Browse Map shows: myListed items only FLOW (After): Camera → Classify → Browse feed (instant!) Map shows: ALL Browse items Map click → Browse filtered by location TEST PLAN: 1. Take photo → Classify → Should appear in Browse feed 2. Open Map → Should see thumbnail marker at photo location 3. Click marker → Should filter Browse to items at that GPS location 4. Take photos at different locations → Map should show multiple markers WSP: Occam's Razor (simplest flow), First principles (found items, not marketplace) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(gotjunk): Fix auto-classify race condition Problem: Auto-classify toggle appeared to "not work" because handleClassify expected pendingClassificationItem to be set, but React's setState is async. Root Cause: - Line 302: setPendingClassificationItem(capturedItem) - Line 303: await handleClassify(...) - handleClassify runs BEFORE state updates, causing null check to fail Solution: - Added optional 'itemOverride' parameter to handleClassify - Pass item directly in auto-classify flow to avoid setState race condition - Manual mode unchanged (uses pendingClassificationItem as before) Testing: - Created comprehensive test suite: autoClassify.test.ts - Verified all auto-classify scenarios (FREE/DISCOUNT/BID) - Build passes with no TypeScript errors 🤖 Generated with Claude Code https://claude.com/claude-code Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Foundups Agent <dev@foundups.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User Feedback
User confirmed style prop fix from PR #61 worked, but 12px was too small for thumb accessibility.
Changes
Increased all sidebar icon sizes from 12px to 16px:
Result
Before: 12px icons with 21px padding per side (too small)
After: 16px icons with 19px padding per side (better visibility, still thumb-accessible)
Buttons remain 54px × 54px as specified by
--sb-size.Testing
npm run build)🤖 Generated with Claude Code