feat: event team management with departments and roles - Migration 023: event_roles, event_departments, event_member_departments tables - Auto-seed default roles (Head Organizer, Team Lead, Organizer, Volunteer, Sponsor) and departments (Logistics, IT & Tech, Marketing, Finance, Program, Sponsorship, Design, Volunteers) on event creation - API: full CRUD for roles, departments, member-department assignments - Enhanced fetchEventMembers with role + department resolution - Team page: sidebar with department filter + role legend, list/dept view toggle, add/edit/remove members with role + multi-department + notes - i18n: 25 new keys in EN and ET for team management - svelte-check: 0 errors, vitest: 112/112 passed

This commit is contained in:
AlacrisDevs
2026-02-07 12:47:34 +02:00
parent edc5f8af85
commit 1f2484da3d
8 changed files with 1135 additions and 308 deletions

View File

@@ -341,6 +341,30 @@
"team_select_member": "Select a member",
"team_select_role": "Select role",
"team_already_assigned": "Already on team",
"team_departments": "Departments",
"team_roles": "Roles",
"team_all": "All",
"team_no_department": "Unassigned",
"team_add_department": "Add Department",
"team_add_role": "Add Role",
"team_edit_department": "Edit Department",
"team_edit_role": "Edit Role",
"team_dept_name": "Department name",
"team_role_name": "Role name",
"team_dept_created": "Department created",
"team_dept_updated": "Department updated",
"team_dept_deleted": "Department deleted",
"team_role_created": "Role created",
"team_role_updated": "Role updated",
"team_role_deleted": "Role deleted",
"team_dept_delete_confirm": "Delete department {name}? Members will be unassigned from it.",
"team_role_delete_confirm": "Delete role {name}? Members will lose this role assignment.",
"team_view_by_dept": "By department",
"team_view_list": "List view",
"team_member_count": "{count} members",
"team_assign_dept": "Assign departments",
"team_notes": "Notes",
"team_notes_placeholder": "Optional notes about this member...",
"overview_subtitle": "Welcome back. Here's what's happening.",
"overview_stat_events": "Events",
"overview_upcoming_events": "Upcoming Events",