import type { WorkpulseLocaleMessages } from "./id";
import type { idPages } from "./pages-id";

export const enPages: Pick<WorkpulseLocaleMessages, keyof typeof idPages> = {
  features: {
    dashboard: { label: "Dashboard", description: "Summary & activity" },
    report: { label: "Daily Report", description: "Create & manage daily reports" },
    calendar: { label: "Calendar", description: "Agenda & report sync" },
    team: { label: "Team Monitoring", description: "Team & member reports" },
    analytics: { label: "Analytics", description: "Statistics & trends" },
    notifications: { label: "Notifications", description: "Notification center" },
    chat: { label: "Chat", description: "Team chat & cross-division mentions" }
  },
  chatPage: {
    title: "Team chat",
    subtitle: "Workspace conversation — mention colleagues with @ name (any division).",
    placeholder: "Write a message… type @ to mention someone",
    send: "Send",
    sending: "Sending…",
    loadMore: "Load older messages",
    loading: "Loading messages…",
    empty: "No messages yet. Start the conversation and mention someone with @.",
    mentionHint: "@ mention · Paste/upload images",
    you: "You",
    loadError: "Could not load chat.",
    sendError: "Could not send message.",
    attachImage: "Upload image",
    sessionExpired: "Your session expired or the token is invalid. Log out and sign in again (use «Remember me» to stay signed in after closing the browser).",
    clearChat: "Clear chat",
    clearing: "Clearing…",
    clearTitle: "Clear entire team chat?",
    clearBody: "All messages and images in the workspace chat will be permanently deleted for everyone. This cannot be undone.",
    clearConfirm: "Yes, clear chat",
    clearCancel: "Cancel",
    clearError: "Could not clear chat. Only superadmins can do this."
  },
  reportPage: {
    tasksBoard: "Tasks board",
    tasksBoardHint: "Drag cards between columns. Tap ⋮ on small screens to move.",
    colTodo: "To do",
    colDoing: "In progress",
    colDone: "Done",
    colTodoShort: "To do",
    colDoingShort: "Doing",
    colDoneShort: "Done",
    newTask: "New task…",
    add: "Add",
    workDesc: "Work description",
    workDescHint: "Summarize what you worked on today (e.g. maintenance, meetings, feature work).",
    workDescPasteHint: "Paste screenshots directly in this field (Ctrl+V) — JPG/PNG/WebP, max 5 MB each.",
    workDescPlaceholder: "Example: Office network & Mikrotik maintenance at Bestari Jaya…",
    saveDraft: "Save draft",
    submitReport: "Submit report",
    submitting: "Submitting…",
    submitSuccessTitle: "Report submitted successfully",
    submitSuccessMessage: "Your daily report has been saved and recorded in the system.",
    submitSuccessButton: "OK",
    statusDraft: "Draft",
    evidenceTitle: "Work evidence (screenshots)",
    evidenceHint: "Drag images here, paste (Ctrl+V), or choose files. JPG, PNG, WebP — max 5 MB per file.",
    evidenceDrop: "Drop images here",
    evidenceChoose: "Choose files",
    evidenceUploading: "Uploading…",
    evidenceNeedDivision: "Select a division in the field above, then paste your image again (Ctrl+V).",
    evidenceNeedDraft: "Draft not saved yet. Click «Save draft» or wait for autosave, then try again.",
    evidenceMax: "Up to {n} images per report.",
    evidenceRemove: "Remove image",
    evidenceOpen: "Open full size"
  },
  calendarPage: {
    agendaTitle: "Day agenda",
    noReports: "No reports on this date",
    noReportsTeam: "No reports on this date for the selected team.",
    syncHint: "Data refreshes automatically about every 45 seconds while this page is open.",
    dailyReport: "Daily report",
    personal: "Personal",
    viewDetail: "View detail →",
    reporter: "Reporter:",
    reportDetail: "Report detail",
    workHours: "Work hours:",
    workDesc: "Work description",
    empty: "Empty",
    loadingReport: "Loading report…",
    editDraft: "Continue editing draft →",
    evidenceTitle: "Work evidence",
    selectDate: "Pick a date on the calendar.",
    allTeams: "All",
    loading: "Loading…",
    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
  },
  profilePage: {
    title: "Profile",
    subtitle: "Your account information and activity summary.",
    share: "Share profile",
    edit: "Edit profile",
    public: "Public",
    goal: "Report progress (this period)",
    submitted: "Reports submitted",
    drafts: "Drafts",
    productivity: "Productivity",
    account: "Account",
    summaryPeriod: "Summary period",
    summaryPeriodPlaceholder: "Select period",
    periodMonth: "This month",
    periodWeek: "This week",
    periodAll: "All time",
    email: "Email",
    role: "Role",
    status: "Status",
    statusActive: "Active",
    statusInactive: "Inactive",
    upcomingEvents: "Upcoming events",
    unreadNotif: "Unread notifications",
    reportTarget: "Report target (period)",
    recentActivity: "Recent activity",
    viewNotifications: "View notifications",
    memberSince: "Member since {date}",
    superadmin: "Superadmin",
    user: "User",
    noActivity: "No activity to show here yet.",
    loadMore: "Load more",
    loadingMore: "Loading…",
    untitled: "Untitled",
    activityReport: "Report",
    activityNotif: "Notification",
    activityGeneric: "Activity",
    avatarHint: "Profile photo (JPG, PNG, WebP — max. 2 MB)",
    changePhoto: "Change photo",
    uploadPhoto: "Upload photo",
    removePhoto: "Remove"
  },
  settingsPage: {
    public: "Public",
    fullName: "Full name",
    namePlaceholder: "Your name",
    workEmail: "Work email",
    emailHint: "Email cannot be changed here.",
    roleLabel: "Role",
    securityTitle: "Password & security",
    protected: "Protected",
    noPasswordHint:
      "Your account has no local password yet (e.g. Google sign-in). Set a new password to sign in with email and password.",
    currentPassword: "Current password",
    newPassword: "New password",
    confirmPassword: "Confirm new password",
    passwordMin: "At least 8 characters.",
    changePassword: "Change password",
    setPassword: "Set password",
    saving: "Saving…",
    loadingProfile: "Loading profile…",
    workspaceTitle: "Workspace & users",
    admin: "Admin",
    workspaceOnlySuperadmin: "Workspace user management is for superadmins only."
  },
  activityLogPage: {
    title: "Activity log",
    introTitle: "Your account history",
    introBody:
      "See when you signed in or out and important actions in WorkPulse — daily reports, chat, profile, and security. This data is visible only to you.",
    introBodyTeam:
      "See who signed in or out of WorkPulse, when, from which device, and IP address. Only superadmins see this view.",
    viewMine: "My activity",
    viewTeamAuth: "Team sign-in / out",
    emptyTeam: "No sign-in or sign-out records from other users yet. Entries appear after users sign in or out since this feature was enabled.",
    teamLoadError: "Could not load team log. Ensure your account is superadmin and try again.",
    clearLog: "Clear log",
    clearing: "Clearing…",
    clearTitle: "Clear activity log?",
    clearMineBody: "All activity log entries for your account will be permanently deleted. This cannot be undone.",
    clearTeamBody: "All sign-in and sign-out records for every user will be deleted. This cannot be undone.",
    clearConfirm: "Yes, clear",
    clearCancel: "Cancel",
    clearDone: "Log cleared successfully.",
    loading: "Loading log…",
    loadMore: "Load more",
    empty: "No activity recorded yet. After you sign in or make changes, entries will appear here.",
    ip: "IP address",
    device: "Device",
    deviceUnknown: "Unknown device",
    filterAll: "All",
    filterAuth: "Sign in / out",
    filterReports: "Reports",
    filterChat: "Chat",
    filterProfile: "Profile & security",
    filterAdmin: "Workspace admin",
    actionGeneric: "Activity",
    categories: {
      auth: "Session",
      reports: "Reports",
      chat: "Chat",
      profile: "Profile",
      admin: "Admin",
      other: "Other"
    },
    actions: {
      "auth.login": "Signed in to WorkPulse",
      "auth.logout": "Signed out on this device",
      "auth.logout_all": "Signed out on all devices",
      "auth.register": "New account created",
      "auth.oauth_google": "Signed in with Google",
      "profile.name_update": "Profile name updated",
      "profile.avatar_upload": "Profile photo uploaded",
      "profile.avatar_remove": "Profile photo removed",
      "security.password_change": "Password changed",
      "security.password_set": "Password set",
      "preferences.save": "Preferences saved",
      "report.created": "Daily report created",
      "report.updated": "Daily report updated",
      "report.submitted": "Daily report submitted",
      "report.deleted": "Daily report deleted",
      "chat.message": "Team chat message",
      "admin.user_create": "Workspace user created",
      "admin.user_update": "Workspace user updated",
      "admin.user_password_reset": "User password reset"
    }
  },
  workspacePage: {
    addUser: "Add user",
    email: "Email",
    name: "Name",
    namePlaceholder: "Full name",
    role: "Role",
    rolePlaceholder: "Select role",
    initialPassword: "Initial password (min. 8 characters)",
    featureAccess: "Menu feature access",
    featureAccessHint: "Check modules this user may open.",
    addUserBtn: "Add user",
    createHint: "New users can sign in immediately with the initial password on the login page.",
    search: "Search email / name",
    searchPlaceholder: "Type then press Enter or Reload",
    reload: "Reload",
    colActive: "Active",
    colCreated: "Created",
    yes: "Yes",
    no: "No"
  },
  employeesExtra: {
    info: "Information",
    members: "{n} members",
    marker: "Code:",
    editDivision: "Edit division",
    viewMembers: "View members",
    hideMembers: "Hide members",
    refreshHintFull:
      "The list updates periodically. Division cards show official org members. For per-division reports use Team monitoring.",
    noSearchResults: "No results for this search.",
    inactive: "Inactive",
    teamLabel: "Team",
    active: "Active",
    remove: "Remove",
    noMembers: "No members in this division yet. Use Manage staff & roles to add some."
  },
  analyticsExtra: {
    trendShort: "Summary trend",
    trendShortSub: "Last 7 days (same axis as the main chart).",
    activityTitle: "Report activity",
    activitySub: "Relative intensity (last 28 days, color scale).",
    heatmapSub: "Last 28 days",
    noActivityPattern: "No activity pattern to display yet.",
    rankingTitle: "Employee ranking",
    rankingBody:
      "A cross-team leaderboard of who reports most is not available in this app yet. Engineering can add a cross-user aggregation endpoint if needed.",
    daysShort: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
  }
};
