feat: EPNS embed sidebar notifications on Home page#1494
feat: EPNS embed sidebar notifications on Home page#1494subhranshudas wants to merge 5 commits intoensdomains:devfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LeonmanRolls
left a comment
There was a problem hiding this comment.
Hey @subhranshudas thanks very much for your PR! Some points/questions:
- You mentioned you tested on ropsten however it seems EPNS does not support ropsten, and also ENS doesn’t support Kovan (d’oh!), is there a way for me to test what the notification will look like if I have a name that’s soon expiring without registering one on mainnet?
- The EPNS plugin asks me to change to Kovan network intermittently, this should not happen.
- The sidebar should not be showing demo content when there are no notifications. It can perhaps link to a tutorial if the user has not opted in to the ENS channel yet.
Hello @LeonmanRolls,
|
|
Thanks @subhranshudas. Do you have a way to test the functionality with a name that is soon to expire without registering a new name on mainnet? |


Integration of EPNS Notifications Embed Feature on the Home Page
Description
On the Home page of the ENS app, when the user is connected to their account, we are basically showing an EPNS bell icon on click of which they will see a sidebar which has a list of notifications if they have "opted-in" (subscribed) to ENS channel via EPNS.
List of features added/changed
UX wise
Code wise
useEPNSEmbedhook which is used in theHomeroute wrapper and abstracts out the trigger & cleanup mechanism of the originalEmbedSDKmethods from the EPNS SDK. Feel free to change the init options here.embedsdk.esm.jsfile (for now) to provide theEmbedSDKfeatures from the original EPNS-SDK package.Note: Currently we are transitioning to smaller individual packages, to avoid increasing the bundle size for ENS (or any dApp), we are now giving a build file which is going to be replaced by an NPM package shortly. So once that happens we can remove the build file and simply use in the
useEPNSEmbedhook something like -How Has This Been Tested?
Locally
Unit Tests
Created/Updated the following tests which are passing -
Ran
npm teston the entire code base -Checklist:
Screenshots