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>
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
namespace Khaemhat.Web.Tests.Shell;
|
|
|
|
/// <summary>The repository the tests run from, to read sources, wiki pages and assets.</summary>
|
|
internal static class Repository
|
|
{
|
|
private static readonly Lazy<string> RootPath = new(() =>
|
|
{
|
|
for (var folder = new DirectoryInfo(AppContext.BaseDirectory); folder is not null; folder = folder.Parent)
|
|
{
|
|
if (File.Exists(Path.Combine(folder.FullName, "Khaemhat.sln")))
|
|
{
|
|
return folder.FullName;
|
|
}
|
|
}
|
|
|
|
throw new InvalidOperationException("Khaemhat.sln not found above " + AppContext.BaseDirectory);
|
|
});
|
|
|
|
/// <summary>The folder holding <c>Khaemhat.sln</c>.</summary>
|
|
public static string Root => RootPath.Value;
|
|
|
|
/// <summary>Whether a file is under <c>bin/</c> or <c>obj/</c>.</summary>
|
|
/// <param name="path">The file.</param>
|
|
/// <returns><see langword="true"/> for build output.</returns>
|
|
public static bool IsBuildOutput(string path)
|
|
{
|
|
var parts = path.Replace('\\', '/').Split('/');
|
|
return parts.Contains("bin") || parts.Contains("obj");
|
|
}
|
|
}
|