@burdenoff/microfe-govcitizenhub 2026.720.7 → 2026.730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoot.js +44 -36
- package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.js +134 -6
- package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts +17 -11
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.js +45 -42
- package/dist/govcitizenhub/components/DocumentUploadField.js.map +1 -1
- package/dist/govcitizenhub/components/GovCharts.js +127 -51
- package/dist/govcitizenhub/components/GovCharts.js.map +1 -1
- package/dist/govcitizenhub/hooks/index.d.ts +1 -0
- package/dist/govcitizenhub/hooks/index.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/index.js +1 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts +3 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts +214 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js +1140 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -0
- package/dist/govcitizenhub/index.d.ts +1 -0
- package/dist/govcitizenhub/index.d.ts.map +1 -1
- package/dist/govcitizenhub/index.js +18 -0
- package/dist/govcitizenhub/pages/agencies/AgenciesPage.js +7 -7
- package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js +6 -6
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +16 -16
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +35 -35
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +1 -1
- package/dist/govcitizenhub/pages/documents/DocumentsPage.js +5 -5
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +30 -30
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +15 -15
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js +634 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js +537 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js +25 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts +15 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js +203 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js +497 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js +1084 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js +581 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js +429 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts +8 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js +235 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js +723 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js +1029 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js +1545 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js +960 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js +927 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js +620 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js +183 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js +629 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js +1124 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js +1518 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js +577 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js +538 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts +53 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js +138 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts +27 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.js +17 -0
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js +11 -11
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/permits/PermitsPage.js +6 -6
- package/dist/govcitizenhub/pages/services/ServiceDetailPage.js +8 -8
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js +98 -98
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js.map +1 -1
- package/dist/govcitizenhub/types/index.d.ts +1 -0
- package/dist/govcitizenhub/types/index.d.ts.map +1 -1
- package/dist/govcitizenhub/types/intelligence.d.ts +1559 -0
- package/dist/govcitizenhub/types/intelligence.d.ts.map +1 -0
- package/dist/govcitizenhub/types/intelligence.js +125 -0
- package/dist/govcitizenhub/types/intelligence.js.map +1 -0
- package/dist/index.js +19 -2
- package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
- package/dist/utils/pageContext.d.ts +1 -0
- package/dist/utils/pageContext.d.ts.map +1 -1
- package/dist/utils/pageContext.js +44 -17
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorrectionsPage.js","names":[],"sources":["../../../../src/govcitizenhub/pages/intelligence/CorrectionsPage.tsx"],"sourcesContent":["/**\n * CorrectionsPage — citizen data corrections and the official review queue.\n * @module govcitizenhub/pages/intelligence\n *\n * Route: `intelligence/:jurisdictionId/corrections`\n *\n * Two panels:\n * 1. \"Suggest a correction\" — `govSubmitDataChangeProposal` (a `self` mutation:\n * the submitting actor comes from the gateway, never from the form) plus the\n * caller's own submissions from `govMyDataChangeProposals`, each withdrawable\n * while it is still SUBMITTED or UNDER_REVIEW.\n * 2. \"Review queue\" — `govDataChangeProposals` filtered by status, expandable to\n * the rationale and evidence, with Accept / Reject / Mark under review\n * recorded through `govReviewDataChangeProposal`.\n *\n * IMPORTANT — the review decision is a RECORD, not an edit. Accepting a proposal\n * stamps `appliedAt` on the proposal; it never rewrites the target record. An\n * official still applies the corrected value through that entity's own edit\n * form, so the change to public data stays attributable and shows up in that\n * entity's history. The UI says this in as many words, in both panels.\n *\n * `currentValue` is only populated when the platform captured a snapshot — it is\n * rendered as \"not recorded\" otherwise rather than being guessed at.\n */\n\nimport { Fragment, useState, type FC, type ReactElement } from 'react';\nimport { useParams } from 'react-router-dom';\nimport {\n AlertTriangle,\n Check,\n ChevronDown,\n ChevronRight,\n ExternalLink,\n FileText,\n Info,\n Paperclip,\n Pencil,\n Send,\n ShieldCheck,\n Undo2,\n X,\n} from 'lucide-react';\nimport {\n Button,\n Input,\n Label,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Skeleton,\n Textarea,\n} from '@burdenoff/fe-libs/ui';\n\nimport { JurisdictionLayout } from './JurisdictionLayout';\nimport { SectionCard } from '../../components/SectionCard';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { EmptyState } from '../../components/EmptyState';\nimport { ErrorView } from '../../components/StateViews';\nimport { Pagination } from '../../components/Pagination';\nimport { FilterTabs, type FilterOption } from '../../components/FilterTabs';\nimport { ConfirmDialog } from '../../components/ConfirmDialog';\nimport { DocumentUploadField } from '../../components/DocumentUploadField';\nimport {\n useCursorPager,\n useFileUrl,\n useGovDataChangeProposals,\n useGovMyDataChangeProposals,\n useGovReviewDataChangeProposal,\n useGovSubmitDataChangeProposal,\n useGovWithdrawDataChangeProposal,\n} from '../../hooks';\nimport { notify, describeError } from '../../lib/toast';\nimport { formatDateTime, formatRelativeTime } from '../../utils/formatters';\nimport { cn } from '../../utils/cn';\nimport type { GovDataChangeProposal, GovIntelEntityType, GovProposalStatus } from '../../types';\n\nconst PAGE_SIZE = 20;\n\n/** wspace-files-svc folder correction evidence is uploaded into. */\nconst EVIDENCE_FOLDER = '/GovCitizenHub/Corrections';\n\n/** Every `GovIntelEntityType` in the frozen SDL, with a human label. */\nconst ENTITY_TYPES: GovIntelEntityType[] = [\n 'JURISDICTION',\n 'OFFICIAL',\n 'OFFICIAL_COMMITMENT',\n 'BUDGET',\n 'BUDGET_LINE',\n 'PROJECT',\n 'PROJECT_MILESTONE',\n 'INDICATOR_VALUE',\n 'PUBLIC_ASSET',\n 'ELECTION',\n 'ELECTION_RESULT',\n 'DATASET',\n 'EVENT',\n];\n\nconst ENTITY_TYPE_LABELS: Record<GovIntelEntityType, string> = {\n JURISDICTION: 'Jurisdiction profile',\n OFFICIAL: 'Office holder',\n OFFICIAL_COMMITMENT: 'Commitment',\n BUDGET: 'Budget',\n BUDGET_LINE: 'Budget line',\n PROJECT: 'Project',\n PROJECT_MILESTONE: 'Project milestone',\n INDICATOR_VALUE: 'Indicator value',\n PUBLIC_ASSET: 'Public asset',\n ELECTION: 'Election',\n ELECTION_RESULT: 'Election result',\n DATASET: 'Dataset',\n EVENT: 'Timeline event',\n};\n\nconst ALL = 'ALL';\n\ntype StatusFilter = typeof ALL | GovProposalStatus;\n\nconst STATUS_FILTERS: FilterOption<StatusFilter>[] = [\n { value: 'SUBMITTED', label: 'Submitted' },\n { value: 'UNDER_REVIEW', label: 'Under review' },\n { value: 'ACCEPTED', label: 'Accepted' },\n { value: 'REJECTED', label: 'Rejected' },\n { value: 'WITHDRAWN', label: 'Withdrawn' },\n { value: ALL, label: 'All' },\n];\n\n/** Statuses the backend still lets the submitter withdraw. */\nconst WITHDRAWABLE: GovProposalStatus[] = ['SUBMITTED', 'UNDER_REVIEW'];\n\n/** The three decisions `govReviewDataChangeProposal` accepts. */\ntype ReviewDecision = Extract<GovProposalStatus, 'ACCEPTED' | 'REJECTED' | 'UNDER_REVIEW'>;\n\nexport function CorrectionsPage(): ReactElement {\n const { jurisdictionId } = useParams<{ jurisdictionId: string }>();\n\n return (\n <JurisdictionLayout>\n <div className=\"grid gap-4 xl:grid-cols-3\">\n <div className=\"min-w-0 xl:col-span-1\">\n <SuggestCorrectionPanel jurisdictionId={jurisdictionId} />\n </div>\n <div className=\"min-w-0 xl:col-span-2\">\n <ReviewQueuePanel jurisdictionId={jurisdictionId} />\n </div>\n </div>\n </JurisdictionLayout>\n );\n}\n\n// ---------------------------------------------------------------------------\n// Panel 1 — suggest a correction + my submissions\n// ---------------------------------------------------------------------------\n\nconst SuggestCorrectionPanel: FC<{ jurisdictionId?: string }> = ({ jurisdictionId }) => {\n const submitProposal = useGovSubmitDataChangeProposal();\n const withdrawProposal = useGovWithdrawDataChangeProposal();\n const mine = useGovMyDataChangeProposals({ limit: PAGE_SIZE });\n\n const [entityType, setEntityType] = useState<GovIntelEntityType>('JURISDICTION');\n const [entityId, setEntityId] = useState('');\n const [fieldPath, setFieldPath] = useState('');\n const [proposedValue, setProposedValue] = useState('');\n const [rationale, setRationale] = useState('');\n const [evidenceUrl, setEvidenceUrl] = useState('');\n const [evidenceFiles, setEvidenceFiles] = useState<{ id: string; name: string }[]>([]);\n const [error, setError] = useState<string | null>(null);\n const [withdrawing, setWithdrawing] = useState<GovDataChangeProposal | null>(null);\n\n const ready =\n Boolean(jurisdictionId) &&\n Boolean(entityId.trim()) &&\n Boolean(fieldPath.trim()) &&\n Boolean(proposedValue.trim()) &&\n Boolean(rationale.trim());\n\n const submit = async (): Promise<void> => {\n if (!jurisdictionId || !ready) return;\n setError(null);\n try {\n await submitProposal.mutateAsync({\n jurisdictionId,\n entityType,\n entityId: entityId.trim(),\n fieldPath: fieldPath.trim(),\n proposedValue: proposedValue.trim(),\n rationale: rationale.trim(),\n evidenceUrl: evidenceUrl.trim() || null,\n evidenceFileIds: evidenceFiles.map((file) => file.id),\n });\n notify.success('Correction submitted', 'An official will review it and record a decision.');\n setEntityId('');\n setFieldPath('');\n setProposedValue('');\n setRationale('');\n setEvidenceUrl('');\n setEvidenceFiles([]);\n } catch (caught) {\n setError(describeError(caught));\n }\n };\n\n const confirmWithdraw = async (): Promise<void> => {\n if (!withdrawing) return;\n try {\n await withdrawProposal.mutateAsync(withdrawing.id);\n notify.success('Correction withdrawn');\n setWithdrawing(null);\n } catch (caught) {\n notify.error('Could not withdraw the correction', describeError(caught));\n }\n };\n\n const myProposals = mine.data?.items ?? [];\n\n return (\n <div className=\"space-y-4\">\n <SectionCard title=\"Suggest a correction\" icon={<Pencil />} className=\"border-border-seam\">\n <div className=\"mb-4 flex items-start gap-2.5 rounded-lg bg-bg-sunken px-3 py-2.5\">\n <Info className=\"mt-0.5 size-4 shrink-0 text-text-muted\" aria-hidden=\"true\" />\n <p className=\"text-xs text-text-secondary\">\n Point at the exact record and field that is wrong, say what it should be, and show your\n evidence. A reviewer records a decision on your proposal — the published figure itself is\n only changed by an official through that record’s own edit form.\n </p>\n </div>\n\n <div className=\"grid gap-3\">\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-entity-type\">What kind of record?</Label>\n <Select\n value={entityType}\n onValueChange={(value) => setEntityType(value as GovIntelEntityType)}\n >\n <SelectTrigger id=\"correction-entity-type\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {ENTITY_TYPES.map((value) => (\n <SelectItem key={value} value={value}>\n {ENTITY_TYPE_LABELS[value]}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-entity-id\">Record id</Label>\n <Input\n id=\"correction-entity-id\"\n value={entityId}\n onChange={(event) => setEntityId(event.target.value)}\n placeholder=\"Copy it from the record you are correcting\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-field-path\">Field</Label>\n <Input\n id=\"correction-field-path\"\n value={fieldPath}\n onChange={(event) => setFieldPath(event.target.value)}\n placeholder=\"e.g. population, contactPhone, budgetAmount\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-proposed\">Proposed value</Label>\n <Textarea\n id=\"correction-proposed\"\n value={proposedValue}\n onChange={(event) => setProposedValue(event.target.value)}\n rows={2}\n placeholder=\"What the field should say\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-rationale\">Why is the current value wrong?</Label>\n <Textarea\n id=\"correction-rationale\"\n value={rationale}\n onChange={(event) => setRationale(event.target.value)}\n rows={4}\n placeholder=\"Explain the discrepancy and where your figure comes from\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"correction-evidence-url\">Evidence URL (optional)</Label>\n <Input\n id=\"correction-evidence-url\"\n value={evidenceUrl}\n onChange={(event) => setEvidenceUrl(event.target.value)}\n placeholder=\"https://… a gazette notice, report or official page\"\n />\n </div>\n\n <div className=\"grid gap-2\">\n <Label>Evidence files (optional)</Label>\n {evidenceFiles.length > 0 && (\n <ul className=\"space-y-1.5\">\n {evidenceFiles.map((file) => (\n <li\n key={file.id}\n className=\"flex items-center justify-between gap-2 rounded-lg border border-border-seam bg-bg-surface px-3 py-2\"\n >\n <span className=\"flex min-w-0 items-center gap-2\">\n <Paperclip className=\"size-3.5 shrink-0 text-text-muted\" aria-hidden=\"true\" />\n <span className=\"truncate text-sm text-text-primary\">{file.name}</span>\n </span>\n <button\n type=\"button\"\n aria-label={`Remove ${file.name}`}\n onClick={() =>\n setEvidenceFiles((current) =>\n current.filter((entry) => entry.id !== file.id)\n )\n }\n className=\"text-text-muted transition-colors hover:text-text-primary\"\n >\n <X className=\"size-4\" aria-hidden=\"true\" />\n </button>\n </li>\n ))}\n </ul>\n )}\n <DocumentUploadField\n folder={EVIDENCE_FOLDER}\n hint=\"Attach a scan, notice or screenshot that backs up your correction\"\n onUploaded={(uploaded) =>\n setEvidenceFiles((current) => [...current, { id: uploaded.id, name: uploaded.name }])\n }\n />\n </div>\n\n {error && (\n <p className=\"rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text\">\n {error}\n </p>\n )}\n\n <Button\n onClick={() => {\n void submit();\n }}\n disabled={!ready || submitProposal.isPending}\n >\n <Send className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" />\n {submitProposal.isPending ? 'Submitting…' : 'Submit correction'}\n </Button>\n </div>\n </SectionCard>\n\n <SectionCard\n title=\"Your corrections\"\n icon={<FileText />}\n className=\"border-border-seam\"\n actions={\n mine.isFetching ? <span className=\"text-xs text-text-muted\">Refreshing…</span> : null\n }\n >\n <p className=\"mb-3 text-xs text-text-muted\">\n Everything you have submitted in this workspace, newest first.\n </p>\n\n {mine.isLoading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 3 }, (_, index) => (\n <Skeleton key={index} className=\"h-16 w-full rounded-lg\" />\n ))}\n </div>\n ) : mine.isError ? (\n <ErrorView\n message=\"We couldn't load your corrections.\"\n onRetry={() => {\n void mine.refetch();\n }}\n />\n ) : myProposals.length === 0 ? (\n <p className=\"text-sm text-text-secondary\">\n You have not submitted a correction yet. Use the form above when you spot a figure that\n does not match the official record.\n </p>\n ) : (\n <ul className=\"space-y-2\">\n {myProposals.map((proposal) => (\n <li\n key={proposal.id}\n className=\"rounded-lg border border-border-seam bg-bg-surface px-3 py-2.5\"\n >\n <div className=\"flex flex-wrap items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"truncate text-sm font-medium text-text-primary\">\n {ENTITY_TYPE_LABELS[proposal.entityType]} · {proposal.fieldPath}\n </p>\n <p className=\"mt-0.5 truncate text-xs text-text-muted\">\n Proposed: {proposal.proposedValue}\n </p>\n </div>\n <StatusBadge status={proposal.status} />\n </div>\n <div className=\"mt-2 flex flex-wrap items-center justify-between gap-2\">\n <span className=\"text-xs text-text-muted\">\n Submitted {formatRelativeTime(proposal.submittedAt)}\n {Boolean(jurisdictionId) && proposal.jurisdictionId !== jurisdictionId && (\n <span className=\"ml-1.5 rounded-full bg-bg-sunken px-2 py-0.5\">\n Another region\n </span>\n )}\n </span>\n {WITHDRAWABLE.includes(proposal.status) && (\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setWithdrawing(proposal)}\n disabled={withdrawProposal.isPending}\n >\n <Undo2 className=\"mr-1.5 h-3.5 w-3.5\" aria-hidden=\"true\" /> Withdraw\n </Button>\n )}\n </div>\n {proposal.reviewNote && (\n <p className=\"mt-2 rounded-md bg-bg-sunken px-2.5 py-1.5 text-xs text-text-secondary\">\n <span className=\"font-medium text-text-primary\">Reviewer note: </span>\n {proposal.reviewNote}\n </p>\n )}\n </li>\n ))}\n </ul>\n )}\n </SectionCard>\n\n {withdrawing && (\n <ConfirmDialog\n open\n onOpenChange={(next) => {\n if (!next) setWithdrawing(null);\n }}\n title=\"Withdraw this correction?\"\n description=\"It leaves the review queue. You can submit a fresh correction at any time.\"\n confirmLabel=\"Withdraw\"\n destructive\n onConfirm={confirmWithdraw}\n />\n )}\n </div>\n );\n};\n\n// ---------------------------------------------------------------------------\n// Panel 2 — official review queue\n// ---------------------------------------------------------------------------\n\ninterface PendingReview {\n proposal: GovDataChangeProposal;\n decision: ReviewDecision;\n}\n\nconst REVIEW_COPY: Record<ReviewDecision, { title: string; description: string; label: string }> = {\n ACCEPTED: {\n title: 'Accept this correction?',\n description:\n 'This RECORDS your decision on the proposal. It does not change the published figure — apply the corrected value through that record’s own edit form so the change stays attributable and appears in its history.',\n label: 'Record acceptance',\n },\n REJECTED: {\n title: 'Reject this correction?',\n description:\n 'The submitter sees your note, so explain what the evidence did not establish.',\n label: 'Record rejection',\n },\n UNDER_REVIEW: {\n title: 'Mark as under review?',\n description:\n 'Signals to the submitter that someone has picked this up. It stays withdrawable while under review.',\n label: 'Mark under review',\n },\n};\n\nconst ReviewQueuePanel: FC<{ jurisdictionId?: string }> = ({ jurisdictionId }) => {\n const pager = useCursorPager();\n const [status, setStatus] = useState<StatusFilter>('SUBMITTED');\n const [expandedId, setExpandedId] = useState<string | null>(null);\n const [pending, setPending] = useState<PendingReview | null>(null);\n\n const { data, isLoading, isError, refetch } = useGovDataChangeProposals(\n {\n jurisdictionId,\n status: status === ALL ? undefined : status,\n },\n { limit: PAGE_SIZE, cursor: pager.cursor }\n );\n const reviewProposal = useGovReviewDataChangeProposal();\n\n const proposals = data?.items ?? [];\n\n const changeStatus = (next: StatusFilter): void => {\n setStatus(next);\n setExpandedId(null);\n pager.reset();\n };\n\n const confirmReview = async (reviewNote: string): Promise<void> => {\n if (!pending) return;\n try {\n await reviewProposal.mutateAsync({\n id: pending.proposal.id,\n decision: pending.decision,\n reviewNote: reviewNote.trim() || null,\n });\n notify.success(\n pending.decision === 'ACCEPTED'\n ? 'Acceptance recorded'\n : pending.decision === 'REJECTED'\n ? 'Rejection recorded'\n : 'Marked as under review',\n pending.decision === 'ACCEPTED'\n ? 'Now apply the value through the record’s own edit form.'\n : undefined\n );\n setPending(null);\n } catch (caught) {\n notify.error('Could not record the decision', describeError(caught));\n }\n };\n\n return (\n <SectionCard\n title=\"Review queue\"\n icon={<ShieldCheck />}\n className=\"border-border-seam\"\n flush\n >\n <div className=\"border-b border-border-seam px-5 py-4\">\n <div className=\"mb-3 flex items-start gap-2.5 rounded-lg bg-status-warning-bg-subtle px-3 py-2.5\">\n <AlertTriangle\n className=\"mt-0.5 size-4 shrink-0 text-status-warning-text\"\n aria-hidden=\"true\"\n />\n <p className=\"text-xs text-status-warning-text\">\n Accepting a correction <span className=\"font-semibold\">records the decision only</span>.\n The published value is not touched — an official must apply it through the record’s\n own edit form so the change is attributable and shows up in that record’s history.\n </p>\n </div>\n <div className=\"overflow-x-auto pb-1\">\n <FilterTabs options={STATUS_FILTERS} value={status} onChange={changeStatus} />\n </div>\n </div>\n\n {isLoading ? (\n <div className=\"space-y-2 p-5\">\n {Array.from({ length: 5 }, (_, index) => (\n <Skeleton key={index} className=\"h-12 w-full rounded-lg\" />\n ))}\n </div>\n ) : isError ? (\n <div className=\"p-5\">\n <ErrorView\n message=\"We couldn't load the review queue.\"\n onRetry={() => {\n void refetch();\n }}\n />\n </div>\n ) : proposals.length === 0 && pager.page === 0 ? (\n <div className=\"p-5\">\n <EmptyState\n illustration=\"empty-data\"\n title={status === ALL ? 'No corrections yet' : 'Nothing in this state'}\n description={\n status === ALL\n ? 'When residents or researchers propose a correction for this region it lands here.'\n : 'Switch state to see corrections at another point in the review workflow.'\n }\n />\n </div>\n ) : (\n <>\n <div className=\"overflow-x-auto\">\n <table className=\"w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs uppercase tracking-wide text-text-muted\">\n <th className=\"w-10 px-3 py-3\" aria-label=\"Expand\" />\n <th className=\"px-4 py-3 font-medium\">Record</th>\n <th className=\"px-4 py-3 font-medium\">Field</th>\n <th className=\"px-4 py-3 font-medium\">Current</th>\n <th className=\"px-4 py-3 font-medium\">Proposed</th>\n <th className=\"px-4 py-3 font-medium\">Submitted</th>\n <th className=\"px-4 py-3 font-medium\">Status</th>\n <th className=\"px-4 py-3 text-right font-medium\">Decision</th>\n </tr>\n </thead>\n <tbody className=\"divide-y divide-border-subtle\">\n {proposals.map((proposal) => {\n const expanded = expandedId === proposal.id;\n const open = proposal.status === 'SUBMITTED' || proposal.status === 'UNDER_REVIEW';\n return (\n <Fragment key={proposal.id}>\n <tr className={cn('transition-colors', expanded && 'bg-bg-sunken')}>\n <td className=\"px-3 py-3 align-top\">\n <button\n type=\"button\"\n aria-expanded={expanded}\n aria-label={expanded ? 'Collapse details' : 'Expand details'}\n onClick={() => setExpandedId(expanded ? null : proposal.id)}\n className=\"inline-flex size-7 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-bg-sunken hover:text-text-primary\"\n >\n {expanded ? (\n <ChevronDown className=\"size-4\" aria-hidden=\"true\" />\n ) : (\n <ChevronRight className=\"size-4\" aria-hidden=\"true\" />\n )}\n </button>\n </td>\n <td className=\"px-4 py-3 align-top\">\n <p className=\"whitespace-nowrap font-medium text-text-primary\">\n {ENTITY_TYPE_LABELS[proposal.entityType]}\n </p>\n <p className=\"font-mono text-xs text-text-muted\">{proposal.entityId}</p>\n </td>\n <td className=\"whitespace-nowrap px-4 py-3 align-top font-mono text-xs text-text-secondary\">\n {proposal.fieldPath}\n </td>\n <td className=\"max-w-[14rem] break-words px-4 py-3 align-top text-text-secondary\">\n {proposal.currentValue ?? (\n <span className=\"text-text-muted\">Not recorded</span>\n )}\n </td>\n <td className=\"max-w-[14rem] break-words px-4 py-3 align-top font-medium text-text-primary\">\n {proposal.proposedValue}\n </td>\n <td className=\"whitespace-nowrap px-4 py-3 align-top text-text-secondary\">\n {formatDateTime(proposal.submittedAt)}\n </td>\n <td className=\"px-4 py-3 align-top\">\n <StatusBadge status={proposal.status} />\n </td>\n <td className=\"px-4 py-3 align-top\">\n <div className=\"flex flex-wrap justify-end gap-1.5\">\n {open ? (\n <>\n {proposal.status === 'SUBMITTED' && (\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() =>\n setPending({ proposal, decision: 'UNDER_REVIEW' })\n }\n disabled={reviewProposal.isPending}\n >\n Review\n </Button>\n )}\n <Button\n variant=\"outline\"\n size=\"sm\"\n aria-label=\"Accept correction\"\n onClick={() => setPending({ proposal, decision: 'ACCEPTED' })}\n disabled={reviewProposal.isPending}\n >\n <Check className=\"h-4 w-4\" aria-hidden=\"true\" />\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n aria-label=\"Reject correction\"\n onClick={() => setPending({ proposal, decision: 'REJECTED' })}\n disabled={reviewProposal.isPending}\n >\n <X className=\"h-4 w-4\" aria-hidden=\"true\" />\n </Button>\n </>\n ) : (\n <span className=\"whitespace-nowrap text-xs text-text-muted\">\n {proposal.reviewedAt\n ? `Decided ${formatRelativeTime(proposal.reviewedAt)}`\n : '—'}\n </span>\n )}\n </div>\n </td>\n </tr>\n {expanded && (\n <tr className=\"bg-bg-sunken\">\n <td colSpan={8} className=\"px-4 py-4\">\n <ProposalDetail proposal={proposal} />\n </td>\n </tr>\n )}\n </Fragment>\n );\n })}\n </tbody>\n </table>\n </div>\n\n <div className=\"px-5 pb-4\">\n <Pagination\n page={pager.page}\n pageSize={PAGE_SIZE}\n itemCount={proposals.length}\n hasMore={data?.pageInfo.hasMore ?? false}\n onPageChange={(target) => {\n pager.onPageChange(target, data?.pageInfo.cursor);\n setExpandedId(null);\n }}\n />\n </div>\n </>\n )}\n\n {pending && (\n <ConfirmDialog\n open\n onOpenChange={(next) => {\n if (!next) setPending(null);\n }}\n title={REVIEW_COPY[pending.decision].title}\n description={REVIEW_COPY[pending.decision].description}\n confirmLabel={REVIEW_COPY[pending.decision].label}\n destructive={pending.decision === 'REJECTED'}\n reason={{\n label: 'Review note',\n placeholder:\n pending.decision === 'REJECTED'\n ? 'Explain what the evidence did not establish…'\n : 'Optional note recorded against the proposal…',\n required: pending.decision === 'REJECTED',\n }}\n onConfirm={confirmReview}\n />\n )}\n </SectionCard>\n );\n};\n\n// ---------------------------------------------------------------------------\n// Expanded proposal detail\n// ---------------------------------------------------------------------------\n\nconst ProposalDetail: FC<{ proposal: GovDataChangeProposal }> = ({ proposal }) => (\n <div className=\"grid gap-4 md:grid-cols-2\">\n <div>\n <p className=\"mb-1 text-xs font-medium uppercase tracking-wide text-text-muted\">Rationale</p>\n <p className=\"whitespace-pre-wrap text-sm text-text-primary\">{proposal.rationale}</p>\n </div>\n <div className=\"space-y-3\">\n <div>\n <p className=\"mb-1 text-xs font-medium uppercase tracking-wide text-text-muted\">Evidence</p>\n {proposal.evidenceUrl ? (\n <a\n href={proposal.evidenceUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 break-all text-sm text-action-primary-text hover:underline\"\n >\n <ExternalLink className=\"size-3.5 shrink-0\" aria-hidden=\"true\" />\n {proposal.evidenceUrl}\n </a>\n ) : (\n <p className=\"text-sm text-text-muted\">No evidence link supplied.</p>\n )}\n {proposal.evidenceFileIds.length > 0 && (\n <ul className=\"mt-2 space-y-1.5\">\n {proposal.evidenceFileIds.map((fileId) => (\n <li key={fileId}>\n <EvidenceFileLink fileId={fileId} />\n </li>\n ))}\n </ul>\n )}\n </div>\n\n {(proposal.reviewNote || proposal.reviewedAt) && (\n <div>\n <p className=\"mb-1 text-xs font-medium uppercase tracking-wide text-text-muted\">\n Recorded decision\n </p>\n <p className=\"text-sm text-text-secondary\">\n {proposal.status === 'ACCEPTED' ? 'Accepted' : 'Reviewed'}\n {proposal.reviewedAt ? ` on ${formatDateTime(proposal.reviewedAt)}` : ''}\n {proposal.appliedAt\n ? ' · acceptance stamped — the value is applied separately through the record’s own edit form'\n : ''}\n </p>\n {proposal.reviewNote && (\n <p className=\"mt-1 whitespace-pre-wrap text-sm text-text-primary\">\n {proposal.reviewNote}\n </p>\n )}\n </div>\n )}\n </div>\n </div>\n);\n\n/** Resolves one evidence file id to a presigned link through wspace-files-svc. */\nconst EvidenceFileLink: FC<{ fileId: string }> = ({ fileId }) => {\n const { data: url, isLoading, isError } = useFileUrl(fileId);\n\n if (isLoading) {\n return <Skeleton className=\"h-4 w-40 rounded\" />;\n }\n if (isError || !url) {\n return (\n <span className=\"inline-flex items-center gap-1.5 text-sm text-text-muted\">\n <Paperclip className=\"size-3.5\" aria-hidden=\"true\" />\n <span className=\"font-mono text-xs\">{fileId}</span>\n <span className=\"text-status-error-text\">(link unavailable)</span>\n </span>\n );\n }\n return (\n <a\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-action-primary-text hover:underline\"\n >\n <Paperclip className=\"size-3.5 shrink-0\" aria-hidden=\"true\" />\n Attached evidence\n <span className=\"font-mono text-xs text-text-muted\">{fileId.slice(0, 8)}</span>\n </a>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8EA,IAAM,IAAY,IAGZ,KAAkB,8BAGlB,KAAqC;CACzC;CACA;CACA;CACA;CACA;CACA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