Skip to content

fix click outside popover fullscreen #5631

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

diegoimbert
Copy link
Contributor

@diegoimbert diegoimbert commented Apr 17, 2025

Important

Fix Popover.svelte to exit fullscreen mode before closing on outside click.

  • Behavior:
    • In Popover.svelte, modify on:pointerdown_outside to exit fullscreen mode before closing the popover.
    • Handles case where fullScreen is true by setting it to false instead of closing immediately.

This description was created by Ellipsis for f1e89c4. It will automatically update as commits are pushed.

Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Diego Imbert seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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 f1e89c4 in 32 seconds

More details
  • Looked at 14 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. frontend/src/lib/components/meltComponents/Popover.svelte:117
  • Draft comment:
    In the pointerdown_outside handler, the diff now checks if fullScreen is true and only toggles it off rather than closing the popover. Ensure that this behavior is intended (i.e., click outside should exit fullscreen mode without closing the popover). Consider adding a short inline comment to document this design decision.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 50% <= threshold 50%
    The comment is asking the author to ensure that the behavior is intended, which violates the rules. However, it also suggests adding an inline comment to document the design decision, which is a valid suggestion. The comment is partially useful, but the part about ensuring the behavior is intended should be removed.
2. frontend/src/lib/components/meltComponents/Popover.svelte:117
  • Draft comment:
    Ensure that toggling off fullscreen (setting fullScreen = false) on pointerdown outside is the intended UX—this leaves the popover open in non-fullscreen mode. Consider adding braces or a clarifying comment for readability.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 50% <= threshold 50%
    The comment is asking the author to confirm the intended UX behavior when toggling fullscreen off, which is not allowed. However, it also suggests adding braces or a clarifying comment for readability, which is a valid suggestion. The comment is partially useful.

Workflow ID: wflow_5OGJq7hw1Yw15DGN


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

Copy link

cloudflare-workers-and-pages bot commented Apr 17, 2025

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0491bd
Status: ✅  Deploy successful!
Preview URL: https://fb4aeeb2.windmill.pages.dev
Branch Preview URL: https://di-fix-popover-fullscreen-cl.windmill.pages.dev

View logs

@rubenfiszel rubenfiszel merged commit 0811457 into main Apr 17, 2025
4 of 8 checks passed
@rubenfiszel rubenfiszel deleted the di/fix-popover-fullscreen-click-outside branch April 17, 2025 07:33
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
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