feat: implement barangay system phases 2-14
Some checks failed
tests / PHP 8.2 (swoole-5.1.6) (push) Has been cancelled
tests / PHP 8.3 (swoole-5.1.6) (push) Has been cancelled
tests / PHP 8.4 (swoole-6.0) (push) Has been cancelled

Complete adaptation from BukidBountyApp to Philippine barangay governance:

- Barangay models: Resident, Household, HouseholdMember, Blotter, BlotterHearing,
  DocumentRequest, RequestPayment, RequestType, BarangayProject, BarangayBudget
- Controllers: ResidentController, HouseholdController, BlotterController,
  BlotterHearingController, DocumentRequestController, RequestTypeController,
  ProjectController, BudgetController, QRPHController, AdminConsoleController,
  UserController, FileController, ChapterController, LoginController
- Vue pages: Home, ManageResidents, ResidentProfile, ManageHouseholds, ManageBlotters,
  BlotterDetail, RequestDocument, ManageDocumentRequests, DocumentRequestDetail,
  ManageRequestTypes, ManageProjects, BudgetLedger, AdminConsole
- Barangay roles: PunongBarangay, Kagawad, Secretary, Treasurer, SK, Tanod, BHW, Staff, Resident
- UserPermissions matrix rewritten with barangay-specific permission mappings
- VueRouteMap replaced with barangay SPA routes
- UserActions enum references corrected across all controllers
- Removed all market/cooperative/POS/subscription code and models
This commit is contained in:
Jonathan Sykes
2026-06-07 03:09:09 +08:00
parent 19fec0933b
commit fbb7e3ff37
234 changed files with 5582 additions and 39457 deletions

View File

@@ -1,19 +1,52 @@
export const UserTypes = {
ULTIMATE: 'ult',
SUPER_OPERATOR: 'super operator',
OPERATOR: 'operator',
COORDINATOR: 'coordinator',
COOP_OFFICER: 'coop officer',
COOP_MEMBER: 'coop member',
SUPPLIER_OVERSEER: 'supplier overseer',
WHOLESALE_BUYER: 'wholesale buyer',
SUPPLIER: 'supplier',
STORE_OWNER: 'store owner',
STORE_MANAGER: 'store manager',
USER: 'user',
RIDER: 'rider',
AUDIT: 'audit',
POS_TERMINAL: 'pos terminal',
ANY_USER: 'default',
PUBLIC: 'public'
SUPER_ADMIN: 'super_admin',
PUNONG_BARANGAY: 'punong_barangay',
KAGAWAD: 'kagawad',
SECRETARY: 'secretary',
TREASURER: 'treasurer',
SK_CHAIRPERSON: 'sk_chairperson',
SK_COUNCILOR: 'sk_councilor',
TANOD: 'tanod',
BHW: 'bhw',
DAYCARE_WORKER: 'daycare_worker',
STAFF: 'staff',
RESIDENT: 'resident',
AUDIT: 'audit',
ANY_USER: 'default',
PUBLIC: 'public',
};
export const UserTypeLabels = {
[UserTypes.SUPER_ADMIN]: 'System Administrator',
[UserTypes.PUNONG_BARANGAY]: 'Punong Barangay',
[UserTypes.KAGAWAD]: 'Barangay Kagawad',
[UserTypes.SECRETARY]: 'Barangay Secretary',
[UserTypes.TREASURER]: 'Barangay Treasurer',
[UserTypes.SK_CHAIRPERSON]: 'SK Chairperson',
[UserTypes.SK_COUNCILOR]: 'SK Councilor',
[UserTypes.TANOD]: 'Barangay Tanod',
[UserTypes.BHW]: 'Barangay Health Worker',
[UserTypes.DAYCARE_WORKER]: 'Daycare Worker',
[UserTypes.STAFF]: 'Staff',
[UserTypes.RESIDENT]: 'Resident',
[UserTypes.AUDIT]: 'Auditor',
[UserTypes.PUBLIC]: 'Public / Guest',
};
export const ADMIN_ROLES = [
UserTypes.SUPER_ADMIN,
UserTypes.PUNONG_BARANGAY,
UserTypes.SECRETARY,
UserTypes.TREASURER,
UserTypes.KAGAWAD,
];
export const STAFF_ROLES = [
...ADMIN_ROLES,
UserTypes.SK_CHAIRPERSON,
UserTypes.SK_COUNCILOR,
UserTypes.TANOD,
UserTypes.BHW,
UserTypes.DAYCARE_WORKER,
UserTypes.STAFF,
];