108 Commits

Author SHA1 Message Date
David Kocik
3c377a435e SPE-2567: Deleting cookies with counter
Timer to prevent fail in asynchronous deletion
2025-02-14 12:04:45 +01:00
Lukas Matena
33889d8e50 Remove sleep in webview dialog (related to SPE-2567) 2024-12-18 14:17:30 +01:00
Lukas Matena
765ddd7594 Sleep before closing dialog.
+ fix of double loading first url.
2024-12-18 12:57:48 +01:00
David Kocik
77bb4945f2 Revert "SPE-2567: Login dialog starts with loading page to delete cookies before first request."
This reverts commit 338a961bd3d173df5e0f458f489ce79083a31336.
2024-12-13 15:21:27 +01:00
David Kocik
de32b37a84 SPE-2544: Refactoring of trimming repo prefix 2024-12-09 17:32:46 +01:00
David Kocik
338a961bd3 SPE-2567: Login dialog starts with loading page to delete cookies before first request. 2024-12-07 09:26:29 +01:00
David Kocik
c8cac7f678 SPE-2575:: Do not allow busy cursor logic in webview on linux
Allow changes of cursor only when panel is shown.
2024-12-02 12:13:59 +01:00
David Kocik
c70cb1ac15 Fix of asserts 2024-11-25 12:19:12 +01:00
David Kocik
3bdaef4910 SPE-2561: Printables Print dialog
Fix of opening webview dialog from webview panel

CLOSE_DIALOG connect action

Login on logged out Print request

Register CLOSE_DIALOG callback.

refactoring
2024-11-20 09:43:59 +01:00
David Kocik
ce991e6632 SPE-2551: PrusaConnect_v2 api use 2024-11-11 16:12:50 +01:00
David Kocik
85094c5c19 SPE-2515: Improved reload functionality
Fix of script message after error with credentials /api key

Reload improvements

additional webview checks

Reload webview on F5 for mac / linux

Rename button

Fix of loading error page
2024-11-11 16:12:50 +01:00
David Kocik
9f42394629 SPE-2512: Create Webview only when it is being shown
Destroy webview on tab close
2024-11-11 16:12:50 +01:00
David Kocik
40458c6649 SPE-2507: Resize upload dialogs 2024-11-11 16:12:50 +01:00
David Kocik
da49e8edfb SPE-2535: Improvments of Printables events
Missing include

Printables event Require login

Improved error page

Prepare opening Printables to Connect upload dialog

debug fix

Another debug fix

prevent reload on load request

Load new url already in on_show

Improved javascript notification
2024-11-11 16:12:50 +01:00
David Kocik
93b0adf964 SPE-2507: Resize Connect upload dialog 2024-11-11 16:12:50 +01:00
David Kocik
7ffa854ec2 SPE-2535: Handling Printables events
Fix of loading url and deleting cookies

Handling Printables events: download and slice

Link from notification to Printables tab

Webview download notification

cleanup

No reload button on loading screen
2024-11-11 16:12:50 +01:00
David Kocik
2d41c29505 SPE-2507: Connect upload dialog size 2024-11-11 16:12:49 +01:00
David Kocik
20af632115 SPE-2515: Reload button inside html pages and button in menu 2024-11-11 16:12:49 +01:00
David Kocik
1040332c87 SPE-2468: Printables WebView class
read address and download model
Printables as pernament tab
webview debug panel
adding token to request header
Logout to Printables
Correct user-agent
Receiving printables events
Improved refreshing of token to printables
User settings to printables url
merge changes
Changed login to Printables during runtime
Logging in plater fix
2024-11-11 16:12:49 +01:00
Lukas Matena
68f8925461 Improve startup of ConfigWizard (SPE-2457) 2024-10-02 14:27:55 +02:00
David Kocik
891b6a4816 Notification with link to connect
hypertext in upload progress notification

load default url if printer page fails
2024-10-02 14:20:12 +02:00
Jan Bartipan
c42efdfef9 ConnectWebViewPanel: fixed login-logout-login issue (removed stub for message handler when calling WebView::RemoveAllUserScripts()), current implementation sends message to C++ runtime to invoke login flow with up-to-date token from C++ runtime 2024-09-11 22:30:29 +02:00
David Kocik
77312ec513 Changed values in outgoing json for upload. From single values to arrays. 2024-09-11 21:15:52 +02:00
David Kocik
097ee2e85d SPE 2450: Delete cookies Mac part
+ fixes of other parts
2024-09-05 16:12:04 +02:00
David Kocik
6f3b22de4c SPE 2450: Delete cookies after login to prevent remembering login info
Windows only part
2024-09-05 16:12:04 +02:00
Jan Bařtipán
3d130ceb76 Connect login: updating also user script when refreshed access token arives, this should fix passing old token on page reload 2024-09-03 12:29:09 +02:00
Jan Bartipan
f9164da380 ConnectWebViewPanel: fixed segfault on quit (accessing already deleted plater in on_activate handler), WebView scripts can now use _prusaSlicer.postMessage({action: 'LOG', ...}) to write logs into OS console 2024-09-03 12:29:09 +02:00
Jan Bartipan
74ab2d24b7 ConnectWebViewPanel::get_login_script for refresh wrapped in check if _prusaSlicer_initLogin function (defined by AddUserScript) is already defined (i.e. handle gracefully situation when token refresh happen just before the UserScript gets executed) 2024-09-03 12:29:09 +02:00
Jan Bařtipán
54baccd6fc Http: added support for retry with exponentail backoff, UserAccountCommunication::on_active triggered from app instrad of panel to correctly handle situation when multiple app windows opened, ConnectWebView: refactored the login script to prevent using old token 2024-09-03 12:29:09 +02:00
Jan Bartipan
ac859d711c Connect token refresh on wake up from sleep: also resend config to make sure the token is loaded into frontend 2024-09-03 12:29:09 +02:00
Jan Bařtipán
6a7ac53335 Connect Login Refresh: UserAccountComm: refresh token on wake; WebViewDialog: Connect login retry with exp backoff implemented, added a bit more logging 2024-09-03 12:29:09 +02:00
David Kocik
5871ad2e51 Open external browser in config wizard. 2024-08-29 14:56:20 +02:00
David Kocik
2bde97fb11 Keep login dialog opened while opening 3rd vendor in external browser. 2024-08-29 14:56:20 +02:00
David Kocik
3e6b4ba443 Fix of login in internal browser 2024-08-29 14:56:20 +02:00
David Kocik
23cc50c9f5 fix of opening external browser 2024-08-29 14:56:19 +02:00
David Kocik
47d793ffb3 Open login in browser only for external services 2024-08-29 14:56:19 +02:00
David Kocik
eb7f27c83d Serialize parameters from json var to config opt format
improved config options filtering

changed outgoing json for upload to connect
2024-08-29 10:36:42 +02:00
David Kocik
a627c4c64e full config in json for upload 2024-08-29 10:36:42 +02:00
David Kocik
a30961f59a Rename paramters in jsons and add FilamentConfig. 2024-08-29 10:36:42 +02:00
David Kocik
3ff2b179b9 filament abrasive option in outgoing json for upload to connect 2024-08-29 10:36:42 +02:00
David Kocik
d384c5a13f Copy all printer config options to outcoming json for selecting printer. 2024-08-29 10:36:42 +02:00
David Kocik
756a76a773 repo_prefix parameter and removing prefix before send to connect.
Change printer_model in full config before applying to print

printer_model prefix handling when showing online printers in sidebar

Select printer from connect by nozzle diameter (instead of pritner_variant) and by additional config options.

+ Moved standalone functions to UserAccountUtils

Set as current without repo prefix

when selecting preset with prefix, mind visible presets.

prefer visible printers for selecting

fix of selecting SLA printer

Added prusalink for prefixed printer_model
2024-08-29 10:36:42 +02:00
Jan Bařtipán
38939b0703 Online service configuration: fixed URL in connect select pritner 2024-08-09 10:07:47 +02:00
Jan Bařtipán
6eca12a1ed Online service configuration can be now changed via env variables, added support for turning webdev tools via command line option 2024-08-09 10:07:47 +02:00
Jan Bařtipán
7fb3638d46 PrinterWebViewPanel: fixed passing API Key when uploading gcode, fixed passing API key via session storage, improved cleaning up credential infra on printer change (removing API key from storage or deregistering delegate/event for HTTP digest auth) 2024-08-09 09:54:35 +02:00
Jan Bařtipán
c953dd9eea WebView: handling authentication challenge (passing user credentials) for OSX (working) and Linux (WIP) 2024-08-09 09:54:35 +02:00
Martin Šach
96e3e77fef Prepare fe for include optimization.
- Add pragmas to keep necessary headers with symbols not explicitly
stated in the file.
- Use include paths that IWYU understands.
2024-07-08 15:37:02 +02:00
David Kocik
3ad90846c7 NozzleDiameter parameter for upload fix. 2024-06-26 17:20:48 +02:00
David Kocik
1689918a3e DPIDialog as base class WebViewDialog. 2024-06-26 17:17:51 +02:00
David Kocik
c29e70d429 Resize login dialog 2024-06-26 17:17:51 +02:00