Skip to content
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

[PAY-2681] Artist dashboard album support #8136

Merged
merged 9 commits into from Apr 22, 2024
Merged

Conversation

dharit-tan
Copy link
Contributor

@dharit-tan dharit-tan commented Apr 17, 2024

Description

Adds album support for artist dashboard. Gated on premium albums feature flag.

The gist is that we already fetch the signed-in user's collections on app load, so we don't need to worry about fetching them here. The track fetching is handled the same way as in the current world (paginated API calls). Ideally the track vs album data fetching/caching would be handled the same way, but alas.. I did think about adding an endpoint to fetch all albums belonging to a given user id, but that was more work and it would have added an extra request given how audius-query interfaces with our cache currently, so decided to go the easy route.

cc @dylanjeffers for TextInput change.

Some todos:

How Has This Been Tested?

Screen.Recording.2024-04-16.at.9.55.44.PM.mov

Copy link

changeset-bot bot commented Apr 17, 2024

⚠️ No Changeset found

Latest commit: a994f24

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

Copy link
Contributor

@amendelsohn amendelsohn left a comment

Choose a reason for hiding this comment

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

Nice job! Surprising amount of state management involved. Well done keeping it straight!

I'm curious if it's possible to split up the component to make this easier to read and maintain. See my last comment for suggestions. Also happy to chat or pair on this!

Copy link
Contributor

@schottra schottra left a comment

Choose a reason for hiding this comment

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

Generally agree with Andrew here: It would be nice to separate this out and make use of sub components for organization and separation of concerns. But otherwise looks good 👍

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

Copy link
Contributor

@amendelsohn amendelsohn left a comment

Choose a reason for hiding this comment

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

Great refactor! So much nicer now that the filter and conditional display logic are not jammed into the same component.

A few ideas and comments, but don't want to put you through too many rounds of refactoring. It's good as is if you just want to ship it.

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

Copy link
Contributor

@amendelsohn amendelsohn left a comment

Choose a reason for hiding this comment

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

Love how clean the components are now! Great job!

Copy link
Contributor

@schottra schottra left a comment

Choose a reason for hiding this comment

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

Much cleaner with the refactor. Thanks for indulging us!
LGTM

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

@dharit-tan dharit-tan enabled auto-merge (squash) April 22, 2024 20:33
@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/rt-artist-dashboard

@dharit-tan dharit-tan merged commit 37258ec into main Apr 22, 2024
24 of 27 checks passed
@dharit-tan dharit-tan deleted the rt-artist-dashboard branch April 22, 2024 21:53
audius-infra pushed a commit that referenced this pull request Apr 27, 2024
[6eab8d7] [PROTO-1783] Finish entrypoint UI (#8246) Raymond Jacobson
[02787da] Fix UserNameAndBadges line-height (#8248) Reed
[efc2eed] Remove locked pill, gray row in TracksTable (#8241) Reed
[ca479c2] [PAY-2704] Show content type icon in last cell of row in TracksTable (#8243) Reed
[55dbd22] [ONC-81] Fix giant track tile visual bug (#8240) JD Francis
[59c2f32] [PAY-2616] Fix Add Funds modal closing and balance (#8237) Saliou Diallo
[ec47b83] [INF-691] Add back CI step to verify generated sdk types (#8199) Sebastian Klingler
[be974f0] Disable hidden album upload feature (#8239) JD Francis
[a065720] [PROTO-1787] Add full screen oauth variant (#8233) Raymond Jacobson
[eeb575f] Bump mobile app versions (#8236) nicoback2
[acacb93] [PAY-2746] Add authorized apps settings (#8214) Raymond Jacobson
[65179fd] [INF-670] Add check for wildcard deps in public packages (#8230) Sebastian Klingler
[651f18d] [PAY-2616] Fix CTA for reward panel (#8232) Saliou Diallo
[f340e0f] Mobile lint import reorders (#8229) Reed
[c02c55c] TracksTable lint fix (#8228) Reed
[d49c5ec] Rename audius-mobile-client -> @audius/mobile (#8226) Sebastian Klingler
[be9f0b2] [PAY-2739] show purchase button on tracks table mobile web (#8208) Andrew Mendelsohn
[a646fa6] [INF-459] Rename audius-client -> @audius/web (#8204) Sebastian Klingler
[016a94b] [PAY-2725] Add purchase button to mobile web albums (#8206) Andrew Mendelsohn
[2ab3792] [PAY-2727] Add images to oauth popup (#8216) Raymond Jacobson
[fc5127c] [PAY-2745] Hide play count for premium tracks (#8215) Reed
[342d610] [PAY-2749] Use ownerWallet instead of delegateOwnerWallet for uniquely owned endpoints in SDK (#8217) Marcus Pasell
[3bba9ab] [PAY-2731] Web FilterButton transparent when disabled (#8213) Reed
[3cfc215] [PAY-2550] Add images to apps (#8196) Raymond Jacobson
[4f0c6e1] [PAY-2737] Fix mobile collection tile formatting (#8205) Andrew Mendelsohn
[ffba9e9] [PAY-2719] Hidden album upload (#8191) JD Francis
[7793044] Fix web-test pt 2 (#8201) Sebastian Klingler
[1a1e687] [PAY-2741] Artist dashboard album stat (#8200) Reed
[18c907a] [PAY-2712] Mobile collection header (#8173) JD Francis
[c2d0289] [PAY-2730] Artist Dashboard empty tab states (#8192) Reed
[b65db45] Fix signature in SDK rewards (#8195) Marcus Pasell
[d127b48] [ONC-79] Fix reward formatting bug (#8194) Saliou Diallo
[79c4acc] [C-3921] Stop sending signature headers as params (#7774) Raymond Jacobson
[f6281bd] Undo a dev override that got checked in (#8198) Randy Schott
[6832772] Fix web TextInput small variant icon left padding (#8176) Reed
[1693e01] [PAY-2711] CollectionsTable component (#8147) Reed
[8c3d050] [PAY-2701] Add favorites (saves) column to TracksTable (#8140) Reed
[d71db62] [INF-535] Fix web-test (#8185) Sebastian Klingler
[4e636ad] [PAY-2720] Fixes issues with checking for recovery on load (#8186) Randy Schott
[5d5e076] [PAY-2399] Update header and cell contents for withdrawals table (#8184) Randy Schott
[37258ec] [PAY-2681] Artist dashboard album support (#8136) Reed
[8feb22b] [PAY-2656] Filter out premium albums from feed if FF off (#8181) Reed
[e190a34] Fix web-init (#8183) JD Francis
[64937c6] [C-4282] Add cooldown summary table to individual reward modals on web (#8177) Saliou Diallo
[ac4d7e5] [PAY-2702] Desktop collection header desktop rework (#8156) JD Francis
[45969ac] Use https for talking to solana relay on prod (#8174) Marcus Pasell
[164b322] [ONC-76] Exclude backgroundColor from forwardedProps for Box (#8168) Randy Schott
[29ec233] [PAY-2615] Add support for common LUT in versioned transactions (#8157) Randy Schott
[60f3bd1] Upgrade sentry to fix iOS build errors (#8170) Randy Schott
Sign up for free to 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.

None yet

5 participants