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: chart interactivity: click points on the graph to select the corresponding jobs #3851

Merged
merged 5 commits into from
May 30, 2024

Conversation

wendrul
Copy link
Contributor

@wendrul wendrul commented May 30, 2024

image

  • change selectedId to be an array selectedIds. When clicking, multiple rows can be selected: ask the user the choose on of the highlighted jobs

🚀 This description was created by Ellipsis for commit 5c7b8e9

Summary:

Enhanced the RunChart.svelte component to support interactive multiple job selections with dynamic visual feedback and updated interaction handling.

Key points:

  • Updated selectedId to selectedIds allowing multiple selections.
  • Enhanced RunChart.svelte to support multiple job selections by clicking on graph points.
  • Modified backgroundColor in datasets to dynamically change based on selection.
  • Added highlightSelectedPoints function to handle point highlighting and dynamically change point colors based on selection.
  • Adjusted onClick event to update selectedIds based on user interaction.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 87bdace in 1 minute and 43 seconds

More details
  • Looked at 286 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/src/lib/components/RunChart.svelte:144
  • Draft comment:
    The highlightSelectedPoints function modifies the data object directly, which might not trigger a re-render in Svelte. Consider using an assignment to data or a specific reactive statement to ensure UI updates.
  • Reason this comment was not posted:
    Confidence of 30% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_ouYtsevyIcu768NV


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

cloudflare-workers-and-pages bot commented May 30, 2024

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5c7b8e9
Status: ✅  Deploy successful!
Preview URL: https://6941cb38.windmill.pages.dev
Branch Preview URL: https://win-166-chart-interactivity.windmill.pages.dev

View logs

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on b4d7590 in 6 minutes and 25 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_WVzPJzsSsyhiie5K


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 5c7b8e9 in 5 minutes and 18 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_lfi3hT7Go4MrHTtR


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@rubenfiszel rubenfiszel merged commit 5156e29 into main May 30, 2024
3 checks passed
@rubenfiszel rubenfiszel deleted the win-166-chart-interactivity-select-on-point-click branch May 30, 2024 17:26
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants