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

kiosk printing #1034

Merged
merged 2 commits into from
Oct 23, 2024
Merged

kiosk printing #1034

merged 2 commits into from
Oct 23, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Oct 23, 2024

Important

Add kiosk printing support by introducing --kiosk-printing argument and removing unused code.

  • Behavior:
    • Add --kiosk-printing argument to build_browser_args() in browser_factory.py to enable automatic printing.
  • Code Cleanup:
    • Remove unused DISABLE_PRINTER_WITH_FLAG JavaScript snippet from page.py.
    • Remove unused PDF download logic from handle_click_to_download_file_action() in handler.py.

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

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.

❌ Changes requested. Reviewed everything up to cae4b90 in 50 seconds

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

Workflow ID: wflow_Yw2adooBWEhVj6wl


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -28,16 +28,6 @@ def load_js_script() -> str:
raise e
Copy link
Contributor

Choose a reason for hiding this comment

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

The get_print_triggered and reset_print_triggered methods reference window.__printTriggered, which is no longer set due to the removal of the DISABLE_PRINTER_WITH_FLAG script. This could lead to logical errors if these methods are used.

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 7c1274e in 25 seconds

More details
  • Looked at 61 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/utils/page.py:118
  • Draft comment:
    The get_print_triggered and reset_print_triggered methods related to the DISABLE_PRINTER_WITH_FLAG snippet should be removed as they are unused. This applies to the entire SkyvernFrame class if these methods are the only ones using the snippet.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is about methods that were removed in the diff, so it is relevant to the changes. However, the part about the SkyvernFrame class is speculative and not directly related to the change. The comment should be partially kept, focusing only on the removed methods.
    I might be overanalyzing the speculative part of the comment. The entire comment could be seen as relevant since it addresses the removed methods.
    The speculative part about the SkyvernFrame class is not necessary for understanding the change made in the diff. The focus should be on the removed methods.
    Keep the part of the comment that addresses the removal of the get_print_triggered and reset_print_triggered methods, but remove the speculative part about the SkyvernFrame class.

Workflow ID: wflow_J1obZkXyti9Zw4Sb


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

@LawyZheng LawyZheng merged commit 3f1a9b3 into main Oct 23, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/kiosk-printing branch October 23, 2024 15:45
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.

1 participant