Commit d384c0c
feat(biometric-trust): show explanatory subtitle on enrollment-change unlock
When handleLocalAuthentication invalidates biometric trust because the device
enrolment set changed, the passcode modal now displays an explanatory
subtitle reading "Biometric enrollment changed, please use your passcode".
The signal travels over LOCAL_AUTHENTICATE_EMITTER's existing reason payload
(added in the previous commit). PasscodeEnter reads reason from props,
mirrors it into local state so a button-triggered invalidation can update it
without re-emitting, and renders Base's subtitle slot only when
reason === 'enrollmentChanged'. The subtitle clears naturally on the next
modal open because reason is reinitialised from props each session.
Normal auto-lock unlocks, cancel/error fallbacks, and re-opens after a
successful unlock leave the subtitle hidden — it is strictly tied to the
invalidation event.
Part of VLN-216.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 3a59438 commit d384c0c
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments