fix(frontend): preserve post-checkout dashboard redirect#5036
fix(frontend): preserve post-checkout dashboard redirect#5036senamakel wants to merge 2 commits into
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughPricing-related frontend actions now open ChangesPricing link routing
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d3916ea48
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
app/src/components/home/__tests__/HomeBanners.test.tsx (1)
4-4: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the shared pricing constant consistently in this test file.
The import now introduces
PRICING_URL, but other pricing assertions still hard-code the URL and the test names still describe the destination as the billing dashboard. Rename those descriptions to “pricing page” and usePRICING_URLfor every pricing CTA assertion.Also applies to: 48-48, 80-80
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/src/components/home/__tests__/HomeBanners.test.tsx` at line 4, Update the HomeBanners test descriptions to call the destination the “pricing page” instead of the billing dashboard, and replace every hard-coded pricing URL in the pricing CTA assertions with the imported PRICING_URL constant. Keep unrelated Discord assertions unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/src/components/OpenhumanLinkModal.tsx`:
- Around line 314-317: Update the billing CTAs in
app/src/components/OpenhumanLinkModal.tsx lines 314-317 and
app/src/components/settings/panels/BillingPanel.tsx lines 32-34 to use new
pricing-oriented i18n keys instead of the dashboard copy, and add those keys
with appropriate translations to every locale.
In `@app/src/features/conversations/Conversations.tsx`:
- Around line 2788-2789: Update both pricing CTA handlers in Conversations.tsx,
including the handlers near openUrl(PRICING_URL) and the top-up CTA, to add
namespaced debug logging before the external navigation and error logging when
it rejects. Replace the bare fire-and-forget calls with promise rejection
handling while preserving the existing PRICING_URL behavior.
---
Nitpick comments:
In `@app/src/components/home/__tests__/HomeBanners.test.tsx`:
- Line 4: Update the HomeBanners test descriptions to call the destination the
“pricing page” instead of the billing dashboard, and replace every hard-coded
pricing URL in the pricing CTA assertions with the imported PRICING_URL
constant. Keep unrelated Discord assertions unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: eea1561f-f020-40df-92a8-771a07016a54
📒 Files selected for processing (12)
app/src/components/OpenhumanLinkModal.tsxapp/src/components/chat/TokenUsagePill.tsxapp/src/components/home/HomeBanners.tsxapp/src/components/home/__tests__/HomeBanners.test.tsxapp/src/components/orchestration/MedullaOverviewPanel.test.tsxapp/src/components/orchestration/MedullaOverviewPanel.tsxapp/src/components/settings/panels/BillingPanel.tsxapp/src/components/upsell/GlobalUpsellBanner.tsxapp/src/config/navConfig.tsapp/src/features/conversations/Conversations.tsxapp/src/utils/__tests__/desktopDeepLinkListener.test.tsapp/src/utils/links.ts
Summary
https://tinyhumans.ai/pricing.https://tinyhumans.ai/dashboard.Problem
Solution
PRICING_URLfor pricing-facing UI and restoreBILLING_DASHBOARD_URLfor post-checkout account flows.PRICING_URL, leaving onlydesktopDeepLinkListener.tson the billing dashboard constant.Submission Checklist
Impact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
fix/post-checkout-dashboard-redirect5d3916ea48f1e1d9842f5b5d56041252b8382ed4Validation Run
pnpm --filter openhuman-app format:check(via pre-push hook)pnpm typecheckpnpm debug unitValidation Blocked
command:N/Aerror:N/Aimpact:NoneBehavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit
Bug Fixes
Tests