SEC-06D · Section 6: Kariah Member Management & Residential Area Classification
✓ Fully Implemented
Managing Member Profiles, Searching, Filtering by Area, Status Transitions & CSV Reports
Complete guide to searching and filtering kariah members by residential area or status, updating member personal/household profiles, managing status transitions, and exporting CSV reports.
1. Understanding Kariah Summary Metrics
At the top of /{lang}/mosque-admin/kariah-members, four summary cards display:
- Total Registered Members: Count of approved members (
active,inactive,moved,deceased). - Members by Area: Breakdown of member counts for each configured Kampung, Taman, Locality, and Street.
- Members by Status: Distribution across all membership statuses.
- Registration Trends (12 Months): Monthly approval counts (
YYYY-MM).
2. Searching, Filtering & Sorting Member Records
- In the Member Directory filter bar:
- Search (
q): Search by member name, phone number, or street name. - Residential Area (
area_id): Filter by a specific Locality/Mukim, Kampung, Taman, or Street. - Membership Status (
status): Filter byactive,inactive,moved,deceased,pending,clarification, orrejected. - Registration Date (
from&to): Filter by registration date range. - Sort (
sort&dir): Sort by Name, Registration Date, Area, or Status in ascending or descending order.
- Search (
- Click Filter.
3. Updating Personal Information, Residential Area & Household
- Click Update Status on any member row in the directory to load the member detail editor at the bottom of the page.
- In the profile form, update Full Name, Contact Phone, Email, House/Unit Number, Street, Postcode, Residential Area, and Household Name / Relationship.
- Click Save. Area transfers (
area_transfer), profile edits (edited), and household changes (household_changed) are automatically recorded inkariah_membership_history.
4. Managing Member Status Transitions
- In the status update card for the selected member, choose a valid target status:
- From
active→inactive,moved, ordeceased. - From
inactiveormoved→active,inactive,moved, ordeceased.
- From
- Enter a Review Note (minimum 5 characters) explaining the status change and click Update Status.
5. Generating & Exporting Member Reports (CSV)
- Apply any desired filters (for example, selecting a specific Kampung or Taman and status
active). - Click Export CSV.
- The system verifies
kariah.members.exportpermission, logskariah.members.exportedinaudit_logs, and downloads a UTF-8 BOM CSV file (kariah-members-{mosque_id}.csv) with columns:id,full_name,contact_phone,email,house_number,street_name,postcode,area_name,area_type,household_name,membership_status, andregistered_at.
Input Fields & Options Reference
| Current Status | Allowed Target Statuses | Meaning |
|---|---|---|
active | inactive, moved, deceased | Currently active resident kariah member. |
inactive | active, moved, deceased | Temporarily inactive membership record. |
moved | active, inactive, deceased | Member relocated outside the mosque’s kariah boundary. |
deceased | inactive | Member passed away (historical record preserved). |
Expected Results: Member profiles and statuses are updated with full audit history, and filtered CSV member reports can be downloaded.
Important Notes & Data Boundaries: Exported CSV cells starting with `=`, `+`, `-`, or `@` are automatically neutralized with a leading apostrophe to prevent spreadsheet formula injection.
Common Errors & Troubleshooting
If clicking Export CSV returns 403 Forbidden, verify that your role holds the kariah.members.export permission in /admin/permissions.