From 5d110964b958ea9c2a33f0f7a1c3920936676c27 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 23 Feb 2023 13:32:19 -0800 Subject: [PATCH] PNP Settings --- _locales/en/messages.json | 62 +++++- about.html | 1 - app/main.ts | 2 +- debug_log.html | 1 - package.json | 2 +- settings.html | 1 - sticker-creator/index.html | 1 - stylesheets/components/CircleCheckbox.scss | 113 ++++++++-- stylesheets/components/Preferences.scss | 53 ++++- ts/OS.ts | 10 + ts/components/CircleCheckbox.stories.tsx | 52 ++++- ts/components/CircleCheckbox.tsx | 24 +- ts/components/Preferences.stories.tsx | 24 +- ts/components/Preferences.tsx | 208 +++++++++++++----- .../ConversationNotificationsModal.tsx | 38 ++-- ts/main/settingsChannel.ts | 5 +- ts/services/storageRecordOps.ts | 5 - ts/state/smart/App.tsx | 16 +- ts/textsecure/WebAPI.ts | 16 ++ ts/util/createIPCEvents.ts | 34 ++- ts/util/isPhoneNumberSharingEnabled.ts | 5 +- ts/util/phoneNumberSharingMode.ts | 2 - ts/windows/context.ts | 10 +- ts/windows/init.ts | 5 + ts/windows/main/start.ts | 3 + ts/windows/preload.ts | 8 +- ts/windows/settings/preload.ts | 10 +- 27 files changed, 562 insertions(+), 149 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 45f07bab4..ed0bc0003 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -5429,23 +5429,75 @@ }, "Preferences__who-can--title": { "message": "Who can...", - "description": "Title for the 'who can do X' setting" + "description": "(deleted 2022/02/14) Title for the 'who can do X' setting" }, "Preferences__privacy--description": { "message": "To change these settings, open the Signal app on your mobile device and navigate to Settings > Privacy", - "description": "Description for the 'who can do X' setting" + "description": "(deleted 2022/02/14) Description for the 'who can do X' setting" }, "Preferences__who-can--everybody": { "message": "Everybody", - "description": "Option for who can see my X select" + "description": "(deleted 2022/02/14) Option for who can see my X select" }, "Preferences__who-can--contacts": { "message": "My Contacts", - "description": "Option for who can see my X select" + "description": "(deleted 2022/02/14) Option for who can see my X select" }, "Preferences__who-can--nobody": { "message": "Nobody", - "description": "Option for who can see my X select" + "description": "(deleted 2022/02/14) Option for who can see my X select" + }, + "icu:Preferences__pnp__row--title": { + "messageformat": "Phone Number", + "description": "Title of Phone Number row in Privacy section of Preferences window" + }, + "icu:Preferences__pnp__row--body": { + "messageformat": "Choose who can see your phone number and who can contact you on Signal with it.", + "description": "Body of Phone Number row in Privacy section of Preferences window" + }, + "icu:Preferences__pnp__sharing--title": { + "messageformat": "Who can see my number", + "description": "Title for the phone number sharing setting row" + }, + "icu:Preferences__pnp__sharing--description--everyone": { + "messageformat": "Your phone number will be visible to people and groups you message. People who have your number in their phone contacts will also see it on Signal.", + "description": "Description for the phone number sharing setting row when the value is Everyone" + }, + "icu:Preferences__pnp__sharing--description--nobody": { + "messageformat": "Nobody will see your phone number on Signal.", + "description": "Description for the phone number sharing setting row when the value is Nobody" + }, + "icu:Preferences__pnp--page-title": { + "messageformat": "Phone Number", + "description": "Title of the page in Phone Number Privacy settings" + }, + "icu:Preferences__pnp__sharing__everyone": { + "messageformat": "Everyone", + "description": "Option for sharing phone number with everyone" + }, + "icu:Preferences__pnp__sharing__nobody": { + "messageformat": "Nobody", + "description": "Option for sharing phone number with nobody" + }, + "icu:Preferences__pnp__discoverability--title": { + "messageformat": "Who can find me by number", + "description": "Title for the phone number discoverability setting row" + }, + "icu:Preferences__pnp__discoverability--description--everyone": { + "messageformat": "Anyone who has your phone number in their contacts will see you as a contact on Signal. Others will be able to reach you with your phone number when they start a new chat or group.", + "description": "Description for the phone number discoverability setting row wth the value is everyone" + }, + "icu:Preferences__pnp__discoverability--description--nobody": { + "messageformat": "Nobody on Signal will be able to reach you with your phone number.", + "description": "Description for the phone number discoverability setting row wth the value is nobody" + }, + "icu:Preferences__pnp__discoverability__everyone": { + "messageformat": "Everyone", + "description": "Option for letting everyone discover you by phone number" + }, + "icu:Preferences__pnp__discoverability__nobody": { + "messageformat": "Nobody", + "description": "Option for letting nobody discover you by phone number" }, "Preferences--messaging": { "message": "Messaging", diff --git a/about.html b/about.html index ad24f1228..81185ccef 100644 --- a/about.html +++ b/about.html @@ -29,7 +29,6 @@
-