Skip to content

fix: keep stored contact fields Google Contacts leaves empty - #95

Merged
VolodymyrLinuxovich merged 2 commits into
mainfrom
fix/contacts-sync-keeps-fields
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 2 commits into
mainfrom
fix/contacts-sync-keeps-fields

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #94

Summary

Google Contacts sync in contacts.ts now updates the phone list, company, job title and photo of an existing contact only when Google has a value. Missing values leave the stored ones alone. Phone numbers are trimmed and blank ones dropped. New contacts still get empty values when Google has none.

This touches the same upsert as #85, #89 and #93. A small merge may be needed if they land together.

Validation

  • New tests in google-contacts-fields.test.ts. Two of the three fail on main.
  • npm test passes.
  • npm run typecheck and lint pass.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Oct 31, 2026 11:47pm UTC

…ps-fields

# Conflicts:
#	src/lib/google/contacts.ts
@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit 665b86e into main Oct 31, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1a8f3fa8 Deployed Oct 31, 2026 by vercel[bot]
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.

Google Contacts sync erases stored phones and company when Google has none

1 participant