Skip to content

feat: added web redirect#2087

Open
RohitKushvaha01 wants to merge 5 commits intoAcode-Foundation:ajit/fix-fetch-auth-configfrom
RohitKushvaha01:ajit/fix-fetch-auth-config
Open

feat: added web redirect#2087
RohitKushvaha01 wants to merge 5 commits intoAcode-Foundation:ajit/fix-fetch-auth-configfrom
RohitKushvaha01:ajit/fix-fetch-auth-config

Conversation

@RohitKushvaha01
Copy link
Copy Markdown
Member

No description provided.

@RohitKushvaha01 RohitKushvaha01 marked this pull request as draft May 6, 2026 13:50
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 6, 2026

Greptile Summary

This 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.

  • plugin.view.js: Adds an openPluginWebsite async helper and a new Buttons branch that renders a browser-open button when !config.IAP_AVAILABLE && isPaid && !purchased && price, correctly placed before the existing IAP buy branch.
  • extensions/index.js: Mirrors the same redirect logic in the sidebar install flow, and correctly gates on !remotePlugin.owned so users who already purchased are not sent back to the website.
  • plugin.js: Adds an import auth from \"lib/auth\" that is unused within this file — auth is only consumed in plugin.view.js, which already has its own import.

Confidence Score: 5/5

Safe 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

Filename Overview
src/pages/plugin/plugin.js Only change is an unused import auth from "lib/auth"auth is never referenced in this file.
src/pages/plugin/plugin.view.js Adds openPluginWebsite and a new IAP-unavailable buy button branch; logic and prop threading look correct.
src/sidebarApps/extensions/index.js Mirrors the web-redirect logic with a correct !remotePlugin.owned guard before redirecting paid, non-IAP users.

Reviews (3): Last reviewed commit: "fix: check owned before launching webpag..." | Re-trigger Greptile

Comment thread src/pages/plugin/plugin.view.js
Comment thread src/sidebarApps/extensions/index.js
Comment thread src/pages/plugin/plugin.js Outdated
Comment thread src/pages/plugin/plugin.view.js
Comment thread src/pages/plugins/item.js Outdated
@bajrangCoder bajrangCoder self-assigned this May 7, 2026
@RohitKushvaha01
Copy link
Copy Markdown
Member Author

@greptileai

@RohitKushvaha01 RohitKushvaha01 marked this pull request as ready for review May 8, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants