fix(portal): label the Dashboard module in the sidebar
The sidebar shows a module by its name as a message key; BO_DASHBOARD had no default, so the raw code showed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
5ffd4176ec
commit
0a5d5a229b
2 files changed
+10
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { resolveMessage } from "./t";
|
||||
|
||||
// The sidebar labels the BO_DASHBOARD module by its name as a message key; without a default it shows the raw code.
|
||||
describe("BO_DASHBOARD label", () => {
|
||||
it("resolves to Dashboard with an empty catalog", () => {
|
||||
expect(resolveMessage({}, "BO_DASHBOARD")).toBe("Dashboard");
|
||||
});
|
||||
});
|
||||
@@ -425,6 +425,7 @@ export const DEFAULT_MESSAGES: Record<string, string> = {
|
||||
LsSettingsLoadFailed: "Failed to load the settings",
|
||||
LsSaveFailed: "Failed to save",
|
||||
BO_AUDIT_LOG: "Audit log",
|
||||
BO_DASHBOARD: "Dashboard",
|
||||
BO_LEADS_EDIT: "Lead editing",
|
||||
BO_LEADS_EXPORT: "Lead export",
|
||||
AuditWho: "Who",
|
||||
|
||||
Reference in new issue
Block a user