mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
refactor(devices): close all MED/LOW review items
- Extract DEVICE_ALIAS_MAX_LENGTH to src/constants/devices.ts so the
user page and admin page share one source of truth (mirroring the
bot's ALIAS_MAX_LENGTH=64). Was duplicated as a magic 64 in both
files (MED-5).
- Replace ✓ / ✕ / ✏️ glyphs in AdminUserDetail.tsx with inline SVGs,
matching the icon style already used by Subscription.tsx for the
same rename/save/cancel actions. Eliminates the platform-dependent
emoji rendering inconsistency (MED-4).
- Add haptic feedback to the user-side renameDeviceMutation —
notification('success') on save, notification('error') on failure.
Brings it in line with the other Subscription.tsx mutations
(LOW-9).
- Translate the new rename keys into zh.json and fa.json (en.json
already covered in the previous follow-up). Cabinet now ships full
parity across all 4 locales for the rename UI.
This commit is contained in:
@@ -454,6 +454,11 @@
|
||||
"month": "ماه",
|
||||
"myDevices": "دستگاههای من",
|
||||
"noDevices": "هیچ دستگاه متصلی نیست",
|
||||
"renameDevice": "تغییر نام",
|
||||
"renameDeviceSave": "ذخیره",
|
||||
"renameDeviceCancel": "لغو",
|
||||
"renameDevicePlaceholder": "نام دستگاه",
|
||||
"deviceRenamed": "نام دستگاه بهروزرسانی شد",
|
||||
"perExtraDevice": "/ دستگاه اضافی",
|
||||
"perMonth": "/ماه",
|
||||
"purchasedTraffic": "ترافیک خریداری شده",
|
||||
@@ -2667,7 +2672,10 @@
|
||||
"none": "دستگاه متصلی وجود ندارد",
|
||||
"resetAll": "بازنشانی همه",
|
||||
"deleted": "دستگاه حذف شد",
|
||||
"allDeleted": "همه دستگاهها بازنشانی شدند"
|
||||
"allDeleted": "همه دستگاهها بازنشانی شدند",
|
||||
"rename": "تغییر نام",
|
||||
"renameSave": "ذخیره",
|
||||
"renamed": "نام دستگاه بهروزرسانی شد"
|
||||
},
|
||||
"referral": {
|
||||
"title": "برنامه ارجاع",
|
||||
|
||||
Reference in New Issue
Block a user