Commit graph

192 commits

Author SHA1 Message Date
Pat Hartl
2ddcd75c19 Bind import UI events 2025-12-01 01:05:32 -06:00
Pat Hartl
54ace5d141 Map relational game data, fix individual game import 2025-11-29 19:31:43 -06:00
Pat Hartl
6dfc0906ac Refactor launcher library importing, manifests
Switched the library importing in the launcher to work based on a queue. As a new game is added to the queue, it should find any related data and also add it to the queue. This should result in an easier to maintain importer while reducing the load on the launcher's DAL. This may result in more RAM usage while importing. Local manifests have also been refactored to match manifests in import/export LCX files, removing the old manifest format. This is a large breaking change that will probably break existing game installations. A migration will probably have to be created.
2025-11-29 18:24:27 -06:00
Pat Hartl
a281ef473e Fix script debugging in launcher, fix cmdlet registration 2025-11-26 22:38:04 -06:00
Pat Hartl
e6c12b4809 Refactor script debugging
Instead of providing delegates to a ScriptClient singleton, script execution now relies on dependency injection for debugging. This can be handled by registering an implementation of IScriptDebugger. Multiple script debuggers are supported. These changes required the creation of a PowerShellScriptFactory to handle DI of the service provider to the script.

In the case of LANCommander, "debugging" scripts really just gives an opportunity for the application to break after a script's execution and provide a poor-man's pty. This could be expanded upon in the future to hook directly into PowerShell's debugging functionality, but would require a substantial refactor to script execution.
2025-11-26 01:09:52 -06:00
Pat Hartl
d6577564db Move launcher settings to separate assembly 2025-11-23 20:53:45 -06:00
Pat Hartl
49c4506478 Smoother load from Depot -> Library 2025-11-21 19:06:26 -06:00
Pat Hartl
24414f7994 Avoid inaccessible game/server from crashing launcher when selecting game 2025-11-21 18:20:23 -06:00
Pat Hartl
fe9d1e72c1 Use single footer in main app window between routes 2025-11-21 18:20:01 -06:00
Pat Hartl
256b46e823 Fix storage of authentication token 2025-11-19 00:36:03 -06:00
Pat Hartl
4ffc6faf88 Force full load on route redirection 2025-11-13 18:17:30 -06:00
Pat Hartl
7b84b5da13 Only download profile when logging in. Only process login if token is invalid 2025-11-09 15:11:10 -06:00
Pat Hartl
94db43eeba Provide default route for windows 2025-11-09 15:00:46 -06:00
Pat Hartl
5fa665f5ed Merge branch 'main' into development
# Conflicts:
#	LANCommander.Launcher.Services/AuthenticationService.cs
#	LANCommander.Launcher/UI/App.Chat.razor
#	LANCommander.Launcher/UI/App.Main.razor
#	LANCommander.Launcher/UI/Pages/Settings/Index.razor
2025-11-09 14:33:07 -06:00
Pat Hartl
0917437dec Rely on routing for window content 2025-11-09 14:31:41 -06:00
Pat Hartl
acb91f8484 Fix login/logout UX
- Moves authentication back to a /Authenticate page route
- Flatten the namespaces of page components
- Implement top-level layouts as windows
- Move handling of redirecting to /Authenticate with component inside of an AuthenticatedLayout
- Use individiual injected services instead of SDK.Client
- Wipe out tokens on logout
- Process logout even if server can't be reached
2025-11-07 20:19:13 -06:00
Pat Hartl
624f53157e Remove unused 2025-11-07 19:09:43 -06:00
Pat Hartl
31cc9742e0 Redirect to login on auth failure 2025-11-07 19:09:32 -06:00
Pat Hartl
5f95f3c9ad Use ConnectionClient, add authentication page 2025-11-07 00:26:21 -06:00
Pat Hartl
7a562cdb10 Fix authentication limbo in launcher 2025-11-03 23:24:47 -06:00
Pat Hartl
ede0e814a5 Change how windows are created. Refactor SignalR client to be named subscriber. Call ChatClient static methods on response from SignalR chat client. Fix dependency loop with chat. 2025-10-25 22:00:50 -05:00
Pat Hartl
50401469c4 Notify progress on dispatcher thread 2025-10-22 00:07:48 -05:00
Pat Hartl
30a1683c1b Organize components 2025-10-15 21:47:28 -05:00
Pat Hartl
d85e716bbb Add cancel install to launcher
Fixes #293
2025-10-15 21:26:40 -05:00
Pat Hartl
2f969a196d Add ability to browse files on Linux/macOS
Fixes #349
2025-10-15 20:21:54 -05:00
Pat Hartl
694b8b9842 Use SettingsProvider when getting any settings
SettingsProvider uses IOptionsMonitor to maintain the current value of settings. This gets updates on YML file changes and since it's a single instance (instead of injecting IOptions<Settings>), consumers always have the latest values.
2025-10-06 20:29:34 -05:00
Pat Hartl
2b30158764 Implement debounce to avoid thrashing disk on settings update 2025-10-06 19:25:24 -05:00
Pat Hartl
e7653cb33e Clean up selected library item main view
The library view was constructed to be a monolithic component. It has been split out to multiple components, with the potential for expansion into other library items types in the future (other than just a game). The handler for failed installs has also been moved to the queue.
2025-10-05 19:30:32 -05:00
Pat Hartl
f5cdea1afc Handle connection state based on SignalR connection state 2025-10-05 17:52:37 -05:00
Pat Hartl
382a270b03 Simplify connection state management 2025-10-05 17:13:47 -05:00
Pat Hartl
5cab1f3618 Remove old SettingsService, replace with Options pattern 2025-09-29 19:49:09 -05:00
Pat Hartl
aaf65fcf09 Runnable launcher using new client 2025-09-27 16:39:54 -05:00
Pat Hartl
d875377f15 Rename SDK services -> clients, implement new configuration, use dependency injection for clients 2025-09-24 20:58:23 -05:00
Pat Hartl
c3d300ee88 Fix safe image display on depot game details 2025-09-06 13:33:14 -05:00
Pat Hartl
c223b3756c Improve import speed by using transactions 2025-09-05 02:00:59 -05:00
Pat Hartl
5a32bbf890 Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
Bastien Vidé
5b7d24584f Corrected client-side autoupdater and server-side CheckForUpdate route 2025-08-12 19:04:19 +02:00
Pat Hartl
8c6cc7fcd1 Display depot images safely
Images in the depot should show a loading indicator, then display the image. If the image fails to load, it should fallback safely without showing a broken image icon.
2025-08-07 17:46:15 -05:00
Pat Hartl
8d813bde05 Fix depot items not loading under some circumstances 2025-08-07 02:26:31 -05:00
Pat Hartl
6dc9ddbc51 Fix install for games that don't have addons 2025-08-03 18:32:36 -05:00
Pat Hartl
640f476986
Merge pull request #291 from RattleSN4K3/feature/LibraryGameModifySelective
Library changes to addon installation
2025-08-03 14:03:12 -05:00
Pat Hartl
a9660f7ebe Merge branch 'feature/ReworkOfflineMode' of https://github.com/RattleSN4K3/LANCommander into RattleSN4K3-feature/ReworkOfflineMode
# Conflicts:
#	LANCommander.Launcher/UI/Authenticate/Components/LoginForm.razor
#	LANCommander.Launcher/UI/Authenticate/Components/RegistrationForm.razor
#	LANCommander.Launcher/UI/Components/LibraryItemContextMenu.razor
2025-08-03 00:55:27 -05:00
Pat Hartl
c37ccd494c
Merge pull request #316 from RattleSN4K3/feature/ReworkLoginMessaging
Error messaging for login/register via Launcher
2025-06-29 21:15:11 -05:00
RattleSN4K3
79d161769e Proper error messaging for login/register, utilizing ErrorResponse 2025-06-22 01:36:17 +02:00
RattleSN4K3
f87fc87f7e Stop timer events ignoring connection timeouts causing early connection-lost + show retry count in toast message 2025-06-16 01:36:39 +02:00
RattleSN4K3
7822a92612 Handle auth state in auth form, forward to specific state based on connection state 2025-06-15 23:39:31 +02:00
RattleSN4K3
30bf9be1aa Import library on auto-login on launcher startup 2025-06-15 23:39:30 +02:00
RattleSN4K3
2099c702b4 Fix attempting to change server address on losing focus, only on change 2025-06-15 23:39:30 +02:00
RattleSN4K3
e13acbe42d Fixed re-starting server discovery after failed connection not working 2025-06-15 23:39:29 +02:00
RattleSN4K3
7707f4797f Don't show reconnect action in top-bar when no auth token is existent 2025-06-15 23:39:29 +02:00