mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-24 22:10:59 +00:00
Expose the public privacy policy from pairing and Settings, with a Simplified Chinese label. Document relay metadata, rate-limit state, operational logs, and deletion boundaries without inventing a retention period. Validation: iOS Release simulator build, link UI checks, docs build, and staged diff checks passed. Full typecheck is blocked by existing Web assistant-ui export errors; the full test command stops at one unrelated piEventConverter CLI failure (2609 passed, 2 skipped).
14 lines
432 B
Swift
14 lines
432 B
Swift
import SwiftUI
|
|
|
|
/// Available before pairing as well as in settings; never includes hub credentials.
|
|
struct PrivacyPolicyLink: View {
|
|
private static let destination = URL(string: "https://hapi.run/docs/privacy")
|
|
|
|
var body: some View {
|
|
if let destination = Self.destination {
|
|
Link("Privacy Policy", destination: destination)
|
|
.accessibilityIdentifier("privacyPolicyLink")
|
|
}
|
|
}
|
|
}
|