-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: kickoff implicit account creation flow (#7815)
* feat: add account to routes * feat: add to analytics featureflag * fix: update naming * fix import * fix: remove accountImplicit route and add to wallet tab * fix: improve naming * Update packages/desktop/views/dashboard/wallet/Wallet.svelte * Update packages/desktop/views/dashboard/wallet/Wallet.svelte --------- Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
- Loading branch information
1 parent
da4c6aa
commit c7bc757
Showing
6 changed files
with
56 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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 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,44 +1,13 @@ | ||
<script lang="ts"> | ||
import { AssetList, Overflow, Pane, ReceiveAddressButton } from '@ui' | ||
import { AccountSummary, AccountActivity, SendButton } from '@components' | ||
import { selectedWalletAssets } from '@core/wallet' | ||
import { selectedWallet } from '@core/wallet/stores' | ||
import features from '@features/features' | ||
import { WalletMainView } from './views' | ||
const hasAccount: boolean = false | ||
</script> | ||
|
||
{#if $selectedWallet} | ||
<wallet-container | ||
class="w-full h-full flex flex-nowrap p-8 relative flex-1 | ||
bg-gray-50 dark:bg-gray-900 justify-center items-center" | ||
> | ||
{#key $selectedWallet?.index} | ||
<div class="h-full grid grid-cols-3 gap-x-4 min-h-0 min-w-0 max-w-7xl"> | ||
<div class="flex flex-col space-y-4"> | ||
<Pane overflow={Overflow.Visible}> | ||
{#if features?.wallet?.accountSummary?.enabled} | ||
<AccountSummary /> | ||
{/if} | ||
</Pane> | ||
<Pane> | ||
<div class="flex flex-col space-y-6"> | ||
{#if features?.wallet?.sendAndReceive?.enabled} | ||
<SendButton /> | ||
<ReceiveAddressButton /> | ||
{/if} | ||
</div> | ||
</Pane> | ||
</div> | ||
<Pane> | ||
{#if features?.wallet?.assets?.enabled} | ||
<AssetList assets={$selectedWalletAssets} /> | ||
{/if} | ||
</Pane> | ||
<Pane> | ||
{#if features?.wallet?.activityHistory?.enabled} | ||
<AccountActivity /> | ||
{/if} | ||
</Pane> | ||
</div> | ||
{/key} | ||
</wallet-container> | ||
{#if hasAccount} | ||
<WalletMainView /> | ||
{:else} | ||
<div class="flex w-full h-full p-12"> | ||
<h1>IMPLICIT ACCOUNT</h1> | ||
</div> | ||
{/if} |
44 changes: 44 additions & 0 deletions
44
packages/desktop/views/dashboard/wallet/views/WalletMainView.svelte
This file contains 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,44 @@ | ||
<script lang="ts"> | ||
import { AssetList, Overflow, Pane, ReceiveAddressButton } from '@ui' | ||
import { AccountSummary, AccountActivity, SendButton } from '@components' | ||
import { selectedWalletAssets } from '@core/wallet' | ||
import { selectedWallet } from '@core/wallet/stores' | ||
import features from '@features/features' | ||
</script> | ||
|
||
{#if $selectedWallet} | ||
<wallet-container | ||
class="w-full h-full flex flex-nowrap p-8 relative flex-1 | ||
bg-gray-50 dark:bg-gray-900 justify-center items-center" | ||
> | ||
{#key $selectedWallet?.index} | ||
<div class="h-full grid grid-cols-3 gap-x-4 min-h-0 min-w-0 max-w-7xl"> | ||
<div class="flex flex-col space-y-4"> | ||
<Pane overflow={Overflow.Visible}> | ||
{#if features?.wallet?.accountSummary?.enabled} | ||
<AccountSummary /> | ||
{/if} | ||
</Pane> | ||
<Pane> | ||
<div class="flex flex-col space-y-6"> | ||
{#if features?.wallet?.sendAndReceive?.enabled} | ||
<SendButton /> | ||
<ReceiveAddressButton /> | ||
{/if} | ||
</div> | ||
</Pane> | ||
</div> | ||
<Pane> | ||
{#if features?.wallet?.assets?.enabled} | ||
<AssetList assets={$selectedWalletAssets} /> | ||
{/if} | ||
</Pane> | ||
<Pane> | ||
{#if features?.wallet?.activityHistory?.enabled} | ||
<AccountActivity /> | ||
{/if} | ||
</Pane> | ||
</div> | ||
{/key} | ||
</wallet-container> | ||
{/if} |
This file contains 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 @@ | ||
export { default as WalletMainView } from './WalletMainView.svelte' |
This file contains 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 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