Spaces:
Sleeping
Sleeping
| /** | |
| * Mock Government Resolutions (GRs) data for WRD demo | |
| */ | |
| export interface GRDocument { | |
| id: string; | |
| title: string; | |
| department: string; | |
| date: string; | |
| year: number; | |
| category: 'Flood Management' | 'Dam Safety' | 'Irrigation' | 'Compensation' | 'Water Policy' | 'Administrative'; | |
| status: 'Active' | 'Superseded' | 'Amended'; | |
| summary: string; | |
| keywords: string[]; | |
| relatedGRs?: string[]; | |
| popularQuery?: boolean; | |
| } | |
| export const mockGRs: GRDocument[] = [ | |
| { | |
| id: 'GR-2024-WRD-089', | |
| title: 'Flood Relief Compensation Guidelines 2024', | |
| department: 'Relief & Rehabilitation', | |
| date: '2024-07-15', | |
| year: 2024, | |
| category: 'Compensation', | |
| status: 'Active', | |
| summary: 'Comprehensive guidelines for flood relief compensation including crop loss (₹5,000/acre), house damage (₹95,000 full), and livestock loss. Covers eligibility criteria, application process through Tahsildar, and direct bank transfer mechanism.', | |
| keywords: ['compensation', 'flood relief', 'crop loss', 'house damage', 'tahsildar'], | |
| popularQuery: true | |
| }, | |
| { | |
| id: 'GR-2024-WRD-056', | |
| title: 'Emergency Dam Safety Protocol', | |
| department: 'Dam Safety', | |
| date: '2024-06-20', | |
| year: 2024, | |
| category: 'Dam Safety', | |
| status: 'Active', | |
| summary: 'Mandatory protocols for dam safety during monsoon including 2-hour advance notification for downstream districts, seismic monitoring requirements, and emergency discharge procedures.', | |
| keywords: ['dam safety', 'emergency', 'discharge', 'monsoon', 'notification'], | |
| relatedGRs: ['GR-2023-WRD-124'], | |
| popularQuery: true | |
| }, | |
| { | |
| id: 'GR-2024-WRD-042', | |
| title: 'Water Resource Allocation Policy', | |
| department: 'Water Resources Planning', | |
| date: '2024-04-20', | |
| year: 2024, | |
| category: 'Water Policy', | |
| status: 'Active', | |
| summary: 'Defines water allocation priority: Drinking water > Agriculture > Industrial use. Includes provisions for real-time allocation adjustments during scarcity periods.', | |
| keywords: ['water allocation', 'priority', 'drinking water', 'agriculture', 'scarcity'], | |
| popularQuery: true | |
| }, | |
| { | |
| id: 'GR-2023-WRD-124', | |
| title: 'Dam Gate Operations Standard Operating Procedure', | |
| department: 'Operations', | |
| date: '2023-08-10', | |
| year: 2023, | |
| category: 'Dam Safety', | |
| status: 'Active', | |
| summary: 'Detailed SOP for dam gate operations including pre-opening checklist, gradual opening procedure (10% increments every 15 minutes), downstream notification requirements, and emergency override provisions.', | |
| keywords: ['gate operation', 'SOP', 'dam gate', 'discharge', 'downstream'], | |
| relatedGRs: ['GR-2024-WRD-056'], | |
| popularQuery: true | |
| }, | |
| { | |
| id: 'GR-2023-WRD-098', | |
| title: 'Canal Maintenance Guidelines', | |
| department: 'Irrigation', | |
| date: '2023-07-25', | |
| year: 2023, | |
| category: 'Irrigation', | |
| status: 'Active', | |
| summary: 'Guidelines for canal maintenance including responsibilities of WRD (major repairs >₹1 lakh) and Water User Associations (minor maintenance). Includes 5% water cess provision for maintenance fund.', | |
| keywords: ['canal', 'maintenance', 'WUA', 'repair', 'water cess'], | |
| }, | |
| { | |
| id: 'GR-2022-WRD-089', | |
| title: 'Crop Damage Compensation Policy', | |
| department: 'Revenue & Forest', | |
| date: '2022-09-22', | |
| year: 2022, | |
| category: 'Compensation', | |
| status: 'Amended', | |
| summary: 'Revised compensation rates and assessment methodology for agricultural losses caused by natural calamities. Superseded by GR-2024-WRD-089.', | |
| keywords: ['crop damage', 'compensation', 'agriculture', 'natural calamity'], | |
| relatedGRs: ['GR-2024-WRD-089'] | |
| }, | |
| { | |
| id: 'GR-2024-WRD-023', | |
| title: 'Monsoon Preparedness Circular', | |
| department: 'Operations', | |
| date: '2024-05-01', | |
| year: 2024, | |
| category: 'Flood Management', | |
| status: 'Active', | |
| summary: 'Pre-monsoon checklist for all dam control rooms including sensor calibration, alert system testing, control room staffing requirements (min 2 engineers), and coordination protocols.', | |
| keywords: ['monsoon', 'preparedness', 'control room', 'sensor', 'alert'], | |
| }, | |
| { | |
| id: 'GR-2024-WRD-067', | |
| title: 'Real-time Monitoring Guidelines', | |
| department: 'IT & Operations', | |
| date: '2024-04-10', | |
| year: 2024, | |
| category: 'Dam Safety', | |
| status: 'Active', | |
| summary: 'IoT sensor deployment guidelines for live dam monitoring including water level sensors, flow meters, seismic monitors, and data transmission protocols.', | |
| keywords: ['IoT', 'monitoring', 'sensor', 'real-time', 'data'], | |
| }, | |
| { | |
| id: 'GR-2023-WRD-156', | |
| title: 'Flood Evacuation Standard Operating Procedure', | |
| department: 'Disaster Management', | |
| date: '2023-06-15', | |
| year: 2023, | |
| category: 'Flood Management', | |
| status: 'Active', | |
| summary: 'Comprehensive evacuation protocols for flood-affected areas including warning levels, evacuation zones, relief camp setup, and inter-departmental coordination.', | |
| keywords: ['evacuation', 'flood', 'relief camp', 'warning', 'coordination'], | |
| popularQuery: true | |
| }, | |
| { | |
| id: 'GR-2023-WRD-078', | |
| title: 'Water User Association Formation Guidelines', | |
| department: 'Irrigation', | |
| date: '2023-03-20', | |
| year: 2023, | |
| category: 'Irrigation', | |
| status: 'Active', | |
| summary: 'Guidelines for forming Water User Associations including membership criteria, election procedures, responsibilities, and water distribution management.', | |
| keywords: ['WUA', 'water user association', 'formation', 'irrigation'], | |
| }, | |
| { | |
| id: 'GR-2022-WRD-112', | |
| title: 'Dam Inspection Frequency Requirements', | |
| department: 'Dam Safety', | |
| date: '2022-12-05', | |
| year: 2022, | |
| category: 'Dam Safety', | |
| status: 'Active', | |
| summary: 'Mandatory inspection schedules for dams: Daily during monsoon, Weekly during normal period, Comprehensive annual inspection before monsoon.', | |
| keywords: ['inspection', 'dam', 'frequency', 'monsoon', 'annual'], | |
| }, | |
| { | |
| id: 'GR-2024-WRD-034', | |
| title: 'Inter-state River Water Sharing Agreement', | |
| department: 'Water Resources', | |
| date: '2024-03-15', | |
| year: 2024, | |
| category: 'Water Policy', | |
| status: 'Active', | |
| summary: 'Agreement with neighboring states on Krishna and Godavari river water sharing including allocation percentages, dispute resolution mechanism, and monitoring committee.', | |
| keywords: ['inter-state', 'river', 'water sharing', 'Krishna', 'Godavari'], | |
| }, | |
| { | |
| id: 'GR-2023-WRD-045', | |
| title: 'Groundwater Extraction Regulation', | |
| department: 'Groundwater', | |
| date: '2023-05-10', | |
| year: 2023, | |
| category: 'Water Policy', | |
| status: 'Active', | |
| summary: 'Regulations for groundwater extraction including registration requirements, permissible limits, NOC requirements, and penalty provisions for over-extraction.', | |
| keywords: ['groundwater', 'extraction', 'regulation', 'NOC', 'penalty'], | |
| }, | |
| { | |
| id: 'GR-2024-WRD-101', | |
| title: 'Digital Grievance Portal Launch', | |
| department: 'Administration', | |
| date: '2024-08-01', | |
| year: 2024, | |
| category: 'Administrative', | |
| status: 'Active', | |
| summary: 'Launch of digital grievance portal (wrd.maharashtra.gov.in/grievance) for water-related complaints including tracking system, response timelines (7-30 days), and escalation matrix.', | |
| keywords: ['grievance', 'portal', 'digital', 'complaint', 'tracking'], | |
| }, | |
| { | |
| id: 'GR-2023-WRD-089', | |
| title: 'Tahsildar Water Rights Powers', | |
| department: 'Revenue', | |
| date: '2023-04-15', | |
| year: 2023, | |
| category: 'Administrative', | |
| status: 'Active', | |
| summary: 'Defines powers of Tahsildar regarding water rights including dispute resolution, temporary water allocation during scarcity, and penalty imposition for unauthorized use.', | |
| keywords: ['tahsildar', 'water rights', 'powers', 'dispute', 'scarcity'], | |
| }, | |
| { | |
| id: 'GR-2024-WRD-078', | |
| title: 'Drought Relief Package for Vidarbha', | |
| department: 'Relief & Rehabilitation', | |
| date: '2024-05-20', | |
| year: 2024, | |
| category: 'Compensation', | |
| status: 'Active', | |
| summary: 'Special drought relief package for Vidarbha region including drinking water supply arrangements, fodder camps, crop loss compensation, and employment guarantee schemes.', | |
| keywords: ['drought', 'Vidarbha', 'relief', 'drinking water', 'employment'], | |
| }, | |
| { | |
| id: 'GR-2022-WRD-067', | |
| title: 'Dam Safety Audit Requirements', | |
| department: 'Dam Safety', | |
| date: '2022-10-15', | |
| year: 2022, | |
| category: 'Dam Safety', | |
| status: 'Active', | |
| summary: 'Mandatory annual safety audit requirements for all large dams including structural integrity assessment, seismic risk evaluation, and emergency action plan review.', | |
| keywords: ['safety audit', 'dam', 'structural', 'seismic', 'emergency plan'], | |
| }, | |
| { | |
| id: 'GR-2024-WRD-057', | |
| title: 'Konkan Region Flood Early Warning System', | |
| department: 'Disaster Management', | |
| date: '2024-06-01', | |
| year: 2024, | |
| category: 'Flood Management', | |
| status: 'Active', | |
| summary: 'Implementation of early warning system for Konkan region including rainfall monitoring, river level sensors, SMS alerts, and community communication network.', | |
| keywords: ['early warning', 'Konkan', 'flood', 'SMS', 'monitoring'], | |
| }, | |
| ]; | |
| // Helper functions | |
| export const getPopularGRs = () => mockGRs.filter(gr => gr.popularQuery); | |
| export const getGRsByCategory = (category: string) => mockGRs.filter(gr => gr.category === category); | |
| export const getGRsByYear = (year: number) => mockGRs.filter(gr => gr.year === year); | |
| export const searchGRs = (query: string) => { | |
| const q = query.toLowerCase(); | |
| return mockGRs.filter(gr => | |
| gr.title.toLowerCase().includes(q) || | |
| gr.id.toLowerCase().includes(q) || | |
| gr.keywords.some(k => k.includes(q)) || | |
| gr.summary.toLowerCase().includes(q) | |
| ); | |
| }; | |
| export const grCategories = ['Flood Management', 'Dam Safety', 'Irrigation', 'Compensation', 'Water Policy', 'Administrative'] as const; | |
| export const grYears = [...new Set(mockGRs.map(gr => gr.year))].sort((a, b) => b - a); | |
| export const grDepartments = [...new Set(mockGRs.map(gr => gr.department))]; | |