-
Notifications
You must be signed in to change notification settings - Fork 614
Portal: Add missing redirects for bridge pages #8201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
4 Skipped Deployments
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
WalkthroughAdds four payment-route redirect entries in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant WebServer
participant RedirectsModule as Redirects
note over RedirectsModule #DDEBF7: paymentRedirects table updated
Client->>WebServer: HTTP GET /payments/sell
WebServer->>Redirects: createRedirects lookup
Redirects-->>WebServer: 302 Location: /bridge/sell
WebServer-->>Client: 302 Redirect to /bridge/sell
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8201 +/- ##
=======================================
Coverage 55.03% 55.03%
=======================================
Files 919 919
Lines 60569 60569
Branches 4126 4126
=======================================
Hits 33333 33333
Misses 27132 27132
Partials 104 104
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating the redirect mappings in the `redirects.mjs` file, specifically adding new routes for payment-related functionalities.
### Detailed summary
- Added new redirect mappings for:
- `"/payments/sell"` to `"/bridge/sell"`
- `"/payments/swap"` to `"/bridge/swap"`
- `"/payments/tokens"` to `"/bridge/tokens"`
- `"/payments/routes"` to `"/bridge/routes"`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Introduced redirects for payment paths to corresponding bridge destinations, ensuring seamless navigation and deep-linking:
* /payments/sell → /bridge/sell
* /payments/swap → /bridge/swap
* /payments/tokens → /bridge/tokens
* /payments/routes → /bridge/routes
* Existing bookmarks and shared links to payment pages will continue to work and automatically route to the updated locations, improving consistency and reducing friction without requiring any UI changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
f48156e to
f057770
Compare
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating the redirect paths in the `redirects.mjs` file to streamline payment-related navigation by adding new routes that point to a `bridge` structure.
### Detailed summary
- Added redirect for `"/payments/sell"` to `"/bridge/sell"`
- Added redirect for `"/payments/swap"` to `"/bridge/swap"`
- Added redirect for `"/payments/tokens"` to `"/bridge/tokens"`
- Added redirect for `"/payments/routes"` to `"/bridge/routes"`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added redirects so payment URLs now route to corresponding bridge destinations:
* /payments/sell → /bridge/sell
* /payments/swap → /bridge/swap
* /payments/tokens → /bridge/tokens
* /payments/routes → /bridge/routes
* Existing bookmarks and shared links to payment pages will continue working and automatically route to the updated locations, with no UI changes required.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
f057770 to
f9283f3
Compare

PR-Codex overview
This PR focuses on updating the redirect paths in the
redirects.mjsfile to streamline payment-related routes, directing them to new bridge endpoints.Detailed summary
"/payments/sell"now redirects to"/bridge/sell""/payments/swap"now redirects to"/bridge/swap""/payments/tokens"now redirects to"/bridge/tokens""/payments/routes"now redirects to"/bridge/routes"Summary by CodeRabbit