feat: in-app help, notifications panel and global search (#32)
F1 and "?" now open the wiki page of the screen inside the application (/aiuto, mockup 011) from a copy of the wiki shipped next to the program, so help works offline and always matches the installed version. Markdown is converted in-house and fully encoded; images of the repository are served from the copy. KHAEMHAT_HELP_URL sets the online wiki behind "Apri nel wiki"; "Segnala un problema" opens a new issue of that repo. A test checks that every page and menu entry has an existing wiki page. The bell opens a notifications panel (mockup 010) with all/unread filters and mark read. Broadcast notifications are now read per user through sys_notification_reads / notification_reads instead of one shared read_at. The global search asks ISearchProvider implementations through GlobalSearchService after a short pause; the first provider finds help pages and sections, # and @ say which modules will fill them. Escape also closes a side panel when the focus fell out of it. Decisions in ADR 0023. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
acb7e598d1
commit
f415dc37a8
39 files changed
+1976
-107
No files matched your search
@@ -97,6 +97,13 @@ public sealed class NotificationMap : EntityMap<Notification>
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Map of <see cref="NotificationRead"/> to <c>notification_reads</c>.</summary>
|
||||
public sealed class NotificationReadMap : EntityMap<NotificationRead>
|
||||
{
|
||||
/// <summary>Creates the map.</summary>
|
||||
public NotificationReadMap() => ToTable("notification_reads");
|
||||
}
|
||||
|
||||
/// <summary>Map of <see cref="UserSetting"/> to <c>user_settings</c>.</summary>
|
||||
public sealed class UserSettingMap : EntityMap<UserSetting>
|
||||
{
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using Khaemhat.Data.Migrations;
|
||||
using Khaemhat.Data.Schema;
|
||||
|
||||
namespace Khaemhat.Data.CompanyDatabase.Migrations;
|
||||
|
||||
/// <summary>Who read a notification addressed to everyone (SPEC §9, mockup 010): each user marks it for themselves.</summary>
|
||||
[Migration(20261111_009, "create_notification_reads")]
|
||||
public sealed class M20261111_009_CreateNotificationReads : IMigration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void Up(ISchemaBuilder schema)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(schema);
|
||||
schema.CreateTable("notification_reads", t =>
|
||||
{
|
||||
t.Id();
|
||||
t.Int64("notification_id").NotNull();
|
||||
t.Int64("user_id").NotNull();
|
||||
t.AuditColumns();
|
||||
t.Unique("ux_notification_reads_notification_user", "notification_id", "user_id");
|
||||
t.Index("ix_notification_reads_user_id", "user_id");
|
||||
});
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using Khaemhat.Data.Migrations;
|
||||
using Khaemhat.Data.Schema;
|
||||
|
||||
namespace Khaemhat.Data.SystemDatabase.Migrations;
|
||||
|
||||
/// <summary>Who read a notification addressed to everyone (SPEC §9, mockup 010): each user marks it for themselves.</summary>
|
||||
[Migration(20261111_013, "create_sys_notification_reads", Target = MigrationTarget.System)]
|
||||
public sealed class M20261111_013_CreateSysNotificationReads : IMigration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void Up(ISchemaBuilder schema)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(schema);
|
||||
schema.CreateTable("sys_notification_reads", t =>
|
||||
{
|
||||
t.Id();
|
||||
t.Int64("notification_id").NotNull();
|
||||
t.Int64("user_id").NotNull();
|
||||
t.AuditColumns();
|
||||
t.Unique("ux_sys_notification_reads_notification_user", "notification_id", "user_id");
|
||||
t.Index("ix_sys_notification_reads_user_id", "user_id");
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -197,6 +197,13 @@ public sealed class SystemNotificationMap : EntityMap<SystemNotification>
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Map of <see cref="SystemNotificationRead"/> to <c>sys_notification_reads</c>.</summary>
|
||||
public sealed class SystemNotificationReadMap : EntityMap<SystemNotificationRead>
|
||||
{
|
||||
/// <summary>Creates the map.</summary>
|
||||
public SystemNotificationReadMap() => ToTable("sys_notification_reads");
|
||||
}
|
||||
|
||||
/// <summary>The notification columns shared by <c>sys_notifications</c> and <c>notifications</c>.</summary>
|
||||
internal static class NotificationColumns
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user