Skip to content

Final Milestone Deliverables

Ahmet Erdem Bulut edited this page May 16, 2026 · 95 revisions

Final Milestone Report of CMPE 354 Spring 2026

Group Number: Group 8
Project Name: Neighborhood Emergency Preparedness Hub


1. Meeting Notes


2. Project Documentation


3. Project Review

Executive Summary

  1. Project Status Summary:
    The project reached its final milestone with all three platform components — web application, backend API, and Android mobile app — implemented and deployed. The system delivers core disaster-preparedness features: hub-scoped user authentication, a community forum with voting and moderation, an expert-matched help request workflow with FCM push notifications, help offer management, an offline mesh communication channel, a badge system, and multilingual support. The backend serves a live PostgreSQL database at the production URL and the Android APK is publicly released as v1.0.

  2. Deliverable Status:
    All planned deliverables were completed:

    • Deployed web application (React + Nginx, production URL)
    • Deployed backend REST API (Django/DRF, OpenAPI 3.1 schema at /api/docs/)
    • Android APK — GitHub Release v1.0
    • Final SRS (updated to reflect implemented features)
    • Architecture and UML design diagrams
    • Automated test suite
    • Project documentation: READMEs, wiki pages, credentials PDF
  3. Final Release Notes:
    Release v1.0 covers: JWT-based authentication with role distinction (standard / expert / staff / admin), forum posts with types (information, question, urgent), voting, reposting, and staff moderation; help requests with expert-category matching, FCM notification routing, image upload, status lifecycle (open → expert responding → resolved), and help offers; push notifications via Firebase; Turkish/English/Spanish/Chinese localization on both web and mobile; offline Bluetooth mesh messaging; gathering point display; and a badge/achievement system.

  4. Process Improvements:
    Compared to earlier milestones, the team adopted more consistent practices in the final sprint: all features went through PR review before merging to develop, CI runs were required to pass before merge, and cross-subgroup API contract changes were communicated via GitHub Issues rather than discovered at integration time. Documentation — READMEs, wiki, and inline API descriptions — was treated as a deliverable rather than an afterthought.

  5. Final Milestone Demo Reflections:
    The demo received strongly positive feedback from the instructor and TAs. The offline mesh scenario in particular was highlighted as one of the most impactful features of the project. Full reflections — what went well, what would be done differently, and key lessons — are documented on the Final Demo Reflections wiki page.

  6. What Could Have Been Done Differently:
    Cross-platform integration testing should have started earlier in the semester; late-stage API contract mismatches between backend and mobile consumed time close to the deadline. Mobile feature parity with the web also lagged — a shared per-platform feature backlog from the start would have made gaps visible sooner. More structured weekly cross-subgroup syncs (rather than async-only communication) would have reduced integration friction. See the Final Demo Reflections page for a full breakdown.


4. Progress Based on Teamwork

4.1 Team Contribution Summary

Team Member Contributions (Summary) Major PRs/Issues
Ahmet Erdem Bulut Expert role system, category-based FCM notifications, full test infrastructure (Playwright/Espresso/RTL), README documentation. PR #262, PR #317, Issue #243, Issue #245
Ahmet Hamza Çakmak Tutorial Feature (+ unit tests), Small UI-UX improvement, Application Logo Issue #294, Issue #295, PR #308, PR #313
Ahmet Cem Çalık Badge system, language support, offline information systems. PR #320, PR #263
Mete Damar Settings Page (web + mobile), Light Mode theme system, local Docker data population scripts. PR #307, PR #331, PR #353, Issue #246, Issue #247
Asya Betül Keskin Mobile language support, expert help request take-on flow, badge system, authentication PR #265, PR #320 ; Issues #237, #296, #319
Ekin Menken Co-implemented staff roles, designed admin panel UI for both web and mobile PR #306, Issue #240,Issue #241
Barış Öksüz Implemented the offline messaging and speech recognition #277, #312
İrem Önen RBAC logic based on defined staff roles, Admin Panel UI (Frontend Web and Mobile), Live API documentation PR #306, Issue #238, Issue #240, PR #354

4.2 Status of Requirements

  • Completed:

    • 1.1.1: The system supports two main user roles, standard users and experts, with role-specific behavior.
    • 1.1.1.1.1: Standard users can list resources they can offer through the resource/profile functionality.
    • 1.1.1.1.2: Users can report inappropriate or harmful forum content through the report mechanism.
    • 1.1.1.1.3: Users receive notifications based on role and proximity.
    • 1.1.1.2.1: Expert users can list and manage their expertise fields.
    • 1.1.2.1: Users can register with unique email addresses.
    • 1.1.2.2: Users can log in using email and password.
    • 1.1.2.3: Token-based authentication is implemented for user sessions.
    • 1.1.2.4: Users can log out securely.
    • 1.1.2.5: Authentication is integrated across both web and mobile clients.
    • 1.1.2.6: Authentication forms provide validation and error feedback.
    • 1.1.3.1: Users can create and read forum posts.
    • 1.1.3.2: Users can upvote and downvote forum posts.
    • 1.1.3.3: Users can comment on forum posts.
    • 1.1.3.4: Forum posts can be filtered based on user/post type, including expert-related filtering.
    • 1.1.3.6: Users can view global forum posts.
    • 1.1.3.7: Users can create global forum posts.
    • 1.1.3.8: Users can create hub-based standard or urgent forum posts.
    • 1.1.4.1: Users can create help requests with category, urgency level, title, and description.
    • 1.1.4.2: Help requests support image attachments and optional location information.
    • 1.1.4.3: Users can browse help requests filtered by category.
    • 1.1.4.4: Help request detail pages show request information, author information, images, status, and creation time.
    • 1.1.4.5: Help request locations can be displayed on an interactive map when coordinates are available.
    • 1.1.4.6: Help requests support open, expert responding, and resolved statuses.
    • 1.1.4.7: Expert interaction can update a help request toward expert responding status.
    • 1.1.4.8: The author of a help request can mark it as resolved.
    • 1.1.4.9: The author of a help request can delete it.
    • 1.1.4.10: Users can comment on help requests.
    • 1.1.4.11: Help request comments are displayed in chronological order.
    • 1.1.4.12: Comment authors can delete their own help request comments.
    • 1.1.4.13: Users can create help offers with category, skill/resource, description, and availability.
    • 1.1.4.14: Users can browse help offers filtered by category.
    • 1.1.4.15: Help offer authors can delete their own offers.
    • 1.1.4.16: Push notification support for new help requests is implemented using FCM targeting experts in the relevant hub.
    • 1.1.4.17: Expert users can take on help requests whose categories match their approved expertise fields.
    • 1.1.4.18: Assigned experts can release help requests they have previously taken on.
    • 1.1.4.19: Help request interfaces indicate when a request has an assigned expert or is being handled by an expert.
    • 1.1.4.20: Help request authors can mark their requests as resolved even when an expert assignment exists.
    • 1.1.4.21: Completed expert-help contributions are counted only when a request is resolved while an expert is assigned.
    • 1.1.5.1: Users can set their availability status.
    • 1.1.5.2: Users can set their phone number.
    • 1.1.5.3: Users can set their blood type.
    • 1.1.5.4: Users can set emergency contact information and emergency contact phone number.
    • 1.1.5.5: Users can set language preferences.
    • 1.1.5.6: Users can set disability-related information.
    • 1.1.5.7: Users can state special needs.
    • 1.1.7.1: The mobile app supports map-based emergency/gathering point information using the user’s location when available.
    • 1.1.7.2: The mobile app provides offline emergency/first-aid information.
    • 1.1.7.3: The mobile app provides emergency numbers and allows users to add or remove custom emergency contact labels.
    • 1.1.7.4: Emergency number labels can direct the user to the phone call flow.
    • 1.1.8.1: The system provides a tutorial mode for new users to explore the application.
    • 1.1.8.2: Tutorial mode allows users to navigate through predefined application scenarios.
    • 1.1.8.3: Tutorial mode prevents users from interacting with registered users.
    • 1.1.9.1: A staff dashboard is implemented with tools gated by the signed-in user’s staff role.
    • 1.1.9.2: Moderators and admins can filter forum posts by moderation status and hide, remove, or restore them with required reasons.
    • 1.1.9.3: Moderators and admins can list and delete help requests or help offers regardless of authorship, with a required reason.
    • 1.1.9.4: Verification coordinators and admins can manage expertise claims by status and approve, reject, or reopen them.
    • 1.1.9.5: Admins can manage user accounts, staff roles, suspensions, and reactivations.
    • 1.1.9.6: Admins can list, create, rename, and delete hubs, with explicit confirmation required for deletion.
    • 1.1.9.7: Privileged staff actions are recorded in an audit log, and admins can view the log using action and target-type filters.
    • 1.1.10.1: The system tracks contribution activity such as forum posts, comments, and completed assigned help requests for reward purposes.
    • 1.1.10.2: Users receive contribution-based badges when they reach predefined post and comment milestones.
    • 1.1.10.3: Expert users receive help-related badges when they complete predefined numbers of assigned help requests.
    • 1.1.10.4: Earned badges and contribution-related reward information are displayed in the user profile.
    • 1.2.1: User data is stored through the backend database and protected through authentication and authorization mechanisms.
    • 1.2.2: Offline access to critical hub/emergency data is partially supported through mobile offline features.
    • 2.3.1: Offline-created mesh messages/posts are stored locally and synchronized when connectivity returns.
    • 2.5.3: Role-based access control is implemented for standard users, experts, moderators, verification coordinators, and admins.
    • 2.7.1: Multi-language UI support is implemented with localized resources for supported languages.
    • 2.7.2: Offline-related mobile screens provide visible entry points and status for offline functionality.
  • In Progress:

    • 1.1.6.1 – User Interaction / Contact Flow: The design is covered through help request comments, expert interaction, and profile/contact information, but a dedicated matched-user messaging flow was not separately tested as a complete feature.
    • 2.1 Performance & Responsiveness: The mobile and web implementations were designed to support responsive usage, including asynchronous background behavior, but numerical performance measurements were not conducted.
    • 2.2 Availability & Resilience: Offline, degraded-mode, local persistence, and synchronization behavior were included in the design and implementation, but resilience scenarios were not tested in detail.
    • 2.3 Offline-First & Data Integrity: Local persistence, timestamps, and backend synchronization were implemented to support offline-first behavior, but detailed conflict and consistency testing was not performed.
    • 2.5 Security & Privacy: Secure communication, authentication, authorization, and privacy-related visibility controls were included in the system design, but deeper deployment-level and storage-level verification was not separately performed.
    • 2.6 Battery & Device Resource Efficiency: The app was designed to reduce unnecessary background activity and support offline storage efficiently, but resource usage was not measured with explicit device-level tests.
    • 2.8 Reliability of Critical Features: Emergency-critical mobile and offline flows were implemented with timing-related support, but reliability under degraded scenarios was not separately tested.
    • 2.9 Compatibility & Portability: The Android implementation was designed to support common device and network conditions, but low-end device and constrained-network testing was not conducted separately.
    • 1.1.3.5 – Forum Search / Discovery: The forum already supports browsing and filtering behavior, which partially supports discovery needs, but a dedicated search-bar flow was not separately completed.
  • Not Started:

    • 2.4 Scalability & Capacity: The backend and hub-based system structure were designed with scalability in mind, but load, concurrency, burst-traffic, and extreme-usage tests were not conducted.
    • 2.5.5 – Privacy in Crisis: Existing privacy and visibility-related mechanisms partially align with this requirement, but a dedicated crisis-specific privacy mode was not implemented as a separate feature.
    • 2.6.2 – Low Power Mode: The implementation includes some efficiency-oriented choices, but a dedicated low-power mode was not implemented as a separate feature.

4.3 API Endpoints

API Documentation


Sample Usage Scenarios


Scenario 1: Create a Help Request with Location

  • Endpoint: POST /api/help-requests/

  • Scenario Description: A standard user in the Kadıköy hub creates a high-urgency MEDICAL help request for an injured elderly neighbor, attaching GPS coordinates and a location note so that nearby medical experts can see exactly where to respond.

    First ->

    curl -X POST "https://emergencyhub.duckdns.org/api/login" \
    -H "Content-Type: application/json" \
    -d '{
      "email": "ahmet.yilmaz@example.com",
      "password": "EmHub2026!"
    }'

    Take the token and insert

  • The Request:

curl -X POST "https://emergencyhub.duckdns.org/api/help-requests/" \
  -H "Authorization: Bearer <INSERT_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "hub": 15,
    "category": "MEDICAL",
    "urgency": "HIGH",
    "title": "Elderly neighbor needs medical assistance",
    "description": "My neighbor (80F) fell and cannot move her arm. She is conscious but in pain.",
    "latitude": 40.9902,
    "longitude": 29.0271,
    "location_text": "Kadıköy, Moda district, near the park entrance"
  }'
  • The Response:
{
  "id": 25,
  "hub": 15,
  "hub_name": "Istanbul / Kadikoy, Turkey",
  "category": "MEDICAL",
  "urgency": "HIGH",
  "author": {
    "id": 84,
    "full_name": "Ahmet Yılmaz",
    "email": "ahmet.yilmaz@example.com",
    "role": "STANDARD",
    "staff_role": "NONE",
    "neighborhood_address": "Istanbul / Kadikoy, Turkey",
    "profile": {
      "phone_number": null,
      "blood_type": null,
      "emergency_contact_phone": null,
      "special_needs": null,
      "has_disability": false,
      "availability_status": "SAFE",
      "bio": "Ahmet Yılmaz — community member in Istanbul / Kadikoy, Turkey.",
      "preferred_language": "Turkish",
      "emergency_contact": null,
      "created_at": "2026-05-13T14:25:03.541282Z",
      "updated_at": "2026-05-13T14:25:03.869379Z"
    },
    "resources": [],
    "expertise_fields": [],
    "hub": {
      "id": 15,
      "name": "Istanbul / Kadikoy, Turkey",
      "slug": "istanbul-kadikoy",
      "country": "Turkey",
      "city": "İstanbul",
      "district": "Kadıköy"
    }
  },
  "title": "Elderly neighbor needs medical assistance",
  "description": "My neighbor (80F) fell and cannot move her arm. She is conscious but in pain.",
  "image_urls": [],
  "latitude": "40.990200",
  "longitude": "29.027100",
  "location_text": "Kadıköy, Moda district, near the park entrance",
  "status": "OPEN",
  "comment_count": 0,
  "assigned_expert": null,
  "assigned_expert_username": null,
  "assigned_at": null,
  "resolved_at": null,
  "is_expert_responding": false,
  "created_at": "2026-05-15T12:31:50.570335Z",
  "updated_at": "2026-05-15T12:31:50.570347Z"
}

Scenario 2: Expert Takes On a Help Request

  • Endpoint: POST /api/help-requests/{id}/take-on/

  • Scenario Description: Dr. Sarah Tabip — an EXPERT with approved First Aid and Doctor/Nurse expertise (both mapping to the MEDICAL help-request category) — claims responsibility for the open help request created in Scenario 1. The request transitions from OPEN to EXPERT_RESPONDING and she is recorded as the assigned expert.

    First ->

    curl -X POST "https://emergencyhub.duckdns.org/api/login" \
    -H "Content-Type: application/json" \
    -d '{
      "email": "sarah.tabip@example.com",
      "password": "EmHub2026!"
    }'

    Take the token and insert. Other than this, copy the value of "id" from the previous help request response and insert in the url.

  • The Request:

curl -X POST "https://emergencyhub.duckdns.org/api/help-requests/{id}/take-on/" \
  -H "Authorization: Bearer <INSERT_TOKEN>"
  • The Response:
{
  "id": 25,
  "hub": 15,
  "hub_name": "Istanbul / Kadikoy, Turkey",
  "category": "MEDICAL",
  "urgency": "HIGH",
  "author": {
    "id": 84,
    "full_name": "Ahmet Yılmaz",
    "email": "ahmet.yilmaz@example.com",
    "role": "STANDARD",
    "staff_role": "NONE",
    "neighborhood_address": "Istanbul / Kadikoy, Turkey",
    "profile": {
      "phone_number": null,
      "blood_type": null,
      "emergency_contact_phone": null,
      "special_needs": null,
      "has_disability": false,
      "availability_status": "SAFE",
      "bio": "Ahmet Yılmaz — community member in Istanbul / Kadikoy, Turkey.",
      "preferred_language": "Turkish",
      "emergency_contact": null,
      "created_at": "2026-05-13T14:25:03.541282Z",
      "updated_at": "2026-05-13T14:25:03.869379Z"
    },
    "resources": [],
    "expertise_fields": [],
    "hub": {
      "id": 15,
      "name": "Istanbul / Kadikoy, Turkey",
      "slug": "istanbul-kadikoy",
      "country": "Turkey",
      "city": "İstanbul",
      "district": "Kadıköy"
    }
  },
  "title": "Elderly neighbor needs medical assistance",
  "description": "My neighbor (80F) fell and cannot move her arm. She is conscious but in pain.",
  "image_urls": [],
  "latitude": "40.990200",
  "longitude": "29.027100",
  "location_text": "Kadıköy, Moda district, near the park entrance",
  "status": "EXPERT_RESPONDING",
  "comment_count": 0,
  "assigned_expert": {
    "id": 90,
    "full_name": "Dr. Sarah Tabip",
    "email": "sarah.tabip@example.com",
    "role": "EXPERT",
    "staff_role": "NONE",
    "neighborhood_address": "Istanbul / Kadikoy, Turkey",
    "profile": {
      "phone_number": null,
      "blood_type": null,
      "emergency_contact_phone": null,
      "special_needs": null,
      "has_disability": false,
      "availability_status": "SAFE",
      "bio": "Dr. Sarah Tabip — community member in Istanbul / Kadikoy, Turkey.",
      "preferred_language": "Turkish",
      "emergency_contact": null,
      "created_at": "2026-05-13T14:25:05.558568Z",
      "updated_at": "2026-05-13T14:25:05.898285Z"
    },
    "resources": [],
    "expertise_fields": [
      {
        "id": 29,
        "category": {
          "id": 13,
          "name": "First Aid",
          "help_request_category": "MEDICAL",
          "translations": {}
        },
        "certification_level": "ADVANCED",
        "certification_document_url": null,
        "verification_status": "APPROVED",
        "reviewed_by_id": null,
        "reviewed_by_name": null,
        "reviewed_at": "2026-05-13T14:25:05.901644Z",
        "verification_note": "Seeded.",
        "created_at": "2026-05-13T14:25:05.904962Z",
        "updated_at": "2026-05-13T14:25:05.904970Z"
      },
      {
        "id": 30,
        "category": {
          "id": 14,
          "name": "Doctor/Nurse",
          "help_request_category": "MEDICAL",
          "translations": {}
        },
        "certification_level": "ADVANCED",
        "certification_document_url": null,
        "verification_status": "APPROVED",
        "reviewed_by_id": null,
        "reviewed_by_name": null,
        "reviewed_at": "2026-05-13T14:25:05.905947Z",
        "verification_note": "Seeded.",
        "created_at": "2026-05-13T14:25:05.907648Z",
        "updated_at": "2026-05-13T14:25:05.907656Z"
      }
    ],
    "hub": {
      "id": 15,
      "name": "Istanbul / Kadikoy, Turkey",
      "slug": "istanbul-kadikoy",
      "country": "Turkey",
      "city": "İstanbul",
      "district": "Kadıköy"
    }
  },
  "assigned_expert_username": "Dr. Sarah Tabip",
  "assigned_at": "2026-05-15T12:32:33.851408Z",
  "resolved_at": null,
  "is_expert_responding": true,
  "created_at": "2026-05-15T12:31:50.570335Z",
  "updated_at": "2026-05-15T12:31:50.570347Z"
}

Scenario 3: Mobile Device Syncs Offline Mesh Messages

  • Endpoint: POST /api/mesh-messages/sync/

  • Scenario Description: A mobile user who was offline during an emergency reconnects and batch-uploads the posts and comments their device authored while disconnected. The server stores each row keyed by the UUID the mobile generated, so the call is idempotent — already-uploaded ids are skipped silently and the response lists only the newly accepted ids.

    First → log in as the standard user and copy the token from the response:

    curl -X POST "https://emergencyhub.duckdns.org/api/login" \
      -H "Content-Type: application/json" \
      -d '{
        "email": "ahmet.yilmaz@example.com",
        "password": "EmHub2026!"
      }'

    Paste the token in place of <INSERT_TOKEN> below.

  • The Request:

curl -X POST "https://emergencyhub.duckdns.org/api/mesh-messages/sync/" \
  -H "Authorization: Bearer <INSERT_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {
        "id": "offline-msg-7f3e9b21",
        "author_device_id": "device-ahmet-pixel-001",
        "author_display_name": "Ahmet Yılmaz",
        "body": "Water distribution active at main square near the fountain.",
        "title": "Water distribution at main square",
        "post_type": "OFFER_HELP",
        "created_at": 1778841000000,
        "received_at": 1778841000000,
        "ttl_hours": 72,
        "hop_count": 0,
        "latitude": 40.9902,
        "longitude": 29.0271,
        "parent_post_id": null
      },
      {
        "id": "offline-msg-c82a4d50",
        "author_device_id": "device-ahmet-pixel-001",
        "author_display_name": "Ahmet Yılmaz",
        "body": "Confirmed still active as of 10:45.",
        "created_at": 1778841900000,
        "received_at": 1778841900000,
        "ttl_hours": 72,
        "hop_count": 1,
        "parent_post_id": "offline-msg-7f3e9b21"
      }
    ]
  }'
  • The Response:
{
  "accepted": [
    "offline-msg-7f3e9b21",
    "offline-msg-c82a4d50"
  ]
}
  • If the response is an empty array, please change the post_id values inside the request and try again.

Scenario 4: View Badge Progress After Community Contributions

  • Endpoint: GET /api/api/badges/my-badges/

  • Scenario Description: After commenting on posts and responding to help requests, a user checks their badge progress dashboard to see which milestones they have reached and how close they are to the next level. Each entry shows the badge metadata (name, icon, description, max level) alongside the user-specific current_level, current_progress, and next_level_goal.

    First → log in:

    curl -X POST "https://emergencyhub.duckdns.org/api/login" \
      -H "Content-Type: application/json" \
      -d '{
        "email": "gosling@mail.com",
        "password": "Ahmet!04"
      }'

    Paste the token in place of <INSERT_TOKEN> below.

  • The Request:

curl -X GET "https://emergencyhub.duckdns.org/api/api/badges/my-badges/" \
  -H "Authorization: Bearer <INSERT_TOKEN>"
  • The Response:
[
  {
    "id": 22,
    "badge_name": "Commenter",
    "badge_icon": "🗣️",
    "badge_description": "Awarded for commenting.",
    "current_level": 1,
    "current_progress": 4,
    "max_level": 5,
    "next_level_goal": 5,
    "is_max_level": false
  },
  {
    "id": 23,
    "badge_name": "Responder",
    "badge_icon": "⛑️",
    "badge_description": "Awarded for responding to Help Requests",
    "current_level": 3,
    "current_progress": 4,
    "max_level": 7,
    "next_level_goal": 5,
    "is_max_level": false
  }
]

4.4 User Interface / User Experience

Artifacts

Web Application

Screen Link to Code Screenshot
[Help Request Creation] Help Request Screenshot
[Help Request Assignment] Help Request Detail Screenshot
[Offline Messaging] Offline Message & Offline Message Detail Screenshot
[Badge System] Badge System Screenshot

Mobile Application

Screen Link to Code Screenshot
[Help Request Creation] XML File & KT File Screenshot
[Help Request Assignment] XML File & KT File Screenshot
[Offline Messaging] XML File & KT File Screenshot
[Badge System] XML File & KT File Screenshot

4.5 Utilized Standards

For a full rationale of why each standard was chosen, see the Use of Standards wiki page.

Compliance Summary

  • OpenAPI 3.1 (via drf-spectacular) — fully implemented
  • W3C WCAG 2.2 Level AA (ARIA / accessibility) — partially implemented (web forms + mobile)
  • Schema.org SpecialAnnouncement + JSON-LD 1.1 — designed, not yet implemented
  • OASIS Common Alerting Protocol (CAP) v1.2 — designed, not yet implemented

Deep Dive


Standard: OpenAPI 3.1

  • Evidence: PR #354, PR #360, PR #362
  • Code:
  • Reasoning: The same Django backend serves both the React web client and the Android mobile client. An OpenAPI 3.1 contract generated by drf-spectacular makes every endpoint's expected request body, response shape, and authentication requirement explicit and machine-verifiable. This prevents silent breaking changes between teams, enables auto-generated Swagger UI and ReDoc for testers, and documents the 60+ endpoints available in the final release. The live documentation is accessible at https://emergencyhub.duckdns.org/api/docs/.

Standard: W3C WCAG 2.2 Level AA


4.6 Testing & Quality Assurance

Test Execution Reports

Reports are generated automatically by the CI pipeline on every pull request. The commands used are documented in .github/workflows/deploy.yml.

Layer HTML Report XML Report
Backend API Link to HTML report Link to XML report
Web Application Link to HTML report Link to XML report
Mobile Unit Tests Link to HTML report Link to XML report
Mobile Instrumented (Espresso) Link to HTML report -
E2E Tests Link to HTML report -

Backend and web HTML/XML reports are generated as GitHub Actions artifacts during CI runs. To regenerate locally:

  • Backend: cd backend && python manage.py test accounts forum help_requests --verbosity=2
  • Web unit: cd frontend && npm test -- --ci
  • Web E2E: cd frontend && npm run e2e
  • Mobile unit: cd mobile && ./gradlew testDebugUnitTest
  • Mobile instrumented: cd mobile && ./gradlew connectedDebugAndroidTest

New Test Evidence

Integration Tests (Backend)

  • backend/help_requests/tests.py — ~100+ tests covering help request CRUD, expert take-on/release/resolve flows, FCM notification routing, expertise category matching, image upload validation, and help offer workflows
  • backend/accounts/tests.py — ~60 tests covering registration, login, public profile privacy, expertise fields, and resource management
  • backend/accounts/test_staff.py — ~80+ tests covering staff roles, moderation flows, expertise verification, audit logs, and admin safeguards
  • backend/forum/tests.py — ~40 tests covering post/comment CRUD, voting, reporting, reposting, and hub/type filtering

End-to-end (E2E) Tests

UI/UX Tests

Impact Analysis

  • Coverage: The new integration tests fully cover the expert take-on/release workflow (POST /help-requests/{id}/take-on, POST /help-requests/{id}/release), the FCM push notification routing logic for expertise-matched experts, and the complete help offer lifecycle. The Playwright E2E suite covers the full forum voting flow end-to-end, which previously had no automated test coverage. The Espresso suite covers all critical mobile screens that a first-time user would interact with during an emergency.

  • Bug Detection:

    1. Forum vote race condition — The Playwright E2E test TC-FORUM-002 caught a race condition where toggling a vote before the count updated in the DOM caused the test to read stale values and the UI to display an incorrect vote count. The fix added an explicit wait for the count to update before the toggle action. (fix commit)
    2. Dashboard regression after hub-catalog changes — When a large batch of new hubs was introduced (hub-catalog feature), the DashboardActivityTest Espresso test caught that the activity layout had changed in a way that broke existing test selectors. This exposed a UI regression in the dashboard hub selector overlay that was fixed before merging. (fix commit)
  • Readiness: The test suite spans all three layers of the application (backend API, web frontend, mobile) with a total of ~280 backend integration tests, ~40 frontend unit tests, 4 Playwright E2E spec files, and 9 Espresso instrumented test classes. All tests run automatically on every pull request via GitHub Actions, and deployment to production is gated on all test jobs passing. This multi-layer coverage confirms that the core emergency workflows — user registration, help request creation and expert assignment, forum posting and voting, and profile management — behave correctly across the full stack.


4.7 Demo Reflections & Notes

Notes Taken During the Demo

Reflections


5. Individual Contributions

5.1 Ahmet Erdem Bulut

Responsibilities

  • Primary owner for the Help Requests and Help Offers feature across backend, frontend, and mobile.
  • Responsible for the expert role system: expertise category modeling, category-based FCM notification routing, and expertise-match filtering.
  • Responsible for setting up and maintaining the CI testing pipeline (GitHub Actions), including Playwright E2E, Espresso instrumented, and React Testing Library test infrastructure.
  • Responsible for the local Docker Compose development environment.
  • Acted as co-leads of the team with Barış Öksüz. We took the main roles in milestone planning, task distribution, deadline setting, meeting organization including instructor and TA communications, and overall progress tracking throughout the project.

Main Contributions

  • Implemented the complete expert role system with category-based notification routing (PR #262): introduced the ExpertiseCategory model, replaced free-text expertise fields with structured FK references, added GET /expertise-categories/ endpoint, implemented hub-scoped targeted FCM delivery to expertise-matched experts with a graceful fallback, and updated both the web and mobile UIs to reflect the new system.
  • Built the full automated testing infrastructure from scratch: Playwright E2E test suite (PRs #302, #317), Espresso instrumented test suite (PRs #303, #322), and React Testing Library frontend tests (PR #314); integrated all suites into the CI pipeline with dorny/test-reporter for clickable HTML reports on PRs.
  • Added activity section to public profile and fixed self-profile routing so users are redirected to their own editable profile rather than the read-only public view (commit c0ef4bd).
  • Set up the local Docker Compose environment with HTTP-only Nginx and exposed backend port 8000 so the Android emulator can reach the backend without a live deployment (PR #256).
  • Updated all README files with complete step-by-step setup instructions covering web, backend, and mobile for both development and production, including data seeding and default credentials (PR #346).

Significant Issues (Top 3 per category)

Code-Related
  • Issue #243: Implement Expert Role Model and Assignment — Designed and implemented the ExpertiseCategory model with DB-seeded predefined categories, replaced the old free-text ExpertiseField.field with a FK, and updated all serializers, views, and migrations accordingly.
  • Issue #245: Expertise-based expert notification routing — Implemented the two-path FCM notification system: primary path sends to expertise-matched experts in the hub; fallback path notifies all hub experts and sends a no_expert_available notification to the requester when no matching expert has an FCM token.
  • Issue #293: Write E2E Testing Scenarios in Playwright — Implemented the full Playwright E2E test suite covering the acceptance scenarios defined in the test plan: registration, login, forum post creation, voting, help request creation/filtering, and profile management flows against the live full stack.
Non-Code-Related
  • Issue #242: Plan Expert Roles and Help Request Mapping — Designed the expert role taxonomy (MEDICAL, SHELTER, TRANSPORT, FOOD, OTHER), defined the mapping between help request categories and expertise areas, and documented the assignment model before implementation began.
  • Issue #269: Creating Acceptance Test Strategy — Wrote the Acceptance Testing Strategy section covering how the team verifies the system meets user expectations from a stakeholder perspective, including test scenario structure and coverage criteria.
  • Issue #334: Update README with full setup, seeding, and default credentials — Wrote complete, reviewer-ready setup instructions covering Docker Compose, environment variables, data seeding commands, and default credentials for all three platforms.

Pull Requests

Created / Owned

  • PR #256: devops: add local Docker Compose setup with HTTP-only Nginx — Local Nginx config exposing backend port 8000 for Android emulator access without production SSL. Conflict Resolution: No conflict.
  • PR #260: fix: default debug BASE_URL to emulator localhost — Mobile debug build now points to the local emulator by default instead of production. Conflict Resolution: No conflict.
  • PR #262: feat: expert role system with category-based notification routing — End-to-end expert role feature: ExpertiseCategory model, FCM routing, expertise-match filter, web and mobile UI. Conflict Resolution: Rebased onto develop and resolved the conflicts manually.
  • PR #302: test: Add Playwright E2E test infrastructure — Playwright setup, CI integration, and dorny/test-reporter wiring. Conflict Resolution: No conflict.
  • PR #303: test: Add Espresso instrumented test infrastructure — Espresso setup with API 34 emulator on ubuntu-22.04 and CI artifact upload. Conflict Resolution: No conflict.
  • PR #314: test: add RTL frontend tests for auth, forum, help requests, and profile pages — React Testing Library unit tests for six core pages. Conflict Resolution: No conflict.
  • PR #315: fix: resolve mobile build errors introduced by develop merge — Fixed Kotlin compilation errors caused by conflicting changes from the develop merge. Conflict Resolution: No conflict.
  • PR #317: test: add Playwright E2E tests for MVP acceptance scenarios — TC-AUTH-001, TC-AUTH-002, TC-FORUM-001, TC-FORUM-002, help request, and profile E2E scenarios. Conflict Resolution: No conflict.
  • PR #322: test: add Espresso tests for forum, help request & profile flows — Espresso instrumented tests for forum, help request, and profile activities. Conflict Resolution: No conflict.
  • PR #325: fix: resolve all failing CI tests across backend, frontend, and Android — Fixed backend xmlrunner output path, Vite server binding, and stale Android test selectors. Conflict Resolution: No conflict.
  • PR #338: fix: resolve all CI test failures across frontend and Android — Fixed Playwright selectors, duplicate Android string keys, and flaky Espresso assertions after hub-catalog merge. Conflict Resolution: No conflict.
  • PR #342: fix: show expertise category name and fix mobile expertise creation — Fixed expertise display on web profile and resolved mobile expertise creation API key mismatch. Conflict Resolution: No conflict.
  • PR #346: docs: update all READMEs with complete setup — Full setup documentation for web, backend, and mobile including seeding and default credentials. Conflict Resolution: No conflict.
  • PR #355: ci: skip test jobs when merging to main — Tests run on PRs; skipping redundant re-run on the merge commit to main saves CI time. Conflict Resolution: No conflict.

Reviewed / Merged

  • PR #231: Refactor Mobile Code by Extracting Shared Utility Functions — Reviewed and merged.
  • PR #261: Develop to Main Merge — Reviewed and merged.
  • PR #263: Feature/language support — Reviewed and merged.
  • PR #265: feat: add mobile language support and complete localization coverage — Reviewed and merged.
  • PR #277: Implement Offline BLE Mesh Forum with Server Archive — Reviewed and merged.
  • PR #306: Implement Staff Roles — Reviewed and merged.
  • PR #307: feat: settings — Reviewed and merged.
  • PR #309: Fix BLE Write Race Condition and Serialize GATT Operations — Reviewed and merged.
  • PR #312: Add Speech Recognition Support for Forum and Help Requests — Reviewed and merged.
  • PR #318: feature: sos button added for offline forum — Reviewed and merged.
  • PR #320: feat: add expert help request take-on flow and badge system — Reviewed and merged.
  • PR #324: fix: align mobile badge and help request translations — Reviewed and merged.
  • PR #343: feat: add mobile my posts section — Reviewed and merged.
  • PR #347: feat: add public profile navigation and assigned expert links — Reviewed and merged.
  • PR #350: release: merge develop into main for final milestone delivery — Reviewed and merged.
  • PR #357: deploy.yml changed — Reviewed and merged.
  • PR #361: api-docs-fix — Reviewed and merged.
  • PR #359: Feature/apk brand — Add App Logo for APK — Reviewed and merged.
  • PR #362: api docs fixed — Reviewed and merged.

AI Transparency & Documentation

Tool Summary
  1. Claude Code — Used throughout the project for planning the tasks and after planning make it implement the planned tasks in order. I reviewed everything it implemented and never committed anything without reviewing. I also used it for reviewing some PRs of other group members.
Prompts
  • I don't have the full history of the prompts since Claude Code autocompacts long sessions.

Individual Testing Efforts

  1. Playwright E2E infrastructure and test suite (PR #302, PR #317): Set up Playwright from scratch (configuration, CI integration, dorny/test-reporter), then wrote TC-AUTH-001, TC-AUTH-002, TC-FORUM-001, TC-FORUM-002, help request creation/filtering, and profile update flows.
  2. Espresso instrumented test infrastructure and test suite (PR #303, PR #322): Configured Espresso with API 34 emulator in CI, wrote SignInActivityTest, DashboardActivityTest, ForumActivityTest, PostDetailActivityTest, HelpRequestListActivityTest, HelpRequestDetailActivityTest, and ProfileActivityTest.
  3. React Testing Library frontend tests (PR #314): Wrote unit tests for SignInPage, SignUpPage, ForumPage, PostDetailPage, HelpRequestsPage, HelpRequestCreatePage, and ProfilePage covering render correctness, form submission, API mocking, and routing behavior.

Additional Information

  • The contributions documented in this section primarily reflect work completed after the MVP milestone.
  • Throughout the project, Barış Öksüz and I effectively acted as co-leads. We jointly took ownership of milestone planning, task distribution, deadline setting, meeting organization, and progress tracking for the team.

5.2 Ahmet Hamza Çakmak

Responsibilities

  • Fully responsible for the Tutorial Page feature.

  • Contributed to project coordination by documenting meetings, customer feedback, and planning discussions throughout the project.

Main Contributions

  • Implemented the Tutorial Page for both web and mobile platforms, including support for all languages available in the application.

  • Implemented the tutorial flow allowing new users to experience and understand the application to some extent without requiring sign-in.

  • Worked on several UI/UX improvements, especially fixing overlapping interface elements and improving consistency across subpages.

  • Added unit tests for the Tutorial web page to improve reliability and maintainability.

  • Designed candidate application logos/icons.

Significant Issues (Top 3 per category)

Code-Related
  • Issue #294: UI & UX Improvements

    • Unified the position and styling of the back button across subpages and fixed the superposition issue between the language selection bar and the hub selection bar.
  • Issue #295: Tutorial Page for New Users

    • Implemented a tutorial system allowing new users to use and explore the application to some extent without signing in.
  • Issue #349: Adding Unit Tests for Tutorial Web Page

    • Added unit tests for the Tutorial web page to improve reliability and maintainability.
Non-Code-Related
  • Issue #255: Customer Meeting 2 Notes

    • Documented and summarized the customer meeting after the MVP milestone. The meeting was important for shaping the roadmap from the MVP milestone to the Final Milestone.
  • Issue #275: Customer Meeting 3 Notes

    • Documented the final customer meeting before the Final Milestone, clarifying which features should be prioritized and which features should be omitted in order to focus on critical implementations.
  • Issue #363: Final Demo Presentation Notes

    • As the customer observer during the Final Demo presentation, observed the impressions and feedback of the instructor, teaching assistants, and guests, then shared the observations with the team.

Pull Requests

Created / Owned

  • PR #308: UI-UX Improvement

    • Implemented multiple UI/UX improvements across the application, including layout consistency and overlap fixes.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.
  • PR #313: Tutorial Feature for Both Mobile and Web

    • Implemented the Tutorial feature for both mobile and web platforms, enabling new users to explore the application without signing in. Added multilingual support for all supported application languages.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.
  • PR #351: Unit Tests for Tutorial Web Page

    • Added unit tests for the Tutorial web page to improve stability and ensure correct functionality.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.

Reviewed / Merged

  • PR #327: Forum Filtering

    • Reviewed and merged the forum filtering feature implementation.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.
  • PR #330: Translation for Settings Page

    • Reviewed and merged translation support improvements for the settings page.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.
  • PR #331: Light Mode Feature

    • Reviewed and merged the Light Mode feature implementation.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.
  • PR #353: Populating the Local Docker Environment with Realistic Sample Data

    • Reviewed and merged improvements for populating the local Docker environment with realistic sample data for development and testing purposes.
    • Conflict Resolution: Solved conflicts by reviewing the related code carefully and manually handling necessary parts when required.

AI Transparency & Documentation

Tool Summary
  • Task planning was done by myself throughout the project. AI tools were used during implementation and while reviewing my teammates’ code. All AI-generated changes were carefully reviewed before being accepted.

  • Instead of directly accepting AI-generated outputs, I mainly used AI through discussions and by critically evaluating and arguing about the produced solutions.

Prompts

Drive Link. This isn’t all of the prompts, just a few examples to give an idea of how Codex is used.

Individual Testing Efforts

  • Wrote unit tests for the Tutorial web page #349 .

Additional Information

I became familiar with integrating AI-assisted development tools directly into coding environments such as Visual Studio Code relatively late in the project timeline (around May 1st). Before that, I had experience using AI tools mainly through chat-based interfaces in web browsers rather than integrated development workflows.

Although I actively participated in planning and coordination activities throughout the project, my implementation contribution level was relatively lower compared to my teammates during the earlier stages.

Before starting to use AI-assisted tools such as CODEX within VS Code, I mainly focused on reviewing and understanding the code written by my teammates. Since this project was relatively large in scale, I was initially hesitant to make direct changes or implement major features on my own.

After becoming more comfortable with integrated AI-assisted development workflows, I was able to contribute more actively to implementation tasks. This explains the noticeable increase in my code production during the later stages of the project compared to earlier periods.


5.3 Ahmet Cem Çalık

Responsibilities

  • Primary owner of the Badge feature across frontend and backend
  • Primary owner of the Language Support system across frontend and backend.
  • Responsible for creating the English and Turkish translations and naming of the buttons, layout and badges. Also created the Chinese and Spanish language .json files with AI translation tools.
  • Primary writer of offline information and emergency numbers pages and organization of the said informations on web and mobile.

Main Contributions

  • Implemented the language support, translation and i18n localization of the language support on frontend and backend (PR #263).
  • Created the glossary page on the wiki page.
  • Created the backbone, implementation and database integration of the badge system. Integrated the badge system in the backend and frontend (PR #320).
  • Created the main structure of the offline information system. Fully implemented the said system on mobile (PR #210).
  • Implemented the emergency numbers page and all the necessities for storing the numbers in device storage (PR #210).

Significant Issues (Top 3 per category)

Code-Related
  • Issue #237: Language Support
    • Implementing the language support on backend and frontend.
  • Issue #92: Offline Features
    • Creating the offline features pages aside from the map.
  • Issue #296: Badge System
    • Creating the badge system on backend and frontend.
Non-Code-Related
  • Issue #31: Glossary
    • Created a dedicated Glossary page on the repository Wiki that defines key terms, definitions and terminology.

Pull Requests

Created / Owned

  • PR #320: Badge System
    • Creating the web pages and layouts of badges appearing on the users own profile page and other users viewed profile pages.
    • Creating the web page of the users acquired badges.
    • Implementing the backend logic for only top 3 leveled badges to appear on the profile. Also implementing the badge acquiring logic in the backend.
    • Creating the database and migrations for badges.
  • PR #263: Language Support
    • Integrated the i18n language localization for the web pages.
    • Created the language .json files for English, Turkish, Spanish and Chinese.
    • Implemented the functionalities for changing languages across all web pages via a button that persist regardless of the open page.
  • PR #210: Offline Pages
    • Created the text and images to be displayed on First Aid information pages. Also created the pages for these on mobile.
    • Implemented the emergency numbers page on mobile. Also implemented the local database access and storage for emergency numbers.

Reviewed / Merged

  • PR #308: UI/UX
    • Reviewed and merged the PR for organizing the web pages layouts.
  • PR #313: Tutorial
    • Reviewed and merged the PR for the tutorial feature.

AI Transparency & Documentation

Tool Summary
  • I have only used the Gemini web page for helping on coding. No integrated agents or automated code editing tools were used and all the generated code of the AI was read carefully before being used.
Prompts
  • Sadly I don't keep the chats on the web page to keep everything clean.

Individual Testing Efforts

  • Testing was done by Ahmet Erdem Bulut. Aside from local testing I don't have much to share.

Additional Information

Took the notes for Weekly Meeting 8, although did not create a dedicated issue for it. Also created the lab reports 9 and 10.

Helped creating the narrative and flow of the both presentations. Also took role of the main presenter/narrator in both demos.


5.4 Mete Damar

Responsibilities

  • Fully responsible for implementing the complete Settings Page feature across web and mobile platforms.
  • Led the implementation of Light Mode feature to improve the application's user interface.
  • Implemented data population infrastructure for local Docker development environments.

Main Contributions

  • Implemented a complete Settings Page for both web and mobile platforms.
  • Designed and implemented a complete Light Mode theme system for both web and mobile applications.
  • Implemented automated data population scripts for local Docker development environments and created realistic sample data including hubs, users, forum posts, help requests, and offers.
  • Contributed application logo implementation.

Significant Issues (Top 3 per category)

Code-Related
  • Issue #246: Implement Settings Page

    • Implemented a complete Settings Page feature for both web and mobile platforms, enabling users to manage notification preferences and privacy settings.
  • Issue #247: Implement Light Mode

    • Designed and implemented a complete Light Mode theme system for both web and mobile applications, allowing users to toggle between Dark and Light interface themes.
  • Issue #352: Populate Local Docker Environment with Data

    • Designed and implemented data population infrastructure for local Docker environments with realistic sample data (users, hubs, posts, help requests).
Non-Code-Related
  • Issue #328: Create Weekly Meeting 11 Notes

    • Documented weekly team meeting discussions, decisions, and action items during the final milestone phase.
  • Issue #311: Creating Final Demo Plan

    • Contributed to planning and coordination of the final demo presentation for the project.
  • Issue #267: Create Requirements Review

    • Contributed to creating and reviewing the requirements review documentation following the provided criteria.

Pull Requests

Created / Owned

  • PR #307: Feat - Settings (Full-Stack Implementation)

    • Implemented the complete Settings Page feature across backend (Django), frontend (React), and mobile (Android/Kotlin) platforms.
    • Includes notification preferences, privacy settings, and user profile management.
  • PR #330: Fix - Translation of Settings Page

    • Added Turkish, Chinese, and Spanish translation support for all Settings Page text and labels.
    • Related to Issue #329
  • PR #331: Feature Light Mode

    • Implemented Light Mode theme for both web (React) and mobile (Android) platforms.
    • Provides users with the ability to toggle between Dark and Light interface themes.
  • PR #353: Bugfix - Local Populating for Docker

    • Implemented data population scripts for local Docker environments with sample hubs, users, posts, and help requests.
    • Related to Issue #352
  • PR #356: Doc - Update README for Data Population

    • Updated README documentation with comprehensive instructions for local Docker setup and data population.
  • PR #359: Feature/APK Brand

    • Updated APK branding and configuration for mobile application releases.

Reviewed / Merged

  • PR #256: Devops - Add Local Docker Compose Setup with HTTP-only Nginx

    • Reviewed and merged local Docker Compose configuration for development environments.
  • PR #260: Fix - Default Debug BASE_URL to Emulator Localhost

    • Reviewed and merged bug fix for mobile debug build URL fallback configuration.
  • PR #354: Docs - API Documentation

    • Reviewed and merged API documentation (Swagger UI) setup.

AI Transparency & Documentation

Tool Summary
  • GitHub Copilot & Codex — Used during implementation of complex features, particularly for generating boilerplate code for the Settings Page form components, theme system architecture, and data population scripts.
  • ChatGPT — Used primarily for documentation tasks, helping to structure and refine project documentation, meeting notes, and technical writeups.
  • All AI-generated code was thoroughly reviewed, tested, and refined before integration to ensure it met project standards and architecture.
  • AI was primarily used to accelerate development of repetitive tasks and provide architectural suggestions, while core business logic and design decisions were made independently.
Prompts
  • I did't keep the chats record.

Individual Testing Efforts

  • Tested all the feature using local development technics in mobile, backend and frontend.
  • Used all the implemented tests on my own contributions and the merged pr's to ensure the tests runs perfectly.

Additional Information

  • I tried to contribute all of the decision phases for being efficient and sufficient on all of the requirements.

5.5 Asya Betül Keskin

Responsibilities

  • Responsible for the authentication flow across backend, frontend, and mobile during the MVP phase, including registration, login, JWT-based authentication, and the initial mobile application structure.
  • Responsible for implementing mobile language support and localization coverage, enabling the Android application to support multiple languages consistently across user-facing screens.
  • Contributed to the design and implementation of the Expert Help Request Take-On Flow and its integration with the Reward & Badge System.
  • Responsible for several additional Android mobile features and UI integrations, including the My Posts section, help request interactions, reward/badge-related screens, and user-facing navigation improvements.
  • Contributed to project documentation, especially the Data Strategy section and acceptance-test-related planning work.

Main Contributions

  • Implemented mobile language support and localization coverage, ensuring that major Android screens and user-facing labels were available in multiple supported languages and aligned with the web-side language support.
  • Developed the Expert Help Request Take-On Flow together with the related assignment logic: experts can take on eligible help requests, release them when necessary, and the interface reflects whether an expert is actively responding.
  • Contributed to the Reward & Badge System, particularly by connecting the expert assignment/resolution workflow to the help-completion logic needed for badge progression and by integrating the corresponding user-facing features.
  • Added the “My Posts” section on mobile, allowing users to access their own forum contributions directly from the Android application.
  • Implemented assigned expert links, improving user discovery and making expert/help-request relationships more visible through the interface.
  • Fixed mobile badge and help request translation inconsistencies, aligning terminology and descriptions between web and mobile.
  • Prepared the Data Strategy wiki section, documenting the project’s test-data approach, data categories, scenario coverage, and validation considerations.

Significant Issues

Code-Related Issues
  • Issue #237: Implementing Language Supports
    The aim of this issue was to provide multilingual support across the application. My related work focused on completing the mobile side of the localization effort, introducing language-aware Android resources and ensuring that major mobile UI texts were properly supported across the selected languages.

  • Issue #296: Reward & Badge System
    This issue focused on introducing a reward and badge structure to encourage user participation. I contributed especially to the mobile-side implementation and integration of this system, including the presentation of badge-related information in the Android application and the alignment of the mobile experience with the overall reward logic of the platform.

  • Issue #319: Implement Expert Take-On Flow for Help Requests
    The goal of this issue was to introduce a structured workflow where experts can actively take responsibility for help requests. I worked on the implementation of the take-on and release flow, the assignment logic, and the frontend/mobile user experience that shows whether an expert is responding to a request.

Non-Code-Related
  • Issue #274: Preparing the Data Strategy wiki page
    I prepared the Data Strategy documentation for the project. This section described how the team planned and structured synthetic/test data, which entities needed to be represented, how data should support realistic scenarios across platforms, and how consistency and validation would be handled.

Pull Requests

Authored PRs
  • PR #265: feat: add mobile language support and complete localization coverage
    Implemented the Android-side language support and expanded localization coverage across the mobile app, ensuring that major screens and labels used language resources consistently.
  • PR #320: feat: add expert help request take-on flow and badge system
    Implemented the expert take-on and release workflow for help requests, added corresponding request-assignment behavior, and integrated this flow with the badge/reward logic.
    Conflict Resolution: I resolved the minor conflict that occurred during the merge process.
  • PR #324: fix: align mobile badge and help request translations
    Fixed inconsistencies in mobile translations related to badges and help request texts, aligning terminology with the wider application.
  • PR #343: feat: add mobile my posts section
    Added a “My Posts” section to the Android application so users can view their own forum posts more easily from the mobile interface.
  • PR #347: feat: add public profile navigation and assigned expert links
    Took place on implementing navigation to public user profiles, fixed expertise area demonstration to other users in web
  • PR #350: release: merge develop into main for final milestone delivery
    Created the release PR that merged the completed Final Milestone work from develop into main for delivery.
Reviewed PRs
  • PR #262: feat: expert role system with category-based notification routing
    Reviewed the implementation of expert roles, expertise-category mapping, and category-based notification routing, and merged.
  • PR #263: Feature/language support
    Reviewed the broader project-wide language support implementation, and merged.
  • PR #331: Feature light mode
    Reviewed the addition of light mode support for the user interface, and merged.
  • PR #336: Hub catalog changed
    Reviewed the update to the hub catalog structure and location-selection logic, and merged.
  • PR #338: fix: resolve all CI test failures across frontend and Android
    Reviewed the fixes introduced to restore CI stability across frontend and mobile test suites, and merged.
  • PR #342: fix: show expertise category name and fix mobile expertise creation
    Reviewed the expertise display and mobile expertise-creation fixes, and merged.
  • PR #351: Unit Tests for Web Tutorial Page
    Reviewed the added unit tests for the web tutorial page.
  • PR #356: doc:update the readme for populating
    Reviewed documentation updates related to data population instructions, and merged.
  • PR #359: Feature/apk brand
    Reviewed the APK branding update, and merged.

AI Transparency & Documentation

Tool Summary
  1. Antigravity
    I used Antigravity as an AI-assisted development environment throughout the project. Through Antigravity, I used models such as Claude and Gemini during planning, implementation, debugging, and code review. I mainly used it to break larger tasks into smaller steps, inspect the existing project structure, generate implementation starting points, and evaluate possible fixes. I reviewed and adapted the generated suggestions before incorporating them into the project.

  2. Codex
    I also used Codex separately for code-generation support, debugging assistance, and exploring implementation alternatives during development. I used it especially when working on cross-platform feature integrations and reviewing possible fixes, while manually verifying and adjusting the final code.

  3. Copilot in VS Code
    I used GitHub Copilot in VS Code on a smaller scale, mainly for quick code suggestions, minor debugging support, and improving local implementation details.

  4. Cursor
    I used Cursor occasionally for code exploration, small implementation suggestions, and reviewing possible solutions while working on project tasks.

Prompts
  • I really do not have a proper history of the exact prompts used, since I used the tools and sessions interactively throughout development.
  • In general, I used prompts to:
    • explain the current feature goal and project constraints,
    • request implementation plans before coding,
    • ask for small, reviewable code changes instead of large uncontrolled edits,
    • request debugging help for integration problems,
    • ask for reviews of whether an implementation matched the existing backend/frontend/mobile structure.

Individual Testing Efforts

  • Wrote unit tests for the help request take-on flow for experts (commit 4e4e8e4)
  • Tested features locally

Additional Information

  • This individual contribution section was prepared by primarily taking into consideration the work completed after the MVP.

5.6 Ekin Menken

Responsibilities

  • User Profile Architecture & Implementation: Architected and collaboratively developed a comprehensive user profile system, designing distinct features, data structures, and UI components tailored to differentiate between "Expert" and "Standard" user types.

  • Platform Governance & Security Design: Planned and co-implemented a multi-tier staff role system, defining the hierarchy and access control mechanisms required for secure application administration.

Main Contributions

  • Defined Staff Role Specifications: Strategized and finalized the precise permissions and operational scopes for three distinct administrative roles: Admin, Moderator, and Verification Coordinator.
  • Engineered Role-Based Access Control (RBAC): Implemented the core backend security logic to strictly enforce RBAC, ensuring users can only access endpoints and perform actions permitted by their assigned roles.
  • Developed Admin Interfaces: Built the cross-platform Admin Panel UI (Frontend Web and Mobile) to facilitate seamless user management, content moderation, and system-level administrative actions.
  • Implemented Full-Stack Forum Filtering: Engineered a cross-platform feature (Backend, Web UI, and Mobile) enabling users to filter forum content dynamically based on the creator’s role (e.g., viewing posts by "All," "Experts," or "Standard Users").

Significant Issues

Code-Related

  • Issue #240: Admin Panel UI Developed the comprehensive interfaces across platforms required for staff to actively manage users, moderate platform content, and execute system actions.
  • Issue #241: RBAC Logic based on Defined Staff Roles Constructed the backend security infrastructure to support the newly defined Admin, Moderator, and Verification Coordinator hierarchies.
  • Issue #326: Forum Filtering Implemented logic that allows users to filter the forum posts based on the user type of the author.

Non-Code-Related

  • Issue #236: App's Staff Roles Designed the foundational administration architecture, outlining the hierarchy levels, required roles, and the overall permission structure for the application.
  • Issue #264: Staff Roles Specifics Documentation Drafted an in-depth wiki page explicitly defining the duties, technical limits, and specifications of the Admin, Moderator, and Verification Coordinator roles.

Pull Requests (Created / Owned)

  • PR #327: feat: Forum Filtering
    • Delivered a full-stack filtering system (Backend, Web, Mobile) allowing users to sort forum content by the author's designated user type (Expert vs. Standard).
  • PR #306: feat: Implement Staff Roles
    • Integrated the application-level staff roles to enforce RBAC, elevate platform governance, and facilitate expert verification processes.

AI Transparency & Documentation

Tool Summary
  1. Cursor
  • I used Cursor editor mainly for planning and debugging. I was unfamiliar with Kotlin, Cursor guided me in learning the libraries and packages.
Prompts

The prompt I used to plan the implementation process of staff roles:

  • I am going to implement admin and moderator roles for this project. I only want an implementation plan from you, clearly explain which role is going to have which permissions.

Individual Testing Efforts

I have not taken part in the testing. I only tested my code with the written tests.


5.7 Barış Öksüz

  • Everything below applies to the period after the MVP presentation.

Responsibilities

  • In charge of the offline features.
  • Plan features and share them with the team so someone can take them on.
  • Responsible for devops.
  • Acted as co-leads of the team with Ahmet Erdem Bulut. We took the main roles in milestone planning, task distribution, deadline setting, and overall progress tracking throughout the project.

Main Contributions

  • Implemented the offline messaging and syncing when connectivity returns feature from scratch.
  • Implemented the speech recognition for sending posts and help requests.
  • Did some refactoring to mobile after mvp.
  • Maintained the EC2 instance and the deployed code. Fixed it when it was down.
  • Worked on the deployed database by writing scripts for data population, data deletion etc.
  • Updated the hub system for both covering all over the world and covering small portions instead of big ones.

Significant Issues

Code-Related Issues
  • Issue #278: Implement BLE Mesh Peer Discovery and Connection Management
    The aim of the issue was implementing BLE discovery and establishing GATT server, which is the core of offline messaging.

  • **Issue #282: Implement speech recognition for forum and help requests **
    The aim of the issue was implementing speech recognition to make users easily post when they were not able to use their hands

  • ** Issue #337: Updating the available hubs. **
    Updated the hub system for both covering all over the world and covering small portions instead of big ones.

Non-Code-Related

Besides the lab work, I did not do any non-code-related work after the mvp.

Pull Requests

Authored PRs

PR #231: Refactor Mobile Code by Extracting Shared Utility Functions Refactored the Android codebase by extracting duplicated logic into shared utility classes (TimeUtils, ErrorUtils, BadgeUtils, ImageUploadHelper), removing duplicated code across ~7 adapters/activities and improving readability and consistency. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #276: Develop Merged the develop branch into the feature branch to pull in the latest local development fixes. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #277: Implement Offline BLE Mesh Forum with Server Archive Introduced a fully functional offline communication system over BLE mesh with a gossip-based sync protocol, local post/comment storage, optional location sharing, an offline forum UI on Android, and a server-backed archive (web + mobile) for synced messages. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #309: Fix BLE Write Race Condition and Serialize GATT Operations Fixed a critical race condition where a shared CompletableDeferred across peers caused dropped/corrupted writes. Introduced a global writeMutex to serialize GATT operations, scoped each deferred per write, and stabilized multi-peer mesh sync. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #312: Add Speech Recognition Support for Forum and Help Requests Added speech-to-text input across forum post creation, help request creation, and comments with a microphone control, error/permission handling, and automatic field population — improving accessibility, especially in emergency scenarios. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #318: feature: sos button added for offline forum Added an SOS button to the offline forum to let users quickly broadcast emergency messages over the mesh. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #336: Hub catalog changed Made hubs globally available with a hierarchical country → city → district selection (district optional), replacing the prior limited hub catalog. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #357: deploy.yml changed Updated deploy.yml to restart nginx during deployment so config changes are picked up reliably. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #360: api-docs fix introduced Initial fix for API documentation that was not working in production. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #361: api-docs-fix Follow-up adjustments to the API documentation deployment fix. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #362: api docs fixed Updated API documentation URLs and ensured JSON format for both Swagger and ReDoc so the docs render correctly on production. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

Reviewed PRs

PR #302: test: Add Playwright E2E test infrastructure Set up Playwright E2E infrastructure for the frontend (config, chromium-only run, JUnit/HTML/GitHub reporters, smoke test) and added an e2e CI job that boots Postgres + Django + Vite together and gates the deploy job on it. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #303: test: Add Espresso instrumented test infrastructure Set up Espresso instrumented testing for the Android project (deps, BaseInstrumentedTest with MockWebServer + token injection, smoke test) and added a CI emulator job (API 34, KVM, AVD caching) publishing results back to the PR. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #305: Feature/settings Implemented the in-app settings feature allowing users to view and update available settings from the app interface. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #314: test: add RTL frontend tests for auth, forum, help requests, and profile pages Added React Testing Library integration tests for five previously uncovered frontend pages and fixed a broken SignInPage test by mocking react-i18next with en.json key resolution. 95 tests pass across 9 suites with no regressions. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #317: test: add Playwright E2E tests for MVP acceptance scenarios Added a full Playwright E2E suite covering the MVP acceptance scenarios against the real Django + Vite stack, with a shared users.ts helper for isolated per-run users and a CI step that seeds a test hub via manage.py shell. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #322: test: add Espresso tests for forum, help request & profile flows Added Espresso UI tests for the forum, help request, and profile flows using MockWebServer, plus reliability fixes — revoking location permissions to avoid getCurrentLocation() hangs, stubbing /hubs/ 404 to prevent mid-click reloads, per-test timeouts, and dropping the CI emulator to API 30 to keep input injection working. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #325: fix: resolve all failing CI tests across backend, frontend, and Android Fixed five independent CI failures across the stack, including a production bug in expertise PATCH (stale _VERIFICATION_RESET_FIELDS reference after migration 0007) and a category_id vs category mismatch in ProfilePage.jsx, plus assorted serializer, RTL mock, e2e isolation, and Android nullable-field fixes. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

PR #346: docs: update all READMEs with complete setup Rewrote all four READMEs (root, backend, frontend, mobile) to give new contributors complete and accurate setup instructions — sample credentials, physical device setup via local.properties, exact Playwright/Espresso commands, full endpoint and page listings, and corrected env vars like VITE_API_BASE. Conflict Resolution: Solved the conflicts by reading the code and manually handled some parts if necessary.

AI Transparency & Documentation

Tool Summary
  1. Claude Code
    I used in steps. First step is planning the tasks carefully, after planning, make him implement features in very small portions and review every portion. After I used some built-in skills for code review.
Prompts
  • I really do not have the prompts I used.

Individual Testing Efforts

The whole testing process is handled by Ahmet Erdem Bulut, so I do not have any effort to share. (Except testing the features locally but nothing to share about that)

Additional Information

  • Throughout the project, Ahmet Erdem Bulut and I effectively acted as co-leads. We jointly took ownership of milestone planning, task distribution, deadline setting, and progress tracking for the team.

5.8 İrem Önen

Responsibilities

  • Developing a comprehensive user profile system, designing distinct features, data structures, and UI components designed to differentiate between "Expert" and "Standard" user types.

  • Planning and co-implementing a multi-tier staff role system, defining the hierarchy and access control mechanisms required for secure application administration.

  • Creating the project's live, interactive API documentation, ensuring strict alignment with the changes in system architecture

Main Contributions

  • Discussed and decided on the specifics of admin, moderator, and verification coordinator roles

  • Implemented backend logic for role-based access control (RBAC) based on the defined roles and permissions, ensuring users can only access endpoints and perform actions permitted by their assigned roles.

  • Implemented the admin panel interface to manage users, content, and system-level actions on both frontend and mobile.

  • Implemented role-based filtering in the forum to allow users to view content based on the creator’s user type. The filtering options include All, Experts, and Standard Users, and are applied consistently across backend, web UI, and mobile.

  • Created the live API documentation. Documented all endpoints and ensured that the documentation is consistent with the Final SRS.

  • Actively took part in preparing the documents that showcase the project's progress and contribute to organization and planning:

Significant Issues (Top 3 per category)

Code-Related
  • Issue #240: Admin Panel UI

    • Implemented the admin panel interface to manage users, content, and system-level actions.
  • Issue #241: RBAC Logic based on Defined Staff Roles

    • Implemented backend logic for role-based access control (RBAC) based on the defined staff roles (admin, moderator, and verification coordinator) and permissions.
  • Issue #335: Live API Documentation

    • Documented all endpoints and ensured that the documentation is consistent with the Final SRS.
Non-Code-Related
  • Issue #70: Git Contribution Guidelines

    • Listed the rules and naming convention for git contributions in a wiki page which helped during the development and prevented mistakes and confusions.
  • Issue #236: App's Staff Roles

    • Planned the administration system, including hierarchy levels, roles, and permission structure for the application.
  • Issue #264: Staff Roles Specifics Documentation

    • Created a wiki page that introduces the specifics of admin, moderator, and verification coordinator roles

Pull Requests

Created / Owned

  • PR #354: docs: api documentation

    • Set up API documentation page (Swagger UI)
  • PR #327: feat: Forum Filtering

    • Implemented role-based filtering in the forum to allow users to view content based on the creator’s user type. The filtering options include All, Experts, and Standard Users, and are applied consistently across backend, web UI, and mobile.
  • PR #306: feat: Implement Staff Roles

    • Implemented application-level staff roles to improve platform governance, content safety, and expert verification.

AI Transparency & Documentation

Tool Summary
  • I have used AI to discover the capabilities of the frameworks we have used. I have had hands-on experience with React however have not had any experience with Django or Kotlin before. AI helped me use these frameworks to their fullest extent.

  • I have used OpenAI Codex and Claude Haiku 4.5, however since I used them via VS Code GitHub Copilot Chat interface, the complete chat history has not been saved. The only saved chat session was with Codex while I was co-implementing the application's staff role hierarchy, role-based access control logic, and staff's additional UI features.

Prompts

This is the complete prompt I have provided OpenAI Codex while com-implementing application's staff role logic.

""" This document defines the final application-level authorization plan for Admin, Moderator, and Verification Coordinator roles in the Neighborhood Emergency Preparedness Hub. Please modify the necessary files in order to realize the plans in this document.

User.role remains dedicated to community identity (STANDARD / EXPERT). Staff authorization is managed separately.


1. Role model

The system will use a separate staff-role axis with these values:

  • NONE
  • MODERATOR
  • VERIFICATION_COORDINATOR
  • ADMIN

These staff roles are independent from STANDARD and EXPERT.


2. Scope decision

Moderators are global.

A moderator can moderate content across all hubs. No hub-scoped moderation logic will be implemented.


3. Permission matrix
3.1 Forum permissions
Permission Moderator Verification Coordinator Admin
View hidden posts in moderation views Yes No Yes
Change post status (ACTIVE, HIDDEN, REMOVED) Yes No Yes
Delete any post Yes No Yes
Delete any comment Yes No Yes
Manage pin/lock features No feature implemented No No feature implemented
Change forum global settings No No Yes
3.2 Help requests and offers permissions
Permission Moderator Verification Coordinator Admin
Edit/delete any help request for policy reasons Yes No Yes
Edit/delete any help offer for policy reasons Yes No Yes
Delete any help comment for policy reasons Yes No Yes
Force help request status changes for moderation Yes No Yes
3.3 Accounts and role-management permissions
Permission Moderator Verification Coordinator Admin
View public user profile Yes Yes Yes
Suspend/deactivate users (is_active=False) No No Yes
Assign or revoke staff roles No No Yes
Manage STANDARD / EXPERT role values No No Yes
Manage Django operational flags (is_staff, is_superuser) through API No No No
3.4 Expertise certification permissions
Permission Moderator Verification Coordinator Admin
View submitted expertise certification documents No Yes Yes
Approve expertise certification No Yes Yes
Reject expertise certification with reason No Yes Yes
Request resubmission of certification No Yes Yes
Manually override final certification decision No No Yes

4. Verification Coordinator responsibilities

The Verification Coordinator is responsible only for expertise-certification workflow.

Responsibilities:

  • Review submitted certification evidence for expert claims.
  • Mark submissions as approved, rejected, or resubmission-required.
  • Record decision metadata (reviewer, timestamp, decision, reason).
  • Trigger updates to expert-verification state in user-facing profile data.

Non-responsibilities:

  • No forum moderation powers.
  • No help-request/offer moderation powers.
  • No account suspension powers.
  • No staff-role assignment powers.
  • No platform configuration powers.

5. Data model plan

A separate staff-role field will be added to accounts.User:

  • staff_role: enum with NONE, MODERATOR, VERIFICATION_COORDINATOR, ADMIN.

Certification workflow state will be represented explicitly:

  • certification_status: NOT_SUBMITTED, PENDING_REVIEW, APPROVED, REJECTED, RESUBMISSION_REQUIRED.
  • certification_reviewed_by (FK to reviewer user).
  • certification_reviewed_at (datetime).
  • certification_review_note (text).

REGISTER and PATCH /me flows will not allow client-side mutation of staff_role.


6. Backend authorization enforcement

Rules:

  • Moderation endpoints require IsModeratorOrAdmin.
  • Certification-review endpoints require IsVerificationCoordinatorOrAdmin.
  • Staff-role assignment, suspension, and platform configuration require IsAdminOnly.
  • Existing author-only write guards remain for normal users and are bypassed only on explicitly designated moderation endpoints.

7. API plan

The API surface will include dedicated endpoints for:

  • Forum moderation actions.
  • Help-content moderation actions.
  • Expertise certification review actions.
  • Admin-only staff-role management.
  • Admin-only account suspension/reactivation.

No pin/lock endpoint family will be added.


8. Frontend and mobile plan

Web and mobile clients will read and enforce role-based UI from authenticated user data.

Client behavior:

  • Show moderation pages/actions only for MODERATOR and ADMIN.
  • Show certification-review pages/actions only for VERIFICATION_COORDINATOR and ADMIN.
  • Show staff-role management and account suspension UI only for ADMIN.
  • Do not render pin/lock controls.

Final authority split
  • Moderator: Global content moderation for forum/help domains only.
  • Verification Coordinator: Expertise certification assessment only.
  • Admin: Full authority across moderation, verification, user lifecycle, and staff-role governance.

"""

Individual Testing Efforts

I have not contributed to testing process except the local tests I have conducted.

Additional Information

  • [Additional notes, if any]

6. Final Software Release & Setup

Release Information


Clone this wiki locally