Skip to content

[Protocol Dashboard] Show Audius profile info and link to profile if wallet is connected to an Audius account [C-3579] - #7132

Merged
nicoback2 merged 4 commits into
feature-dashboard-improvementsfrom
nkang--dwu-show
Jan 10, 2024
Merged

[Protocol Dashboard] Show Audius profile info and link to profile if wallet is connected to an Audius account [C-3579]#7132
nicoback2 merged 4 commits into
feature-dashboard-improvementsfrom
nkang--dwu-show

Conversation

@nicoback2

@nicoback2nicoback2 commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

Description

Screenshot 2024-01-09 at 5 33 21 PMScreenshot 2024-01-09 at 5 43 58 PM

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

@vercel

vercelBot commented Jan 10, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
NameStatusPreviewCommentsUpdated (UTC)
audius-web-ssr⬜️ Ignored (Inspect)Visit PreviewJan 10, 2024 8:49pm

@nicoback2nicoback2 changed the title [Protocol Dashboard] Show Audius profile info if wallet is connected to an Audius account[Protocol Dashboard] Show Audius profile info and link to profile if wallet is connected to an Audius accountJan 10, 2024
@nicoback2nicoback2 changed the title [Protocol Dashboard] Show Audius profile info and link to profile if wallet is connected to an Audius account[Protocol Dashboard] Show Audius profile info and link to profile if wallet is connected to an Audius account [C-3579]Jan 10, 2024

@dylanjeffersdylanjeffers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks excellent! react-query is reasonable just curious about Audius-query feasibility. Likely can just figure this out once we figure out data fetching in general

Comment threadprotocol-dashboard/src/components/AppBar/AppBar.tsx Outdated

import IconBronzeBadgeSVG from 'assets/img/iconBronzeBadge.svg?react'
import IconGoldBadgeSVG from 'assets/img/iconGoldBadge.svg?react'
import IconPlatinumBadgeSVG from 'assets/img/iconPlatinumBadge.svg?react'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job adding this to protocol for now. Long term you thinking we have a harmony component for all this?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/>
{audiusProfile == null ? null : (
<a
aria-label="Go to user's Audius profile"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

}

export const useDashboardWalletUser = (wallet: string) => {
return useQuery({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! So do we have redux on the dashboard? If so I'm wondering if it would be unreasonable to use Audius query?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do have redux on the dashboard, but I didn't think using Audius-query made sense here because we don't have/need a normalized cache for this. using react-query keeps things abstracted away and simple

audiusProfile?: DashboardWalletUser | null
status: Status.Failure | Status.Loading
}
export const useUser = ({ wallet }: UseUserProps): UseUserResponse => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great additions here

@sliptypesliptype left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!


const preload = async (image: string, cb: () => void) => {
await new Promise(resolve => {
await new Promise(_resolve => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't add this but I don't think there's any point to this promise

Comment threadprotocol-dashboard/src/components/UserName/UserName.tsx Outdated
@nicoback2
nicoback2 changed the base branch from nkang--oauth-dahboard to feature-dashboard-improvementsJanuary 10, 2024 20:39
@gitguardian

gitguardianBot commented Jan 10, 2024

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@nicoback2
nicoback2 changed the base branch from feature-dashboard-improvements to nkang--oauth-dahboardJanuary 10, 2024 20:40
Base automatically changed from nkang--oauth-dahboard to feature-dashboard-improvementsJanuary 10, 2024 20:45
@nicoback2
nicoback2 merged commit 5a48156 into feature-dashboard-improvementsJan 10, 2024
@nicoback2
nicoback2 deleted the nkang--dwu-show branch January 10, 2024 20:50
nicoback2 added a commit that referenced this pull request Jan 12, 2024
…wallet is connected to an Audius account [C-3579] (#7132)
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
nicoback2 added a commit that referenced this pull request Jan 18, 2024
…wallet is connected to an Audius account [C-3579] (#7132)
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nicoback2@dylanjeffers@sliptype@nicoback