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: Duplicate chart #109

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

svc-shorpo
Copy link
Contributor

@svc-shorpo svc-shorpo commented Nov 17, 2023

  • Add duplicate chart button
  • Add confirm modal for delete chart and delete dashboard actions

docker compose -f docker-compose.dev.yml up -d --no-deps --build app after pulling this branch

Screen.Recording.2023-11-16.at.7.19.24.PM.mov

Copy link

changeset-bot bot commented Nov 17, 2023

🦋 Changeset detected

Latest commit: a767ad9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Minor
@hyperdx/api Minor

Not sure what this means? Click here to learn what changesets are.

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

@svc-shorpo svc-shorpo force-pushed the duplicate-chart branch 2 times, most recently from 0867926 to ceae882 Compare November 17, 2023 02:24
@@ -31,6 +31,7 @@
"esbuild": "^0.14.47",
"fuse.js": "^6.6.2",
"immer": "^9.0.21",
"jotai": "^2.5.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

ah it finally made its way into the project... @joelseq I think you'll enjoy this 😂

}, [confirm, setConfirm]);

return confirm ? (
<Modal show onHide={handleClose}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally I'd prefer a tooltip next to the action button but can see how this is faster to implement rn


return React.useCallback(
async (message: string, confirmLabel?: string): Promise<boolean> => {
return new Promise(resolve => {
Copy link
Contributor

Choose a reason for hiding this comment

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

new pattern learned for me today 🤯

@kodiakhq kodiakhq bot merged commit fe41b15 into hyperdxio:main Nov 17, 2023
3 checks passed
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