Files
Nitro-V3/public/configuration/housekeeping-texts-en.example
simoleo89 b8675b9dc3 feat(hk): reveal-and-copy card for reset password (+ catalog cleanup)
Two things in one commit because they sit on top of each other:

1. **Reset password reveal card.** The emulator's
   `HousekeepingResetUserPasswordEvent` already returns the freshly
   generated 12-char plaintext in the action-result `message`, but
   the client was leaking it through the standard success-banner
   pipeline — auto-dismiss in 4s, truncated, no copy button. Operators
   were missing it.

   - New `<HousekeepingPasswordReveal />` card mounted in the panel
     header (between the status banner and tab content). Stays put
     until manually dismissed.
   - `useHousekeepingStore` gains a dedicated `passwordReveal` slot
     (`{ userId, username, password }`) plus `revealPassword()` /
     `clearPasswordReveal()` setters. Sensitive data, kept OUT of the
     generic banner / toast pipeline.
   - `useHousekeepingActions.resetUserPassword` no longer routes
     through `wrap()` — it intercepts the result, lifts the
     plaintext into the reveal slot, and uses a localizable success
     key (`housekeeping.action.reset_password.done`) for the banner so
     the password itself never lands there.
   - Copy button uses `navigator.clipboard.writeText` in secure
     contexts with a `document.execCommand('copy')` fallback for
     http:// deployments. Confirmation icon flips to a checkmark for
     ~1.6s on success. The input is `select-all` + auto-select on
     focus so Ctrl+C is also a manual fallback.
   - 8 new i18n keys (EN + IT, .example + runtime UITexts.json5 /
     UITexts.en.json5).

2. **Catalog admin cleanup ported from the PR branch.** The dev
   branch was still carrying the catalog admin code (handlers, hooks,
   store slots, i18n keys) even though the local renderer is on the
   catalog-stripped `feat/housekeeping-packets` branch — typecheck
   was breaking because the catalog composers no longer exist on the
   linked renderer. Stripped here to match: 4 catalog actions
   removed from `HousekeepingActionType`, `HousekeepingApi.ts`,
   `useHousekeepingActions`, `useHousekeepingStore`. The CATALOG tab
   id is gone from `HousekeepingTabId`. Catalog interfaces
   (`IHousekeepingCatalogPage` / `IHousekeepingCatalogOffer`) are
   dropped. 17 catalog i18n keys removed per locale. Two test files
   updated to match.
2026-05-24 16:56:39 +02:00

158 lines
8.4 KiB
Plaintext

{
"housekeeping.title": "Housekeeping",
"housekeeping.mode.light": "Light",
"housekeeping.tab.dashboard": "Dashboard",
"housekeeping.tab.users": "Users",
"housekeeping.tab.rooms": "Rooms",
"housekeeping.tab.economy": "Economy",
"housekeeping.tab.audit": "Audit",
"housekeeping.confirm.title": "Confirm action",
"housekeeping.confirm.proceed": "Proceed",
"housekeeping.confirm.cancel": "Cancel",
"housekeeping.status.dismiss": "Dismiss",
"housekeeping.action.pending": "Action pending…",
"housekeeping.action.success": "Action completed",
"housekeeping.action.error": "Action failed",
"housekeeping.action.reset_password.done": "Password reset — new password shown below.",
"housekeeping.password.title": "%username% (#%id%) · new password",
"housekeeping.password.value_label": "Generated password",
"housekeeping.password.copy": "Copy",
"housekeeping.password.copied": "Copied",
"housekeeping.password.copy_failed": "Copy failed",
"housekeeping.password.dismiss": "Dismiss",
"housekeeping.password.hint": "Share with the user out-of-band. This is shown once — close this card when you're done; the password is never displayed again.",
"housekeeping.error.invalid_input": "Invalid input — check the user id and the value you provided.",
"housekeeping.error.user_not_found": "User not found.",
"housekeeping.error.user_offline": "User is offline — this action only works on online users.",
"housekeeping.error.target_unkickable": "This user cannot be kicked.",
"housekeeping.error.ban_failed": "Ban could not be applied — server refused the request.",
"housekeeping.error.no_active_ban": "No active ban to clear for this user.",
"housekeeping.error.rank_not_found": "Rank not found — pick a rank that exists in permission_ranks.",
"housekeeping.error.db_failed": "Database error — see the emulator log for the SQL exception.",
"housekeeping.error.hash_failed": "Could not hash the new password — SHA-256 unavailable on this JVM.",
"housekeeping.error.room_not_found": "Room not found.",
"housekeeping.error.room_action_failed": "Room action could not be applied.",
"housekeeping.error.new_owner_not_found": "New owner not found.",
"housekeeping.error.economy_failed": "Economy action could not be applied — check the user id and the amount.",
"housekeeping.error.alert_empty": "Hotel alert message cannot be empty.",
"housekeeping.action.ban_h": "Ban %h%h",
"housekeeping.action.mute_min": "Mute %m%m",
"housekeeping.action.trade_lock_h": "Trade lock %h%h",
"housekeeping.action.kick": "Kick",
"housekeeping.action.unban": "Unban",
"housekeeping.action.force_disconnect": "Force disconnect",
"housekeeping.action.set_rank": "Set rank",
"housekeeping.action.reset_password": "Reset password",
"housekeeping.user.search.placeholder": "Search by username…",
"housekeeping.user.search.button": "Search",
"housekeeping.user.clear": "Clear selection",
"housekeeping.user.none": "No user selected — search above to pick one.",
"housekeeping.user.not_found": "User not found.",
"housekeeping.user.credits": "Credits",
"housekeeping.user.duckets": "Duckets / pixels",
"housekeeping.user.diamonds": "Diamonds",
"housekeeping.user.audit_hint": "All actions are logged in the audit tab.",
"housekeeping.user.live.label": "Live (in current room)",
"housekeeping.user.live.kick": "Kick",
"housekeeping.user.live.mute_2m": "Mute 2m",
"housekeeping.user.live.mute_10m": "Mute 10m",
"housekeeping.user.live.ban_h": "Ban 1h",
"housekeeping.user.live.ban_d": "Ban 1d",
"housekeeping.room.search.placeholder": "Room ID…",
"housekeeping.room.search.button": "Search",
"housekeeping.room.clear": "Clear selection",
"housekeeping.room.none": "No room selected — enter an ID above.",
"housekeeping.room.not_found": "Room not found.",
"housekeeping.room.open": "Open",
"housekeeping.room.close": "Close",
"housekeeping.room.mute_min": "Mute %m%m",
"housekeeping.room.kick_all": "Kick all",
"housekeeping.room.kick_all.confirm": "Kick every user currently in the room?",
"housekeeping.room.delete": "Delete room",
"housekeeping.room.delete.confirm": "Delete this room and all its furniture permanently?",
"housekeeping.room.transfer": "Transfer",
"housekeeping.room.transfer.label": "Transfer ownership",
"housekeeping.room.transfer.new_owner": "New owner ID",
"housekeeping.economy.select_user": "Pick a user in the Users tab first.",
"housekeeping.economy.target": "Target: %username% (#%id%)",
"housekeeping.economy.give_credits": "Give credits",
"housekeeping.economy.give_duckets": "Give duckets",
"housekeeping.economy.give_diamonds": "Give diamonds",
"housekeeping.economy.grant_item": "Grant item",
"housekeeping.economy.grant_item.label": "Grant catalog item",
"housekeeping.economy.item_id": "Item ID",
"housekeeping.economy.item_quantity": "Qty",
"housekeeping.economy.set_hc_days": "Set HC days",
"housekeeping.hotel.alert.label": "Hotel-wide alert",
"housekeeping.hotel.alert.placeholder": "Message broadcast to every connected user…",
"housekeeping.hotel.alert.send": "Send to hotel",
"housekeeping.hotel.alert.confirm": "Broadcast %count%-character alert to every connected user?",
"housekeeping.dashboard.title": "Overview",
"housekeeping.dashboard.refresh": "Refresh",
"housekeeping.dashboard.loading": "Loading dashboard…",
"housekeeping.dashboard.unavailable": "Dashboard unavailable — check the admin endpoint.",
"housekeeping.dashboard.online": "Online",
"housekeeping.dashboard.total_users": "%count% total",
"housekeeping.dashboard.rooms_active": "Active rooms",
"housekeeping.dashboard.total_rooms": "%count% total",
"housekeeping.dashboard.peak_today": "Peak today",
"housekeeping.dashboard.peak_alltime": "All-time peak %count%",
"housekeeping.dashboard.pending_tickets": "Tickets",
"housekeeping.dashboard.sanctions_24h": "%count% sanctions / 24h",
"housekeeping.dashboard.server": "Server",
"housekeeping.dashboard.recent_sanctions": "Recent sanctions",
"housekeeping.dashboard.recent_lookups": "Recent lookups",
"housekeeping.audit.title": "Audit log",
"housekeeping.audit.refresh": "Refresh",
"housekeeping.audit.filter.all": "All",
"housekeeping.audit.filter.users": "Users",
"housekeeping.audit.filter.rooms": "Rooms",
"housekeeping.audit.filter.hotel": "Hotel",
"housekeeping.audit.search.placeholder": "Search actor / target / action…",
"housekeeping.audit.empty": "No audit entries yet.",
"housekeeping.audit.no_match": "No entries match the current filters.",
"housekeeping.field.reason": "Reason",
"housekeeping.field.reason.placeholder": "Free-text reason (optional)",
"housekeeping.field.duration": "Duration",
"housekeeping.reason.default": "No reason provided.",
"housekeeping.menu.send_to_hk": "Send to HK",
"housekeeping.bulk.done": "Bulk done",
"housekeeping.bulk.success": "All bulk actions succeeded.",
"housekeeping.bulk.partial": "Bulk completed with some failures.",
"housekeeping.bulk.failed": "Every bulk action failed.",
"housekeeping.bulk.confirm": "Apply %action% to %count% selected users?",
"housekeeping.bulk.label": "%count% selected",
"housekeeping.bulk.clear": "Clear selection",
"housekeeping.bulk.apply": "Apply to selected",
"housekeeping.telemetry.title": "Telemetry",
"housekeeping.telemetry.empty": "No actions observed yet.",
"housekeeping.telemetry.reset": "Reset metrics",
"housekeeping.live.no_room": "No active room session.",
"housekeeping.live.kicked": "Kicked from room.",
"housekeeping.live.banned": "Banned from room.",
"housekeeping.live.muted": "Muted in room.",
"housekeeping.validation.empty_username": "Username can't be empty.",
"housekeeping.validation.invalid_user_id": "Invalid user ID.",
"housekeeping.validation.invalid_room_id": "Invalid room ID.",
"housekeeping.validation.invalid_amount": "Invalid amount.",
"housekeeping.validation.amount_too_large": "Amount exceeds the safety cap.",
"housekeeping.validation.empty_reason": "Reason can't be empty.",
"housekeeping.validation.invalid_hours": "Invalid duration in hours.",
"housekeeping.validation.invalid_rank": "Invalid rank — must be between 1 and 12."
}