Skip to content
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

feat: faq via cms #56

Draft
wants to merge 55 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
1f1a6f3
feat: use @lidofinance/ui-faq on stake page
solidovic Sep 17, 2023
4c6d3b0
feat: matomoEventMap pass to @lidofinance/ui-faq
solidovic Sep 17, 2023
b415644
chore: deps
solidovic Sep 21, 2023
66b5307
fix: react/jsx-runtime
solidovic Sep 21, 2023
e0bc5e5
feat: auto gen of matomo event (draft)
solidovic Sep 21, 2023
59ddaf8
feat: remove old source code FAQ
solidovic Sep 21, 2023
5687df5
feat: example faq.md
solidovic Sep 21, 2023
8429f92
feat: use FaqAccordion from `@lidofinance/ui-faq` on withdrawals pages
solidovic Sep 21, 2023
00bd0f6
feat: use FaqAccordion from `@lidofinance/ui-faq` on wrap and unwrap …
solidovic Sep 21, 2023
8e9d1d6
docs: change comment
solidovic Sep 21, 2023
d6daa85
refactor: pageIdentification in wrap-faq
solidovic Sep 21, 2023
1ae9876
feat: merge develop
solidovic Oct 10, 2023
39258af
chore: add @lidofinance/ui-faq and @lidofinance/next-ui-primitives
solidovic Oct 10, 2023
03c5141
feat(index page): fetch a faq on ssr
solidovic Oct 10, 2023
2fe166f
feat(wrap/unwrap page): fetch a faq on ssr
solidovic Oct 10, 2023
712831b
feat(withdrawals page): fetch a faq on ssr
solidovic Oct 10, 2023
de46d20
refactor: faqAccordion onLinkClick DRY
solidovic Oct 10, 2023
6cfdf10
refactor: faq revalidate from config
solidovic Oct 10, 2023
036767b
feat: merge develop
solidovic Oct 10, 2023
88f910a
feat: axios instance with metrics and timeout
solidovic Oct 11, 2023
d751de2
feat: use axios for getting a FAQ
solidovic Oct 11, 2023
db72017
feat: hide FAQ block if faqList not available
solidovic Oct 11, 2023
7f9eaf5
feat: warn logs
solidovic Oct 11, 2023
0a464a8
refactor: use type instead of interface
solidovic Oct 11, 2023
1d60039
refactor: faq on wrap/unwrap page
solidovic Nov 10, 2023
f18011e
fix(deps): lido ui ESM supported (temp fix)
solidovic Nov 20, 2023
93b4512
refactor: fetch FAQ from CMS on widget side, use pageFAQ in FAQ
solidovic Nov 20, 2023
244d939
revert: remove axios
solidovic Nov 21, 2023
f7d1c57
refactor: code style
solidovic Nov 21, 2023
76d5f89
chore(deps): remove react-markdown and react-to-text
solidovic Nov 21, 2023
5f8c95b
fix: matomo event name generator
solidovic Nov 21, 2023
49d50bb
chore(deps): remove @lidofinance/lido-ui-blocks
solidovic Nov 21, 2023
c37b3b0
Merge branch 'develop' into feature/si-809-faq-via-cms
solidovic Nov 21, 2023
7e1d4ba
refactor: page faq's checks
solidovic Nov 21, 2023
46e4ce9
chore: merge develop
solidovic Dec 1, 2023
28181a9
refactor(FAQ): support IPFS SPA and DRY
solidovic Dec 1, 2023
1970a10
refactor(utilsApi FAQ): rename file
solidovic Dec 1, 2023
a09d2e4
refactor(FAQ): revalidate FAQ in IPFS mode on Stake Page
solidovic Dec 4, 2023
acb67a1
refactor(FAQ): revalidate FAQ in IPFS mode in all pages
solidovic Dec 4, 2023
de65edf
fix: useFetchFaqOnClientIfETagWereChanged
solidovic Dec 5, 2023
948c65f
chore: remove .yalc, get @lidofinance/ui-faq from npm
solidovic Dec 6, 2023
ed39346
fix(getStaticProps): build
solidovic Dec 6, 2023
1d882dd
chore: merge develop
solidovic Dec 14, 2023
91974d2
chore: merge develop
solidovic Dec 14, 2023
01088ca
refactor: renaming
solidovic Dec 20, 2023
3f684f7
refactor: faq props passing
solidovic Dec 26, 2023
a260d60
feat: use ETag only in IPFS
solidovic Jan 16, 2024
c73009d
chore: updated @lidofinance/lido-ui
solidovic Jan 16, 2024
31aeec0
Merge branch 'develop' into feature/si-809-faq-via-cms
solidovic Jan 16, 2024
8152496
chore: yarn
solidovic Jan 16, 2024
e21878b
chore: yarn for node v.16
solidovic Jan 16, 2024
5d9ec20
chore: yarn for node v.16
solidovic Jan 16, 2024
7717a40
Merge branch 'develop' into feature/si-809-faq-via-cms
solidovic Jan 16, 2024
04592a9
Merge branch 'develop' into feature/si-809-faq-via-cms
solidovic Jan 24, 2024
bf0cfd4
feat: add FAQ_CONTENT_BASE_PATH to build time
solidovic Jan 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ MATOMO_URL=

# WalletConnect project ID
WALLETCONNECT_PROJECT_ID=

FAQ_CONTENT_URL=
128 changes: 0 additions & 128 deletions config/matomoClickEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,6 @@ export const enum MATOMO_CLICK_EVENTS_TYPES {
oneInchDiscount = 'oneInchDiscount',
viewEtherscanOnStakePage = 'viewEtherscanOnStakePage',
l2BannerStake = 'l2BannerStake',
// FAQ
faqSafeWorkWithLidoAudits = 'faqSafeWorkWithLidoAudits',
faqLidoEthAprEthLandingPage = 'faqLidoEthAprEthLandingPage',
faqLidoEthAprDocs = 'faqLidoEthAprDocs',
faqHowCanIGetStEthWidget = 'faqHowCanIGetStEthWidget',
faqHowCanIGetStEthIntegrations = 'faqHowCanIGetStEthIntegrations',
faqHowCanIUseSteth = 'faqHowCanIUseSteth',
faqWhereCanICoverBridgeMutual = 'faqWhereCanICoverBridgeMutual',
faqWhereCanICoverIdleFinance = 'faqWhereCanICoverIdleFinance',
faqWhereCanICoverNexusMutual = 'faqWhereCanICoverNexusMutual',
faqWhereCanICoverRibbonFinance = 'faqWhereCanICoverRibbonFinance',
faqWhereCanICoverChainproof = 'faqWhereCanICoverChainproof',
faqRisksOfStakingReports = 'faqRisksOfStakingReports',
faqRisksOfStakingImmunefiBugBounty = 'faqRisksOfStakingImmunefiBugBounty',
faqHowCanIUnstakeStEthWithdrawals = 'faqHowCanIUnstakeStEthWithdrawals',
faqHowCanIUnstakeStEthIntegrations = 'faqHowCanIUnstakeStEthIntegrations',
faqHowCanIGetWstethWrapLink = 'faqHowCanIGetWstethWrapLink',
faqHowCanIGetWstethIntegrationsLink = 'faqHowCanIGetWstethIntegrationsLink',
faqHowDoIUnwrapWstethUnwrapLink = 'faqHowDoIUnwrapWstethUnwrapLink',
faqHowCanIUseWstethL2 = 'faqHowCanIUseWstethL2',
faqHowCanIUseWstethDefiProtocols = 'faqHowCanIUseWstethDefiProtocols',
faqDoINeedToUnwrapMyWstethWithdrawalsTabs = 'faqDoINeedToUnwrapMyWstethWithdrawalsTabs',
// /wrap page
l2BannerWrap = 'l2BannerWrap',
wrapTokenSelectSTETH = 'wrapTokenSelectSteth',
Expand Down Expand Up @@ -102,112 +80,6 @@ export const MATOMO_CLICK_EVENTS: Record<
'Push "Learn more" at the L2 banner on "Stake" tab',
'eth_widget_banner_l2_stake',
],
// FAQ
[MATOMO_CLICK_EVENTS_TYPES.faqSafeWorkWithLidoAudits]: [
'Ethereum_Staking_Widget',
'Push «here» in FAQ Is it safe to work with Lido',
'eth_widget_faq_safeWorkWithLido_here',
],
[MATOMO_CLICK_EVENTS_TYPES.faqLidoEthAprEthLandingPage]: [
'Ethereum_Staking_Widget',
'Push «Ethereum landing page» in FAQ What is Lido staking APR for Ethereum? on stake widget',
'eth_widget_faq_lidoEthApr_ethereumLandingPage',
],
[MATOMO_CLICK_EVENTS_TYPES.faqLidoEthAprDocs]: [
'Ethereum_Staking_Widget',
'Push «Docs» in FAQ What is Lido staking APR for Ethereum? on stake widget',
'eth_widget_faq_lidoEthApr_docs',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIGetStEthWidget]: [
'Ethereum_Staking_Widget',
'Push «Lido Ethereum staking widget» in FAQ How can I get stETH? on stake widget',
'eth_widget_faq_howCanIGetStEth_lidoEthereumStakingWidget',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIGetStEthIntegrations]: [
'Ethereum_Staking_Widget',
'Push «DEX Lido integrations» in FAQ How can I get stETH? on stake widget',
'eth_widget_faq_howCanIGetStEth_dexLidoIntegrations',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIUseSteth]: [
'Ethereum_Staking_Widget',
'Push «more» in FAQ How can I use stETH? on stake widget',
'eth_widget_faq_howCanIUseSteth_more',
],
[MATOMO_CLICK_EVENTS_TYPES.faqWhereCanICoverBridgeMutual]: [
'Ethereum_Staking_Widget',
'Push «Bridge Mutual» in FAQ Where can I cover my stETH? on stake widget',
'eth_widget_faq_wherecanicover_bridgemutual',
],
[MATOMO_CLICK_EVENTS_TYPES.faqWhereCanICoverIdleFinance]: [
'Ethereum_Staking_Widget',
'Push «Idle Finance» in FAQ Where can I cover my stETH? on stake widget',
'eth_widget_faq_wherecanicover_idlefinance',
],
[MATOMO_CLICK_EVENTS_TYPES.faqWhereCanICoverNexusMutual]: [
'Ethereum_Staking_Widget',
'Push «Nexus Mutual» in FAQ Where can I cover my stETH? on stake widget',
'eth_widget_faq_wherecanicover_nexusmutual',
],
[MATOMO_CLICK_EVENTS_TYPES.faqWhereCanICoverRibbonFinance]: [
'Ethereum_Staking_Widget',
'Push «Ribbon Finance» in FAQ Where can I cover my stETH? on stake widget',
'eth_widget_faq_wherecanicover_ribbonfinance',
],
[MATOMO_CLICK_EVENTS_TYPES.faqWhereCanICoverChainproof]: [
'Ethereum_Staking_Widget',
'Push «Chainproof» in FAQ Where can I cover my stETH? on stake widget',
'eth_widget_faq_wherecanicover_сhainproof',
],
[MATOMO_CLICK_EVENTS_TYPES.faqRisksOfStakingReports]: [
'Ethereum_Staking_Widget',
'Push "here" in FAQ What are the risks of staking with Lido? on stake widget',
'eth_widget_faq_risksofstaking_reports',
],
[MATOMO_CLICK_EVENTS_TYPES.faqRisksOfStakingImmunefiBugBounty]: [
'Ethereum_Staking_Widget',
'Push "Immunefi bug bounty program" in FAQ What are the risks of staking with Lido? on stake widget',
'eth_widget_faq_risksofstaking_immunefibugbounty',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIUnstakeStEthWithdrawals]: [
'Ethereum_Staking_Widget',
'Push «Withdrawals Request and Claim tabs» in FAQ How can I unstake stETH? on stake widget',
'eth_widget_faq_howCanIUnstakeStEth_withdrawalsRequestAndClaimTabs',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIUnstakeStEthIntegrations]: [
'Ethereum_Staking_Widget',
'Push «DEX Lido integrations» in FAQ How can I unstake stETH? on stake widget',
'eth_widget_faq_howCanIUnstakeStEth_dexLidoIntegrations',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIGetWstethWrapLink]: [
'Ethereum_Staking_Widget',
'Push «Wrap & Unwrap staking widget» in FAQ How can I get wstETH',
'eth_widget_faq_howgetwsteth_wrap',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIGetWstethIntegrationsLink]: [
'Ethereum_Staking_Widget',
'Push «DEX Lido integrations» in FAQ How can I get wstETH',
'eth_widget_faq_howgetwsteth_dexLidoIntegrations',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowDoIUnwrapWstethUnwrapLink]: [
'Ethereum_Staking_Widget',
'Push «stake.lido.fi/wrap/unwrap» How do I unwrap wstETH back to stETH?',
'eth_widget_faq_howunwrapwsteth_unwrap',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIUseWstethL2]: [
'Ethereum_Staking_Widget',
'Push «L2» How can I use wstETH?',
'eth_widget_faq_howCanIUseWstETH_l2',
],
[MATOMO_CLICK_EVENTS_TYPES.faqHowCanIUseWstethDefiProtocols]: [
'Ethereum_Staking_Widget',
'Push «DeFi protocols» How can I use wstETH?',
'eth_widget_faq_howCanIUseWstETH_defiProtocols',
],
[MATOMO_CLICK_EVENTS_TYPES.faqDoINeedToUnwrapMyWstethWithdrawalsTabs]: [
'Ethereum_Staking_Widget',
'Push «Withdrawals Request and Claim tabs» Do I need to unwrap my wstETH before requesting withdrawals?',
'eth_widget_faq_doINeedToUnwrapMyWsteth_withdrawalsRequestAndClaimTabs',
],
// /wrap page
[MATOMO_CLICK_EVENTS_TYPES.l2BannerWrap]: [
'Ethereum_Staking_Widget',
Expand Down
2 changes: 2 additions & 0 deletions env-dynamics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ export const ethAPIBasePath = process.env.ETH_API_BASE_PATH;
export const wqAPIBasePath = process.env.WQ_API_BASE_PATH;
/** @type string */
export const walletconnectProjectId = process.env.WALLETCONNECT_PROJECT_ID;
/** @type string */
export const faqContentUrl = process.env.FAQ_CONTENT_URL;
36 changes: 0 additions & 36 deletions features/home/stake-faq/list/how-can-i-get-steth.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions features/home/stake-faq/list/how-can-i-unstake-steth.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions features/home/stake-faq/list/how-can-i-use-steth.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions features/home/stake-faq/list/how-does-lido-work.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions features/home/stake-faq/list/index.ts

This file was deleted.

37 changes: 0 additions & 37 deletions features/home/stake-faq/list/lido-eth-apr.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions features/home/stake-faq/list/lido-fee.tsx

This file was deleted.

Loading