-
Notifications
You must be signed in to change notification settings - Fork 43
[PAY-1556] Update mobile web gated content experience for TrackTiles #3692
[PAY-1556] Update mobile web gated content experience for TrackTiles #3692
Conversation
Preview this change https://demo.audius.co/pay-1556-mobile-web-track-tile-updates |
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.
Wow massive lift, so many styles.
Preview this change https://demo.audius.co/pay-1556-mobile-web-track-tile-updates |
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.
Amazing campground cleanup! We should do a demo/lunch 'n learn around your CSS refactor approach here (using gap instead of individual margins, etc) :)
@@ -0,0 +1,13 @@ | |||
import { pluralize } from '@audius/common' | |||
|
|||
export const messages = { |
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.
Gooood looks pulling this out
Description
This brings the mobile web TrackTile into line with the latest mocks for gated content. It was a bit of an overhaul, but my goal was to clean this up and reuse some of the logic/styling/layout from the desktop experience. Long term, it would be nice to merge a lot of this code by switching to
<Tile />
.BottomButtons
component had a lot of inline function for rendering which weren't necessary. Cleaned that function up so it was doing less at render time (Felt mildly important as we render potentially dozens of TrackTiles at once)TrackTile
andBottomButtons
components. Replaced a lot of individual element margins with container padding and flex gaps.isBuffering
when we should be usingisLoading
Dragons
Changes are mostly contained to mobile web code, so this should be relatively safe
How Has This Been Tested?
Tested locally in Chrome mobile emulator
How will this change be monitored?
N/A
Feature Flags
N/A
Screenshots
Locked
Unlocked
Unlocked (Artist pick)
Artist View
Trending Page
Trending Page (Co-sign)