feat: use modals for creation, side panels for editing
All checks were successful
Deploy / deploy (push) Successful in 11s

- Team page: add member via modal with password confirmation,
  keep SlidePanel for editing existing members only
- Settings: add role via modal with color picker presets,
  keep inline editing for existing roles
- Remove create-mode code from TeamMemberPanel
- Add i18n keys: confirmPassword, passwordsDoNotMatch, memberAdded,
  roleColor (en + ar)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
fahed
2026-03-04 16:37:37 +03:00
parent da161014af
commit 959bd6066d
5 changed files with 362 additions and 151 deletions

View File

@@ -209,6 +209,7 @@
"team.title": "الفريق",
"team.members": "أعضاء الفريق",
"team.addMember": "إضافة عضو",
"team.memberAdded": "تمت إضافة العضو بنجاح",
"team.newMember": "عضو جديد",
"team.editMember": "تعديل العضو",
"team.myProfile": "ملفي الشخصي",
@@ -231,6 +232,8 @@
"team.membersPlural": "أعضاء فريق",
"team.fullName": "الاسم الكامل",
"team.defaultPassword": "افتراضياً: changeme123",
"team.confirmPassword": "تأكيد كلمة المرور",
"team.passwordsDoNotMatch": "كلمتا المرور غير متطابقتين",
"team.optional": "(اختياري)",
"team.fixedRole": "دور ثابت للمديرين",
"team.remove": "إزالة",
@@ -673,6 +676,7 @@
"settings.rolesDesc": "حدد أدوار العمل مثل مصمم، استراتيجي، إلخ. يتم تعيينها لأعضاء الفريق بشكل منفصل عن مستويات الصلاحية.",
"settings.addRole": "إضافة دور",
"settings.roleName": "اسم الدور",
"settings.roleColor": "اللون",
"settings.deleteRoleConfirm": "هل أنت متأكد من حذف هذا الدور؟",
"settings.noRoles": "لم يتم تحديد أدوار بعد. أضف أول دور."
}