-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(llm): Added landing pages and deeplinks that uses braze cards
- Loading branch information
1 parent
c149ddc
commit 72e957e
Showing
11 changed files
with
137 additions
and
9 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 @@ | ||
--- | ||
"live-mobile": minor | ||
--- | ||
|
||
LLM - Added growth landing pages and deelinks that leverages Braze cards |
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
31 changes: 31 additions & 0 deletions
31
apps/ledger-live-mobile/src/components/RootNavigator/LandingPagesNavigator.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,31 @@ | ||
import React, { useMemo } from "react"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import { useTheme } from "styled-components/native"; | ||
import { ScreenName } from "~/const"; | ||
import { getStackNavigatorConfig } from "~/navigation/navigatorConfig"; | ||
import { LandingPagesNavigatorParamList } from "./types/LandingPagesNavigator"; | ||
import GenericLandingPage from "~/newArch/features/LandingPages/screens/GenericLandingPage"; | ||
import { NavigationHeaderCloseButton } from "../NavigationHeaderCloseButton"; | ||
|
||
const Stack = createStackNavigator<LandingPagesNavigatorParamList>(); | ||
|
||
export default function LandingPagesNavigator() { | ||
const { colors } = useTheme(); | ||
const stackNavigationConfig = useMemo(() => getStackNavigatorConfig(colors), [colors]); | ||
|
||
const navigationOptions = { | ||
title: "", | ||
headerLeft: () => null, | ||
headerRight: () => <NavigationHeaderCloseButton />, | ||
}; | ||
|
||
return ( | ||
<Stack.Navigator screenOptions={stackNavigationConfig}> | ||
<Stack.Screen | ||
name={ScreenName.GenericLandingPage} | ||
component={GenericLandingPage} | ||
options={navigationOptions} | ||
/> | ||
</Stack.Navigator> | ||
); | ||
} |
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
6 changes: 6 additions & 0 deletions
6
apps/ledger-live-mobile/src/components/RootNavigator/types/LandingPagesNavigator.ts
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,6 @@ | ||
import { ScreenName } from "~/const"; | ||
import { LandingPageUseCase } from "~/dynamicContent/types"; | ||
|
||
export type LandingPagesNavigatorParamList = { | ||
[ScreenName.GenericLandingPage]: { useCase: LandingPageUseCase }; | ||
}; |
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
38 changes: 38 additions & 0 deletions
38
...ledger-live-mobile/src/newArch/features/LandingPages/screens/GenericLandingPage/index.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,38 @@ | ||
import React, { useEffect } from "react"; | ||
import { Flex } from "@ledgerhq/native-ui"; | ||
import { LandingPagesNavigatorParamList } from "~/components/RootNavigator/types/LandingPagesNavigator"; | ||
import { BaseComposite, StackNavigatorProps } from "~/components/RootNavigator/types/helpers"; | ||
import { ScreenName } from "~/const"; | ||
import ContentCardsLocation from "~/dynamicContent/ContentCardsLocation"; | ||
import { TrackScreen } from "~/analytics"; | ||
import { LandingPageUseCase } from "~/dynamicContent/types"; | ||
import useDynamicContent from "~/dynamicContent/useDynamicContent"; | ||
import { filterCategoriesByLocation } from "~/dynamicContent/utils"; | ||
|
||
type NavigationProps = BaseComposite< | ||
StackNavigatorProps<LandingPagesNavigatorParamList, ScreenName.GenericLandingPage> | ||
>; | ||
|
||
const GenericLandingPage = (props: NavigationProps) => { | ||
const useCase = props.route.params?.useCase; | ||
const { categoriesCards } = useDynamicContent(); | ||
|
||
useEffect(() => { | ||
if (!useCase || !Object.values(LandingPageUseCase).includes(useCase)) { | ||
props.navigation.goBack(); | ||
} | ||
const categoriesToDisplay = filterCategoriesByLocation(categoriesCards, useCase); | ||
if (categoriesToDisplay.length === 0) { | ||
props.navigation.goBack(); | ||
} | ||
}, [categoriesCards, props.navigation, useCase]); | ||
|
||
return ( | ||
<Flex> | ||
<TrackScreen name="Landing Page" useCase={useCase} /> | ||
<ContentCardsLocation locationId={props.route.params?.useCase} /> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default GenericLandingPage; |
72e957e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Daily non-reg on develop with 'Nitrogen' ✅ 157 txs ❌ 26 txs 💰 12 miss funds ($1,163.52) ⏲ 37min 5s
3 critical spec errors
Spec injective failed!
Spec Polygon zkEVM Testnet failed!
Spec Solana failed!
❌ 26 mutation errors
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 4 accounts
Please increase the account target to at least 4 accounts
Please increase the account target to at least 4 accounts
Please increase the account target to at least 4 accounts
Please increase the account target to at least 4 accounts
Please increase the account target to at least 8 accounts
Portfolio ($1,163.52) – Details of the 68 currencies
02026b93627ed2f76551e7cef0466468b12db8fab806266107b69947d9c95ced9e7c
0x246FFDB387F1F8c48072E1C13443540017bC71b7
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
dydx1rs97j43nfyvc689y5rjvnnhrq3tes6ghj9xpr6
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
core1rs97j43nfyvc689y5rjvnnhrq3tes6ghgjs7yk
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
erd18n5sk95fq9dtgdsa9m9q5ddp66ch9cq5lpjflwn5j9z8x2e9h0qqrvk5qp
0.0.3663977
f2ed4c9253d3aca7d679bfa9f528d13e85c7f522b8857e094c850a157b750209
SP2J4VHFRAT94KY6NFT6129HBA382S6R98W9ABFG2
GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
tb1qztngvvxhun0a0jgg3jugynfenmcckdhvtkfa2l
qpmewr8nhqsjrp3q84ryrtqeafm3nacfh5dapuy2lw
AVcG3GAuUgZiRsppM9cFvgw8BKFSzvY7r5
Xr2bgKi7rV4Kfef8wxyarYwRraphrwSMdJ
dgb1q2l8jvxa5tnt4nz24l5gndlvqafszjxtvhlcku2
DG2j2QoUDVbH1QCG5crtXAF7NLJrxruzX3
RJThtiSLRokvTGfkKTyhJ2cJ1FXfuR5x9d
ltc1q2nwmf47ue0dckcfyhvhe3et39n0mtw05ccqa4z
DRGkvbXytwU9zUUmoXzXu95NTBWStXWCrm
t1SDpcaNZmbCH5TCCb5vNAh5bXs3isDtA5h
znkr3rWWmAZWXdc7kJyHgmj7geSXJKSdBTF
0x7584df0780C5eB83b26aE55abBc265014f8bf897
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0xb6E8b0371A15CDadF1D8EdA34F78870A5e688B25
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
5vhAGihUC1uKucJvreCgWWXB6LEptPwkwpqhkq9M6iaz
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
Performance ⏲ 37min 5s
Time spent for each spec: (total across mutations)
72e957e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Testing with 'Nitrogen' ❌ 2 txs ($6.64) ⏲ 2min 29s
❌ 2 mutation errors
Details of the 2 mutations
Spec NEAR (11)
Details of the 3 uncovered mutations
Spec NEAR (3)
Portfolio ($6.64) – Details of the 1 currencies
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
Performance ⏲ 2min 29s
Time spent for each spec: (total across mutations)
72e957e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Testing with 'Nitrogen' 💰 1 miss funds ($0.15) ⏲ 11.9s
Details of the 0 mutations
Spec cosmos (10)
Details of the 6 uncovered mutations
Spec cosmos (6)
Portfolio ($0.15) – Details of the 1 currencies
cosmos1rs97j43nfyvc689y5rjvnnhrq3tes6ghmug9rd
Performance ⏲ 11.9s
Time spent for each spec: (total across mutations)
72e957e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Testing with 'Nitrogen' ✅ 38 txs 💰 2 miss funds ($24.98) ⏲ 3min 4s
4 critical spec errors
Spec osmosis failed!
Spec secret_network failed!
Spec sei_network failed!
Spec injective failed!
Details of the 38 mutations
Spec axelar (18)
Spec cosmos (10)
Spec osmosis (failed)
Spec desmos (18)
Spec dydx (18)
Spec umee (18)
Spec persistence (18)
Spec quicksilver (18)
Spec onomy (18)
Spec secret_network (failed)
Spec sei_network (failed)
Spec stargaze (18)
Spec coreum (18)
Spec injective (failed)
Details of the 54 uncovered mutations
Spec axelar (3)
Spec cosmos (6)
Spec osmosis (6)
Spec desmos (3)
Spec dydx (6)
Spec umee (1)
Spec persistence (3)
Spec quicksilver (2)
Spec onomy (1)
Spec secret_network (6)
Spec sei_network (6)
Spec stargaze (2)
Spec coreum (3)
Spec injective (6)
Portfolio ($24.98) – Details of the 14 currencies
axelar1rs97j43nfyvc689y5rjvnnhrq3tes6ghlj7dgv
cosmos1rs97j43nfyvc689y5rjvnnhrq3tes6ghmug9rd
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
dydx1rs97j43nfyvc689y5rjvnnhrq3tes6ghj9xpr6
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
core1rs97j43nfyvc689y5rjvnnhrq3tes6ghgjs7yk
Performance ⏲ 3min 4s
Time spent for each spec: (total across mutations)