The home page becomes the widget dashboard of mockups 004-006. Each user switches widgets on and off, orders them (drag and drop or buttons that also work from the keyboard), sizes them on the 12-column grid and picks the start page; every change is saved at once. Whoever may change the company settings sets a default layout per role, used by people who never customized; Reset goes back to it. Todo, Done and Deadlines collect lines from sources each module registers, so later milestones fill them without touching the widgets; a failing source is logged and skipped. M3 provides licence, unread warnings and scheduled task runs. Notes, Shortcuts and System status work now; widgets of modules still to come say which milestone brings their data instead of showing fake numbers. Role defaults live in the new company_settings table, written through CompanySettingsService with company.settings.write (ADR 0022). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
75d60ee4c4
commit
acb7e598d1
34 files changed
+2812
-76
No files matched your search
@@ -1,6 +1,7 @@
|
||||
using System.Globalization;
|
||||
using Khaemhat.Application.Audit;
|
||||
using Khaemhat.Application.Configuration;
|
||||
using Khaemhat.Application.Dashboard;
|
||||
using Khaemhat.Application.Files;
|
||||
using Khaemhat.Application.Instance;
|
||||
using Khaemhat.Application.Jobs;
|
||||
@@ -142,6 +143,21 @@ internal static class KhaemhatServices
|
||||
// Interface (SPEC §10): texts, preferences and the per-circuit state of the shell.
|
||||
services.AddSingleton<ITexts>(JsonTextProvider.FromAssembly(typeof(KhaemhatServices).Assembly, ItalianCulture));
|
||||
services.AddSingleton<UserSettingsService>();
|
||||
services.AddSingleton<CompanySettingsService>();
|
||||
|
||||
// Dashboard (SPEC §10.3): the sources of the lists join from the modules that feed them.
|
||||
services.AddSingleton<DashboardService>();
|
||||
services.AddSingleton<LicenseFeedSource>();
|
||||
services.AddSingleton<ITodoSource>(sp => sp.GetRequiredService<LicenseFeedSource>());
|
||||
services.AddSingleton<IDeadlineSource>(sp => sp.GetRequiredService<LicenseFeedSource>());
|
||||
services.AddSingleton<ITodoSource, NotificationTodoSource>();
|
||||
services.AddSingleton<JobRunFeedSource>();
|
||||
services.AddSingleton<ITodoSource>(sp => sp.GetRequiredService<JobRunFeedSource>());
|
||||
services.AddSingleton<IDoneSource>(sp => sp.GetRequiredService<JobRunFeedSource>());
|
||||
services.AddSingleton<SystemStatusService>();
|
||||
services.AddSingleton<TodoAggregator>();
|
||||
services.AddSingleton<DoneAggregator>();
|
||||
services.AddSingleton<DeadlineAggregator>();
|
||||
services.AddScoped<ShellSession>();
|
||||
services.AddScoped<ThemeService>();
|
||||
services.AddScoped<TabService>();
|
||||
|
||||
Reference in new issue
Block a user