Add marketing workflow tools + OpenPaths routing and update subscription pricing/UI#30
Open
Add marketing workflow tools + OpenPaths routing and update subscription pricing/UI#30
Conversation
Contributor
Author
|
Codex Infinity Start a task on this PR's branch by commenting:
Tasks and logs: https://codex-infinity.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
main.pywithOPENPATHS_API_BASE,OPENPATHS_API_KEY,OPENPATHS_ROUTER_MODELS,call_openpaths_chat, and theMarketingWorkflowRequestmodel to call an OpenAI-compatible/chat/completionsendpoint and handle errors.POST /api/tools/marketing-workflowinmain.pythat accepts a workflow key, runs the configured prompt instructions, routes to configured models, and returns per-model analyses plus combined markdown.questions/tool_fixtures.pyand added a shared Jinja2 templatestatic/templates/tools/marketing-workflow-tool.jinja2and client scriptstatic/js/marketing-workflow-tool.jsto power the tool UI and interactions.MONTHLY_SUBSCRIPTION_PRICE_IDandANNUAL_SUBSCRIPTION_PRICE_IDinmain.pyand replacing inline price IDs with these constants in checkout creation code.static/js/checkout-dialog.js,static/js/subscription-modal.js, andstatic/js/unlimited-ai-modal.jsto show the new prices ($9.99monthly,$99.99annual), add an offer chooser/credits panel, and exposeshowCheckoutDialog; added complementary CSS instatic/css/checkout-dialog.cssand a new tool template and index entries for the new tools.static/templates/ai-text-editor.jinja2, shared index and subscribe templates) and tests to reflect pricing and UI changes.Testing
pytestcovering modified and new teststests/test_checkout_session.py,test_subscription_system.py,tests/unit/test_growth_tools_catalog.py, andtests/unit/test_pricing_configuration.pyand confirmed all tests passed.MONTHLY_SUBSCRIPTION_PRICE_IDandANNUAL_SUBSCRIPTION_PRICE_IDinmain.pyand updated pricing strings in frontend JS files via the added tests.tests/unit/test_growth_tools_catalog.py).Codex Task