Files
defnotken 835a0a637d
All checks were successful
Tag and Release Lightless / tag-and-release (push) Successful in 2m27s
2.0.0 (#92)
2.0.0 Changes:

- Reworked shell finder UI with compact or list view with profile tags showing with the listing, allowing moderators to broadcast the syncshell as well to have it be used more.
- Reworked user list in syncshell admin screen to have filter visible and moved away from table to its own thing, allowing to copy uid/note/alias when clicking on the name.
- Reworked download bars and download box to make it look more modern, removed the jitter around, so it shouldn't vibrate around much.
- Chat has been added to the top menu, working in Zone or in Syncshells to be used there.
- Paired system has been revamped to make pausing and unpausing faster, and loading people should be faster as well.
- Moved to the internal object table to have faster load times for users; people should load in faster
- Compactor is running on a multi-threaded level instead of single-threaded; this should increase the speed of compacting files
- Nameplate Service has been reworked so it wouldn't use the nameplate handler anymore.
- Files can be resized when downloading to reduce load on users if they aren't compressed. (can be toggled to resize all).
- Penumbra Collections are now only made when people are visible, reducing the load on boot-up when having many syncshells in your list.
- Lightfinder plates have been moved away from using Nameplates, but will use an overlay.
- Main UI has been changed a bit with a gradient, and on hover will glow up now.
- Reworked Profile UI for Syncshell and Users to be more user-facing with more customizable items.
- Reworked Settings UI to look more modern.
- Performance should be better due to new systems that would dispose of the collections and better caching of items.

Co-authored-by: defnotken <itsdefnotken@gmail.com>
Co-authored-by: azyges <aaaaaa@aaa.aaa>
Co-authored-by: choco <choco@patat.nl>
Co-authored-by: cake <admin@cakeandbanana.nl>
Co-authored-by: Minmoose <KennethBohr@outlook.com>
Reviewed-on: #92
2025-12-21 17:19:34 +00:00

111 lines
4.2 KiB
C#

using LightlessSync.API.Data;
using LightlessSync.API.Dto.Group;
using LightlessSync.PlayerData.Pairs;
using LightlessSync.Services.Mediator;
using LightlessSync.Services.ServerConfiguration;
using LightlessSync.UI;
using LightlessSync.UI.Tags;
using LightlessSync.WebAPI;
using LightlessSync.UI.Services;
using Microsoft.Extensions.Logging;
namespace LightlessSync.Services;
public class UiFactory
{
private readonly ILoggerFactory _loggerFactory;
private readonly LightlessMediator _lightlessMediator;
private readonly ApiController _apiController;
private readonly UiSharedService _uiSharedService;
private readonly PairUiService _pairUiService;
private readonly ServerConfigurationManager _serverConfigManager;
private readonly LightlessProfileManager _lightlessProfileManager;
private readonly PerformanceCollectorService _performanceCollectorService;
private readonly ProfileTagService _profileTagService;
private readonly DalamudUtilService _dalamudUtilService;
public UiFactory(
ILoggerFactory loggerFactory,
LightlessMediator lightlessMediator,
ApiController apiController,
UiSharedService uiSharedService,
PairUiService pairUiService,
ServerConfigurationManager serverConfigManager,
LightlessProfileManager lightlessProfileManager,
PerformanceCollectorService performanceCollectorService,
ProfileTagService profileTagService,
DalamudUtilService dalamudUtilService)
{
_loggerFactory = loggerFactory;
_lightlessMediator = lightlessMediator;
_apiController = apiController;
_uiSharedService = uiSharedService;
_pairUiService = pairUiService;
_serverConfigManager = serverConfigManager;
_lightlessProfileManager = lightlessProfileManager;
_performanceCollectorService = performanceCollectorService;
_profileTagService = profileTagService;
_dalamudUtilService = dalamudUtilService;
}
public SyncshellAdminUI CreateSyncshellAdminUi(GroupFullInfoDto dto)
{
return new SyncshellAdminUI(
_loggerFactory.CreateLogger<SyncshellAdminUI>(),
_lightlessMediator,
_apiController,
_uiSharedService,
_pairUiService,
dto,
_performanceCollectorService,
_lightlessProfileManager);
}
public StandaloneProfileUi CreateStandaloneProfileUi(Pair pair)
=> CreateStandaloneProfileUiInternal(pair, pair.UserData, null, false, null);
public StandaloneProfileUi CreateStandaloneProfileUi(UserData userData)
=> CreateStandaloneProfileUiInternal(null, userData, null, false, null);
public StandaloneProfileUi CreateLightfinderProfileUi(UserData userData, string hashedCid)
=> CreateStandaloneProfileUiInternal(null, userData, null, true, hashedCid);
public StandaloneProfileUi CreateStandaloneGroupProfileUi(GroupData groupInfo)
=> CreateStandaloneProfileUiInternal(null, null, groupInfo, false, null);
public PermissionWindowUI CreatePermissionPopupUi(Pair pair)
{
return new PermissionWindowUI(
_loggerFactory.CreateLogger<PermissionWindowUI>(),
pair,
_lightlessMediator,
_uiSharedService,
_apiController,
_performanceCollectorService);
}
private StandaloneProfileUi CreateStandaloneProfileUiInternal(
Pair? pair,
UserData? userData,
GroupData? groupData,
bool isLightfinderContext,
string? lightfinderCid)
{
return new StandaloneProfileUi(
_loggerFactory.CreateLogger<StandaloneProfileUi>(),
_lightlessMediator,
_uiSharedService,
_serverConfigManager,
_profileTagService,
dalamudUtilService: _dalamudUtilService,
lightlessProfileManager: _lightlessProfileManager,
pairUiService: _pairUiService,
pair: pair,
userData: userData,
groupData: groupData,
isLightfinderContext: isLightfinderContext,
lightfinderCid: lightfinderCid,
performanceCollector: _performanceCollectorService);
}
}