-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [lw 11882] Connect DApp Explorer to DApp Radar API (#1649)
* feat: load dapps data from dapp radar api * feat: fetch dapp categories from dapp radar * ci: add dappradar credentials to github action * feat: cover edge cases of api requests implementation * feat: show single show all category when no dapp radar api token * fix: code cleanup, small ui adjustments * docs: document how to get dapp radar api token for local development * fix: dapp details drawer redirect button * fix: lint * feat: prepare CI to consume dapp radar api token and use it for extension build * fix: capturing active category by analytics * feat: allow to render dapp explorer page with/out content depending on feature flag * fix: rendering of icons in the categories carousel * fix: add elipsis to dapp tile texts * fix: ui fixes --------- Co-authored-by: John Oshalusi <[email protected]>
- Loading branch information
1 parent
89c58f1
commit 798e959
Showing
50 changed files
with
380 additions
and
521 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
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
3 changes: 3 additions & 0 deletions
3
apps/browser-extension-wallet/src/assets/icons/arrow-chart-up.component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...owser-extension-wallet/src/assets/icons/arrows-opposite-direction.component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
apps/browser-extension-wallet/src/assets/icons/persons.component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
apps/browser-extension-wallet/src/views/browser-view/features/dapp/README.md
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,10 @@ | ||
# Setting up local connection with DApp Radar API | ||
|
||
DApp Explorer uses [DApp Radar API](https://apis-portal.dappradar.com/full-api-reference) | ||
as a data source. | ||
For the local development you need to set up your personal | ||
[subscription](https://apis-portal.dappradar.com/subscriptions) to obtain an api token. | ||
You can use a free plan allowing you to perform 100 api calls per month. | ||
|
||
Once you have your personal api token set it in your `.env` file | ||
under the `DAPP_RADAR_API_KEY` name. |
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
10 changes: 3 additions & 7 deletions
10
...ion-wallet/src/views/browser-view/features/dapp/explorer/components/Card/Classic/types.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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
interface IIogCardImage { | ||
alt: string; | ||
src: string; | ||
width: number; | ||
height: number; | ||
} | ||
|
||
export interface IogCardProps { | ||
categories?: string[]; | ||
categories: string[]; | ||
title: string; | ||
description?: string; | ||
isCertified?: boolean; | ||
image?: Partial<IIogCardImage>; | ||
onClick?: () => void; | ||
image?: IIogCardImage; | ||
onClick: () => void; | ||
} |
24 changes: 14 additions & 10 deletions
24
...xtension-wallet/src/views/browser-view/features/dapp/explorer/components/DAppExplorer.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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import { Layout, SectionLayout } from '@views/browser/components'; | ||
import SimpleView from './SimpleView'; | ||
import React from 'react'; | ||
import { ExperimentName } from '@providers/ExperimentsProvider/types'; | ||
import { usePostHogClientContext } from '@providers/PostHogClientProvider'; | ||
|
||
export const DAppExplorer: React.FC = () => ( | ||
<> | ||
<Layout noAside> | ||
<SectionLayout> | ||
<SimpleView /> | ||
</SectionLayout> | ||
</Layout> | ||
<div id={'dAppStore'} /> | ||
</> | ||
); | ||
export const DAppExplorer: React.FC = () => { | ||
const posthog = usePostHogClientContext(); | ||
const dappExplorerEnabled = posthog.isFeatureEnabled(ExperimentName.DAPP_EXPLORER); | ||
return ( | ||
<> | ||
<Layout noAside> | ||
<SectionLayout>{dappExplorerEnabled && <SimpleView />}</SectionLayout> | ||
</Layout> | ||
<div id={'dAppStore'} /> | ||
</> | ||
); | ||
}; |
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
1 change: 0 additions & 1 deletion
1
...r-view/features/dapp/explorer/components/ProjectDetail/CertificationAndAudit/constants.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...ser-view/features/dapp/explorer/components/ProjectDetail/CertificationAndAudit/helpers.ts
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
...wser-view/features/dapp/explorer/components/ProjectDetail/CertificationAndAudit/index.tsx
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...er-view/features/dapp/explorer/components/ProjectDetail/CertificationAndAudit/styles.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.