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: Better visibility for dashboard alerts #316

Merged
merged 2 commits into from Mar 2, 2024
Merged

Conversation

svc-shorpo
Copy link
Contributor

Screenshot 2024-02-20 at 12 50 36 AM

When clicking Add alert button it will open the edit modal with Enable alert checkbox on

Copy link

changeset-bot bot commented Feb 19, 2024

⚠️ No Changeset found

Latest commit: c0a1852

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -697,6 +727,10 @@ export default function DashboardPage() {
chart={chart}
dateRange={searchedTimeRange}
onEditClick={() => setEditedChart(chart)}
onAddAlertClick={() => {
setIsAddingAlert(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious if it would've been possible instead of having a boolean here to set the alert property to either the actual chart alert or DEFAULT_ALERT at this level instead of needing to depend on a useEffect? That feels a bit cleaner, but maybe there's some details that make it more annoying/harder to implement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a good point. iirc couldn't insert DEFAULT_ALERT to alert property as they're not type compatible (missing fields like slack webhook url). i'm going to clean up form state in a separate pr

@kodiakhq kodiakhq bot merged commit 6b761dd into main Mar 2, 2024
4 checks passed
@kodiakhq kodiakhq bot deleted the sr/alerts-vis branch March 2, 2024 21:44
colehpage pushed a commit to colehpage/hyperdx that referenced this pull request Mar 7, 2024
![Screenshot 2024-02-20 at 12 50 36 AM](https://github.com/hyperdxio/hyperdx/assets/149748269/e665b523-a969-40ce-a9e7-559bf2bb29bc)

When clicking `Add alert` button it will open the edit modal with `Enable alert` checkbox on
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.

None yet

2 participants