-
Notifications
You must be signed in to change notification settings - Fork 7
[Feature][STUD-580]: Gate 'DistributionPricingDialog' when user first interact with the release CTA 'Create New Release' #981
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,10 +86,14 @@ const BasicSongDetails: FunctionComponent<BasicSongDetailsProps> = ({ | |
| const songDetailsRef = useRef<HTMLDivElement>(null); | ||
|
|
||
| const { | ||
| // webStudioAlbumPhaseTwo, | ||
| webStudioDisableTrackDistributionAndMinting, | ||
| webStudioDisableDistributionAndSales, | ||
| // webStudioDisableDistributionAndSales, | ||
| } = useFlags(); | ||
|
|
||
| const webStudioDisableDistributionAndSales = false; | ||
| const webStudioAlbumPhaseTwo = false; | ||
|
Comment on lines
+94
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the |
||
|
|
||
| const isDistributionDisabled = | ||
| webStudioDisableDistributionAndSales || | ||
| webStudioDisableTrackDistributionAndMinting; | ||
|
|
@@ -210,7 +214,7 @@ const BasicSongDetails: FunctionComponent<BasicSongDetailsProps> = ({ | |
|
|
||
| return ( | ||
| <Stack> | ||
| { !isArtistPricePlanSelected && ( | ||
| { !webStudioAlbumPhaseTwo && !isArtistPricePlanSelected && ( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this flag is necessary. If phase two is enabled I was going to advise to put the flag under the old edit flow as well, but this will all be migrated to a different UX when phase two launches anyway. |
||
| <DistributionPricingDialog | ||
| open={ isPricingPlansOpen } | ||
| onCancel={ handlePricingPlanCancel } | ||
|
|
@@ -443,7 +447,9 @@ const BasicSongDetails: FunctionComponent<BasicSongDetailsProps> = ({ | |
| title="DISTRIBUTE & MINT SONG" | ||
| toggleTooltipText={ tooltipContent } | ||
| onClick={ () => { | ||
| if (!isArtistPricePlanSelected) handlePricingPlanOpen(); | ||
| if (!webStudioAlbumPhaseTwo && !isArtistPricePlanSelected) { | ||
| handlePricingPlanOpen(); | ||
| } | ||
| } } | ||
| /> | ||
|
|
||
|
|
||
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.
Same comment as in
BasicSongDetails.tsx. Is this flag necessary as this is a phase two component. Phase two won't even need this in the flow.At the same time all references to
DistributionPricingDialogcan be removed as this component is ued in thenew/track/newroute that doesn't have a mint toggle anyway. There is no reference tohandlePricingPlanOpenin this file anyway. All the handle, Pricing dialog, and profile query code can be removed.