feat: Contacts — Address Book, VCF import, Agent linking - #1251
Draft
joepio wants to merge 3 commits into
Draft
Conversation
Introduce AddressBook and Contact as first-class Atomic resources with optional Agent linking, a query-backed Address Book page, and client-side vCard import for Google/iCloud/Microsoft exports. Co-authored-by: Joep Meindertsma <joep@ontola.io>
Guard Address Book rows against unknownSubject, fix dropzone hover background, and update planning/contacts.md acceptance status. Co-authored-by: Joep Meindertsma <joep@ontola.io>
Primary email/phone/org already show in the reachability header; the full emails/telephones/addresses JSON arrays are still editable via Edit. Co-authored-by: Joep Meindertsma <joep@ontola.io>
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
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.
Summary
Adds a first-class Contacts feature: ontology (
AddressBook+Contact), a query-backed Address Book UI, client-side vCard (.vcf) import for Google Contacts / iCloud / Microsoft exports, and optional linking to Atomic Agents viacontactAgent.Design notes:
planning/contacts.md(scopes Milestones 1–2 of the personal-information suite).Agent vs Contact
did:ad:agent:…)contactAgent→ Agent (does not grant rights)Contacts are ordinary Loro-backed resources — no ClassExtender; they sync/search like anything else.
What's included
lib/defaults/contacts.json(bootstrapped viapopulate.rs)@tomic/libdataBrowserontologyuseCollection(parent +isAfilter), search filter, New Contact, Import vCardcontactsFolderstandard locationDemo (manual smoke on
/app/dev-drive)Address Book with imported Jane Doe
Import vCard dialog preview
Contact page reachability
Out of scope (suite plan)
OAuth connectors, CardDAV two-way sync, Person/ContactProfile split.
Test plan
pnpm test src/views/Contacts/vcf.test.ts)--initialize) indexes Contact / AddressBook (search).vcf→ Jane Doe listed with email/phone/orgpairing.test.ts@types/node)To show artifacts inline, enable in settings.