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

fix: [ No title ] single charts #1694

Merged
merged 6 commits into from
Aug 27, 2024
Merged

fix: [ No title ] single charts #1694

merged 6 commits into from
Aug 27, 2024

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Aug 27, 2024

Fixes #1634

This PR fixes a problem with chart titles not being retrieved in the user profile for single charts. The problem was that we used a nullish coalescing operator operator (??) instead of a regular or (||), when layout title was an empty string by default. This led to actual chart title not being even considered to be displayed.

I've also added new transition strings for "single" and "dashboard" texts in user profile, and fixed rename dialog in a way that now it:

  • updates chart title in case of single charts,
  • updates layout title in case of multi-charts.

How to test

This PR can be tested once merged and deployed to TEST by renaming a single chart.

@bprusinowski bprusinowski requested a review from ptbrowne as a code owner August 27, 2024 12:04
Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 1:01pm

Copy link
Contributor

@noahonyejese noahonyejese left a comment

Choose a reason for hiding this comment

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

Makes sense using ?? Should be used w/ caution anyway!

Good that you changed "d" to chartView!

@bprusinowski bprusinowski marked this pull request as ready for review August 27, 2024 12:43
@bprusinowski bprusinowski merged commit a24b085 into main Aug 27, 2024
5 of 6 checks passed
@bprusinowski bprusinowski deleted the fix/not-retrieved-title branch August 27, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✅ Name is not saved in Draft of a Visualization, even though the chart has a title
2 participants