-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new features highlight & wallet landing (#1166)
* feat: new features highlight * fix: added latest features button to popup nav drawer * fix: css tweaks * chore: added changeset * feat: new get started ui * feat: new get started ui (user has some accounts) * fix: added missing i18n * fix: don't show unless user has no funds and less than 3 accounts * feat: learn more and correct popup no-accounts portfolio header * feat: learn more demo images * feat: try talisman * fix: added fullscreen styles to the no-accounts landing * feat: try talisman link to portfolio * fix: updated learn more images * fix: feature crit feedback * feat: added ens lookup to `Try it` form * feat: markdown release notes * fix: pass `Whats New` markdown content through `i18n.t` before converting it to html * fix: bottom padding in whats new * chore: added v1.21.0 release notes * fix: include markdown contents in i18n keys * fix: prettier fmt
- Loading branch information
Showing
52 changed files
with
1,400 additions
and
308 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@talismn/icons": patch | ||
--- | ||
|
||
feat: added stars icon |
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
Binary file modified
BIN
+156 Bytes
(100%)
apps/extension/src/@talisman/theme/fonts/Whyte-Inktrap-Medium.woff2
Binary file not shown.
Binary file modified
BIN
+94.5 KB
(120%)
apps/extension/src/@talisman/theme/images/no-accounts-character.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
42 changes: 0 additions & 42 deletions
42
apps/extension/src/ui/apps/dashboard/routes/Portfolio/NoAccounts.tsx
This file was deleted.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
apps/extension/src/ui/apps/dashboard/routes/Portfolio/NoAccountsFullscreen.tsx
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,66 @@ | ||
import { api } from "@ui/api" | ||
import { AnalyticsPage, sendAnalyticsEvent } from "@ui/api/analytics" | ||
import { useBuyTokensModal } from "@ui/domains/Asset/Buy/BuyTokensModalContext" | ||
import { NoAccounts } from "@ui/domains/Portfolio/EmptyStates/NoAccounts" | ||
import { useAnalyticsPageView } from "@ui/hooks/useAnalyticsPageView" | ||
import { useCallback } from "react" | ||
import { useNavigate } from "react-router-dom" | ||
|
||
const ANALYTICS_PAGE: AnalyticsPage = { | ||
container: "Fullscreen", | ||
feature: "Onboarding", | ||
featureVersion: 1, | ||
page: "Dashboard - No Accounts", | ||
} | ||
|
||
export const NoAccountsFullscreen = () => { | ||
useAnalyticsPageView(ANALYTICS_PAGE) | ||
const navigate = useNavigate() | ||
const { open: openBuyTokensModal } = useBuyTokensModal() | ||
|
||
const onDeposit = useCallback(() => { | ||
sendAnalyticsEvent({ | ||
...ANALYTICS_PAGE, | ||
name: "Goto", | ||
action: "add funds", | ||
}) | ||
openBuyTokensModal() | ||
}, [openBuyTokensModal]) | ||
|
||
const onAddAccount = useCallback(() => { | ||
sendAnalyticsEvent({ | ||
...ANALYTICS_PAGE, | ||
name: "Goto", | ||
action: "add account", | ||
}) | ||
navigate("/accounts/add") | ||
}, [navigate]) | ||
|
||
const onTryTalisman = useCallback(() => { | ||
sendAnalyticsEvent({ | ||
...ANALYTICS_PAGE, | ||
name: "Goto", | ||
action: "try talisman", | ||
}) | ||
api.popupOpen("#/portfolio/try-talisman") | ||
}, []) | ||
|
||
const onLearnMore = useCallback(() => { | ||
sendAnalyticsEvent({ | ||
...ANALYTICS_PAGE, | ||
name: "Goto", | ||
action: "learn more", | ||
}) | ||
api.popupOpen("#/portfolio/learn-more") | ||
}, []) | ||
|
||
return ( | ||
<NoAccounts | ||
fullscreen | ||
onDeposit={onDeposit} | ||
onAddAccount={onAddAccount} | ||
onTryTalisman={onTryTalisman} | ||
onLearnMore={onLearnMore} | ||
/> | ||
) | ||
} |
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
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
Oops, something went wrong.