surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.04k stars 74 forks source link

Reload App at error screen deletes all config on Windows 11 #209

Closed vitorTheDev closed 3 months ago

vitorTheDev commented 3 months ago

Describe the bug If any error occurs that causes the app to crash happens, you're shown a screen with the error and a "Reload Surrealist" button at the bottom of the screen. If you do that, at least for me, all your configuration like connections, queries etc... will get deleted and will be like you never even opened surrealist. Otherwise, it will send you to the welcome screen as if it was a brand new installation, even though it doesn't delete the configs, you're locked out of your connections unless you click the sandbox button or create a new connection.

To Reproduce Steps to reproduce the behavior:

  1. Cause an error
  2. Click on Reload Surrealist OR
  3. Create a connection
  4. Delete it

Expected behavior Should just reload the app without deleting configs or going back to the welcome screen for brand new installations.

Environment:

Platform: Desktop
OS: Windows_NT
Architecture: x86_64
WebView: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0
Version: 2.0.1
Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true
macjuul commented 3 months ago

I have updated the error screen so it will restart the application instead. It should have previously already not have been possible for the config to get corrupted, however this new error screen should be an improvement overall