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: Added Links for all Charts in Preview & Published Mode #1816

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

noahonyejese
Copy link
Contributor

@noahonyejese noahonyejese commented Nov 6, 2024

This PR fixes Issue #1813

How to Test

  1. Go to this Link
  2. Publish, a tab layout see how "Created with..." is visible ✅
  3. Publish a Dashboard Layout with 1 Chart see how "Created with..." is in the Chart ✅
  4. Publish a Dashboard Layout with more than 1 Chart see how the "Created with..." is only at the bottom of the layout ✅

Copy link

vercel bot commented Nov 6, 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 Nov 6, 2024 0:05am

Copy link
Collaborator

@bprusinowski bprusinowski left a comment

Choose a reason for hiding this comment

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

Thanks @noahonyejese, I think we shouldn't show the Created with Visualize link during editing as is the case now on PROD 👀

Also, the How to test link doesn't work (I think you copied a /create link that points to a configurator state stored in your localStorage) – here one trick is to copy a link as shown in the screenshot that opens the editor mode for a given dataset 👍

Screenshot 2024-11-06 at 12 48 24

app/components/chart-preview.tsx Outdated Show resolved Hide resolved
app/components/chart-published.tsx Show resolved Hide resolved
@noahonyejese
Copy link
Contributor Author

@bprusinowski So not show at all for any chart during preview / edit mode ?

@bprusinowski
Copy link
Collaborator

Yes, the issue was only that the link was missing in case of published dashboards 👍 So in editing mode we never show the link, and in published mode we show it inside individual chart if it's not a dashboard or a dashboard with one chart, or outside of dashboard group for dashboards with more than one chart 😄

@bprusinowski
Copy link
Collaborator

I see that @sosiology mentioned in the issue that it's not shown in the editing mode, but I am pretty sure we have never shown it here, and that could lead to some issues – if you click it, you'd go out of the editing mode and go back to the home page? 🤔 And we also don't have it in the design, so I'd scope this only to published charts (or we can discuss together 👍)

Copy link
Collaborator

@bprusinowski bprusinowski left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 💯

Btw, I noticed that you used a deployment link based on a commit in How to test instructions (https://visualization-tool-azw7yjcr8-ixt1.vercel.app/) – to make sure it stays up to date, you should use a deployment link based on a PR (https://visualization-tool-git-fix-created-reference-dashboards-ixt1.vercel.app/en) that updates automatically (I tried to test again after the most recent commit, but the deployment was not updated) :) This might be important for other people that test after some time 👍

Screenshot 2024-11-06 at 13 11 14

@noahonyejese
Copy link
Contributor Author

LGTM, thanks! 💯

Btw, I noticed that you used a deployment link based on a commit in How to test instructions (https://visualization-tool-azw7yjcr8-ixt1.vercel.app/) – to make sure it stays up to date, you should use a deployment link based on a PR (https://visualization-tool-git-fix-created-reference-dashboards-ixt1.vercel.app/en) that updates automatically (I tried to test again after the most recent commit, but the deployment was not updated) :) This might be important for other people that test after some time 👍

Screenshot 2024-11-06 at 13 11 14

oh damn, thanks a lot!

@noahonyejese noahonyejese merged commit 5fc01c0 into main Nov 6, 2024
5 of 6 checks passed
@noahonyejese noahonyejese deleted the fix/created-reference-dashboards branch November 6, 2024 13:47
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.

2 participants