-
Notifications
You must be signed in to change notification settings - Fork 13
feat: limits in settings #1620
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
Merged
Merged
feat: limits in settings #1620
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0412ec7
feat: add limits page and related components for region-based navigation
kushagrasarathe 4eb4f2d
feat: add limits page in profile page list
kushagrasarathe 5207ca4
feat: add useLimits hook for fetching user fiat txn limits
kushagrasarathe ac7edc5
feat: implement bridge limits page with url based state
kushagrasarathe 4cc8266
feat: manteca limits page
kushagrasarathe a48b55f
fix: resolve ai review comments
kushagrasarathe d767af5
feat: add info card in limits page and increase limits button
kushagrasarathe 55c8035
fix: cr comments
kushagrasarathe 8df9bc1
fix: dir structure
kushagrasarathe c666f41
fix: DRY
kushagrasarathe 9bfaeab
feat: LimitsWarningCard component for displaying limit warnings and e…
kushagrasarathe f35d994
feat: add manteca withdraw limits and useLimitsValidation hook for tx…
kushagrasarathe 3bf6517
feat: implement limits validation on payment flows
kushagrasarathe 2170000
fix: cr dry suggestion
kushagrasarathe 2ec238d
fix: resolve review comments and dry violations
kushagrasarathe f9c8ed2
fix: improv limits currency handling
kushagrasarathe 269626b
fix: improve limits validation logic
kushagrasarathe 252c8e6
fix: update limits validation to use currency directly from context
kushagrasarathe 8107d89
fix: currency conversion for limits validation using exchange rates o…
kushagrasarathe 7388ce2
Merge pull request #1621 from peanutprotocol/feat/limits-integration
kushagrasarathe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import PageContainer from '@/components/0_Bruddle/PageContainer' | ||
| import { LIMITS_PROVIDERS, type LimitsProvider } from '@/features/limits/consts' | ||
| import BridgeLimitsView from '@/features/limits/views/BridgeLimitsView' | ||
| import MantecaLimitsView from '@/features/limits/views/MantecaLimitsView' | ||
| import { notFound } from 'next/navigation' | ||
|
|
||
| interface ProviderLimitsPageProps { | ||
| params: Promise<{ provider: string }> | ||
| } | ||
|
|
||
| export default async function ProviderLimitsPage({ params }: ProviderLimitsPageProps) { | ||
| const { provider } = await params | ||
|
|
||
| // validate provider - notFound() is safe in server components | ||
| if (!LIMITS_PROVIDERS.includes(provider as LimitsProvider)) { | ||
| notFound() | ||
| } | ||
|
|
||
| return ( | ||
| <PageContainer> | ||
| {provider === 'bridge' && <BridgeLimitsView />} | ||
| {provider === 'manteca' && <MantecaLimitsView />} | ||
| </PageContainer> | ||
| ) | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import PageContainer from '@/components/0_Bruddle/PageContainer' | ||
| import LimitsPageView from '@/features/limits/views/LimitsPageView' | ||
|
|
||
| export default function LimitsPageRoute() { | ||
| return ( | ||
| <PageContainer> | ||
| <LimitsPageView /> | ||
| </PageContainer> | ||
| ) | ||
| } |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.