diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-10 12:56:26 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-10 12:56:26 +0200 |
| commit | a0793dd37030f7213ecb07a018b11e6a8adf9238 (patch) | |
| tree | 5de1046eae9b3747ac97a81652590fb6af99622b /packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js | |
| parent | 044c585f73cfd548e300859e89eaf5dcb40d3d3c (diff) | |
| download | meshbay-a0793dd37030f7213ecb07a018b11e6a8adf9238.tar.gz | |
feat(android): back the phone's contacts up to a group of one's own
A Contacts backup section on the Android Sync page sends a dated .vcf into
<folder>/<account>-contacts once a day when the address book changed, only
to a group the account is alone in, checked again at every run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js b/packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js index 6285b3c..5145515 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/android-sync-page.js @@ -1,16 +1,21 @@ // The Android Sync page: what this phone sends to its groups, on the Android -// application only (docs/MESHBAY_DESIGN.md §9.12). Loaded on demand, like the -// sections it holds: no other client has it. +// application only (docs/MESHBAY_DESIGN.md §9.12, §9.13). Loaded on demand, +// like the sections it holds: no other client has it. import { html } from './vendor/htm-preact.js'; import { t } from './i18n.js'; +import * as platform from './platform.js'; import { PhotoSyncSection } from './photo-sync-settings.js'; +import { DocSyncSection } from './phone-sync-settings.js'; export function AndroidSyncPage({ user, groups }) { return html` <div> <h2>${t('androidsync.title')}</h2> - <${PhotoSyncSection} user=${user} groups=${groups || []} /> + ${platform.photoSync.available && html` + <${PhotoSyncSection} user=${user} groups=${groups || []} />`} + ${platform.contactSync.available && html` + <${DocSyncSection} kind="contacts" user=${user} groups=${groups || []} />`} </div> `; } |