feat(native): ask for the separate TREK Cloud deviations agreement before an in-app purchase

The claim screen loads the agreement text and its version from /api/iap/consent, shows it with its own checkbox and buys nothing until it is ticked. The redeem sends consent { acceptedDeviations, version }; a refusal for an outdated text reloads it and asks again without a second purchase.
This commit is contained in:
Maurice
2026-11-11 20:41:23 +00:00
parent 6fbe10fe63
commit 66b8f2c906
30 changed files with 281 additions and 2 deletions
+32
View File
@@ -1302,3 +1302,35 @@ a.linkbtn {
padding-top: 10px;
}
}
/* The separate § 327h agreement on the claim screen: its own box, ticked by hand. */
.consent {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 12px 14px;
border: 1px solid var(--edge);
border-radius: 14px;
background: var(--surface);
color: var(--muted);
font-size: 0.8rem;
line-height: 1.45;
max-height: 34vh;
overflow-y: auto;
cursor: pointer;
}
.consent input {
flex: none;
width: 20px;
height: 20px;
margin: 1px 0 0;
accent-color: var(--ink);
}
.consent strong {
color: var(--ink);
font-weight: 600;
}
.consent.bad {
border-color: var(--danger);
animation: shake 0.35s;
}