-
Notifications
You must be signed in to change notification settings - Fork 89
feat(billing): account balance overview and settings sidebar #3583
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
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
174dc67
feat(billing): add account balance overview with available vs reserve…
baktun14 2d00316
refactor(billing): replace settings tabs with a left sidebar
baktun14 75fed8a
feat(billing): redesign account balance overview and rework billing s…
baktun14 abf3ed6
refactor(billing): address balance overview review nits
baktun14 7c1e24a
fix(billing): harden payment method and export flows from review
baktun14 f4fc1d3
refactor(billing): drop dead AKT branch from lease cost helper
baktun14 25fc09e
refactor(billing): make lease cost helper ACT-only
baktun14 dc278d8
fix(billing): address review feedback on balance overview PR
baktun14 951d647
fix(billing): scope background-loading bar to exact billing query keys
baktun14 3139e4a
fix(billing): align reserved stat count with funded deployments
baktun14 ffea764
fix(billing): stop gating balance overview on AKT market data
baktun14 552f5dc
fix(billing): update e2e balance locator for renamed balance overview…
baktun14 1254a68
refactor(billing): tighten balance overview derivations
baktun14 7096033
refactor(billing): derive reserved total from the deployment breakdown
baktun14 012a1e5
revert(billing): remove accidentally committed local e2e report
baktun14 42491fd
fix(billing): publish wallet balance without waiting for AKT market data
baktun14 3314cf9
fix(billing): correct auto top-up summary copy and show it for non-ca…
baktun14 10e6461
fix(billing): make reserve caption and threshold stats match actual b…
baktun14 c6222a0
fix(billing): keep previous transactions page while the next one loads
baktun14 3637431
fix(billing): dim the history table while a refetch is in flight
baktun14 96125c4
fix(deployment): gate redesigned detail page alerts on user after fla…
baktun14 f841062
fix(billing): show an error state when the balance overview cannot lo…
baktun14 4108652
refactor(billing): restore isFeatureEnabled page guard for future fla…
baktun14 879e591
fix(deployment): restore the page URL after detail tab navigation specs
baktun14 708fe09
refactor(billing): share one UsdValue component between balance overv…
baktun14 bc8c384
fix(billing): ignore drained deployments when computing balance bar s…
baktun14 fe8b351
fix(billing): keep showing cached balances when a background refetch …
baktun14 116c5c6
fix(billing): format balance bar amounts with the app locale like the…
baktun14 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 was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,18 +1,44 @@ | ||
| import React, { type FC } from "react"; | ||
| import { buttonVariants, Tabs, TabsContent, TabsList, TabsTrigger } from "@akashnetwork/ui/components"; | ||
| import { cn } from "@akashnetwork/ui/utils"; | ||
| import { Plus } from "iconoir-react"; | ||
| import Link from "next/link"; | ||
| import { NextSeo } from "next-seo"; | ||
|
|
||
| import { AlertsLayout, AlertTabs } from "@src/components/alerts/AlertsLayout"; | ||
| import { AlertsListContainer } from "@src/components/alerts/AlertsListContainer/AlertsListContainer"; | ||
| import { AlertsListView } from "@src/components/alerts/AlertsListView/AlertsListView"; | ||
| import { NotificationChannelsListContainer } from "@src/components/alerts/NotificationChannelsListContainer/NotificationChannelsListContainer"; | ||
| import { NotificationChannelsListView } from "@src/components/alerts/NotificationChannelsListView/NotificationChannelsListView"; | ||
| import Layout from "@src/components/layout/Layout"; | ||
| import { SettingsLayout } from "@src/components/layout/SettingsLayout/SettingsLayout"; | ||
| import { UrlService } from "@src/utils/urlUtils"; | ||
|
|
||
| export const AlertsPage: FC = () => { | ||
| return ( | ||
| <Layout containerClassName="flex h-full flex-col justify-between"> | ||
| <NextSeo title="Configured Alerts" /> | ||
| <AlertsLayout page={AlertTabs.ALERTS} title="Configured Alerts"> | ||
| <AlertsListContainer>{props => <AlertsListView {...props} />}</AlertsListContainer> | ||
| </AlertsLayout> | ||
| <Layout disableContainer containerClassName="flex h-full flex-col justify-between"> | ||
| <NextSeo title="Alerts" /> | ||
| <SettingsLayout title="Alerts" description="Get notified about your deployments and manage where alerts are sent."> | ||
| <Tabs defaultValue="alerts"> | ||
| <TabsList> | ||
| <TabsTrigger value="alerts">Alerts</TabsTrigger> | ||
| <TabsTrigger value="channels">Notification Channels</TabsTrigger> | ||
|
baktun14 marked this conversation as resolved.
|
||
| </TabsList> | ||
|
|
||
| <TabsContent value="alerts" className="space-y-4"> | ||
| <AlertsListContainer>{props => <AlertsListView {...props} />}</AlertsListContainer> | ||
| </TabsContent> | ||
|
|
||
|
baktun14 marked this conversation as resolved.
|
||
| <TabsContent value="channels" className="space-y-4"> | ||
| <div className="flex justify-end"> | ||
| <Link href={UrlService.newNotificationChannel()} className={cn(buttonVariants({ variant: "default", size: "sm" }), "space-x-2")}> | ||
| <Plus /> | ||
| <span>Create</span> | ||
| </Link> | ||
| </div> | ||
| <NotificationChannelsListContainer>{props => <NotificationChannelsListView {...props} />}</NotificationChannelsListContainer> | ||
| </TabsContent> | ||
| </Tabs> | ||
| </SettingsLayout> | ||
| </Layout> | ||
| ); | ||
| }; | ||
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
38 changes: 0 additions & 38 deletions
38
apps/deploy-web/src/components/alerts/NotificationChannelsPage.tsx
This file was deleted.
Oops, something went wrong.
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.
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.