Skip to content

Requirements

asyabetulkeskin edited this page May 16, 2026 · 31 revisions

Requirements

1. Functional Requirements

1.1 User Requirements

  • 1.1.1 User Types

    • There shall be 3 types of users: standard users, experts, and staff users. Staff users are standard or expert accounts that have additionally been granted a staff role.

    • 1.1.1.1 Standard Users

      • 1.1.1.1.1 The system shall allow a user to list resources they can offer.
      • 1.1.1.1.2 The system shall allow users to report inappropriate or harmful content/users.
      • 1.1.1.1.3 User shall receive notifications based on role and proximity.
    • 1.1.1.2 Experts

      • 1.1.1.2.1 The system shall allow a user to list expertise fields they possess.
    • 1.1.1.3 Staff Users

      • 1.1.1.3.1 The system shall support three staff roles, mutually exclusive per account: Moderator, Verification Coordinator, and Admin. A staff role is layered on top of the base account type (standard or expert) and does not replace it.
      • 1.1.1.3.2 Moderators shall moderate forum and help-request content; Verification Coordinators shall decide on expertise claims; Admins shall inherit both and shall additionally manage users, hubs, and the audit log.
      • 1.1.1.3.3 Client applications shall only render staff UI as a convenience; the backend shall remain the sole source of truth for staff authorization.
  • 1.1.2 Sign up & Login

    • 1.1.2.1 Users shall be able to create an account using their unique mail addresses.
    • 1.1.2.2 Users shall be able to log in using their email and password.
    • 1.1.2.3 The system shall use token-based authentication to manage user sessions.
    • 1.1.2.4 The system shall allow users to log out securely.
    • 1.1.2.5 The system shall provide consistent authentication across web and mobile platforms.
    • 1.1.2.6 The system shall provide clear validation and error feedback during authentication processes.
  • 1.1.3 Forum

    • 1.1.3.1 Users shall be able to post in forum and read what has been posted.
    • 1.1.3.2 Users shall be able to upvote or downvote posts in the forum.
    • 1.1.3.3 Users shall be able to comment on forum posts.
    • 1.1.3.4 Users shall be able to filter posts from experts and general users in the forum.
    • 1.1.3.5 Users shall be able to search what they want to learn about in a search bar in forum.
    • 1.1.3.6 Users shall be able to see forum posts in the global range.
    • 1.1.3.7 Users shall be able to post in forum in the global range.
    • 1.1.3.8 Users shall be able to create forum posts within the current hub, categorized as either standard or urgent.
  • 1.1.4 Help Requests

    • 1.1.4.1 The system shall allow a user to create a help request, specifying category(medical, food, shelter, transport), urgency level, description.
    • 1.1.4.2 The system shall allow a user to attach images and an optional location (GPS coordinates and/or descriptive text) when creating a help request.
    • 1.1.4.3 The system shall allow users to browse help requests filtered by category.
    • 1.1.4.4 The system shall allow users to view help request details including title, description, category, urgency level, status, author information, images, and creation time.
    • 1.1.4.5 The system shall allow users to view the request location on an interactive map when GPS coordinates are provided.
    • 1.1.4.6 The system shall assign help requests one of three statuses: open, expert responding, or resolved.
    • 1.1.4.7 The system shall automatically update a help request's status to expert responding when an expert user posts a comment on it.
    • 1.1.4.8 The system shall allow the author of a help request to mark it as resolved.
    • 1.1.4.9 The system shall allow the author of a help request to delete it.
    • 1.1.4.10 The system shall allow users to comment on help requests.
    • 1.1.4.11 The system shall allow users to view comments on a help request in chronological order.
    • 1.1.4.12 The system shall allow the author of a comment to delete it.
    • 1.1.4.13 The system shall allow a user to create a help offer specifying category, skill or resource, description, and availability.
    • 1.1.4.14 The system shall allow users to browse help offers filtered by category.
    • 1.1.4.15 The system shall allow the author of a help offer to delete it.
    • 1.1.4.16 The system shall send push notifications to experts in the same hub when a new help request is created.
    • 1.1.4.17 The system shall allow an expert user to take on a help request if the request category matches the expert's approved expertise fields.
    • 1.1.4.18 The system shall allow the assigned expert to release a help request they have previously taken on.
    • 1.1.4.19 The system shall visibly indicate when a help request has an assigned expert or is being handled by an expert.
    • 1.1.4.20 The system shall allow the author of a help request to mark the request as resolved regardless of whether an expert is currently assigned.
    • 1.1.4.21 The system shall count a help request as completed expert help only if it is resolved while an expert is assigned to that request.
  • 1.1.5 Profile Preferences

    • 1.1.5.1 The system shall allow a user to set availability status.
    • 1.1.5.2 The system shall allow a user to set phone number.
    • 1.1.5.3 The system shall allow a user to set blood type.
    • 1.1.5.4 The system shall allow a user to set emergency contact and their phone number.
    • 1.1.5.5 The system shall allow a user to set language preferences.
    • 1.1.5.6 The system shall allow a user to set the disability option.
    • 1.1.5.7 The system shall allow a user to state special needs.
  • 1.1.6 User Interactions

    • 1.1.6.1 The system shall provide a messaging or contact mechanism between matched users (the requester and the helper).
  • 1.1.7 Offline Ready Information

    • 1.1.7.1 The system shall be able to provide last location of the user and the gathering points closer to him/her on an interactive map if the location information is granted by the user.
    • 1.1.7.2 The system shall be able to provide fundamental emergency information (such as first-aid information) to user when internet connection does not exist.
    • 1.1.7.3 The system shall provide the user with a list of emergency numbers, including a general emergency number that comes with the app, and the functionality to add and remove additional labels with a name and telephone number.
    • 1.1.7.4 The labels on emergency numbers shall direct the user to a call page for the number that is stored.
  • 1.1.8 Tutorial Mode

    • 1.1.8.1 The system shall provide a tutorial mode for new users to explore the application.
    • 1.1.8.2 The tutorial mode shall allow users to navigate through predefined application scenarios.
    • 1.1.8.3 The tutorial mode shall prevent users from interacting with registered users.
  • 1.1.9 Staff Operations

    • 1.1.9.1 The system shall provide a staff dashboard whose visible tools are gated by the signed-in user's staff role; users with no staff role shall not see staff tools.
    • 1.1.9.2 The system shall allow moderators and admins to list forum posts filtered by moderation status (active, hidden, removed, reported) and to hide, remove, or restore them; HIDE and REMOVE shall require a textual reason.
    • 1.1.9.3 The system shall allow moderators and admins to list and delete any help request or help offer regardless of authorship, with a required textual reason.
    • 1.1.9.4 The system shall allow verification coordinators and admins to list expertise claims filtered by status (pending, approved, rejected, all) and to approve, reject, or reopen them; rejection shall require a note.
    • 1.1.9.5 The system shall allow admins to list, search, and filter user accounts; change any user's staff role between None, Moderator, Verification Coordinator, and Admin; and suspend or reactivate any account with a required reason. Suspended accounts shall not be able to authenticate until reactivated.
    • 1.1.9.6 The system shall allow admins to list, create, rename, and delete hubs; deletion shall require an explicit confirmation as a safeguard.
    • 1.1.9.7 The system shall record every privileged staff action — moderation actions, verification decisions, staff-role changes, account suspensions/reactivations, and hub create/rename/delete — and shall allow admins to view this log filtered by action and target type; entries shall not be editable or deletable from any client.
  • 1.1.10 Rewards and Badges

    • 1.1.10.1 The system shall track user contribution activity for reward purposes, including forum posts, comments, and completed expert help requests.
    • 1.1.10.2 The system shall award contribution-based badges when users reach predefined thresholds for posts and comments.
    • 1.1.10.3 The system shall award help-related badges to expert users when they complete predefined numbers of assigned help requests.
    • 1.1.10.4 The system shall display earned badges and reward-related contribution information in the user profile.

1.2 System Requirements

  • 1.2.1 The system shall store user data securely.
  • 1.2.2 The system shall support offline access to critical hub data.
  • 1.2.3 The system shall enforce role-based access control for all staff endpoints on the server, independent of any client-side gating.
  • 1.2.4 The system shall persist a staff audit log of privileged actions and shall expose it only to admins.

2. Non-Functional Requirements

2.1 Performance & Responsiveness

  • 2.1.1 The system shall render the first interactive screen within 3 seconds on mid-range mobile devices over a 3G connection.
  • 2.1.2 The system shall keep background synchronization CPU usage below 20% average on typical mobile devices during sync operations.
  • 2.1.3 The system shall remain responsive during background operations without blocking core user interactions.

2.2 Availability & Resilience

  • 2.2.1 The system shall operate in a degraded mode when connectivity is unavailable, preserving access to cached critical data.
  • 2.2.2 The system shall tolerate intermittent connectivity without data loss, retrying synchronization using exponential backoff.
  • 2.2.3 The system shall recover gracefully from crashes, restoring the last consistent state upon next launch.
  • 2.2.4 The system shall prevent permanent data loss caused by temporary network failures.

2.3 Offline-First & Data Integrity

  • 2.3.1 The system shall store offline changes locally and synchronize them automatically when connectivity returns.
  • 2.3.2 The system shall implement deterministic conflict resolution (e.g., versioning, timestamps, or merge strategies).
  • 2.3.3 The system shall maintain data consistency between device storage and backend systems.

2.4 Scalability & Capacity

  • 2.4.1 The system shall scale to at least 1,000 registered users per neighborhood hub (final value TBD).
  • 2.4.2 The system shall support at least 500 concurrent users per hub.
  • 2.4.3 The system shall support at least 5,000 concurrent users across all hubs.
  • 2.4.4 The system shall support burst traffic (e.g., disaster events) reaching 5× normal load without outage.
  • 2.4.5 The system shall degrade gracefully under extreme load while preserving critical functionality.

2.5 Security & Privacy

  • 2.5.1 The system shall use TLS encryption for all network communications.
  • 2.5.2 The system shall encrypt sensitive data at rest on supported devices and in backend storage.
  • 2.5.3 The system shall enforce role-based access control (RBAC) across base account types (standard, expert) and staff roles (Moderator, Verification Coordinator, Admin), with permissions enforced on the server.
  • 2.5.4 The system shall minimize personal data collection and support pseudonymous participation where feasible.
  • 2.5.5 The system shall provide a Privacy in Crisis mode that limits publicly visible data.

2.6 Battery & Device Resource Efficiency

  • 2.6.1 The system shall minimize background network usage and avoid unnecessary polling.
  • 2.6.2 The system shall provide a Low Power Mode that reduces GPS usage, background processing, animations, and sync frequency.
  • 2.6.3 The system shall not exceed 100MB of local storage and shall provide controls to purge non-critical cached data.

2.7 Usability & Accessibility

  • 2.7.1 The system shall support multi-language UI and localized content for target regions.
  • 2.7.2 The system shall provide clear offline indicators and visible synchronization status.

2.8 Reliability of Critical Features

  • 2.8.1 The system shall ensure that emergency-critical flows remain usable even under degraded conditions.
  • 2.8.2 The system shall timestamp all emergency events using a consistent time source and handle clock drift when offline.

2.9 Compatibility & Portability

  • 2.9.1 The system shall support low-end devices (e.g., 2GB RAM) without functional loss for core features.
  • 2.9.2 The system shall operate under constrained network conditions (high latency, packet loss) without breaking core flows.

Clone this wiki locally