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

feat: add insight and remove insight from dashoard #27138

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

k11kirky
Copy link
Contributor

@k11kirky k11kirky commented Dec 23, 2024

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.

Screenshot 2024-12-23 at 10 16 59 AM

@k11kirky k11kirky requested a review from a team December 23, 2024 18:17
Copy link
Contributor

github-actions bot commented Dec 23, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

Copy link
Contributor

@thmsobrmlr thmsobrmlr left a 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> */}
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover

Copy link
Contributor

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?

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