Skip to content

[Refactor]: Unify Evidence Flow & Link FIR to Court Case #81

@viru0909-dev

Description

@viru0909-dev

Current Problem

The Litigant Dashboard treats "FIRs" and "Court Cases" as completely separate silos, and the "Documents" vs "Evidence Vault" tabs are confusing users.

Required Logic Changes

1. The "Evidence" Merge

  • Action: Merge the "Documents" and "Evidence Vault" tabs into a single "Case Files" tab.
  • Logic:
    • All uploads appear here.
    • Files that are "Hashed/Secured" get the Green Shield Icon (Verified).
    • New Feature: Add a Download Certificate button for all Verified files (Generates the Sec 63(4) PDF).

2. The FIR -> Case Bridge

  • Action: When a Police Officer clicks "Accept" on an FIR:
    • Update FIR Status to REGISTERED.
    • Auto-Create a new entry in the "Court Cases" table linked to this FIR.
    • Notification: Alert the Litigant: "Your FIR has been registered as Case #123. You can now hire a lawyer."

3. The "Active" Timeline

  • Action: The timeline must listen to backend events.
  • Events to Log: Police_Viewed, Judge_Assigned, Hearing_Scheduled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions