feat: added web redirect#2087
feat: added web redirect#2087RohitKushvaha01 wants to merge 7 commits intoAcode-Foundation:ajit/fix-fetch-auth-configfrom
Conversation
Greptile SummaryThis PR adds a web redirect flow for purchasing paid plugins when Google Play IAP is unavailable (e.g., on F-Droid builds). Users are directed to the Acode website — first to log in if needed, then to the plugin page — instead of hitting a dead IAP path.
Confidence Score: 5/5Safe to merge — the redirect logic is well-gated in both the plugin detail page and the sidebar, and the previously flagged owned-plugin regression is correctly addressed. The only new finding is a leftover import auth in plugin.js that is unreferenced in that file. All other changed logic is guarded correctly and consistent between the two entry points. src/pages/plugin/plugin.js — unused auth import to clean up. Important Files Changed
Reviews (3): Last reviewed commit: "fix: check owned before launching webpag..." | Re-trigger Greptile |
%%{init: {'theme': 'neutral'}}%% flowchart TD A[User taps Buy button] --> B{config.IAP_AVAILABLE?} B -- Yes --> C[Native IAP flow] B -- No --> D[Call auth.getLoggedInUser] D --> E{User logged in?} E -- No --> F[Open login page in browser] E -- Yes --> G[Open plugin purchase page in browser] F --> H[User completes login on web] G --> I[User completes purchase on web]