Skip to content

fix: Fix welcome heading when publisher has no snaps#5079

Merged
bartaz merged 1 commit intomainfrom
fix-get-started
Apr 4, 2025
Merged

fix: Fix welcome heading when publisher has no snaps#5079
bartaz merged 1 commit intomainfrom
fix-get-started

Conversation

@bartaz
Copy link
Copy Markdown
Member

@bartaz bartaz commented Apr 4, 2025

Done

Currently if published has no snaps we show both "My published snaps" and "Get started" headings (floated next to one another).

image

This PR fixes this by hiding "My published snaps" heading if there are no snaps.

image

How to QA

Testing

  • This PR has tests
  • No testing required (explain why): visual changes only

@webteam-app
Copy link
Copy Markdown

@bartaz bartaz changed the title fix: Don't show bugged "My published snaps" heading when published do… fix: Fix welcome heading when publisher has no snaps Apr 4, 2025
@bartaz bartaz marked this pull request as ready for review April 4, 2025 10:50
@bartaz bartaz requested a review from Copilot April 4, 2025 10:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

static/js/publisher/components/PublishedSnapList/PublishedSnapList.tsx:82

  • Consider adding visual regression tests to verify the conditional rendering behavior of the EmptySnapList component when there are no snaps.
{isEmpty && <EmptySnapList />}

Copy link
Copy Markdown
Contributor

@steverydz steverydz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bartaz bartaz merged commit d6f3d17 into main Apr 4, 2025
11 checks passed
@bartaz bartaz deleted the fix-get-started branch April 4, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants