@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":"JurisdictionDirectoryPage.js","names":[],"sources":["../../../../src/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.tsx"],"sourcesContent":["/**\n * JurisdictionDirectoryPage — the Community Intelligence entry point.\n * @module govcitizenhub/pages/intelligence\n *\n * Route: `/govcitizenhub/intelligence`\n *\n * Two ways into the same corpus:\n * - a collapsible hierarchy rail driven by `govJurisdictionTree`, so a citizen\n * can walk the administrative chain their country actually has, and\n * - a filtered, cursor-paginated card grid driven by `govJurisdictions`\n * (debounced free-text search + country + administrative tier + status).\n *\n * COUNTRY-AGNOSTIC: the country list and the tier list are both derived from the\n * `govAdminLevels` rows this workspace has configured — nothing here names a\n * country, a tier or a currency. If no tiers are configured the create flow says\n * so and points at the hierarchy configuration screen instead of guessing.\n *\n * NO FABRICATED DATA: every name, code, population and area on a card comes from\n * the API response, and a fact that has not been published is simply omitted —\n * never filled in with a sample figure. The connection has no `totalCount`, so\n * the pager reports the visible window only.\n */\n\nimport { type FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport {\n Bell,\n BellOff,\n ChevronDown,\n ChevronRight,\n Compass,\n Hash,\n Layers,\n Plus,\n Ruler,\n Search,\n Users,\n X,\n} from 'lucide-react';\nimport {\n Button,\n GlassCard,\n Input,\n Label,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Skeleton,\n} from '@burdenoff/fe-libs/ui';\n\nimport { PageLayout } from '../../components/PageLayout';\nimport { FilterTabs, type FilterOption } from '../../components/FilterTabs';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { EmptyState } from '../../components/EmptyState';\nimport { ErrorView } from '../../components/StateViews';\nimport { SectionCard } from '../../components/SectionCard';\nimport { Pagination } from '../../components/Pagination';\nimport { VerificationChip } from './JurisdictionLayout';\nimport {\n useCursorPager,\n useGovAdminLevels,\n useGovCreateJurisdiction,\n useGovFollowJurisdiction,\n useGovJurisdictionTree,\n useGovJurisdictions,\n useGovMyFollowedJurisdictions,\n useGovUnfollowJurisdiction,\n} from '../../hooks';\nimport { useGovCitizenHub } from '../../context';\nimport { notify, describeError } from '../../lib/toast';\nimport { cn } from '../../utils/cn';\nimport { formatNumber } from '../../utils/formatters';\nimport type {\n GovAdminLevel,\n GovCreateJurisdictionInput,\n GovJurisdiction,\n GovJurisdictionFilterInput,\n GovJurisdictionStatus,\n GovJurisdictionTreeNode,\n} from '../../types';\n\nconst PAGE_SIZE = 12;\n\n/** How deep the hierarchy rail loads. The service clamps `maxDepth` to 6. */\nconst TREE_DEPTH = 4;\n\n/**\n * Ceiling on the follow set we resolve for the grid's Follow toggles. An actor\n * following more regions than this would see a stale toggle on the overflow —\n * the profile screen always reads the authoritative `isFollowedByMe`.\n */\nconst FOLLOW_PAGE_SIZE = 200;\n\n/** Tiers are configuration, not content — one page covers any real hierarchy. */\nconst ADMIN_LEVEL_PAGE_SIZE = 200;\n\n/** Radix Select cannot hold an empty value; this stands in for \"no filter\". */\nconst ANY = 'ANY';\n\n/** Radix Select sentinel for \"this region has no parent\". */\nconst NO_PARENT = 'NO_PARENT';\n\n/** Debounce applied to the search box before it becomes a server filter. */\nconst SEARCH_DEBOUNCE_MS = 300;\n\ntype StatusFilter = 'ALL' | GovJurisdictionStatus;\n\nconst STATUS_OPTIONS: FilterOption<StatusFilter>[] = [\n { value: 'ALL', label: 'All' },\n { value: 'PUBLISHED', label: 'Published' },\n { value: 'DRAFT', label: 'Draft' },\n { value: 'ARCHIVED', label: 'Archived' },\n];\n\n// ============================================================================\n// Hierarchy rail\n// ============================================================================\n\ninterface FlatTreeEntry {\n id: string;\n name: string;\n depth: number;\n adminLevelName: string;\n}\n\n/** Depth-first flatten of the tree, for the parent picker and scope labels. */\nfunction flattenTree(nodes: readonly GovJurisdictionTreeNode[], depth = 0): FlatTreeEntry[] {\n const out: FlatTreeEntry[] = [];\n for (const node of nodes) {\n out.push({\n id: node.id,\n name: node.name,\n depth,\n adminLevelName: node.adminLevelName,\n });\n out.push(...flattenTree(node.children, depth + 1));\n }\n return out;\n}\n\ninterface TreeNodeRowProps {\n node: GovJurisdictionTreeNode;\n depth: number;\n expanded: Record<string, boolean>;\n onToggle: (id: string, isOpen: boolean) => void;\n onSelect: (id: string) => void;\n activeId?: string;\n}\n\nconst TreeNodeRow: FC<TreeNodeRowProps> = ({\n node,\n depth,\n expanded,\n onToggle,\n onSelect,\n activeId,\n}) => {\n // `childCount` is the true number of sub-regions; `children` is only what the\n // depth-clamped tree query returned. Expand only what we actually hold.\n const loadedChildren = node.children.length > 0;\n const isOpen = expanded[node.id] ?? depth === 0; // roots start open, deeper tiers closed\n const active = node.id === activeId;\n\n return (\n <li>\n <div className=\"flex items-center gap-0.5\" style={{ paddingLeft: `${depth * 12}px` }}>\n {loadedChildren ? (\n <button\n type=\"button\"\n onClick={() => onToggle(node.id, isOpen)}\n aria-expanded={isOpen}\n aria-label={`${isOpen ? 'Collapse' : 'Expand'} ${node.name}`}\n className=\"inline-flex size-6 shrink-0 items-center justify-center rounded-md text-text-muted outline-none transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:ring-1 focus-visible:ring-border-focus\"\n >\n {isOpen ? <ChevronDown className=\"size-3.5\" /> : <ChevronRight className=\"size-3.5\" />}\n </button>\n ) : (\n <span className=\"inline-block size-6 shrink-0\" aria-hidden=\"true\" />\n )}\n <button\n type=\"button\"\n onClick={() => onSelect(node.id)}\n aria-current={active ? 'true' : undefined}\n className={cn(\n 'min-w-0 flex-1 rounded-md px-2 py-1 text-left outline-none transition-colors focus-visible:ring-1 focus-visible:ring-border-focus',\n active\n ? 'bg-bg-sunken text-text-primary'\n : 'text-text-secondary hover:bg-bg-sunken hover:text-text-primary'\n )}\n >\n <span className={cn('block truncate text-sm', active && 'font-medium')}>{node.name}</span>\n <span className=\"block truncate text-xs text-text-muted\">\n {node.adminLevelName}\n {node.childCount > 0 &&\n ` · ${formatNumber(node.childCount)} sub-region${node.childCount === 1 ? '' : 's'}`}\n </span>\n </button>\n </div>\n {loadedChildren && isOpen && (\n <ul className=\"mt-0.5 space-y-0.5\">\n {node.children.map((child) => (\n <TreeNodeRow\n key={child.id}\n node={child}\n depth={depth + 1}\n expanded={expanded}\n onToggle={onToggle}\n onSelect={onSelect}\n activeId={activeId}\n />\n ))}\n </ul>\n )}\n </li>\n );\n};\n\n// ============================================================================\n// Jurisdiction card\n// ============================================================================\n\ninterface JurisdictionCardProps {\n jurisdiction: GovJurisdiction;\n following: boolean;\n followPending: boolean;\n followKnown: boolean;\n onOpen: () => void;\n onToggleFollow: () => void;\n}\n\nconst JurisdictionCard: FC<JurisdictionCardProps> = ({\n jurisdiction,\n following,\n followPending,\n followKnown,\n onOpen,\n onToggleFollow,\n}) => (\n <GlassCard\n treatment=\"plain\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Open ${jurisdiction.name}`}\n onClick={onOpen}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onOpen();\n }\n }}\n className=\"flex cursor-pointer flex-col border-border-seam p-5 outline-none transition-shadow duration-200 hover:shadow-elevation-1 focus-visible:ring-1 focus-visible:ring-border-focus\"\n >\n <div className=\"flex items-start gap-3\">\n <span className=\"inline-flex size-11 shrink-0 items-center justify-center rounded-xl bg-bg-sunken text-text-secondary\">\n <Compass className=\"size-5\" aria-hidden=\"true\" />\n </span>\n <div className=\"min-w-0 flex-1\">\n <h2 className=\"truncate text-base font-semibold text-text-primary\">{jurisdiction.name}</h2>\n {jurisdiction.localName && (\n <p className=\"truncate text-sm text-text-muted\">{jurisdiction.localName}</p>\n )}\n </div>\n <StatusBadge status={jurisdiction.status} />\n </div>\n\n <div className=\"mt-3 flex flex-wrap items-center gap-2\">\n {jurisdiction.adminLevel && (\n <span className=\"inline-flex items-center gap-1 rounded-full border border-border-seam bg-bg-surface px-2.5 py-0.5 text-xs font-medium text-text-secondary\">\n <Layers className=\"size-3\" aria-hidden=\"true\" /> {jurisdiction.adminLevel.name}\n </span>\n )}\n <VerificationChip status={jurisdiction.verification} />\n {jurisdiction.officialCode && (\n <span className=\"inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2.5 py-0.5 font-mono text-xs text-text-secondary\">\n <Hash className=\"size-3\" aria-hidden=\"true\" /> {jurisdiction.officialCode}\n </span>\n )}\n </div>\n\n {/* Only published facts are shown — an unpublished figure is left out. */}\n {(jurisdiction.population != null || jurisdiction.areaSqKm != null) && (\n <div className=\"mt-4 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm\">\n {jurisdiction.population != null && (\n <span className=\"inline-flex items-center gap-1.5 text-text-secondary\">\n <Users className=\"size-4 text-text-muted\" aria-hidden=\"true\" />\n <span className=\"font-medium tabular-nums text-text-primary\">\n {formatNumber(jurisdiction.population)}\n </span>\n {jurisdiction.populationYear != null && (\n <span className=\"text-xs text-text-muted tabular-nums\">\n ({jurisdiction.populationYear})\n </span>\n )}\n </span>\n )}\n {jurisdiction.areaSqKm != null && (\n <span className=\"inline-flex items-center gap-1.5 text-text-secondary\">\n <Ruler className=\"size-4 text-text-muted\" aria-hidden=\"true\" />\n <span className=\"font-medium tabular-nums text-text-primary\">\n {formatNumber(jurisdiction.areaSqKm, { maximumFractionDigits: 1 })}\n </span>\n <span className=\"text-xs text-text-muted\">km²</span>\n </span>\n )}\n </div>\n )}\n\n <div className=\"mt-4 flex items-center justify-between gap-2 border-t border-border-seam pt-3\">\n <span className=\"truncate text-xs text-text-muted\">{jurisdiction.countryCode}</span>\n <Button\n size=\"sm\"\n variant=\"outline\"\n disabled={followPending || !followKnown}\n onClick={(event) => {\n event.stopPropagation();\n onToggleFollow();\n }}\n aria-pressed={following}\n aria-label={`${following ? 'Unfollow' : 'Follow'} ${jurisdiction.name}`}\n >\n {following ? (\n <BellOff className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" />\n ) : (\n <Bell className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" />\n )}\n {following ? 'Following' : 'Follow'}\n </Button>\n </div>\n </GlassCard>\n);\n\n// ============================================================================\n// Create dialog\n// ============================================================================\n\ninterface CreateJurisdictionDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n adminLevels: readonly GovAdminLevel[];\n parents: readonly FlatTreeEntry[];\n onConfigureLevels: () => void;\n onCreated: (jurisdiction: GovJurisdiction) => void;\n}\n\n/**\n * Minimal, honest create form. Country is NOT free text — it is inherited from\n * the chosen administrative tier, which is the only place a country code is\n * configured. Nothing is pre-filled with an example region.\n */\nconst CreateJurisdictionDialog: FC<CreateJurisdictionDialogProps> = ({\n open,\n onOpenChange,\n adminLevels,\n parents,\n onConfigureLevels,\n onCreated,\n}) => {\n const createJurisdiction = useGovCreateJurisdiction();\n const [adminLevelId, setAdminLevelId] = useState('');\n const [name, setName] = useState('');\n const [localName, setLocalName] = useState('');\n const [officialCode, setOfficialCode] = useState('');\n const [parentId, setParentId] = useState<string>(NO_PARENT);\n\n const selectedLevel = adminLevels.find((level) => level.id === adminLevelId);\n const canSubmit = Boolean(selectedLevel) && name.trim().length > 0;\n\n const resetForm = () => {\n setAdminLevelId('');\n setName('');\n setLocalName('');\n setOfficialCode('');\n setParentId(NO_PARENT);\n };\n\n /** User-driven open/close (overlay, Escape, Cancel) — blocked mid-write. */\n const handleOpenChange = (next: boolean) => {\n if (createJurisdiction.isPending) return;\n if (!next) resetForm();\n onOpenChange(next);\n };\n\n const submit = async () => {\n if (!selectedLevel || !name.trim()) return;\n const input: GovCreateJurisdictionInput = {\n adminLevelId: selectedLevel.id,\n countryCode: selectedLevel.countryCode,\n name: name.trim(),\n };\n if (localName.trim()) input.localName = localName.trim();\n if (officialCode.trim()) input.officialCode = officialCode.trim();\n if (parentId !== NO_PARENT) input.parentId = parentId;\n\n try {\n const created = await createJurisdiction.mutateAsync(input);\n notify.success('Jurisdiction created', `${created.name} starts as a draft profile.`);\n // Close directly rather than through `handleOpenChange`: the mutation's\n // pending flag can still be latched on this tick and would swallow it.\n resetForm();\n onOpenChange(false);\n onCreated(created);\n } catch (error) {\n notify.error('Could not create the jurisdiction', describeError(error));\n }\n };\n\n return (\n <ResponsiveDialog open={open} onOpenChange={handleOpenChange}>\n <ResponsiveDialogContent className=\"sm:max-w-lg\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>New jurisdiction</ResponsiveDialogTitle>\n <ResponsiveDialogDescription>\n Create the profile as a draft. It stays invisible to citizens until it is published.\n </ResponsiveDialogDescription>\n </ResponsiveDialogHeader>\n\n {adminLevels.length === 0 ? (\n <div className=\"py-2\">\n <p className=\"text-sm text-text-secondary\">\n No administrative tiers are configured for this workspace yet. A jurisdiction has to\n sit on a tier, so set the hierarchy up first.\n </p>\n <Button className=\"mt-4\" onClick={onConfigureLevels}>\n Configure the hierarchy\n </Button>\n </div>\n ) : (\n <>\n <div className=\"grid gap-4 py-2 sm:grid-cols-2\">\n <div className=\"grid gap-1.5 sm:col-span-2\">\n <Label htmlFor=\"jurisdiction-level\">Administrative tier</Label>\n <Select value={adminLevelId} onValueChange={setAdminLevelId}>\n <SelectTrigger id=\"jurisdiction-level\" aria-label=\"Administrative tier\">\n <SelectValue placeholder=\"Choose a tier\" />\n </SelectTrigger>\n <SelectContent>\n {adminLevels.map((level) => (\n <SelectItem key={level.id} value={level.id}>\n {level.name} · {level.countryCode} · rank {level.rank}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n {selectedLevel && (\n <p className=\"text-xs text-text-muted\">\n Country is taken from the tier: {selectedLevel.countryCode}.\n </p>\n )}\n </div>\n\n <div className=\"grid gap-1.5 sm:col-span-2\">\n <Label htmlFor=\"jurisdiction-name\">Name</Label>\n <Input\n id=\"jurisdiction-name\"\n value={name}\n onChange={(event) => setName(event.target.value)}\n placeholder=\"Official name of the region\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"jurisdiction-local-name\">Local name (optional)</Label>\n <Input\n id=\"jurisdiction-local-name\"\n value={localName}\n onChange={(event) => setLocalName(event.target.value)}\n placeholder=\"Name in the local script\"\n />\n </div>\n\n <div className=\"grid gap-1.5\">\n <Label htmlFor=\"jurisdiction-code\">Official code (optional)</Label>\n <Input\n id=\"jurisdiction-code\"\n value={officialCode}\n onChange={(event) => setOfficialCode(event.target.value)}\n placeholder=\"Census / government code\"\n />\n </div>\n\n <div className=\"grid gap-1.5 sm:col-span-2\">\n <Label htmlFor=\"jurisdiction-parent\">Parent region (optional)</Label>\n <Select value={parentId} onValueChange={setParentId}>\n <SelectTrigger id=\"jurisdiction-parent\" aria-label=\"Parent region\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value={NO_PARENT}>No parent (top level)</SelectItem>\n {parents.map((entry) => (\n <SelectItem key={entry.id} value={entry.id}>\n {/* Indent by tier depth — HTML collapses leading spaces. */}\n <span style={{ paddingLeft: `${entry.depth * 12}px` }}>\n {entry.name} · {entry.adminLevelName}\n </span>\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n </div>\n\n <ResponsiveDialogFooter>\n <Button\n variant=\"outline\"\n onClick={() => handleOpenChange(false)}\n disabled={createJurisdiction.isPending}\n >\n Cancel\n </Button>\n <Button\n onClick={() => void submit()}\n disabled={!canSubmit || createJurisdiction.isPending}\n >\n Create jurisdiction\n </Button>\n </ResponsiveDialogFooter>\n </>\n )}\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n};\n\n// ============================================================================\n// Page\n// ============================================================================\n\nexport const JurisdictionDirectoryPage: FC = () => {\n const { navigateTo } = useGovCitizenHub();\n const [searchParams, setSearchParams] = useSearchParams();\n const pager = useCursorPager();\n const resetPager = pager.reset;\n\n /** Optional subtree scope, set by the profile page's \"sub-regions\" link. */\n const parentScopeId = searchParams.get('parentId');\n\n const [searchInput, setSearchInput] = useState('');\n const [search, setSearch] = useState('');\n const [country, setCountry] = useState<string>(ANY);\n const [adminLevelId, setAdminLevelId] = useState<string>(ANY);\n const [status, setStatus] = useState<StatusFilter>('ALL');\n const [expanded, setExpanded] = useState<Record<string, boolean>>({});\n const [createOpen, setCreateOpen] = useState(false);\n const [pendingFollowId, setPendingFollowId] = useState<string | null>(null);\n\n // Debounce lives in a ref-held timer driven from the change handler, so the\n // search box never fires a request per keystroke.\n const searchTimer = useRef<number | null>(null);\n useEffect(\n () => () => {\n if (searchTimer.current !== null) window.clearTimeout(searchTimer.current);\n },\n []\n );\n\n const adminLevelsQuery = useGovAdminLevels(undefined, { limit: ADMIN_LEVEL_PAGE_SIZE });\n const allAdminLevels = useMemo(\n () => adminLevelsQuery.data?.items ?? [],\n [adminLevelsQuery.data]\n );\n\n /** Countries this workspace has actually configured a hierarchy for. */\n const countries = useMemo(\n () => [...new Set(allAdminLevels.map((level) => level.countryCode))].sort(),\n [allAdminLevels]\n );\n\n /** Tiers offered by the tier select, narrowed by the country filter. */\n const levelOptions = useMemo(\n () =>\n allAdminLevels\n .filter((level) => country === ANY || level.countryCode === country)\n .sort((a, b) => a.rank - b.rank || a.name.localeCompare(b.name)),\n [allAdminLevels, country]\n );\n\n const treeQuery = useGovJurisdictionTree(undefined, TREE_DEPTH);\n const treeNodes = useMemo(() => treeQuery.data ?? [], [treeQuery.data]);\n const flatTree = useMemo(() => flattenTree(treeNodes), [treeNodes]);\n const parentScopeName = flatTree.find((entry) => entry.id === parentScopeId)?.name;\n\n const followedQuery = useGovMyFollowedJurisdictions({ limit: FOLLOW_PAGE_SIZE });\n const followedIds = useMemo(\n () => new Set((followedQuery.data?.items ?? []).map((item) => item.id)),\n [followedQuery.data]\n );\n const followKnown = followedQuery.isSuccess;\n\n const followJurisdiction = useGovFollowJurisdiction();\n const unfollowJurisdiction = useGovUnfollowJurisdiction();\n\n const filter = useMemo<GovJurisdictionFilterInput>(() => {\n const next: GovJurisdictionFilterInput = {};\n if (search) next.search = search;\n if (country !== ANY) next.countryCode = country;\n if (adminLevelId !== ANY) next.adminLevelId = adminLevelId;\n if (status !== 'ALL') next.status = status;\n if (parentScopeId) next.parentId = parentScopeId;\n return next;\n }, [search, country, adminLevelId, status, parentScopeId]);\n\n const { data, isLoading, isError, refetch } = useGovJurisdictions(filter, {\n limit: PAGE_SIZE,\n cursor: pager.cursor,\n });\n\n const jurisdictions = useMemo(() => data?.items ?? [], [data]);\n const filtersActive =\n search.length > 0 ||\n country !== ANY ||\n adminLevelId !== ANY ||\n status !== 'ALL' ||\n Boolean(parentScopeId);\n\n const onSearchChange = useCallback(\n (value: string) => {\n setSearchInput(value);\n if (searchTimer.current !== null) window.clearTimeout(searchTimer.current);\n searchTimer.current = window.setTimeout(() => {\n setSearch(value.trim());\n resetPager();\n }, SEARCH_DEBOUNCE_MS);\n },\n [resetPager]\n );\n\n const changeCountry = useCallback(\n (next: string) => {\n setCountry(next);\n // A tier belongs to exactly one country — drop it when the country moves.\n setAdminLevelId(ANY);\n resetPager();\n },\n [resetPager]\n );\n\n const changeAdminLevel = useCallback(\n (next: string) => {\n setAdminLevelId(next);\n resetPager();\n },\n [resetPager]\n );\n\n const changeStatus = useCallback(\n (next: StatusFilter) => {\n setStatus(next);\n resetPager();\n },\n [resetPager]\n );\n\n const clearParentScope = useCallback(() => {\n const next = new URLSearchParams(searchParams);\n next.delete('parentId');\n setSearchParams(next, { replace: true });\n resetPager();\n }, [searchParams, setSearchParams, resetPager]);\n\n const clearFilters = useCallback(() => {\n if (searchTimer.current !== null) window.clearTimeout(searchTimer.current);\n setSearchInput('');\n setSearch('');\n setCountry(ANY);\n setAdminLevelId(ANY);\n setStatus('ALL');\n resetPager();\n if (parentScopeId) {\n const next = new URLSearchParams(searchParams);\n next.delete('parentId');\n setSearchParams(next, { replace: true });\n }\n }, [parentScopeId, searchParams, setSearchParams, resetPager]);\n\n const toggleNode = useCallback((id: string, isOpen: boolean) => {\n setExpanded((prev) => ({ ...prev, [id]: !isOpen }));\n }, []);\n\n const openJurisdiction = useCallback(\n (id: string) => navigateTo(`intelligence/${id}`),\n [navigateTo]\n );\n\n const handleRetry = useCallback(() => {\n void refetch();\n }, [refetch]);\n\n const toggleFollow = useCallback(\n async (jurisdiction: GovJurisdiction) => {\n setPendingFollowId(jurisdiction.id);\n try {\n if (followedIds.has(jurisdiction.id)) {\n await unfollowJurisdiction.mutateAsync(jurisdiction.id);\n notify.success('Unfollowed', `You will no longer get updates for ${jurisdiction.name}.`);\n } else {\n await followJurisdiction.mutateAsync({ jurisdictionId: jurisdiction.id });\n notify.success('Following', `You will get updates for ${jurisdiction.name}.`);\n }\n } catch (error) {\n notify.error('Could not update your subscription', describeError(error));\n } finally {\n setPendingFollowId(null);\n }\n },\n [followedIds, followJurisdiction, unfollowJurisdiction]\n );\n\n return (\n <PageLayout\n title=\"Community Intelligence\"\n titleGradient\n description=\"Every administrative region, its officials, its money and how it performs — sourced, dated and open.\"\n actions={\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" /> New jurisdiction\n </Button>\n }\n >\n <div className=\"grid gap-5 lg:grid-cols-4\">\n {/* Results column */}\n <div className=\"min-w-0 lg:col-span-3\">\n <div className=\"relative mb-4\">\n <Search\n className=\"pointer-events-none absolute left-3.5 top-1/2 size-4 -translate-y-1/2 text-text-muted\"\n aria-hidden=\"true\"\n />\n <Input\n value={searchInput}\n onChange={(event) => onSearchChange(event.target.value)}\n placeholder=\"Search by name, local name or official code…\"\n aria-label=\"Search jurisdictions\"\n className=\"h-11 pl-10\"\n />\n </div>\n\n <div className=\"mb-4 flex flex-wrap items-center gap-3\">\n <Select value={country} onValueChange={changeCountry}>\n <SelectTrigger className=\"w-full sm:w-52\" aria-label=\"Filter by country\">\n <SelectValue placeholder=\"All countries\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value={ANY}>All countries</SelectItem>\n {countries.map((code) => (\n <SelectItem key={code} value={code}>\n {code}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n\n <Select value={adminLevelId} onValueChange={changeAdminLevel}>\n <SelectTrigger className=\"w-full sm:w-60\" aria-label=\"Filter by administrative tier\">\n <SelectValue placeholder=\"All tiers\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value={ANY}>All tiers</SelectItem>\n {levelOptions.map((level) => (\n <SelectItem key={level.id} value={level.id}>\n {level.pluralName} · {level.countryCode}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n\n <FilterTabs options={STATUS_OPTIONS} value={status} onChange={changeStatus} />\n </div>\n\n {parentScopeId && (\n <div className=\"mb-4 flex flex-wrap items-center justify-between gap-2 rounded-card border border-border-seam bg-bg-sunken px-4 py-2.5\">\n <p className=\"text-sm text-text-secondary\">\n Showing the sub-regions of{' '}\n <span className=\"font-medium text-text-primary\">\n {parentScopeName ?? 'the selected region'}\n </span>\n .\n </p>\n <Button size=\"sm\" variant=\"ghost\" onClick={clearParentScope}>\n <X className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" /> Show all regions\n </Button>\n </div>\n )}\n\n {isLoading ? (\n <div className=\"grid gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {Array.from({ length: 6 }, (_, index) => (\n <GlassCard key={index} treatment=\"plain\" className=\"space-y-3 p-5\">\n <div className=\"flex items-center gap-3\">\n <Skeleton className=\"size-11 rounded-xl\" />\n <div className=\"flex-1 space-y-2\">\n <Skeleton className=\"h-5 w-2/3 rounded\" />\n <Skeleton className=\"h-4 w-1/2 rounded\" />\n </div>\n </div>\n <Skeleton className=\"h-9 w-full rounded-button\" />\n </GlassCard>\n ))}\n </div>\n ) : isError ? (\n <ErrorView message=\"We couldn't load the jurisdiction directory.\" onRetry={handleRetry} />\n ) : jurisdictions.length === 0 ? (\n <EmptyState\n illustration={filtersActive ? 'empty-search' : 'empty-data'}\n title={filtersActive ? 'No jurisdictions match these filters' : 'No jurisdictions yet'}\n description={\n filtersActive\n ? 'Nothing in this workspace matches the current search and filters. Try widening them.'\n : 'Create the first administrative region to start building its public profile.'\n }\n action={\n filtersActive ? (\n <Button variant=\"outline\" onClick={clearFilters}>\n Clear filters\n </Button>\n ) : (\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" /> Create jurisdiction\n </Button>\n )\n }\n />\n ) : (\n <>\n <div className=\"grid gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {jurisdictions.map((jurisdiction) => (\n <JurisdictionCard\n key={jurisdiction.id}\n jurisdiction={jurisdiction}\n following={followedIds.has(jurisdiction.id)}\n followPending={pendingFollowId === jurisdiction.id}\n followKnown={followKnown}\n onOpen={() => openJurisdiction(jurisdiction.id)}\n onToggleFollow={() => void toggleFollow(jurisdiction)}\n />\n ))}\n </div>\n {/* The connection carries no total — the pager reports the window. */}\n <Pagination\n page={pager.page}\n pageSize={PAGE_SIZE}\n itemCount={jurisdictions.length}\n hasMore={data?.pageInfo.hasMore ?? false}\n onPageChange={(target) => pager.onPageChange(target, data?.pageInfo.cursor)}\n />\n </>\n )}\n </div>\n\n {/* Hierarchy rail — last in the DOM so narrow viewports lead with results. */}\n <aside className=\"min-w-0 lg:col-span-1 lg:order-first\">\n <SectionCard title=\"Hierarchy\" icon={<Layers />} className=\"border-border-seam\">\n {treeQuery.isLoading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 6 }, (_, index) => (\n <Skeleton key={index} className=\"h-8 w-full rounded-md\" />\n ))}\n </div>\n ) : treeQuery.isError ? (\n <ErrorView\n className=\"min-h-0 py-6\"\n title=\"Hierarchy unavailable\"\n message=\"We couldn't load the administrative tree.\"\n onRetry={() => {\n void treeQuery.refetch();\n }}\n />\n ) : treeNodes.length === 0 ? (\n <p className=\"text-sm text-text-secondary\">\n No regions have been added yet. The hierarchy appears here once the first\n jurisdiction exists.\n </p>\n ) : (\n <ul className=\"-mx-1 max-h-[28rem] space-y-0.5 overflow-y-auto px-1\">\n {treeNodes.map((node) => (\n <TreeNodeRow\n key={node.id}\n node={node}\n depth={0}\n expanded={expanded}\n onToggle={toggleNode}\n onSelect={openJurisdiction}\n activeId={parentScopeId ?? undefined}\n />\n ))}\n </ul>\n )}\n </SectionCard>\n </aside>\n </div>\n\n <CreateJurisdictionDialog\n open={createOpen}\n onOpenChange={setCreateOpen}\n adminLevels={allAdminLevels}\n parents={flatTree}\n onConfigureLevels={() => {\n setCreateOpen(false);\n navigateTo('intelligence/admin/levels');\n }}\n onCreated={(created) => openJurisdiction(created.id)}\n />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyFA,IAAM,KAAY,IAGZ,KAAa,GAOb,KAAmB,KAGnB,KAAwB,KAGxB,IAAM,OAGN,IAAY,aAGZ,KAAqB,KAIrB,KAA+C;CACnD;EAAE,OAAO;EAAO,OAAO;CAAM;CAC7B;EAAE,OAAO;EAAa,OAAO;CAAY;CACzC;EAAE,OAAO;EAAS,OAAO;CAAQ;CACjC;EAAE,OAAO;EAAY,OAAO;CAAW;AACzC;AAcA,SAAS,GAAY,GAA2C,IAAQ,GAAoB;CAC1F,IAAM,IAAuB,CAAC;CAC9B,KAAK,IAAM,KAAQ,GAOjB,AANA,EAAI,KAAK;EACP,IAAI,EAAK;EACT,MAAM,EAAK;EACX;EACA,gBAAgB,EAAK;CACvB,CAAC,GACD,EAAI,KAAK,GAAG,GAAY,EAAK,UAAU,IAAQ,CAAC,CAAC;CAEnD,OAAO;AACT;AAWA,IAAM,MAAqC,EACzC,SACA,UACA,aACA,aACA,aACA,kBACI;CAGJ,IAAM,IAAiB,EAAK,SAAS,SAAS,GACxC,IAAS,EAAS,EAAK,OAAO,MAAU,GACxC,IAAS,EAAK,OAAO;CAE3B,OACE,kBAAC,MAAD,EAAA,UAAA,CACE,kBAAC,OAAD;EAAK,WAAU;EAA4B,OAAO,EAAE,aAAa,GAAG,IAAQ,GAAG,IAAI;YAAnF,CACG,IACC,kBAAC,UAAD;GACE,MAAK;GACL,eAAe,EAAS,EAAK,IAAI,CAAM;GACvC,iBAAe;GACf,cAAY,GAAG,IAAS,aAAa,SAAS,GAAG,EAAK;GACtD,WAAU;aAEA,EAAT,IAAU,IAAuC,GAAxC,EAAa,WAAU,WAAY,CAAwC;EAC/E,CAAA,IAER,kBAAC,QAAD;GAAM,WAAU;GAA+B,eAAY;EAAQ,CAAA,GAErE,kBAAC,UA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ReactNode } from 'react';
|
|
2
|
+
import { FilterOption } from '../../components/FilterTabs';
|
|
3
|
+
import { GovVerificationStatus } from '../../types';
|
|
4
|
+
|
|
5
|
+
/** The 13 jurisdiction profile surfaces, in route order. */
|
|
6
|
+
export declare const JURISDICTION_TABS: readonly FilterOption<string>[];
|
|
7
|
+
/** Provenance grade chip — shared by every Community Intelligence surface. */
|
|
8
|
+
export declare const VerificationChip: FC<{
|
|
9
|
+
status: GovVerificationStatus;
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
export interface JurisdictionLayoutProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Page-specific header actions, rendered before the Follow control. */
|
|
15
|
+
actions?: ReactNode;
|
|
16
|
+
/** Caption under the region name. Defaults to the admin level + official code. */
|
|
17
|
+
description?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const JurisdictionLayout: FC<JurisdictionLayoutProps>;
|
|
20
|
+
//# sourceMappingURL=JurisdictionLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JurisdictionLayout.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/intelligence/JurisdictionLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM3C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAW5E,OAAO,EAA2B,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAKlF,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,CAAC,MAAM,CAAC,EAc5D,CAAC;AAWF,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,MAAM,EAAE,qBAAqB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAatF,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAgJ1D,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { useGovCitizenHub as e } from "../../context/GovCitizenHubContext.js";
|
|
2
|
+
import "../../context/index.js";
|
|
3
|
+
import { cn as t } from "../../utils/cn.js";
|
|
4
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
5
|
+
import { formatNumber as r } from "../../utils/formatters.js";
|
|
6
|
+
import { useGovFollowJurisdiction as i, useGovJurisdictionOverview as a, useGovUnfollowJurisdiction as o } from "../../hooks/useIntelligenceApi.js";
|
|
7
|
+
import "../../hooks/index.js";
|
|
8
|
+
import { ErrorView as s, LoadingView as c } from "../../components/StateViews.js";
|
|
9
|
+
import { FilterTabs as l } from "../../components/FilterTabs.js";
|
|
10
|
+
import { describeError as u, notify as d } from "../../lib/toast.js";
|
|
11
|
+
import { GOV_VERIFICATION_LABELS as f } from "../../types/intelligence.js";
|
|
12
|
+
import { BellOff as p, BellRing as m, Users as h } from "lucide-react";
|
|
13
|
+
import { useLocation as g, useParams as _ } from "react-router-dom";
|
|
14
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
15
|
+
import { Button as x } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
//#region src/govcitizenhub/pages/intelligence/JurisdictionLayout.tsx
|
|
17
|
+
var S = "profile", C = [
|
|
18
|
+
{
|
|
19
|
+
value: S,
|
|
20
|
+
label: "Profile"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "governance",
|
|
24
|
+
label: "Governance"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "budget",
|
|
28
|
+
label: "Budget"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "projects",
|
|
32
|
+
label: "Projects"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: "indicators",
|
|
36
|
+
label: "Indicators"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: "benchmark",
|
|
40
|
+
label: "Benchmark"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: "services",
|
|
44
|
+
label: "Services"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: "assets",
|
|
48
|
+
label: "Public assets"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: "elections",
|
|
52
|
+
label: "Elections"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
value: "consultations",
|
|
56
|
+
label: "Consultations"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "open-data",
|
|
60
|
+
label: "Open data"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: "timeline",
|
|
64
|
+
label: "Timeline"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
value: "corrections",
|
|
68
|
+
label: "Corrections"
|
|
69
|
+
}
|
|
70
|
+
], w = new Set(C.map((e) => e.value)), T = {
|
|
71
|
+
UNVERIFIED: "bg-bg-sunken text-text-secondary",
|
|
72
|
+
OFFICIAL: "bg-status-success-bg-subtle text-status-success-text",
|
|
73
|
+
COMMUNITY_VERIFIED: "bg-[var(--color-accent-soft)] text-action-primary-text",
|
|
74
|
+
DISPUTED: "bg-status-error-bg-subtle text-status-error-text"
|
|
75
|
+
}, E = ({ status: e, className: n }) => /* @__PURE__ */ y("span", {
|
|
76
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", T[e], n),
|
|
77
|
+
children: f[e]
|
|
78
|
+
}), D = ({ children: t, actions: f, description: T }) => {
|
|
79
|
+
let { jurisdictionId: D } = _(), { pathname: O } = g(), { navigateTo: k } = e(), { data: A, isLoading: j, isError: M, refetch: N } = a(D), P = i(), F = o(), I = O.split("/").filter(Boolean).pop() ?? "", L = w.has(I) ? I : S, R = (e) => {
|
|
80
|
+
D && k(e === S ? `intelligence/${D}` : `intelligence/${D}/${e}`);
|
|
81
|
+
};
|
|
82
|
+
if (j) return /* @__PURE__ */ y(n, {
|
|
83
|
+
title: "Jurisdiction",
|
|
84
|
+
back: {
|
|
85
|
+
label: "Community Intelligence",
|
|
86
|
+
onClick: () => k("intelligence")
|
|
87
|
+
},
|
|
88
|
+
children: /* @__PURE__ */ y(c, { label: "Loading jurisdiction…" })
|
|
89
|
+
});
|
|
90
|
+
if (M || !A) return /* @__PURE__ */ y(n, {
|
|
91
|
+
title: "Jurisdiction",
|
|
92
|
+
back: {
|
|
93
|
+
label: "Community Intelligence",
|
|
94
|
+
onClick: () => k("intelligence")
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ y(s, {
|
|
97
|
+
message: "We couldn't load this jurisdiction profile.",
|
|
98
|
+
onRetry: () => {
|
|
99
|
+
N();
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
let { jurisdiction: z, adminLevel: B, parent: V } = A, H = A.isFollowedByMe, U = P.isPending || F.isPending, W = async () => {
|
|
104
|
+
if (D) try {
|
|
105
|
+
H ? (await F.mutateAsync(D), d.success("Unfollowed", `You will no longer get updates for ${z.name}.`)) : (await P.mutateAsync({ jurisdictionId: D }), d.success("Following", `You will get updates for ${z.name}.`));
|
|
106
|
+
} catch (e) {
|
|
107
|
+
d.error("Could not update your follow preference", u(e));
|
|
108
|
+
}
|
|
109
|
+
}, G = [
|
|
110
|
+
{
|
|
111
|
+
label: "Community Intelligence",
|
|
112
|
+
onClick: () => k("intelligence")
|
|
113
|
+
},
|
|
114
|
+
...V ? [{
|
|
115
|
+
label: V.name,
|
|
116
|
+
onClick: () => k(`intelligence/${V.id}`)
|
|
117
|
+
}] : [],
|
|
118
|
+
{ label: z.name }
|
|
119
|
+
], K = T ?? [B?.name, z.officialCode ? `Code ${z.officialCode}` : null].filter(Boolean).join(" · ");
|
|
120
|
+
return /* @__PURE__ */ b(n, {
|
|
121
|
+
breadcrumbs: G,
|
|
122
|
+
title: /* @__PURE__ */ b("span", {
|
|
123
|
+
className: "flex flex-wrap items-center gap-x-3 gap-y-2",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ y("span", {
|
|
126
|
+
className: "text-text-primary",
|
|
127
|
+
children: z.name
|
|
128
|
+
}),
|
|
129
|
+
z.localName && /* @__PURE__ */ y("span", {
|
|
130
|
+
className: "text-lg font-normal text-text-secondary",
|
|
131
|
+
children: z.localName
|
|
132
|
+
}),
|
|
133
|
+
B && /* @__PURE__ */ y("span", {
|
|
134
|
+
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
135
|
+
children: B.name
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ y(E, { status: z.verification })
|
|
138
|
+
]
|
|
139
|
+
}),
|
|
140
|
+
description: K || void 0,
|
|
141
|
+
actions: /* @__PURE__ */ b("div", {
|
|
142
|
+
className: "flex flex-wrap items-center gap-2",
|
|
143
|
+
children: [
|
|
144
|
+
f,
|
|
145
|
+
/* @__PURE__ */ b("span", {
|
|
146
|
+
className: "inline-flex items-center gap-1.5 text-sm text-text-muted tabular-nums",
|
|
147
|
+
children: [/* @__PURE__ */ y(h, {
|
|
148
|
+
className: "size-4",
|
|
149
|
+
"aria-hidden": "true"
|
|
150
|
+
}), r(A.followerCount)]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ y(x, {
|
|
153
|
+
variant: H ? "outline" : "default",
|
|
154
|
+
onClick: () => {
|
|
155
|
+
W();
|
|
156
|
+
},
|
|
157
|
+
disabled: U,
|
|
158
|
+
children: H ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(p, {
|
|
159
|
+
className: "mr-1.5 h-4 w-4",
|
|
160
|
+
"aria-hidden": "true"
|
|
161
|
+
}), " Unfollow"] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(m, {
|
|
162
|
+
className: "mr-1.5 h-4 w-4",
|
|
163
|
+
"aria-hidden": "true"
|
|
164
|
+
}), " Follow"] })
|
|
165
|
+
})
|
|
166
|
+
]
|
|
167
|
+
}),
|
|
168
|
+
children: [/* @__PURE__ */ y("div", {
|
|
169
|
+
className: "mb-6",
|
|
170
|
+
children: /* @__PURE__ */ y(l, {
|
|
171
|
+
variant: "underline",
|
|
172
|
+
options: [...C],
|
|
173
|
+
value: L,
|
|
174
|
+
onChange: R,
|
|
175
|
+
className: "w-full"
|
|
176
|
+
})
|
|
177
|
+
}), t]
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
//#endregion
|
|
181
|
+
export { C as JURISDICTION_TABS, D as JurisdictionLayout, E as VerificationChip };
|
|
182
|
+
|
|
183
|
+
//# sourceMappingURL=JurisdictionLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JurisdictionLayout.js","names":[],"sources":["../../../../src/govcitizenhub/pages/intelligence/JurisdictionLayout.tsx"],"sourcesContent":["/**\n * JurisdictionLayout — shared chrome for every Community Intelligence profile tab.\n * @module govcitizenhub/pages/intelligence\n *\n * Owns the parts every `/intelligence/:jurisdictionId/*` page shares:\n * - the ancestor breadcrumb (Community Intelligence → parent → this region),\n * - the jurisdiction name + admin-level chip + publication/verification state,\n * - the Follow / Unfollow control (a `self` mutation — the actor comes from the\n * gateway, never from a client-supplied id),\n * - the tab strip across the 13 profile surfaces.\n *\n * It reads `govJurisdictionOverview` once for the whole tab set; the active tab\n * is derived from the current location, so a page just wraps its body in\n * <JurisdictionLayout> without declaring which tab it is.\n *\n * Every value rendered here comes from the API. Nothing is placeholder data.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { BellOff, BellRing, Users } from 'lucide-react';\nimport { Button } from '@burdenoff/fe-libs/ui';\n\nimport { PageLayout, type Breadcrumb } from '../../components/PageLayout';\nimport { FilterTabs, type FilterOption } from '../../components/FilterTabs';\nimport { LoadingView, ErrorView } from '../../components/StateViews';\nimport {\n useGovFollowJurisdiction,\n useGovJurisdictionOverview,\n useGovUnfollowJurisdiction,\n} from '../../hooks';\nimport { useGovCitizenHub } from '../../context';\nimport { notify, describeError } from '../../lib/toast';\nimport { formatNumber } from '../../utils/formatters';\nimport { cn } from '../../utils/cn';\nimport { GOV_VERIFICATION_LABELS, type GovVerificationStatus } from '../../types';\n\n/** The profile-root tab has no path segment; this sentinel stands in for it. */\nconst PROFILE_TAB = 'profile';\n\n/** The 13 jurisdiction profile surfaces, in route order. */\nexport const JURISDICTION_TABS: readonly FilterOption<string>[] = [\n { value: PROFILE_TAB, label: 'Profile' },\n { value: 'governance', label: 'Governance' },\n { value: 'budget', label: 'Budget' },\n { value: 'projects', label: 'Projects' },\n { value: 'indicators', label: 'Indicators' },\n { value: 'benchmark', label: 'Benchmark' },\n { value: 'services', label: 'Services' },\n { value: 'assets', label: 'Public assets' },\n { value: 'elections', label: 'Elections' },\n { value: 'consultations', label: 'Consultations' },\n { value: 'open-data', label: 'Open data' },\n { value: 'timeline', label: 'Timeline' },\n { value: 'corrections', label: 'Corrections' },\n];\n\nconst TAB_SEGMENTS = new Set(JURISDICTION_TABS.map((tab) => tab.value));\n\nconst verificationTone: Record<GovVerificationStatus, string> = {\n UNVERIFIED: 'bg-bg-sunken text-text-secondary',\n OFFICIAL: 'bg-status-success-bg-subtle text-status-success-text',\n COMMUNITY_VERIFIED: 'bg-[var(--color-accent-soft)] text-action-primary-text',\n DISPUTED: 'bg-status-error-bg-subtle text-status-error-text',\n};\n\n/** Provenance grade chip — shared by every Community Intelligence surface. */\nexport const VerificationChip: FC<{ status: GovVerificationStatus; className?: string }> = ({\n status,\n className,\n}) => (\n <span\n className={cn(\n 'inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium',\n verificationTone[status],\n className\n )}\n >\n {GOV_VERIFICATION_LABELS[status]}\n </span>\n);\n\nexport interface JurisdictionLayoutProps {\n children: ReactNode;\n /** Page-specific header actions, rendered before the Follow control. */\n actions?: ReactNode;\n /** Caption under the region name. Defaults to the admin level + official code. */\n description?: string;\n}\n\nexport const JurisdictionLayout: FC<JurisdictionLayoutProps> = ({\n children,\n actions,\n description,\n}) => {\n const { jurisdictionId } = useParams<{ jurisdictionId: string }>();\n const { pathname } = useLocation();\n const { navigateTo } = useGovCitizenHub();\n\n const { data: overview, isLoading, isError, refetch } = useGovJurisdictionOverview(jurisdictionId);\n const followJurisdiction = useGovFollowJurisdiction();\n const unfollowJurisdiction = useGovUnfollowJurisdiction();\n\n const lastSegment = pathname.split('/').filter(Boolean).pop() ?? '';\n const activeTab = TAB_SEGMENTS.has(lastSegment) ? lastSegment : PROFILE_TAB;\n\n const goToTab = (tab: string) => {\n if (!jurisdictionId) return;\n navigateTo(\n tab === PROFILE_TAB\n ? `intelligence/${jurisdictionId}`\n : `intelligence/${jurisdictionId}/${tab}`\n );\n };\n\n if (isLoading) {\n return (\n <PageLayout\n title=\"Jurisdiction\"\n back={{ label: 'Community Intelligence', onClick: () => navigateTo('intelligence') }}\n >\n <LoadingView label=\"Loading jurisdiction…\" />\n </PageLayout>\n );\n }\n\n if (isError || !overview) {\n return (\n <PageLayout\n title=\"Jurisdiction\"\n back={{ label: 'Community Intelligence', onClick: () => navigateTo('intelligence') }}\n >\n <ErrorView\n message=\"We couldn't load this jurisdiction profile.\"\n onRetry={() => {\n void refetch();\n }}\n />\n </PageLayout>\n );\n }\n\n const { jurisdiction, adminLevel, parent } = overview;\n const following = overview.isFollowedByMe;\n const followBusy = followJurisdiction.isPending || unfollowJurisdiction.isPending;\n\n const toggleFollow = async () => {\n if (!jurisdictionId) return;\n try {\n if (following) {\n await unfollowJurisdiction.mutateAsync(jurisdictionId);\n notify.success('Unfollowed', `You will no longer get updates for ${jurisdiction.name}.`);\n } else {\n await followJurisdiction.mutateAsync({ jurisdictionId });\n notify.success('Following', `You will get updates for ${jurisdiction.name}.`);\n }\n } catch (err) {\n notify.error('Could not update your follow preference', describeError(err));\n }\n };\n\n const breadcrumbs: Breadcrumb[] = [\n { label: 'Community Intelligence', onClick: () => navigateTo('intelligence') },\n ...(parent\n ? [{ label: parent.name, onClick: () => navigateTo(`intelligence/${parent.id}`) }]\n : []),\n { label: jurisdiction.name },\n ];\n\n const caption =\n description ??\n [adminLevel?.name, jurisdiction.officialCode ? `Code ${jurisdiction.officialCode}` : null]\n .filter(Boolean)\n .join(' · ');\n\n return (\n <PageLayout\n breadcrumbs={breadcrumbs}\n title={\n <span className=\"flex flex-wrap items-center gap-x-3 gap-y-2\">\n <span className=\"text-text-primary\">{jurisdiction.name}</span>\n {jurisdiction.localName && (\n <span className=\"text-lg font-normal text-text-secondary\">\n {jurisdiction.localName}\n </span>\n )}\n {adminLevel && (\n <span className=\"rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary\">\n {adminLevel.name}\n </span>\n )}\n <VerificationChip status={jurisdiction.verification} />\n </span>\n }\n description={caption || undefined}\n actions={\n <div className=\"flex flex-wrap items-center gap-2\">\n {actions}\n <span className=\"inline-flex items-center gap-1.5 text-sm text-text-muted tabular-nums\">\n <Users className=\"size-4\" aria-hidden=\"true\" />\n {formatNumber(overview.followerCount)}\n </span>\n <Button\n variant={following ? 'outline' : 'default'}\n onClick={() => {\n void toggleFollow();\n }}\n disabled={followBusy}\n >\n {following ? (\n <>\n <BellOff className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" /> Unfollow\n </>\n ) : (\n <>\n <BellRing className=\"mr-1.5 h-4 w-4\" aria-hidden=\"true\" /> Follow\n </>\n )}\n </Button>\n </div>\n }\n >\n <div className=\"mb-6\">\n <FilterTabs\n variant=\"underline\"\n options={[...JURISDICTION_TABS]}\n value={activeTab}\n onChange={goToTab}\n className=\"w-full\"\n />\n </div>\n {children}\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA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AM,WAAU;eACb,EAAW;IACR,CAAA;IAER,kBAAC,GAAD,EAAkB,QAAQ,EAAa,aAAe,CAAA;GAClD;;EAER,aAAa,KAAW,KAAA;EACxB,SACE,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG;IACD,kBAAC,QAAD;KAAM,WAAU;eAAhB,CACE,kBAAC,GAAD;MAAO,WAAU;MAAS,eAAY;KAAQ,CAAA,GAC7C,EAAa,EAAS,aAAa,CAChC;;IACN,kBAAC,GAAD;KACE,SAAS,IAAY,YAAY;KACjC,eAAe;MACb,EAAkB;KACpB;KACA,UAAU;eAET,IACC,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;MAAS,WAAU;MAAiB,eAAY;KAAQ,CAAA,GAAC,WACzD,EAAA,CAAA,IAEF,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;MAAU,WAAU;MAAiB,eAAY;KAAQ,CAAA,GAAC,SAC1D,EAAA,CAAA;IAEE,CAAA;GACL;;YA3CT,CA8CE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,GAAD;IACE,SAAQ;IACR,SAAS,CAAC,GAAG,CAAiB;IAC9B,OAAO;IACP,UAAU;IACV,WAAU;GACX,CAAA;EACE,CAAA,GACJ,CACS;;AAEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JurisdictionProfilePage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/intelligence/JurisdictionProfilePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAwB,MAAM,OAAO,CAAC;AAosBtD,eAAO,MAAM,uBAAuB,EAAE,EAgCrC,CAAC"}
|