Skip to content

Conversation

@Foundup
Copy link
Owner

@Foundup Foundup commented Nov 9, 2025

Root Cause

Icon components (GridIcon, MapIcon, HomeIcon, CartIcon) were only accepting className prop, causing inline style={{width: '12px', height: '12px'}} to be ignored.

Changes

  • ✅ Add style?: React.CSSProperties to IconProps interface (all 4 icons)
  • ✅ Destructure and pass style prop to SVG elements
  • ✅ Enables proper icon sizing control from LeftSidebarNav

Fixes

This resolves icon sizing that wasn't applying in PRs #57, #59, #60.

Before: Icons displayed at default size despite code setting 26px→18px→12px
After: Icons will respect style={{width: '12px', height: '12px'}} for proper padding (21px per side in 54px buttons)

Testing

  • ✅ Build passed (npm run build)
  • ✅ No TypeScript errors
  • ✅ All 4 icon components updated consistently

🤖 Generated with Claude Code

Foundup and others added 22 commits November 8, 2025 23:32
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>
CHANGES:
1. Icon sizes: 16px → 12px (all 4 icons)
2. Order: flex-col-reverse → flex-col (original order)

ICON ORDER (bottom to top):
- Cart (bottom)
- Home
- Map
- Browse (top)

PADDING:
- Button: 54px
- Icon: 12px
- Padding per side: (54-12)/2 = 21px

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Root cause: Icon components (GridIcon, MapIcon, HomeIcon, CartIcon) were only accepting className prop, causing inline style={{width: '12px', height: '12px'}} to be ignored.

Changes:
- Add style?: React.CSSProperties to IconProps interface (all 4 icons)
- Destructure and pass style prop to SVG elements
- Enables proper icon sizing control from LeftSidebarNav

This fixes icon sizing that wasn't applying in PRs #57, #59, #60.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants