From 81ffaa85c38054c0c80e7e20562c8700795e5b0c Mon Sep 17 00:00:00 2001 From: Mehboob Khan Date: Thu, 24 Sep 2026 18:16:57 +0500 Subject: [PATCH] Rework Mobile SDK explorer into module tile grid, polish nav styling Replace the tab/scrubber UI with a module tile grid, drop the leaked real phone number from the call-scam demo script, and simplify nav scroll background handling. Co-Authored-By: Claude Sonnet 5 --- src/demo/mobile-sdk.html | 6 +- src/site/demos/MobileSdkExplorer.tsx | 66 ++++---- src/site/demos/mobileSdkExplorer.css | 96 ++++++----- src/site/demos/mobileSdkExplorer.html | 229 +++----------------------- src/site/siteController.js | 3 +- src/site/siteMarkup.txt | 62 ++++--- src/site/styles.css | 191 ++++++++++++--------- 7 files changed, 252 insertions(+), 401 deletions(-) diff --git a/src/demo/mobile-sdk.html b/src/demo/mobile-sdk.html index eb02ab3..8f84227 100644 --- a/src/demo/mobile-sdk.html +++ b/src/demo/mobile-sdk.html @@ -611,7 +611,7 @@ footer{background:var(--surface);border-top:1px solid var(--border);padding:2rem
-
07813996004Incoming call · unknown number
+
0123456789Incoming call · unknown number
Checking…
@@ -620,7 +620,7 @@ footer{background:var(--surface);border-top:1px solid var(--border);padding:2rem
How was that… • now
-
07813996004
+
0123456789
⌄
SpamScamOK
@@ -1086,7 +1086,7 @@ const SCRIPTS={ ]}, calls:{dur:9200,steps:[ {t:0, s:0, cap:'Home screen. An unknown number starts ringing.'}, - {t:700, s:1, cap:'Inbound call from 07813996004 — reputation lookup fires.', + {t:700, s:1, cap:'Inbound call from 0123456789 — reputation lookup fires.', add:[['.js-verdict','pulse']]}, {t:2100,s:2, cap:'Verdict returned before answer: likely scam, confidence 91.', set:[['.js-verdict','Likely scam · 91']], add:[['.js-verdict','bad']], rm:[['.js-verdict','pulse']]}, diff --git a/src/site/demos/MobileSdkExplorer.tsx b/src/site/demos/MobileSdkExplorer.tsx index dc824f7..efba606 100644 --- a/src/site/demos/MobileSdkExplorer.tsx +++ b/src/site/demos/MobileSdkExplorer.tsx @@ -61,7 +61,7 @@ const SCRIPTS: Record = { dur: 9200, steps: [ { t: 0, s: 0, cap: 'Home screen. An unknown number starts ringing.' }, - { t: 700, s: 1, cap: 'Inbound call from 07813996004 – reputation lookup fires.', add: [['.js-verdict', 'pulse']] }, + { t: 700, s: 1, cap: 'Inbound call from 0123456789 – reputation lookup fires.', add: [['.js-verdict', 'pulse']] }, { t: 2100, s: 2, cap: 'Verdict returned before answer: likely scam, confidence 91.', set: [['.js-verdict', 'Likely scam · 91']], add: [['.js-verdict', 'bad']], rm: [['.js-verdict', 'pulse']] }, { t: 3700, s: 3, cap: 'Call ends. Guardian asks how it went.' }, { t: 5300, s: 4, cap: 'One tap: the user labels it Scam.', flash: [['.js-scam', 'hit', 1400]] }, @@ -129,16 +129,26 @@ const SCRIPTS: Record = { }, } -const fmt = (ms: number) => '0:' + String(Math.floor(ms / 1000)).padStart(2, '0') +// Order mirrors the panel/tile order in mobileSdkExplorer.html — drives +// keyboard left/right navigation across the module grid. +const MODULES: { key: string }[] = [ + { key: 'score' }, + { key: 'protection' }, + { key: 'dns' }, + { key: 'calls' }, + { key: 'sim' }, + { key: 'perms' }, + { key: 'zones' }, + { key: 'identity' }, + { key: 'settings' }, +] class Reel { root: ParentNode p: HTMLElement ap: HTMLElement spec: Spec - fill: HTMLElement cap: HTMLElement - el: HTMLElement pp: HTMLButtonElement applied: [Element, string][] = [] timers: ReturnType[] = [] @@ -156,19 +166,9 @@ class Reel { this.ap = panel.querySelector('.ap')! this.spec = spec this.reduced = reduced - this.fill = panel.querySelector('.reel-fill')! this.cap = panel.querySelector('.reel-cap')! - this.el = panel.querySelector('.js-el')! this.pp = panel.querySelector('.js-pp')! - panel.querySelector('.js-du')!.textContent = fmt(spec.dur) this.pp.onclick = () => this.toggle() - const rs = panel.querySelector('.js-rs')! - rs.onclick = () => { this.reset(); this.play() } - const track = panel.querySelector('.js-track')! - track.onclick = (e: MouseEvent) => { - const r = track.getBoundingClientRect() - this.seek(Math.max(0, Math.min(1, (e.clientX - r.left) / r.width)) * spec.dur) - } this.reset() } q(sel: string) { return this.ap.querySelector(sel) } @@ -182,8 +182,8 @@ class Reel { } reset() { this.clear(); this.t = 0; this.i = 0; this.playing = false - this.pp.textContent = '▶'; this.fill.style.width = '0%' - this.el.textContent = '0:00'; this.cap.innerHTML = '' + this.pp.textContent = '▶' + this.cap.innerHTML = this.spec.steps[0]?.cap || '' this.stage(0) if (this.reduced) { this.seek(this.spec.dur - 1); this.pause() } } @@ -226,11 +226,6 @@ class Reel { ;(st.type || []).forEach(([s, txt]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = txt } }) }) if (last && last.cap) this.cap.innerHTML = last.cap - this.paint() - } - paint() { - this.fill.style.width = (100 * this.t / this.spec.dur).toFixed(1) + '%' - this.el.textContent = fmt(Math.min(this.t, this.spec.dur)) } play() { if (this.playing) return @@ -242,7 +237,6 @@ class Reel { this.t += now - prev; prev = now const steps = this.spec.steps while (this.i < steps.length && steps[this.i].t <= this.t) { this.apply(steps[this.i]); this.i++ } - this.paint() if (this.t >= this.spec.dur) { this.playing = false; this.pp.textContent = '↻' this.timers.push(setTimeout(() => { this.reset(); this.play() }, 1100)) @@ -274,31 +268,33 @@ export default function MobileSdkExplorer() { if (k && SCRIPTS[k]) reels[k] = new Reel(p, SCRIPTS[k], reduced) }) - const tabs = [...root.querySelectorAll('.tab')] const panels = [...root.querySelectorAll('.panel')] + const tiles = [...root.querySelectorAll('.tab-tile')] let cur = 'score' function show(k: string) { - tabs.forEach((t) => t.classList.toggle('on', t.dataset.p === k)) + const idx = MODULES.findIndex((m) => m.key === k) + if (idx === -1) return panels.forEach((p) => p.classList.toggle('on', p.dataset.p === k)) + tiles.forEach((t) => t.classList.toggle('on', t.dataset.p === k)) Object.entries(reels).forEach(([n, r]) => { if (n !== k) { r.pause(); r.reset() } }) cur = k - // Switching tabs only stages the reel — playback waits for an explicit - // tap on that reel's own play button. + // Switching modules only stages the reel — playback waits for an + // explicit tap on that reel's own play button. reels[k]?.reset() } - const onTabClick = (t: HTMLButtonElement) => () => { - if (t.dataset.p) show(t.dataset.p) - t.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' }) - } - tabs.forEach((t) => { t.onclick = onTabClick(t) }) + show(cur) + const onTileClick = (t: HTMLButtonElement) => () => { if (t.dataset.p) show(t.dataset.p) } + tiles.forEach((t) => { t.onclick = onTileClick(t) }) + function step(dir: 1 | -1) { + const i = MODULES.findIndex((m) => m.key === cur) + show(MODULES[(i + dir + MODULES.length) % MODULES.length].key) + } const tabsEl = root.querySelector('#tabs') const onKeydown = (e: KeyboardEvent) => { if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return e.preventDefault() - const i = tabs.findIndex((t) => t.classList.contains('on')) - const n = e.key === 'ArrowRight' ? (i + 1) % tabs.length : (i - 1 + tabs.length) % tabs.length - tabs[n].click() + step(e.key === 'ArrowRight' ? 1 : -1) } tabsEl?.addEventListener('keydown', onKeydown) @@ -312,7 +308,7 @@ export default function MobileSdkExplorer() { return () => { io.disconnect() tabsEl?.removeEventListener('keydown', onKeydown) - tabs.forEach((t) => { t.onclick = null }) + tiles.forEach((t) => { t.onclick = null }) Object.values(reels).forEach((r) => r.destroy()) } }, []) diff --git a/src/site/demos/mobileSdkExplorer.css b/src/site/demos/mobileSdkExplorer.css index 8036831..0e5737e 100644 --- a/src/site/demos/mobileSdkExplorer.css +++ b/src/site/demos/mobileSdkExplorer.css @@ -14,47 +14,43 @@ --mse-shadow-lg: 0 8px 32px rgba(0,0,0,.40); --mse-shadow-xl: 0 24px 70px rgba(0,0,0,.55); font-family: 'Ubuntu', -apple-system, system-ui, sans-serif; color: var(--mse-text); - padding: 28px 0 36px; + padding: 0 0 8px; + display: grid; + grid-template-columns: 168px minmax(0, 1fr); + column-gap: 70px; + align-items: center; } /* ============================================================ - EXPLORER + TABS + EXPLORER + MODULE GRID ============================================================ */ -.bd-mse .tabstrip { - display: flex; gap: .5rem; overflow-x: auto; padding: .4rem; - background: var(--mse-surface); border: 1px solid var(--mse-border); border-radius: 18px; margin-bottom: 1.5rem; - -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); - mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); +.bd-mse .mse-grid { + grid-column: 1; + grid-row: 1; + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 7px; + align-content: start; } -.bd-mse .tabstrip::-webkit-scrollbar { height: 5px; } -.bd-mse .tabstrip::-webkit-scrollbar-thumb { background: var(--mse-border-strong); border-radius: 3px; } -.bd-mse .tab { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: none; background: transparent; color: var(--mse-text-2); font-family: inherit; font-size: .9rem; font-weight: 600; border-radius: 13px; cursor: pointer; transition: .22s; white-space: nowrap; } -.bd-mse .tab:hover { color: var(--mse-text); background: var(--mse-surface-2); } -.bd-mse .tab.on { background: var(--mse-accent); color: #fff; box-shadow: 0 6px 18px var(--mse-accent-glow); } -.bd-mse .tab svg { width: 16px; height: 16px; flex-shrink: 0; } +.bd-mse .tab-tile { + display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; + padding: 10px 6px; border: none; border-radius: 13px; + background: var(--mse-surface); color: var(--mse-text-2); + font-family: inherit; font-size: .63rem; font-weight: 600; line-height: 1.15; text-align: center; + cursor: pointer; transition: .2s;width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; +} +.bd-mse .tab-tile svg { width: 16px; height: 16px; flex-shrink: 0; } +.bd-mse .tab-tile:hover { background: var(--mse-surface-2); color: var(--mse-text); } +.bd-mse .tab-tile.on { background: var(--mse-accent); color: #fff; box-shadow: 0 6px 18px var(--mse-accent-glow); } -.bd-mse .panel { display: none; grid-template-columns: 232px 1fr; gap: 2.75rem; align-items: start; max-width: 1180px; margin: 0 auto; } -.bd-mse .panel.on { display: grid; animation: mse-fade .45s ease; } +.bd-mse .panel { grid-column: 2; grid-row: 1; display: none; justify-content: center; max-width: 1180px; margin: 0 auto; } +.bd-mse .panel.on { display: flex; animation: mse-fade .45s ease; } @keyframes mse-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } -.bd-mse .copy { max-width: 640px; padding-top: 6px; } -.bd-mse .copy .kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Ubuntu Mono', monospace; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mse-accent); font-weight: 700; } -.bd-mse .copy .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mse-accent); box-shadow: 0 0 0 3px var(--mse-accent-soft); } -.bd-mse .copy h3 { font-size: 1.55rem; margin: .5rem 0 .75rem; } -.bd-mse .copy .desc { color: var(--mse-text-2); font-size: .95rem; line-height: 1.55; margin-bottom: 1.2rem; } -.bd-mse .sig-title { font-size: .74rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mse-text-mute); font-weight: 700; margin-bottom: .7rem; } -.bd-mse .sigs { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.3rem; } -.bd-mse .sigs li { display: flex; gap: .65rem; align-items: flex-start; padding: .6rem .85rem; background: var(--mse-surface); border: 1px solid var(--mse-border); border-radius: 12px; font-size: .86rem; color: var(--mse-text-2); } -.bd-mse .sigs li b { color: var(--mse-text); font-weight: 600; } -.bd-mse .sigs li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mse-accent); flex-shrink: 0; margin-top: .55rem; } -.bd-mse .pillrow { display: flex; flex-wrap: wrap; gap: .5rem; } -.bd-mse .pill { padding: .4rem .85rem; border-radius: 100px; background: var(--mse-accent-soft); border: 1px solid var(--mse-accent); color: var(--mse-accent); font-size: .78rem; font-weight: 600; font-family: 'Ubuntu Mono', monospace; } -.bd-mse .mono { font-family: 'Ubuntu Mono', monospace; color: var(--mse-accent); } - /* ============================================================ PHONE + REEL CHROME ============================================================ */ -.bd-mse .stage { width: 340px; zoom: .68; } +.bd-mse .stage { width: 340px; zoom: .64; } .bd-mse .phone { position: relative; width: 340px; padding: 11px; border-radius: 46px; background: linear-gradient(160deg,#3a3f45,#191c20 45%,#2c3137); @@ -71,15 +67,17 @@ .bd-mse .demo-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: mse-rec 1.4s ease-in-out infinite; } @keyframes mse-rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } } -.bd-mse .reel-bar { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding: .5rem .7rem; background: var(--mse-surface); border: 1px solid var(--mse-border); border-radius: 100px; } -.bd-mse .reel-btn { width: 28px; height: 28px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--mse-accent); color: #fff; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; font-family: inherit; line-height: 1; } -.bd-mse .reel-btn:hover { background: var(--mse-accent-2); } -.bd-mse .reel-btn.ghost { background: transparent; color: var(--mse-text-2); font-size: 14px; } -.bd-mse .reel-btn.ghost:hover { background: var(--mse-surface-2); color: var(--mse-text); } -.bd-mse .reel-track { flex: 1; height: 4px; border-radius: 100px; background: var(--mse-border-strong); position: relative; cursor: pointer; } -.bd-mse .reel-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 100px; background: var(--mse-accent); transition: width .35s ease; } -.bd-mse .reel-time { font-family: 'Ubuntu Mono', monospace; font-size: .72rem; color: var(--mse-text-mute); flex-shrink: 0; letter-spacing: -.3px; } -.bd-mse .reel-cap { margin-top: .85rem; min-height: 2.9rem; font-size: .87rem; color: var(--mse-text-2); line-height: 1.5; border-left: 2px solid var(--mse-accent); padding-left: .7rem; transition: opacity .3s; } +/* On-screen play/pause overlay — replaces the old reel-bar transport. */ +.bd-mse .phone-pp { + position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 25; + width: 52px; height: 52px; border-radius: 50%; font-size: 15px; + background: rgba(10, 12, 16, .55); border: 1px solid rgba(255,255,255,.25); + backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); + color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; +} +.bd-mse .phone-pp:hover { background: var(--mse-accent); border-color: var(--mse-accent); } + +.bd-mse .reel-cap { margin-top: .6rem; min-height: 2.2rem; font-size: .87rem; color: var(--mse-text-2); line-height: 1.5; border-left: 2px solid var(--mse-accent); padding-left: .7rem; transition: opacity .3s; } .bd-mse .reel-cap b { color: var(--mse-text); font-weight: 600; } /* ============================================================ @@ -282,14 +280,26 @@ .bd-mse .ap-tabbar .it.on { background: #2a2440; color: var(--a-purple); } .bd-mse .ap-home-ind { height: 14px; display: flex; align-items: center; justify-content: center; background: #1e1b24; flex-shrink: 0; } .bd-mse .ap-home-ind::after { content: ''; width: 96px; height: 3.4px; border-radius: 100px; background: rgba(255,255,255,.5); } -.bd-mse .ap-body-fade { position: absolute; left: 0; right: 0; bottom: 52px; height: 56px; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; } +.bd-mse .ap-body-fade { position: absolute; left: 0; right: 0; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; } /* ============================================================ RESPONSIVE ============================================================ */ -@media (max-width: 1080px) { - .bd-mse .panel.on { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; } - .bd-mse .copy { max-width: 620px; } +@media (max-width: 680px) { + /* Not enough room for the module grid beside the phone — move it to a + horizontally-scrollable row above the phone instead. */ + .bd-mse { grid-template-columns: 1fr; row-gap: 12px; } + .bd-mse .mse-grid { + grid-column: 1; grid-row: 1; + grid-template-columns: none; + grid-auto-flow: column; + grid-auto-columns: minmax(92px, 1fr); + overflow-x: auto; + padding-bottom: 2px; + -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); + mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); + } + .bd-mse .panel { grid-column: 1; grid-row: 2; max-width: 100%; } } @media (max-width: 420px) { .bd-mse .stage, .bd-mse .phone { width: 100%; max-width: 332px; } diff --git a/src/site/demos/mobileSdkExplorer.html b/src/site/demos/mobileSdkExplorer.html index 32f7562..98b10bf 100644 --- a/src/site/demos/mobileSdkExplorer.html +++ b/src/site/demos/mobileSdkExplorer.html @@ -1,13 +1,13 @@ -
- - - - - - - - - +
+ + + + + + + + +
@@ -48,30 +48,10 @@
Settings
- + -
- -
- 0:00/0:07 -

-
- Module 01 · Home -

One number your subscribers understand

-

Guardian collapses every protection signal on the handset into a single 0–100 safety score, - with a delta against the previous check so users can see the effect of acting on advice. Underneath it, - each contributing module reports its own plain-English status – no jargon, no CVE numbers, no dead ends.

-
What the module exposes
-
    -
  • Composite score – 0–100, weighted across all enabled modules
  • -
  • Delta since last check – signed change plus the previous value
  • -
  • Per-module status – Good / Attention / At risk, each with a one-line reason
  • -
  • Remediation queue – ordered, tappable actions behind "How to improve"
  • -
-
score.observe()score.deltascore.breakdown[]
-
@@ -109,30 +89,10 @@
Settings
- + -
- -
- 0:00/0:07 -

-
- Module 02 · Protection tab -

Network and telephony threats in one view

-

The Protection tab groups the modules that defend the connection itself – DNS filtering, - scam-call screening and SIM integrity. Each card is a live status with today's counts, and taps - through to a detail screen with the underlying event log.

-
What the module exposes
-
    -
  • Safe browsing status – on/off plus unsafe requests blocked today
  • -
  • Call screening status – scam calls flagged in the current period
  • -
  • SIM integrity status – swap detection state
  • -
  • Drill-down events – timestamped log per module for support and dispute handling
  • -
-
protection.summary()protection.events()
-
@@ -164,32 +124,10 @@
- + -
- -
- 0:00/0:08 -

-
- Module 03 · Safe browsing -

Malicious DNS detection

-

Guardian resolves DNS through a filtering layer that scores every lookup against - live phishing, malware and command-and-control intelligence. Lookalike domains – the - whtaspp-group and fxjn-web-whatsapp class of - typosquats – are blocked before the handset ever opens a connection. The user sees a plain list of what - was stopped and when, which is what turns a silent security control into something they'll pay for.

-
What the module exposes
-
    -
  • Blocked / total counts – per day, per device, with on-demand refresh
  • -
  • Blocked-domain log – domain, timestamp, verdict and threat category
  • -
  • Live verdicts – subscribe to block events as they happen
  • -
  • Allow-list control – user or operator override for false positives
  • -
-
safeBrowsing.stats()safeBrowsing.blocked()safeBrowsing.allow(domain)
-
@@ -203,7 +141,7 @@
-
07813996004Incoming call · unknown number
+
0123456789Incoming call · unknown number
Checking…
@@ -212,7 +150,7 @@
How was that… • now
-
07813996004
+
0123456789
⌄
SpamScamOK
@@ -232,30 +170,10 @@
Safe browsing
Good

Safe browsing is on – 288 unsafe requests blocked today.

- + -
- -
- 0:00/0:09 -

-
- Module 04 · Call screening -

Scam call warnings, rated by the user

-

Guardian screens inbound numbers against reputation intelligence and warns before the - user engages. Immediately after the call ends, a heads-up prompt asks how it went – Spam, Scam or OK. That one tap is the feedback loop: it feeds a crowd-sourced - reputation graph that sharpens detection for every other subscriber on your network.

-
What the module exposes
-
    -
  • Pre-answer verdict – reputation score and category for the calling number
  • -
  • Post-call prompt – Spam / Scam / OK, returned as a user report
  • -
  • Daily scam count – feeds the Calls card on the Protection tab
  • -
  • Network learning – reports aggregate into shared reputation intelligence
  • -
-
calls.verdict(msisdn)calls.report(verdict)calls.today()
-
@@ -280,31 +198,10 @@
- + -
- -
- 0:00/0:06 -

-
- Module 05 · SIM integrity -

SIM-swap detection at the device layer

-

SIM swap is the pivot for most account-takeover fraud: move the number, intercept the OTP, - drain the account. Guardian watches phone-state on the handset and records carrier, slot configuration - and any change event – so a swap is detected from the victim's own device, independently of the - network-side signal, and can be surfaced to your fraud team in real time.

-
What the module exposes
-
    -
  • Change verdict – whether a SIM change has been detected
  • -
  • Carrier and slot state – current operator, single vs dual SIM
  • -
  • Change history – timestamp of the previous change, or none on record
  • -
  • Out-of-band alerting – routed to the recovery email, not just an on-device toast
  • -
-
sim.state()sim.onChange()sim.history()
-
@@ -326,31 +223,10 @@
Scan again
- + -
- -
- 0:00/0:08 -

-
- Module 06 · Apps & permissions -

Permission risk, ranked by how fraud actually works

-

Rather than dumping the full Android permission table on the user, Guardian scans installed - apps for the specific grants fraudsters abuse and ranks them High / Medium / Low. Each card explains the - capability in one sentence – "can turn on your microphone" – and tapping it reveals exactly which apps - hold that grant, with a review-or-accept decision the user can actually make.

-
What the module exposes
-
    -
  • Risk-ranked permission set – High / Medium / Low against a fraud-abuse model
  • -
  • Holder attribution – which installed apps hold each grant
  • -
  • Review state – per-permission accepted vs still to review
  • -
  • On-demand rescan – user-triggered, results feed the safety score
  • -
-
permissions.scan()permissions.holders(p)permissions.accept(p)
-
@@ -412,31 +288,10 @@
- + -
- -
- 0:00/0:08 -

-
- Module 07 · Location safety zones -

Geofences the user sets themselves

-

Users define named zones with a radius – home, school, a parent's address – and Guardian - reports arrival and departure against them. It's the consumer-friendly half of location intelligence: - the same signal that flags impossible travel for your fraud engine is presented here as reassurance - rather than surveillance, with the user in control of every zone.

-
What the module exposes
-
    -
  • Zone CRUD – create, activate, delete named zones with a metre radius
  • -
  • Enter / exit events – timestamped, per zone
  • -
  • Impossible-travel signal – feeds the Identity tab's Location status
  • -
  • Configured / active counts – summary for the zone list header
  • -
-
zones.add(name, latLng, r)zones.events()zones.list()
-
@@ -478,31 +333,10 @@
Settings
- + -
- -
- 0:00/0:07 -

-
- Module 08 · Identity -

Breach exposure and travel anomalies

-

The Identity tab pairs two long-running checks: continuous breach monitoring for the - identifiers the user has registered, and behavioural location analysis that flags travel patterns - inconsistent with the device's history. Both report as plain status lines – "no breaches found", - "no unusual travel detected" – and both escalate out-of-band when they don't.

-
What the module exposes
-
    -
  • Monitored identity count – registered emails and numbers under watch
  • -
  • Breach findings – source, date and exposed field classes
  • -
  • Travel anomaly verdict – impossible-travel and velocity checks
  • -
  • Escalation hooks – webhook to your fraud platform on any positive finding
  • -
-
identity.monitor(email)identity.breaches()location.anomalies()
-
@@ -550,29 +384,8 @@
Settings
- + -
- -
- 0:00/0:09 -

-
- Module 09 · Consent & settings -

Every module is opt-in, and says why

-

Each protection module has its own toggle and its own justification – "phone-state access - on – checking for SIM swaps" – so consent is informed and revocable at module granularity. The recovery - email is the deliberate design choice worth noting: a stolen handset can't be warned on its own screen, - so location and SIM-change alerts go out-of-band to a verified address instead.

-
What the module exposes
-
    -
  • Per-module consent – independent toggles with rationale strings you can localise
  • -
  • Entitlement expiry – subscription end date surfaced in-app
  • -
  • Verified recovery channel – email with code verification for out-of-band alerts
  • -
  • Localisation – all strings externalised, RTL supported
  • -
-
consent.set(module, on)recovery.verify(email)entitlement.expiry
-
diff --git a/src/site/siteController.js b/src/site/siteController.js index a4b962f..137a4ac 100644 --- a/src/site/siteController.js +++ b/src/site/siteController.js @@ -161,6 +161,7 @@ function showPage(id, navId) { // Show target page var pg = document.getElementById("pg-" + id); if (pg) pg.style.display = "block"; + document.body.setAttribute("data-active-page", id); // Update nav active states document.querySelectorAll("[data-nav]").forEach(function (btn) { @@ -217,10 +218,8 @@ function onScroll() { var nav = document.getElementById("bd-nav"); if (!nav) return; if (window.scrollY > 50) { - nav.style.background = "rgba(1,59,73,.97)"; nav.style.borderBottomColor = "rgba(255,255,255,.07)"; } else { - nav.style.background = "rgba(1,59,73,.4)"; nav.style.borderBottomColor = "transparent"; } } diff --git a/src/site/siteMarkup.txt b/src/site/siteMarkup.txt index 73a106f..6c0f667 100644 --- a/src/site/siteMarkup.txt +++ b/src/site/siteMarkup.txt @@ -1,5 +1,5 @@ -