Skip to content

Conversation

@ITurres
Copy link
Member

@ITurres ITurres commented Dec 26, 2025

Pull Request — Issue MRKT-209

Overview

This PR fixes the artist page layout when no banner image is available. It conditionally renders the banner, ensures the banner skeleton shows while loading, switches ProfileHeader to an inline layout when no banner (or not loading), and adjusts margins to remove the black gap while preserving the overlay layout when a banner exists.


Files Summary

Total Changes: 2 files

Added (0)
  • None
Modified (2)
  • apps/marketplace/src/app/artist/[artistId]/page.tsx
    • Show banner area while loading or when a URL exists: const showBannerArea = isLoading || !!artistBannerUrl.
    • Render BannerImage when showBannerArea is true to display the skeleton during loading.
    • Derive profileHeaderLayout from showBannerArea (overlay when true, inline otherwise).
    • Apply Container marginTop based on showBannerArea to remove the black gap.
  • packages/components/src/lib/ProfileHeader.tsx
    • Add optional layout?: "overlay" | "inline" prop (default: "overlay").
    • Use isOverlay to adjust top margins to match layout.
    • Tweak Socials container margin to account for layout and breakpoint.
Deleted (0)
  • None

Impact

  • Removes the unwanted black gap on artist pages without a banner.
  • Preserves existing overlay appearance for artists with banners.
  • Shows banner skeleton during loading for a smoother perceived load.
  • Backward compatible: ProfileHeader defaults to layout="overlay".

Testing

  • Manual QA in Marketplace:
    • With banner: header overlays banner; spacing unchanged.
    • Without banner: header inline; no black gap; spacing correct across breakpoints.
    • While loading: banner skeleton renders; layout uses overlay until data resolves.
  • Verified responsive behavior near the md breakpoint.

Related Issues


Dependencies

  • No new or updated dependencies.

Demo

MRKT-209-Artist-page-with-no-banner-has-awkward-black-gap.mp4

Additional Notes

  • The layout prop on ProfileHeader supports future non-overlay contexts.
  • ⚠️ On Mobile (artist with no banner): There is a bit of a gap between the profile header and the search bar. Doesn't look bad, but its a preference thing. We could use the useBetterMediaQuery hook to conditionally apply a different margin-top. TO BE CHECKED

@ITurres ITurres self-assigned this Dec 26, 2025
@ITurres ITurres added the good first issue Good for newcomers label Dec 26, 2025
@ITurres ITurres requested a review from a team as a code owner December 26, 2025 15:58
@github-actions
Copy link

Visit the studio preview URL for this PR 🚀 : https://925.artist.preview.newm.io/

@github-actions
Copy link

Visit the tools preview URL for this PR (updated for commit 5aecd79):
🚀 https://jlmpoatswlyg5imgqcq7hxrbiu0hgrwn.lambda-url.us-west-2.on.aws/

@github-actions
Copy link

Visit the wallet preview URL for this PR (updated for commit 5aecd79):
🚀 https://urot5ixfgnmlgjmhagwo44pua40vuuhh.lambda-url.us-west-2.on.aws/

@github-actions
Copy link

Visit the marketplace preview URL for this PR (updated for commit 5aecd79):
🚀 https://2tubmofk2jxzpjhzxpw36dgpvy0pgayf.lambda-url.us-west-2.on.aws/

Copy link
Contributor

@dmkirshon dmkirshon left a comment

Choose a reason for hiding this comment

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

Looks good overall. Just a single inquiry and should be good to merge after it's resolved!

@ITurres ITurres requested a review from dmkirshon January 6, 2026 16:58
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Visit the tools preview URL for this PR (updated for commit 3a9ebfa):
🚀 https://jlmpoatswlyg5imgqcq7hxrbiu0hgrwn.lambda-url.us-west-2.on.aws/

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Visit the marketplace preview URL for this PR (updated for commit 3a9ebfa):
🚀 https://2tubmofk2jxzpjhzxpw36dgpvy0pgayf.lambda-url.us-west-2.on.aws/

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Visit the wallet preview URL for this PR (updated for commit 3a9ebfa):
🚀 https://urot5ixfgnmlgjmhagwo44pua40vuuhh.lambda-url.us-west-2.on.aws/

Copy link
Contributor

@dmkirshon dmkirshon left a comment

Choose a reason for hiding this comment

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

Looks good now, thank you for the small update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants