-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add insight and remove insight from dashoard #27138
base: master
Are you sure you want to change the base?
Conversation
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
…Hog/posthog into feat/add-insight-to-dashboard-modal
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.
Hey @k11kirky, awesome job getting this started - seriously, this is such a great addition! It's kind of wild we didn’t have this feature already.
A few remarks from my end:
- Pagination in the modal does not work.
- It would be great to have an "in progress" state that disables the individual buttons, while an insight is added or removed.
- I know our UI is quite inconsistent across places, but it would be great if we'd get more consistent eventually (i.e. doesn't need to be addressed here, just wanted to share). In particular it would be nice to be closer to the "Add insight to dashboard" modal visually, e.g.
- A secondary "Add to dashboard" button instead of the primary "+".
- "Close" and "Add new insight" buttons in footer.
- Plain view vs table.
</> | ||
} | ||
> | ||
{/* <p>Add insight to dashboard {dashboard?.name}</p> */} |
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.
leftover
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.
This file seems to contain a lot of duplication from the saved insights page. Can we dry up the code and at least import all the metadata from there?
Problem
You cannot add existing insights to a dashboard from the dashboard screen. This creates a confusing UX and likely duplicate created insights.
Changes
When you click add insight from the dashboard a new modal will pop up allowing you to select an exisitng insight or create a new one.