Commit graph

34 commits

Author SHA1 Message Date
Pat Hartl
45aaa0ea8d Simplify game addition w/ metadata lookup
Adding a game now immediately provides a dialog to lookup a game through metadata providers. Selecting a result will create the game with the populated metadata. An additional option of automatically downloading art (icon, cover, background, logo) is also provided, though may be inaccurate and completely up to the results of the provider.
2026-06-01 02:15:53 -05:00
Pat Hartl
1191226dc0 Hide standalone expansions/mods from nested games 2026-05-29 02:37:08 -05:00
Pat Hartl
4965d2019b Fix redistributable/tool importing 2026-05-24 18:51:58 -05:00
Pat Hartl
2bdd1ed261 Fix alignment of action buttons in list pages 2026-02-08 16:09:51 -06:00
Pat Hartl
da68c79991 Reload table after import 2025-12-05 16:28:39 -06:00
Pat Hartl
786204f49d Fix redistributables index 2025-08-01 02:35:23 -05:00
RattleSN4K3
18823f6e9b Fix calling OnOk and OnCancel after import dialog 2025-06-22 21:23:03 +02:00
Pat Hartl
5898de8a03 Include games in asset list that are mods/expansions, but have no base game ID
Fixes #285
2025-05-25 21:13:10 -05:00
Pat Hartl
1e7578772f Put addons (mods/expansions) nested under base game in list 2025-05-23 02:17:06 -05:00
Pat Hartl
74f2f67a99 Render times in UI as local time zone 2025-03-17 02:02:17 -05:00
Pat Hartl
af08645396 Remove use of DatabaseServiceFactory, update service dependency injection 2025-02-01 02:21:34 -06:00
Pat Hartl
4ef1c7be21 Optional column picker, working search, show totals, pagination options 2025-01-28 18:23:49 -06:00
Pat Hartl
0719380fab Mark some columns as hidden by default 2025-01-28 00:46:37 -06:00
Pat Hartl
84ec503fdc Fix archive editor uploading 2025-01-21 20:43:28 -06:00
Pat Hartl
0d87296689 Fix DataTable default sort, search 2025-01-21 18:48:01 -06:00
Pat Hartl
dc4a49d71a Convert more tables to data tables 2025-01-20 01:23:07 -06:00
Pat Hartl
c1efa15965 Simplified datatable 2025-01-16 00:35:01 -06:00
Pat Hartl
079a40eaa5 Remove nested games on game list 2025-01-15 18:54:23 -06:00
Pat Hartl
db5bd719b1 Fix importer styling, fix import storage location 2025-01-08 20:01:00 -06:00
Pat Hartl
61d1a10d74 Refactor import dialog, add storage location selector 2025-01-08 17:10:03 -06:00
Pat Hartl
5eba58c53c Toggle column visibility using CSS 2024-12-14 20:11:59 -06:00
Pat Hartl
8a3132b872 Add DataTable component 2024-12-12 17:35:52 -06:00
Pat Hartl
8ae0b39925 Fix game counts 2024-11-27 21:08:58 -06:00
Pat Hartl
6c75c260f4 Remove reference to unused component base 2024-11-25 22:36:09 -06:00
Pat Hartl
5de9eccce1 Adjust Blazor server-side to pull data with new context 2024-11-25 22:29:56 -06:00
Pat Hartl
1dda11dd0a Switch dependency injection for services that access database 2024-11-22 02:04:04 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
4a7277cc7f Change game table size to small 2024-11-07 02:06:54 -06:00
Pat Hartl
cdd8f31f93 Use cached results for indexes 2024-10-30 18:14:06 -05:00
Pat Hartl
2805f34449 WIP fix for MySQL connection concurrency issues
This is a large commit. There are a number of things that this commit does to try to fix various issues that were occurring when the database provider was set to MySQL:
- The DAL `Repository` has been completely refactored to follow best practices. The repository is now being injected into services instead of the database context itself. This allows the DI to handle the repository's lifetime instead of creating a new repository for every transaction and sharing the context across repositories. As part of these changes, there is no more allowed usage of `IQueryable` and all service/repository methods must actually execute database queries before their return. This is to ensure that the context does not stay open longer than it needs to. Abusing `IQueryable`s by tossing them into Blazor components seems to be a big no-no.
- Some deletion behaviors on relationships have been tweaked as MySQL wasn't able to apply migrations with behaviors that were contradictory.
- A `ConnectionInterceptor` was added to try to keep track of `DatabaseContext` lifetimes. This is really only for debugging and should be put into `#if DEBUG` regions. This helped identify some potential issues where some contexts were basically never closing, causing the MySQL connector to not function.
- Docs for generating migrations have been updated to reflect the addition of being able to specify the database provider and connection string when adding a migration, avoiding the need to edit `Settings.yml`
- The application can now be put into a pause state on startup by adding the `--debugger` argument when used from the command line. When a debugger is attached, it resumes execution.
- The application can now log to Seq when using debug build
- Service lifetime on `DatabaseContext` has switched to transient. This may be reverted in the future.
- Lazy loading has been disabled for debugging purposes. It didn't directly help the concurrency issues, but it needs to be tested individually to be re-enabled.
- All usage of `UserManager`, `RoleManager`, and `SignInManager` have been removed from all controllers, pages, and Blazor components. Functionality has been moved to `UserService` and `RoleService`. This might have done the most amount of help, but could probably be improved upon in the future by not relying on them and instead having our own implementation.
- Application startup migrations and server autostarts have been disabled temporarily. There might be an issue of `DatabaseContext` lifetimes that spawn from this.
2024-10-13 20:42:45 -05:00
Pat Hartl
adadc2a419 Show orphaned games in game list 2024-09-19 18:42:11 -05:00
Pat Hartl
d38651469d Nest dependent mods/expansions under parent 2024-09-19 18:40:05 -05:00
Pat Hartl
131479277b Consolidate enums 2024-08-12 00:15:16 -05:00
Pat Hartl
cb061e09c5 Rename server project 2024-08-04 18:44:33 -05:00
Renamed from LANCommander/UI/Pages/Games/Index.razor (Browse further)