diff --git a/packages/site/src/components/Footer.tsx b/packages/site/src/components/Footer.tsx index 0c2e2dd..68c9098 100644 --- a/packages/site/src/components/Footer.tsx +++ b/packages/site/src/components/Footer.tsx @@ -1,7 +1,13 @@ export const Footer = () => { return ( ); }; diff --git a/packages/site/src/components/Header.tsx b/packages/site/src/components/Header.tsx index 373bb7b..4942e10 100644 --- a/packages/site/src/components/Header.tsx +++ b/packages/site/src/components/Header.tsx @@ -25,7 +25,7 @@ export const Header = () => {
-

RSS3 Activity Monitor Snap

+

RSS3 Social Notifier Snap

{/* {

Welcome to{' '} - - RSS3 Activity Monitor Snap + + RSS3 Social Notifier - + A MetaMask Snap

- This Snap for MetaMask allows you to monitor the - activities of any address. + This Snap for MetaMask offers + a quick and easy way to stay on top of your frens' social activities.

1. Connect to the Snap and install.

-

2. Start monitoring any address.

- 3. When there is a new activity produced by any of your monitored - addresses, you will be notified. + 2. Your Web3 social graphs on{' '} + + Crossbell + + ,{' '} + + Farcaster + + ,{' '} + + Lens Protocol + + , will be automatically imported. +

+

+ 3. When a new social activity initiated by any of your Web3 frens,{' '} + you will be notified.

{state.error && ( @@ -218,7 +245,7 @@ const Index = () => { {!isMetaMaskReady && ( - Install + Install MetaMask Flask Snaps is pre-release software only available in MetaMask Flask, a canary distribution for developers with access to upcoming @@ -267,8 +294,8 @@ const Index = () => { Reset Snap State - Clean all the data saved in this Snap. This does not affect your - wallet in anyway. + Reset the Snap's state, in case anything does not work properly. + This does not affect your wallet or assets in anyway. @@ -279,30 +306,27 @@ const Index = () => { - - - Monitor your social profiles - - You can bind the profile you want to monitor on this page, and - then you will be able to monitor all the new activities from - people that your profile is following. - - - - {/* */} - - - + {!isProduction && ( + + + Stalk Someone + + You can get notified if someone else's frens publish something + (actually, this is for debugging purpose). + + + + + + + )} {/* diff --git a/packages/site/src/pages/monitor/create.tsx b/packages/site/src/pages/monitor/create.tsx index b935abf..f948881 100644 --- a/packages/site/src/pages/monitor/create.tsx +++ b/packages/site/src/pages/monitor/create.tsx @@ -130,12 +130,13 @@ const MonitorCreate = () => { render={() => (
- Search Key + Stalk

- Start monitoring a new address. Supported Web3 Name - Service: + Feeling stalk-y? Get notified for someone else's frens + publish something on Web3 social platforms.

+

Supported Web3 Name Service:

.eth, .lens, .csb, .bnb, .bit, .crypto, .zil, .nft, .x, .wallet, .bitcoin, .dao, .888, .blockchain, .avax, .arb, @@ -153,7 +154,7 @@ const MonitorCreate = () => { render={({ field }) => ( - + )} @@ -171,7 +172,7 @@ const MonitorCreate = () => {
Platforms - Select the platforms you want to monitor in the snap. + Select the platforms you want to get notified.
@@ -212,13 +213,13 @@ const MonitorCreate = () => { )} /> - + {profiles.length > 0 && (

- Select you want to monitor profiles + Select the Profile(s)

{profiles.map((item) => ( @@ -254,7 +255,11 @@ const MonitorCreate = () => {

- {item.handle} + {(item.handle?.length ?? 0) > 10 + ? `${item.handle?.slice(0, 6)}...${item.handle?.slice( + -8, + )}` + : item.handle}

@@ -266,7 +271,7 @@ const MonitorCreate = () => {

)} diff --git a/packages/site/src/pages/monitor/list.tsx b/packages/site/src/pages/monitor/list.tsx index f194fa0..9e9d774 100644 --- a/packages/site/src/pages/monitor/list.tsx +++ b/packages/site/src/pages/monitor/list.tsx @@ -61,7 +61,7 @@ const MonitorList = () => { className="flex flex-col items-start justify-center gap-4 border border-solid border-gray-100 w-full p-6 rounded-lg" >

- Monitor {monitor.search}'s following + {monitor.search}'s following

Last Updated:{' '} diff --git a/packages/site/src/utils/snap.ts b/packages/site/src/utils/snap.ts index ec53722..2639460 100644 --- a/packages/site/src/utils/snap.ts +++ b/packages/site/src/utils/snap.ts @@ -197,13 +197,13 @@ export const showAllActivities = async () => { }); }; -export const showAllMonitoredAddresses = async () => { +export const showAllFollowedAddresses = async () => { await window.ethereum.request({ method: 'wallet_invokeSnap', params: { snapId: defaultSnapOrigin, request: { - method: 'showAllMonitoredAddresses', + method: 'showAllFollowedAddresses', }, }, }); diff --git a/packages/snap/package.json b/packages/snap/package.json index 2105961..ab0104a 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,7 +1,7 @@ { "name": "rss3-metamask-snap", "version": "0.1.0", - "description": "Get notifications when monitored addresses produce new activities.", + "description": "Get notifications when your Web3 frens produce new activities.", "repository": { "type": "git", "url": "https://github.com/NaturalSelectionLabs/RSS3-MetaMask-Snap.git" diff --git a/packages/snap/snap.config.ts b/packages/snap/snap.config.ts index f4bb3b4..e8eb800 100644 --- a/packages/snap/snap.config.ts +++ b/packages/snap/snap.config.ts @@ -11,6 +11,9 @@ const config: SnapConfig = { buffer: false, builtIns: false, }, + polyfills: { + buffer: true, + }, }; export default config; diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 2c287b0..90c46e9 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -1,13 +1,13 @@ { "version": "0.1.0", - "description": "Get notifications when monitored addresses produce new activities.", - "proposedName": "Activity Monitor", + "description": "Get notifications when your Web3 frens produce new activities.", + "proposedName": "RSS3 Social Notifier", "repository": { "type": "git", "url": "https://github.com/NaturalSelectionLabs/RSS3-MetaMask-Snap.git" }, "source": { - "shasum": "1lmnkid0IQzmmw0ZJyWTODIJu+Vzqeo1KG5TL2xmFeY=", + "shasum": "otV0CuKpgG18gqS4SPVejZdu0OtF7aN9RmFrx13s674=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/index.ts b/packages/snap/src/index.ts index d58c30b..a5e2559 100644 --- a/packages/snap/src/index.ts +++ b/packages/snap/src/index.ts @@ -175,10 +175,10 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => { }); } - // show the all monitored addresses - case 'showAllMonitoredAddresses': { + // show the all Followed addresses + case 'showAllFollowedAddresses': { const state = await getState(); - const content: any = [heading('All Monitored Addresses')]; + const content: any = [heading('Your Web3 frens')]; state.socialActivities.forEach((activity) => { content.push(text(activity.address)); content.push(divider());