feat(i18n, config): enhance agent management localization and add settings/currencies hub cards
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added new agent-related translation keys across English, Nepali, and Chinese including agentCode, agentName, loginUsername, and detailTabs. Enhanced agent console hints for child creation permissions and line root profile read-only states. Added validation error messages for share/rebate parent limits and username charset validation. Introduced common status labels (enabled/disabled) and yes/no/none text
This commit is contained in:
@@ -6,7 +6,7 @@ import { ChevronRight } from "lucide-react";
|
||||
|
||||
import { ModuleScaffold } from "@/components/admin/module-scaffold";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { PRD_INTEGRATION_ACCESS_ANY } from "@/lib/admin-prd";
|
||||
import { PRD_INTEGRATION_ACCESS_ANY, PRD_SETTINGS_ACCESS_ANY, PRD_CURRENCY_MANAGE } from "@/lib/admin-prd";
|
||||
import { useAdminProfile } from "@/stores/admin-session";
|
||||
import { adminHasAnyPermission } from "@/lib/admin-permissions";
|
||||
|
||||
@@ -48,6 +48,18 @@ const HUB_CARDS: HubCard[] = [
|
||||
descKey: "hub.integrationDesc",
|
||||
requiredAny: PRD_INTEGRATION_ACCESS_ANY,
|
||||
},
|
||||
{
|
||||
href: "/admin/settings",
|
||||
titleKey: "hub.settingsTitle",
|
||||
descKey: "hub.settingsDesc",
|
||||
requiredAny: PRD_SETTINGS_ACCESS_ANY,
|
||||
},
|
||||
{
|
||||
href: "/admin/currencies",
|
||||
titleKey: "hub.currenciesTitle",
|
||||
descKey: "hub.currenciesDesc",
|
||||
requiredAny: [PRD_CURRENCY_MANAGE],
|
||||
},
|
||||
];
|
||||
|
||||
export function ConfigHubScreen() {
|
||||
|
||||
Reference in New Issue
Block a user