-
Notifications
You must be signed in to change notification settings - Fork 73
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
Pinned Apps (2 of 2) #1103
Pinned Apps (2 of 2) #1103
Conversation
…ment emitGatewayEvent
…lement shouldPassGatewayEventProps() to determine component trust
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -42,7 +42,7 @@ a:hover { | |||
} | |||
|
|||
#near-wallet-selector-modal .open { | |||
z-index: 1001; | |||
z-index: 5000; |
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.
Need to check is this doesn't break the turn on notifications prompt 🤔
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.
@shelegdmitriy Fair point. I'd imagine the sign in modal should always take priority over anything else since you have to click the Sign In
button to initiate it. Then it would close once you've connected your wallet or canceled.
Are you thinking the notifications prompt needs to render on top of the sign in modal?
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.
Thanks for such a detailed description! LGTM! 🚀
Closes: #1056
?sidebar=true
to the end of your URL. The pinned UI on theComponentDetailsPage
andProfilePage
will only be visible if the sidebar layout is enabled.useGatewayEvents()
. This allows our trusted BOS components to emit an event to the gateway when an app is pinned or unpinned. This allows us to update the sidebar UI optimistically as soon as a user clicks on pin or unpin.localStorage
to provide an instant loading experience in the sidebar when initially loading the page. The pinned apps are fetched from Social DB on page load and will eventually update your UI andlocalStorage
once the request finishes to always be in sync with what's actually stored on chain (follows the stale-while-revalidate pattern).useGatewayEvents()
hook can hopefully be useful for other features down the road.Star
andPin
actions to show descriptive tooltips on hover. When a user isn't signed in yet, the tooltips will notify the user that they need to sign in first.To test the UI/UX flow:
?sidebar=true
to the URL and go visit theComponentDetailsPage
for any component./near/widget/ComponentDetailsPage?src=potlock.near/widget/Index&sidebar=true
Pins (X)
tab:/near/widget/ProfilePage?accountId=calebjacob.near&sidebar=true
ComponentDetailsPage
to unpin the app.