Skip to content

Commit 6a861af

Browse files
authored
Layout (#97)
* chore: a bunch of ux/styling tweaks adjust table borders adjust table transaction expand/collapse to support click the entire row add app studio page + placeholder content reduce memory footprint by reducing cache period refine loaders add latest block/transaction animation change app call badge icon add subtle animation on loadable tweak settings page
1 parent 9b97688 commit 6a861af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+309
-240
lines changed

src/App.routes.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { SettingsPage } from './features/settings/pages/settings-page'
1515
import { TxPage } from './features/transactions/pages/tx-page'
1616
import { IndexPage } from '@/index-page'
1717
import { NetworkPage } from '@/features/network/pages/network-page'
18+
import { AppStudioPage, appStudioPageTitle } from './features/app-studio/pages/app-studio-page'
1819

1920
export const routes = evalTemplates([
2021
{
@@ -96,7 +97,8 @@ export const routes = evalTemplates([
9697
},
9798
{
9899
template: Urls.AppStudio,
99-
element: <ErrorPage title="App Studio" />,
100+
errorElement: <ErrorPage title={appStudioPageTitle} />,
101+
element: <AppStudioPage />,
100102
},
101103
{
102104
template: Urls.Settings,

src/assets/icons/chevron-down.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assets/icons/chevron-left-line.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/assets/icons/chevron-left.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assets/icons/chevron-right-line.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/assets/icons/chevron-right.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/features/accounts/pages/account-page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useLoadableAccount } from '../data'
99
import { AccountDetails } from '../components/account-details'
1010
import { useCallback } from 'react'
1111
import { PageTitle } from '@/features/common/components/page-title'
12+
import { PageLoader } from '@/features/common/components/page-loader'
1213

1314
export const accountPageTitle = 'Account'
1415
export const accountInvalidAddressMessage = 'Address is invalid'
@@ -36,7 +37,7 @@ export function AccountPage() {
3637
return (
3738
<>
3839
<PageTitle title={accountPageTitle} canRefreshPage={isStale} onRefresh={refresh} />
39-
<RenderLoadable loadable={loadableAccount} transformError={transformError}>
40+
<RenderLoadable loadable={loadableAccount} transformError={transformError} fallback={<PageLoader />}>
4041
{(account: Account) => <AccountDetails account={account} />}
4142
</RenderLoadable>
4243
</>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { PageTitle } from '@/features/common/components/page-title'
2+
3+
export const appStudioPageTitle = 'App Studio'
4+
5+
export function AppStudioPage() {
6+
return (
7+
<>
8+
<PageTitle title={appStudioPageTitle} />
9+
<div>
10+
<p>
11+
Comming soon!
12+
<br />
13+
In the meantime, we recommend{' '}
14+
<a href="https://app.dappflow.org/beaker-studio/" className="text-primary underline" rel="nofollow" target="_blank">
15+
Dappflow
16+
</a>{' '}
17+
for your application needs.
18+
</p>
19+
</div>
20+
</>
21+
)
22+
}

src/features/applications/pages/application-page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ApplicationDetails } from '../components/application-details'
88
import { is404 } from '@/utils/error'
99
import { useCallback } from 'react'
1010
import { PageTitle } from '@/features/common/components/page-title'
11+
import { PageLoader } from '@/features/common/components/page-loader'
1112

1213
const transformError = (e: Error) => {
1314
if (is404(e)) {
@@ -38,7 +39,7 @@ export function ApplicationPage() {
3839
return (
3940
<>
4041
<PageTitle title={applicationPageTitle} canRefreshPage={isStale} onRefresh={refresh} />
41-
<RenderLoadable loadable={loadableApplication} transformError={transformError}>
42+
<RenderLoadable loadable={loadableApplication} transformError={transformError} fallback={<PageLoader />}>
4243
{(application) => <ApplicationDetails application={application} />}
4344
</RenderLoadable>
4445
</>

src/features/assets/pages/asset-page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { AssetDetails } from '../components/asset-details'
88
import { useLoadableAsset } from '../data'
99
import { useCallback } from 'react'
1010
import { PageTitle } from '@/features/common/components/page-title'
11+
import { PageLoader } from '@/features/common/components/page-loader'
1112

1213
const transformError = (e: Error) => {
1314
if (is404(e)) {
@@ -38,7 +39,7 @@ export function AssetPage() {
3839
return (
3940
<>
4041
<PageTitle title={assetPageTitle} canRefreshPage={isStale} onRefresh={refresh} />
41-
<RenderLoadable loadable={loadableAsset} transformError={transformError}>
42+
<RenderLoadable loadable={loadableAsset} transformError={transformError} fallback={<PageLoader />}>
4243
{(asset) => <AssetDetails asset={asset} />}
4344
</RenderLoadable>
4445
</>

0 commit comments

Comments
 (0)