aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 18:18:28 -0700
committerAdam Soltys <[email protected]>2026-09-21 18:18:28 -0700
commit1c9ca782fe7fedcf14c9d33035512a2552081ec7 (patch)
tree0316e12b3361fd1008025a42ba91a089bfe8157f /src
parentb00953e0a69df5d95cf6dd792b63c3671bd30191 (diff)
downloadcoinosv3-1c9ca782fe7fedcf14c9d33035512a2552081ec7.tar.gz
coinosv3-1c9ca782fe7fedcf14c9d33035512a2552081ec7.zip
Settings: a Point of sale page of its own; Network folds into Advanced.
Six tiles still: Wallet, Payments, Point of sale, Nostr, Notifications, Advanced. The network and explorer cards sit at the top of Advanced. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src')
-rw-r--r--src/app.js8
-rw-r--r--src/features/pos.js4
-rw-r--r--src/i18n.js3
3 files changed, 10 insertions, 5 deletions
diff --git a/src/app.js b/src/app.js
index a644cbd..a45c9f8 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2503,7 +2503,8 @@ function settingsTab() {
// matters if the phone is lost tonight
case 'wallet': return page(a ? [recoveryCard(a), walletNameCard(a), pubkeyCard(a)] : []);
case 'payments': return page(featureAll('settingsCards').reverse());
- case 'network': return page([networkCard(), explorerCard()]);
+ case 'pos': return page(featureAll('posSettingsCards'));
+ case 'network': return page([networkCard(), explorerCard()]); // an old bookmark of the tile; the cards live under Advanced now
case 'nostr': return nostrSettingsView();
case 'notifications': return page(featureAll('notifySettingsCards').reverse());
case 'advanced': return advancedSettingsView();
@@ -2536,7 +2537,7 @@ function settingsTab() {
grid([
tile('wallet', t('settingsWallet'), t('settingsWalletDesc')),
tile('payments', t('settingsPayments'), t('settingsPaymentsDesc')),
- tile('network', t('settingsNetwork'), t('settingsNetworkDesc')),
+ tile('pos', t('posTitle'), t('settingsPosDesc')),
tile('nostr', t('nostrSettings'), t('settingsNostrDesc')),
tile('notifications', t('settingsNotifications'), t('settingsNotifDesc')),
tile('advanced', t('advancedSettings'), t('settingsAdvancedDesc')),
@@ -2581,6 +2582,9 @@ function advancedSettingsView() {
return h(
'div',
{ class: 'col', style: 'gap:16px' },
+ // which network and which explorer: changed once, if ever — advanced
+ networkCard(),
+ explorerCard(),
wallet.watchOnly
? null
: h(
diff --git a/src/features/pos.js b/src/features/pos.js
index a95aeef..eead222 100644
--- a/src/features/pos.js
+++ b/src/features/pos.js
@@ -327,8 +327,8 @@ export function posFeature(ctx) {
if (ui.screen !== 'wallet' || !ui.pos) return null;
return posScreen();
},
- // Settings → Payments: the door, the mode, and where to bookmark.
- settingsCards() {
+ // Settings → Point of sale: the door, the mode, and where to bookmark.
+ posSettingsCards() {
const url = (typeof location !== 'undefined' ? location.origin : 'https://v3.coinos.io') + '/pos';
return [h('div', { class: 'card col', style: 'gap:10px' },
h('h3', {}, t('posTitle')),
diff --git a/src/i18n.js b/src/i18n.js
index 7d1c261..3d61d55 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -1026,7 +1026,8 @@ const STR = {
settingsNetworkDesc: 'Servers and explorers',
settingsNostrDesc: 'Identity and connections',
settingsNotifDesc: 'What buzzes this device',
- settingsAdvancedDesc: 'Rarities and rescues',
+ settingsAdvancedDesc: 'Network, explorers, rarities and rescues',
+ settingsPosDesc: 'Till mode, tips and the /pos link',
unlockForLabel: 'Stay unlocked',
unlockFor5m: '5 minutes',
unlockFor30m: '30 minutes',