From 8edb4d7b6045e4fc94b8312bb75ac4e98b6b5bd7 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Tue, 19 Aug 2025 23:15:09 +0545 Subject: [PATCH] Add license management portal section --- VoiceInk/Views/LicenseManagementView.swift | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/VoiceInk/Views/LicenseManagementView.swift b/VoiceInk/Views/LicenseManagementView.swift index 27cc49a..426d27c 100644 --- a/VoiceInk/Views/LicenseManagementView.swift +++ b/VoiceInk/Views/LicenseManagementView.swift @@ -185,6 +185,32 @@ struct LicenseManagementView: View { .padding(32) .background(CardBackground(isSelected: false)) .shadow(color: .black.opacity(0.05), radius: 10) + + // Already Purchased Section + VStack(spacing: 20) { + Text("Already purchased?") + .font(.headline) + + HStack(spacing: 12) { + Text("Manage your license and device activations") + .font(.subheadline) + .foregroundStyle(.secondary) + .frame(maxWidth: .infinity, alignment: .leading) + + Button(action: { + if let url = URL(string: "https://polar.sh/beingpax/portal/request") { + NSWorkspace.shared.open(url) + } + }) { + Text("License Management Portal") + .frame(width: 180) + } + .buttonStyle(.borderedProminent) + } + } + .padding(32) + .background(CardBackground(isSelected: false)) + .shadow(color: .black.opacity(0.05), radius: 10) } }