feat: application shell, localized texts and user preferences (M3, part 1)
The pages built so far now live inside the shell of the mockups instead of the M0 placeholder, every interface text comes from Resources/it-IT, and each user keeps their own look and start page. - Shell: top bar, collapsible side menu with fly-out sub-menus, status bar and tabs that keep each page alive (page type and route values per tab, so a tab never shows another page); at most 12 tabs, least-used clean tab evicted. - One shortcut table with Alt variants for the combinations browsers keep (Ctrl+W, Ctrl+Tab, Ctrl+N); command palette for pages and commands. - ITexts over embedded JSON; tests forbid literal texts in .razor components and check that every key used exists. - User settings in sys_user_settings / user_settings; theme written on the server; profile page with live preview, start page, sessions and shortcuts. - Home, coming-soon pages for later milestones, localized sign-in and error pages; ADR 0020; wiki, CHANGELOG, STATUS and data model updated. Refs #25 #26 #31 #33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c30054e3d
commit
cf6f849cc1
72 files changed
+5785
-259
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using Khaemhat.Core.Entities;
|
||||
|
||||
namespace Khaemhat.Core.Instance;
|
||||
|
||||
/// <summary>
|
||||
/// One preference of one user (SPEC §10.6): theme, accent, menu state, dashboard layout, grid layouts... The value is
|
||||
/// a string, usually JSON for structured preferences.
|
||||
/// </summary>
|
||||
public abstract class UserSettingRecord : Entity<long>
|
||||
{
|
||||
/// <summary>The user the preference belongs to.</summary>
|
||||
public long UserId { get; set; }
|
||||
|
||||
/// <summary>The key, for example <c>ui.theme</c> or <c>grid.parties.columns</c>.</summary>
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>The value.</summary>
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>A preference of an instance account (<c>sys_user_settings</c>): it follows the account in every company.</summary>
|
||||
public sealed class SystemUserSetting : UserSettingRecord;
|
||||
|
||||
/// <summary>A preference of a company user (<c>user_settings</c>).</summary>
|
||||
public sealed class UserSetting : UserSettingRecord;
|
||||
Reference in new issue
Block a user