fix: Remove photo URL TextField completely and add debug logging
- Completely removed TextField from PhotoUpload component (not just hidden) - Added console logging to AppShell to debug user photo updates - Rebuilt frontend to ensure changes are deployed The TextField was showing base64 strings even with display:none due to Next.js caching. Complete removal ensures clean UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -165,18 +165,7 @@ export function PhotoUpload({
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
{/* Hidden URL field - users can paste URLs if needed, but field is collapsed by default */}
|
||||
<TextField
|
||||
label="Photo URL (optional)"
|
||||
value={value && !value.startsWith('data:') ? value : ''}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
fullWidth
|
||||
size="small"
|
||||
placeholder="Or paste an image URL here"
|
||||
disabled={disabled || uploading}
|
||||
helperText={uploading ? 'Processing image...' : 'Click camera icon to upload a photo'}
|
||||
sx={{ display: 'none' }} // Hide the URL field completely
|
||||
/>
|
||||
{/* Photo URL field removed - users upload via camera icon only */}
|
||||
</Paper>
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user