@burdenoff/microfe-govcitizenhub 2026.720.7 → 2026.730.2
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 +1125 -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
|
@@ -5,17 +5,17 @@ import { PageLayout as n } from "../../components/PageLayout.js";
|
|
|
5
5
|
import { formatDate as r } from "../../utils/formatters.js";
|
|
6
6
|
import { StatusBadge as i } from "../../components/StatusBadge.js";
|
|
7
7
|
import { EmptyState as a } from "../../components/EmptyState.js";
|
|
8
|
-
import { useGovApplicationSlaSummary as o, useGovApplications as
|
|
9
|
-
import { useCursorPager as
|
|
8
|
+
import { useGovApplicationSlaSummary as o, useGovApplications as s, useGovDashboardSummary as c, useGovServices as ee } from "../../hooks/useGovApi.js";
|
|
9
|
+
import { useCursorPager as te } from "../../hooks/useCursorPager.js";
|
|
10
10
|
import "../../hooks/index.js";
|
|
11
|
-
import { ErrorView as
|
|
12
|
-
import { SlaBadge as
|
|
13
|
-
import { AssigneeChip as
|
|
14
|
-
import { FilterTabs as
|
|
15
|
-
import { SummaryStrip as d } from "../../components/SummaryStrip.js";
|
|
11
|
+
import { ErrorView as l } from "../../components/StateViews.js";
|
|
12
|
+
import { SlaBadge as u } from "../../components/SlaBadge.js";
|
|
13
|
+
import { AssigneeChip as d } from "../../components/Avatar.js";
|
|
14
|
+
import { FilterTabs as ne } from "../../components/FilterTabs.js";
|
|
16
15
|
import { Pagination as f } from "../../components/Pagination.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { SummaryStrip as p } from "../../components/SummaryStrip.js";
|
|
17
|
+
import { useMemo as m, useState as h } from "react";
|
|
18
|
+
import { ChevronRight as g, CircleCheck as _, Clock as v, Plus as y, Search as re, TriangleAlert as b, UserCheck as x } from "lucide-react";
|
|
19
19
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
20
20
|
import { Button as T, GlassCard as E, Input as D, Skeleton as O } from "@burdenoff/fe-libs/ui";
|
|
21
21
|
import { useActorProfiles as k } from "@burdenoff/fe-libs/shared";
|
|
@@ -77,16 +77,16 @@ function I({ assignedToId: e, currentUser: t, officerProfiles: n }) {
|
|
|
77
77
|
children: [/* @__PURE__ */ C("span", {
|
|
78
78
|
"aria-hidden": "true",
|
|
79
79
|
className: "inline-flex size-8 items-center justify-center rounded-full border border-dashed border-border-seam text-text-muted",
|
|
80
|
-
children: /* @__PURE__ */ C(
|
|
80
|
+
children: /* @__PURE__ */ C(y, { className: "size-3.5" })
|
|
81
81
|
}), "Unassigned"]
|
|
82
82
|
});
|
|
83
|
-
if (t?.id && e === t.id) return /* @__PURE__ */ C(
|
|
83
|
+
if (t?.id && e === t.id) return /* @__PURE__ */ C(d, {
|
|
84
84
|
name: j(t) ?? "You",
|
|
85
85
|
src: t.avatar,
|
|
86
86
|
subtitle: "You"
|
|
87
87
|
});
|
|
88
88
|
let r = n[e];
|
|
89
|
-
return /* @__PURE__ */ C(
|
|
89
|
+
return /* @__PURE__ */ C(d, {
|
|
90
90
|
name: r?.resolved ? r.displayName : `Officer #${M(e)}`,
|
|
91
91
|
src: r?.avatarUrl,
|
|
92
92
|
subtitle: r?.resolved && r.email || "Assigned officer"
|
|
@@ -136,7 +136,7 @@ function L({ app: e, serviceName: t, currentUser: n, officerProfiles: a, onOpen:
|
|
|
136
136
|
className: "px-4 py-3",
|
|
137
137
|
children: /* @__PURE__ */ w("div", {
|
|
138
138
|
className: "flex flex-col gap-0.5",
|
|
139
|
-
children: [/* @__PURE__ */ C(
|
|
139
|
+
children: [/* @__PURE__ */ C(u, {
|
|
140
140
|
dueDate: e.dueDate,
|
|
141
141
|
status: e.status
|
|
142
142
|
}), e.dueDate && /* @__PURE__ */ w("span", {
|
|
@@ -151,7 +151,7 @@ function L({ app: e, serviceName: t, currentUser: n, officerProfiles: a, onOpen:
|
|
|
151
151
|
}),
|
|
152
152
|
/* @__PURE__ */ C("td", {
|
|
153
153
|
className: "px-4 py-3 text-right",
|
|
154
|
-
children: /* @__PURE__ */ C(
|
|
154
|
+
children: /* @__PURE__ */ C(g, { className: "ml-auto size-4 shrink-0 text-text-muted transition-transform group-hover:translate-x-0.5" })
|
|
155
155
|
})
|
|
156
156
|
]
|
|
157
157
|
});
|
|
@@ -184,7 +184,7 @@ function R({ app: e, serviceName: t, currentUser: n, officerProfiles: a, onOpen:
|
|
|
184
184
|
className: "flex flex-wrap items-center gap-2",
|
|
185
185
|
children: [
|
|
186
186
|
/* @__PURE__ */ C(i, { status: e.priority }),
|
|
187
|
-
/* @__PURE__ */ C(
|
|
187
|
+
/* @__PURE__ */ C(u, {
|
|
188
188
|
dueDate: e.dueDate,
|
|
189
189
|
status: e.status
|
|
190
190
|
}),
|
|
@@ -199,14 +199,14 @@ function R({ app: e, serviceName: t, currentUser: n, officerProfiles: a, onOpen:
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
function z() {
|
|
202
|
-
let { navigateTo: r, currentUser: i, apiGatewayUrl:
|
|
202
|
+
let { navigateTo: r, currentUser: i, apiGatewayUrl: u, authToken: d, workspaceId: g } = e(), j = te(), [M, N] = h("ALL"), [P, I] = h(""), [z, B] = h(!1), { data: V, isLoading: H, isError: U, refetch: W } = s({
|
|
203
203
|
status: M === "ALL" ? void 0 : M,
|
|
204
204
|
assignedToId: z ? i?.id : void 0,
|
|
205
205
|
pagination: {
|
|
206
206
|
limit: A,
|
|
207
207
|
cursor: j.cursor
|
|
208
208
|
}
|
|
209
|
-
}), G =
|
|
209
|
+
}), G = ee({ pagination: { limit: 100 } }), K = c(), q = o(), J = m(() => V?.items ?? [], [V]), Y = k(m(() => {
|
|
210
210
|
let e = /* @__PURE__ */ new Set();
|
|
211
211
|
for (let t of J) t.assignedToId && t.assignedToId !== i?.id && e.add(t.assignedToId);
|
|
212
212
|
return [...e].map((e) => ({
|
|
@@ -214,19 +214,19 @@ function z() {
|
|
|
214
214
|
actorType: "user"
|
|
215
215
|
}));
|
|
216
216
|
}, [J, i?.id]), {
|
|
217
|
-
apiGatewayUrl:
|
|
218
|
-
authToken:
|
|
219
|
-
workspaceId:
|
|
220
|
-
}), X =
|
|
217
|
+
apiGatewayUrl: u,
|
|
218
|
+
authToken: d,
|
|
219
|
+
workspaceId: g
|
|
220
|
+
}), X = m(() => {
|
|
221
221
|
let e = /* @__PURE__ */ new Map();
|
|
222
222
|
return G.data?.items.forEach((t) => e.set(t.id, t.name)), e;
|
|
223
|
-
}, [G.data]), Z =
|
|
223
|
+
}, [G.data]), Z = m(() => {
|
|
224
224
|
let e = /* @__PURE__ */ new Map();
|
|
225
225
|
return K.data?.applicationsByStatus.forEach((t) => e.set(t.status, t.count)), e;
|
|
226
226
|
}, [K.data]), ae = ie.map((e) => ({
|
|
227
227
|
...e,
|
|
228
228
|
count: e.value === "ALL" ? K.data?.applicationsTotal : Z.get(e.value)
|
|
229
|
-
})), Q =
|
|
229
|
+
})), Q = m(() => {
|
|
230
230
|
let e = 0, t = 0, n = 0;
|
|
231
231
|
for (let r of J) {
|
|
232
232
|
let i = F(r);
|
|
@@ -241,13 +241,13 @@ function z() {
|
|
|
241
241
|
{
|
|
242
242
|
label: "On track",
|
|
243
243
|
value: Q.ontrack,
|
|
244
|
-
icon: /* @__PURE__ */ C(
|
|
244
|
+
icon: /* @__PURE__ */ C(_, {}),
|
|
245
245
|
tone: "success"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
label: "Due soon",
|
|
249
249
|
value: Q.duesoon,
|
|
250
|
-
icon: /* @__PURE__ */ C(
|
|
250
|
+
icon: /* @__PURE__ */ C(v, {}),
|
|
251
251
|
tone: "warning"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
@@ -260,13 +260,13 @@ function z() {
|
|
|
260
260
|
{
|
|
261
261
|
label: "On track",
|
|
262
262
|
value: q.data?.onTrack ?? 0,
|
|
263
|
-
icon: /* @__PURE__ */ C(
|
|
263
|
+
icon: /* @__PURE__ */ C(_, {}),
|
|
264
264
|
tone: "success"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
label: "Due soon",
|
|
268
268
|
value: q.data?.dueSoon ?? 0,
|
|
269
|
-
icon: /* @__PURE__ */ C(
|
|
269
|
+
icon: /* @__PURE__ */ C(v, {}),
|
|
270
270
|
tone: "warning"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -275,7 +275,7 @@ function z() {
|
|
|
275
275
|
icon: /* @__PURE__ */ C(b, {}),
|
|
276
276
|
tone: "error"
|
|
277
277
|
}
|
|
278
|
-
], $ =
|
|
278
|
+
], $ = m(() => {
|
|
279
279
|
let e = P.trim().toLowerCase();
|
|
280
280
|
return e ? J.filter((t) => {
|
|
281
281
|
let n = X.get(t.serviceId) ?? "";
|
|
@@ -292,14 +292,14 @@ function z() {
|
|
|
292
292
|
description: "Citizen applications moving through review, decision, and fulfilment.",
|
|
293
293
|
actions: /* @__PURE__ */ w(T, {
|
|
294
294
|
onClick: () => r("applications/new"),
|
|
295
|
-
children: [/* @__PURE__ */ C(
|
|
295
|
+
children: [/* @__PURE__ */ C(y, { className: "mr-1.5 h-4 w-4" }), " New application"]
|
|
296
296
|
}),
|
|
297
297
|
children: [
|
|
298
298
|
/* @__PURE__ */ w("div", {
|
|
299
299
|
className: "mb-5 flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
|
|
300
300
|
children: [/* @__PURE__ */ w("div", {
|
|
301
301
|
className: "flex flex-wrap items-center gap-2",
|
|
302
|
-
children: [/* @__PURE__ */ C(
|
|
302
|
+
children: [/* @__PURE__ */ C(ne, {
|
|
303
303
|
options: ae,
|
|
304
304
|
value: M,
|
|
305
305
|
onChange: (e) => {
|
|
@@ -321,7 +321,7 @@ function z() {
|
|
|
321
321
|
})]
|
|
322
322
|
}), /* @__PURE__ */ w("div", {
|
|
323
323
|
className: "relative lg:w-80",
|
|
324
|
-
children: [/* @__PURE__ */ C(
|
|
324
|
+
children: [/* @__PURE__ */ C(re, {
|
|
325
325
|
className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-muted",
|
|
326
326
|
"aria-hidden": "true"
|
|
327
327
|
}), /* @__PURE__ */ C(D, {
|
|
@@ -344,12 +344,12 @@ function z() {
|
|
|
344
344
|
className: "text-xs text-text-muted",
|
|
345
345
|
children: "Corpus-wide, backend-computed"
|
|
346
346
|
})]
|
|
347
|
-
}), q.isLoading ? /* @__PURE__ */ C(O, { className: "h-16 w-full rounded-card" }) : /* @__PURE__ */ C(
|
|
347
|
+
}), q.isLoading ? /* @__PURE__ */ C(O, { className: "h-16 w-full rounded-card" }) : /* @__PURE__ */ C(p, { stats: se })]
|
|
348
348
|
}),
|
|
349
349
|
H ? /* @__PURE__ */ C("div", {
|
|
350
350
|
className: "space-y-3",
|
|
351
351
|
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ C(O, { className: "h-16 w-full rounded-card" }, t))
|
|
352
|
-
}) : U ? /* @__PURE__ */ C(
|
|
352
|
+
}) : U ? /* @__PURE__ */ C(l, {
|
|
353
353
|
message: "We couldn't load applications.",
|
|
354
354
|
onRetry: () => W()
|
|
355
355
|
}) : J.length === 0 && j.page === 0 ? /* @__PURE__ */ C(a, {
|
|
@@ -358,7 +358,7 @@ function z() {
|
|
|
358
358
|
description: z ? "Nothing is currently assigned to you for this status." : M === "ALL" ? "File the first application from a published service." : "No applications match this status.",
|
|
359
359
|
action: /* @__PURE__ */ w(T, {
|
|
360
360
|
onClick: () => r("applications/new"),
|
|
361
|
-
children: [/* @__PURE__ */ C(
|
|
361
|
+
children: [/* @__PURE__ */ C(y, { className: "mr-1.5 h-4 w-4" }), " New application"]
|
|
362
362
|
})
|
|
363
363
|
}) : /* @__PURE__ */ w(S, { children: [
|
|
364
364
|
/* @__PURE__ */ w("div", {
|
|
@@ -376,7 +376,7 @@ function z() {
|
|
|
376
376
|
" shown"
|
|
377
377
|
]
|
|
378
378
|
})]
|
|
379
|
-
}), /* @__PURE__ */ C(
|
|
379
|
+
}), /* @__PURE__ */ C(p, { stats: oe })]
|
|
380
380
|
}),
|
|
381
381
|
/* @__PURE__ */ C(E, {
|
|
382
382
|
treatment: "plain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationsPage.js","names":[],"sources":["../../../../src/govcitizenhub/pages/applications/ApplicationsPage.tsx"],"sourcesContent":["/**\n * ApplicationsPage — the casework queue (citizen filings + officer review).\n * @module govcitizenhub/pages/applications\n *\n * Reads `govListApplications` filtered by status with cursor pagination, and joins\n * `govListServices` for the service name column and `govDashboardSummary` for the\n * authoritative per-status tab counts. Each row surfaces reference + filed date,\n * service, a priority chip, an SLA badge computed from dueDate + status, the\n * assigned officer (real identity only — self shows you, others show a neutral id\n * chip, unassigned is explicit), and the status pill. A SummaryStrip above the\n * list reports On-track / Due-soon / Overdue for the CURRENT page (honest window).\n * Rows link to the casework workspace where the full lifecycle is managed.\n */\n\nimport { useMemo, useState } from 'react';\nimport {\n Plus,\n ChevronRight,\n Search,\n CircleCheck,\n Clock,\n TriangleAlert,\n UserCheck,\n} from 'lucide-react';\nimport { Button, GlassCard, Skeleton, Input } from '@burdenoff/fe-libs/ui';\nimport { useActorProfiles, type ActorInput, type ActorProfileMap } from '@burdenoff/fe-libs/shared';\n\nimport { PageLayout } from '../../components/PageLayout';\nimport { FilterTabs, type FilterOption } from '../../components/FilterTabs';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { SlaBadge } from '../../components/SlaBadge';\nimport { AssigneeChip } from '../../components/Avatar';\nimport { SummaryStrip, type SummaryStat } from '../../components/SummaryStrip';\nimport { EmptyState } from '../../components/EmptyState';\nimport { ErrorView } from '../../components/StateViews';\nimport { Pagination } from '../../components/Pagination';\nimport { cn } from '../../utils/cn';\nimport {\n useGovApplications,\n useGovServices,\n useGovDashboardSummary,\n useGovApplicationSlaSummary,\n useCursorPager,\n} from '../../hooks';\nimport { useGovCitizenHub } from '../../context';\nimport { formatDate } from '../../utils/formatters';\nimport type { GovApplication, GovApplicationStatus, CurrentUser } from '../../types';\n\nconst PAGE_SIZE = 15;\n\n/** Best available display name for the signed-in officer (never fabricated for others). */\nfunction userDisplayName(user?: CurrentUser | null): string | undefined {\n if (!user) return undefined;\n const full = [user.firstName, user.lastName].filter(Boolean).join(' ').trim();\n return user.name?.trim() || full || user.username?.trim() || user.email;\n}\n\n/** First 8 chars of an opaque actor id — an honest reference, not a name. */\nconst shortId = (id: string): string => id.slice(0, 8);\n\ntype StatusFilter = 'ALL' | GovApplicationStatus;\n\nconst STATUS_OPTIONS: { value: StatusFilter; label: string }[] = [\n { value: 'ALL', label: 'All' },\n { value: 'SUBMITTED', label: 'Submitted' },\n { value: 'IN_REVIEW', label: 'In review' },\n { value: 'INFO_REQUESTED', label: 'Info requested' },\n { value: 'APPROVED', label: 'Approved' },\n { value: 'REJECTED', label: 'Rejected' },\n { value: 'DRAFT', label: 'Draft' },\n];\n\n/** Statuses whose SLA clock has stopped — excluded from the page SLA summary. */\nconst TERMINAL = new Set<GovApplicationStatus>(['APPROVED', 'REJECTED', 'WITHDRAWN']);\n\n/** Whole calendar days until `due` (>0 future, 0 today, <0 overdue). */\nfunction daysUntilDue(due: Date): number {\n const startOfDay = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n return Math.round((startOfDay(due) - startOfDay(new Date())) / 86_400_000);\n}\n\ntype SlaBucket = 'ontrack' | 'duesoon' | 'overdue' | 'none';\n\nfunction slaBucketOf(app: GovApplication): SlaBucket {\n if (TERMINAL.has(app.status) || !app.dueDate) return 'none';\n const due = new Date(app.dueDate);\n if (Number.isNaN(due.getTime())) return 'none';\n const days = daysUntilDue(due);\n if (days < 0) return 'overdue';\n if (days <= 2) return 'duesoon';\n return 'ontrack';\n}\n\n// ---------------------------------------------------------------------------\n// Assigned-officer cell — real identity only, never a fabricated name.\n//\n// Other officers' names/avatars are resolved via the platform's shared\n// `useActorProfiles` (fe-libs), which the User federation type intentionally\n// doesn't expose firstName/lastName for directly (BOFF-4058) — the id chip\n// this replaced is a graceful, honest fallback while resolution is pending\n// or fails, never a fabricated name.\n// ---------------------------------------------------------------------------\n\nfunction AssignedCell({\n assignedToId,\n currentUser,\n officerProfiles,\n}: {\n assignedToId?: string | null;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n}) {\n if (!assignedToId) {\n return (\n <span className=\"inline-flex items-center gap-2 text-sm text-text-muted\">\n <span\n aria-hidden=\"true\"\n className=\"inline-flex size-8 items-center justify-center rounded-full border border-dashed border-border-seam text-text-muted\"\n >\n <Plus className=\"size-3.5\" />\n </span>\n Unassigned\n </span>\n );\n }\n if (currentUser?.id && assignedToId === currentUser.id) {\n return (\n <AssigneeChip\n name={userDisplayName(currentUser) ?? 'You'}\n src={currentUser.avatar}\n subtitle=\"You\"\n />\n );\n }\n const profile = officerProfiles[assignedToId];\n return (\n <AssigneeChip\n name={profile?.resolved ? profile.displayName : `Officer #${shortId(assignedToId)}`}\n src={profile?.avatarUrl}\n subtitle={(profile?.resolved && profile.email) || 'Assigned officer'}\n />\n );\n}\n\n// ---------------------------------------------------------------------------\n// Queue rows — desktop <table> + mobile stacked cards.\n//\n// We use a NATIVE <table> (display:table) gated by `hidden md:block`, NOT a\n// Tailwind grid. Build-time MFE composition means only the utility classes the\n// host shell itself emits are available to this MFE, and `md:grid` / `md:table`\n// are not among them (verified: they fall back to `display:block`), whereas\n// `md:block` / `md:hidden` / `md:flex` are. A grid-based responsive row would\n// therefore silently collapse to the mobile layout at desktop width.\n// ---------------------------------------------------------------------------\n\nfunction QueueTableRow({\n app,\n serviceName,\n currentUser,\n officerProfiles,\n onOpen,\n}: {\n app: GovApplication;\n serviceName?: string;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n onOpen: () => void;\n}) {\n return (\n <tr\n role=\"button\"\n tabIndex={0}\n aria-label={`Open application ${app.reference}`}\n onClick={onOpen}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpen();\n }\n }}\n className=\"group cursor-pointer align-middle outline-none transition-colors hover:bg-bg-sunken focus-visible:bg-bg-sunken\"\n >\n <td className=\"px-4 py-3\">\n <span className=\"block truncate font-medium text-action-primary-text\">{app.reference}</span>\n <span className=\"text-xs text-text-muted\">Filed {formatDate(app.createdAt)}</span>\n </td>\n <td className=\"px-4 py-3 text-sm text-text-secondary\">\n <span className=\"line-clamp-1\">{serviceName ?? '—'}</span>\n </td>\n <td className=\"px-4 py-3\">\n <StatusBadge status={app.priority} />\n </td>\n <td className=\"px-4 py-3\">\n <AssignedCell\n assignedToId={app.assignedToId}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n />\n </td>\n <td className=\"px-4 py-3\">\n <div className=\"flex flex-col gap-0.5\">\n <SlaBadge dueDate={app.dueDate} status={app.status} />\n {app.dueDate && (\n <span className=\"text-xs text-text-muted\">Due {formatDate(app.dueDate)}</span>\n )}\n </div>\n </td>\n <td className=\"px-4 py-3\">\n <StatusBadge status={app.status} />\n </td>\n <td className=\"px-4 py-3 text-right\">\n <ChevronRight className=\"ml-auto size-4 shrink-0 text-text-muted transition-transform group-hover:translate-x-0.5\" />\n </td>\n </tr>\n );\n}\n\nfunction QueueCard({\n app,\n serviceName,\n currentUser,\n officerProfiles,\n onOpen,\n}: {\n app: GovApplication;\n serviceName?: string;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n onOpen: () => void;\n}) {\n return (\n <button\n type=\"button\"\n onClick={onOpen}\n aria-label={`Open application ${app.reference}`}\n className=\"flex w-full flex-col gap-2 px-4 py-4 text-left outline-none transition-colors hover:bg-bg-sunken focus-visible:bg-bg-sunken\"\n >\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"min-w-0\">\n <span className=\"block truncate font-medium text-action-primary-text\">\n {app.reference}\n </span>\n <span className=\"text-xs text-text-muted\">Filed {formatDate(app.createdAt)}</span>\n </span>\n <StatusBadge status={app.status} />\n </div>\n <div className=\"text-sm text-text-secondary\">{serviceName ?? '—'}</div>\n <div className=\"flex flex-wrap items-center gap-2\">\n <StatusBadge status={app.priority} />\n <SlaBadge dueDate={app.dueDate} status={app.status} />\n <AssignedCell\n assignedToId={app.assignedToId}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n />\n </div>\n </button>\n );\n}\n\nexport function ApplicationsPage() {\n const { navigateTo, currentUser, apiGatewayUrl, authToken, workspaceId } = useGovCitizenHub();\n const pager = useCursorPager();\n const [status, setStatus] = useState<StatusFilter>('ALL');\n const [search, setSearch] = useState('');\n const [mineOnly, setMineOnly] = useState(false);\n\n const { data, isLoading, isError, refetch } = useGovApplications({\n status: status === 'ALL' ? undefined : status,\n assignedToId: mineOnly ? currentUser?.id : undefined,\n pagination: { limit: PAGE_SIZE, cursor: pager.cursor },\n });\n const servicesQuery = useGovServices({ pagination: { limit: 100 } });\n const summary = useGovDashboardSummary();\n // Corpus-wide SLA breakdown — accurate regardless of pagination/filters, unlike\n // the page-level strip below which can only see whatever page is loaded.\n const corpusSla = useGovApplicationSlaSummary();\n\n const applications = useMemo(() => data?.items ?? [], [data]);\n\n // Distinct OTHER officers assigned on this page — resolved once, batched, and\n // cached by the shared hook (BOFF-4058) rather than per-row.\n const otherOfficerActors = useMemo<ActorInput[]>(() => {\n const ids = new Set<string>();\n for (const app of applications) {\n if (app.assignedToId && app.assignedToId !== currentUser?.id) ids.add(app.assignedToId);\n }\n return [...ids].map((actorId) => ({ actorId, actorType: 'user' }));\n }, [applications, currentUser?.id]);\n const officerProfiles = useActorProfiles(otherOfficerActors, {\n apiGatewayUrl,\n authToken,\n workspaceId,\n });\n\n const serviceName = useMemo(() => {\n const map = new Map<string, string>();\n servicesQuery.data?.items.forEach((svc) => map.set(svc.id, svc.name));\n return map;\n }, [servicesQuery.data]);\n\n // Authoritative per-status tab counts from the backend-computed dashboard.\n const statusCount = useMemo(() => {\n const map = new Map<GovApplicationStatus, number>();\n summary.data?.applicationsByStatus.forEach((entry) => map.set(entry.status, entry.count));\n return map;\n }, [summary.data]);\n\n const tabs: FilterOption<StatusFilter>[] = STATUS_OPTIONS.map((opt) => ({\n ...opt,\n count:\n opt.value === 'ALL'\n ? summary.data?.applicationsTotal\n : statusCount.get(opt.value as GovApplicationStatus),\n }));\n\n // SLA summary over the CURRENT page (honest window — not the whole corpus).\n const sla = useMemo(() => {\n let ontrack = 0;\n let duesoon = 0;\n let overdue = 0;\n for (const app of applications) {\n const bucket = slaBucketOf(app);\n if (bucket === 'ontrack') ontrack += 1;\n else if (bucket === 'duesoon') duesoon += 1;\n else if (bucket === 'overdue') overdue += 1;\n }\n return { ontrack, duesoon, overdue };\n }, [applications]);\n\n const slaStats: SummaryStat[] = [\n { label: 'On track', value: sla.ontrack, icon: <CircleCheck />, tone: 'success' },\n { label: 'Due soon', value: sla.duesoon, icon: <Clock />, tone: 'warning' },\n { label: 'Overdue', value: sla.overdue, icon: <TriangleAlert />, tone: 'error' },\n ];\n\n // Corpus-wide SLA summary — every non-terminal application, not just this page.\n const corpusSlaStats: SummaryStat[] = [\n {\n label: 'On track',\n value: corpusSla.data?.onTrack ?? 0,\n icon: <CircleCheck />,\n tone: 'success',\n },\n {\n label: 'Due soon',\n value: corpusSla.data?.dueSoon ?? 0,\n icon: <Clock />,\n tone: 'warning',\n },\n {\n label: 'Overdue',\n value: corpusSla.data?.overdue ?? 0,\n icon: <TriangleAlert />,\n tone: 'error',\n },\n ];\n\n const visible = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) return applications;\n return applications.filter((app) => {\n const svc = serviceName.get(app.serviceId) ?? '';\n return (\n app.reference.toLowerCase().includes(term) ||\n svc.toLowerCase().includes(term) ||\n app.status.toLowerCase().includes(term)\n );\n });\n }, [applications, search, serviceName]);\n\n const changeStatus = (next: StatusFilter) => {\n setStatus(next);\n setSearch('');\n pager.reset();\n };\n\n const toggleMineOnly = () => {\n setMineOnly((prev) => !prev);\n pager.reset();\n };\n\n return (\n <PageLayout\n title=\"Applications\"\n titleGradient\n description=\"Citizen applications moving through review, decision, and fulfilment.\"\n actions={\n <Button onClick={() => navigateTo('applications/new')}>\n <Plus className=\"mr-1.5 h-4 w-4\" /> New application\n </Button>\n }\n >\n {/* Toolbar: status tabs + My queue toggle + search */}\n <div className=\"mb-5 flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <FilterTabs options={tabs} value={status} onChange={changeStatus} />\n <button\n type=\"button\"\n disabled={!currentUser?.id}\n aria-pressed={mineOnly}\n onClick={toggleMineOnly}\n title={currentUser?.id ? undefined : 'Sign in to filter your queue'}\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-xl border px-3 py-1.5 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50',\n mineOnly\n ? 'border-transparent bg-action-primary-bg text-action-primary-text'\n : 'border-border-seam bg-bg-surface text-text-secondary hover:bg-bg-sunken hover:text-text-primary'\n )}\n >\n <UserCheck className=\"size-3.5\" aria-hidden=\"true\" />\n My queue\n </button>\n </div>\n <div className=\"relative lg:w-80\">\n <Search\n className=\"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-muted\"\n aria-hidden=\"true\"\n />\n <Input\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n placeholder=\"Search by reference or service…\"\n aria-label=\"Search applications on this page\"\n className=\"pl-9\"\n />\n </div>\n </div>\n\n {/* Corpus-wide SLA summary — every non-terminal application, not just this page. */}\n <div className=\"mb-5\">\n <div className=\"mb-2 flex items-center gap-2\">\n <h2 className=\"text-sm font-semibold text-text-primary\">SLA across all applications</h2>\n <span className=\"text-xs text-text-muted\">Corpus-wide, backend-computed</span>\n </div>\n {corpusSla.isLoading ? (\n <Skeleton className=\"h-16 w-full rounded-card\" />\n ) : (\n <SummaryStrip stats={corpusSlaStats} />\n )}\n </div>\n\n {isLoading ? (\n <div className=\"space-y-3\">\n {Array.from({ length: 6 }, (_, i) => (\n <Skeleton key={i} className=\"h-16 w-full rounded-card\" />\n ))}\n </div>\n ) : isError ? (\n <ErrorView message=\"We couldn't load applications.\" onRetry={() => refetch()} />\n ) : applications.length === 0 && pager.page === 0 ? (\n <EmptyState\n illustration=\"empty-data\"\n title=\"No applications found\"\n description={\n mineOnly\n ? 'Nothing is currently assigned to you for this status.'\n : status === 'ALL'\n ? 'File the first application from a published service.'\n : 'No applications match this status.'\n }\n action={\n <Button onClick={() => navigateTo('applications/new')}>\n <Plus className=\"mr-1.5 h-4 w-4\" /> New application\n </Button>\n }\n />\n ) : (\n <>\n {/* SLA summary for the current page */}\n <div className=\"mb-4\">\n <div className=\"mb-2 flex items-center gap-2\">\n <h2 className=\"text-sm font-semibold text-text-primary\">SLA on this page</h2>\n <span className=\"text-xs text-text-muted\">\n Based on due date · {applications.length} shown\n </span>\n </div>\n <SummaryStrip stats={slaStats} />\n </div>\n\n {/* Queue list */}\n <GlassCard treatment=\"plain\" className=\"overflow-hidden border-border-seam p-0\">\n {visible.length === 0 ? (\n <p className=\"px-5 py-10 text-center text-sm text-text-secondary\">\n No applications on this page match “{search}”.\n </p>\n ) : (\n <>\n {/* Desktop table */}\n <div className=\"hidden overflow-x-auto md:block\">\n <table className=\"w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs font-medium uppercase tracking-wide text-text-muted\">\n <th className=\"px-4 py-2.5 font-medium\">Reference</th>\n <th className=\"px-4 py-2.5 font-medium\">Service</th>\n <th className=\"px-4 py-2.5 font-medium\">Priority</th>\n <th className=\"px-4 py-2.5 font-medium\">Assigned officer</th>\n <th className=\"px-4 py-2.5 font-medium\">Due date (SLA)</th>\n <th className=\"px-4 py-2.5 font-medium\">Status</th>\n <th className=\"px-4 py-2.5\" aria-hidden=\"true\" />\n </tr>\n </thead>\n <tbody className=\"divide-y divide-border-subtle\">\n {visible.map((app) => (\n <QueueTableRow\n key={app.id}\n app={app}\n serviceName={serviceName.get(app.serviceId)}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n onOpen={() => navigateTo(`applications/${app.id}`)}\n />\n ))}\n </tbody>\n </table>\n </div>\n\n {/* Mobile stacked cards */}\n <ul className=\"divide-y divide-border-subtle md:hidden\">\n {visible.map((app) => (\n <li key={app.id}>\n <QueueCard\n app={app}\n serviceName={serviceName.get(app.serviceId)}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n onOpen={() => navigateTo(`applications/${app.id}`)}\n />\n </li>\n ))}\n </ul>\n </>\n )}\n </GlassCard>\n\n <Pagination\n page={pager.page}\n pageSize={PAGE_SIZE}\n itemCount={applications.length}\n hasMore={data?.pageInfo.hasMore ?? false}\n onPageChange={(target) => pager.onPageChange(target, data?.pageInfo.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;SAC5D,kBAAC,MAAD;UAAI,WAAU;oBAA0B;SAAkB,CAAA;SAC1D,kBAAC,MAAD;UAAI,WAAU;oBAA0B;SAAU,CAAA;SAClD,kBAAC,MAAD;UAAI,WAAU;UAAc,eAAY;SAAQ,CAAA;QAC9C;UACC,CAAA,GACP,kBAAC,SAAD;QAAO,WAAU;kBACd,EAAQ,KAAK,MACZ,kBAAC,GAAD;SAEO;SACL,aAAa,EAAY,IAAI,EAAI,SAAS;SAC7B;SACI;SACjB,cAAc,EAAW,gBAAgB,EAAI,IAAI;QAClD,GANM,EAAI,EAMV,CACF;OACI,CAAA,CACF;;KACJ,CAAA,GAGL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,KAAK,MACZ,kBAAC,MAAD,EAAA,UACE,kBAAC,GAAD;OACO;OACL,aAAa,EAAY,IAAI,EAAI,SAAS;OAC7B;OACI;OACjB,cAAc,EAAW,gBAAgB,EAAI,IAAI;MAClD,CAAA,EACC,GARK,EAAI,EAQT,CACL;KACC,CAAA,CACJ,EAAA,CAAA;IAEK,CAAA;IAEX,kBAAC,GAAD;KACE,MAAM,EAAM;KACZ,UAAU;KACV,WAAW,EAAa;KACxB,SAAS,GAAM,SAAS,WAAW;KACnC,eAAe,MAAW,EAAM,aAAa,GAAQ,GAAM,SAAS,MAAM;IAC3E,CAAA;GACD,EAAA,CAAA;EAEM;;AAEhB"}
|
|
1
|
+
{"version":3,"file":"ApplicationsPage.js","names":[],"sources":["../../../../src/govcitizenhub/pages/applications/ApplicationsPage.tsx"],"sourcesContent":["/**\n * ApplicationsPage — the casework queue (citizen filings + officer review).\n * @module govcitizenhub/pages/applications\n *\n * Reads `govListApplications` filtered by status with cursor pagination, and joins\n * `govListServices` for the service name column and `govDashboardSummary` for the\n * authoritative per-status tab counts. Each row surfaces reference + filed date,\n * service, a priority chip, an SLA badge computed from dueDate + status, the\n * assigned officer (real identity only — self shows you, others show a neutral id\n * chip, unassigned is explicit), and the status pill. A SummaryStrip above the\n * list reports On-track / Due-soon / Overdue for the CURRENT page (honest window).\n * Rows link to the casework workspace where the full lifecycle is managed.\n */\n\nimport { useMemo, useState } from 'react';\nimport {\n Plus,\n ChevronRight,\n Search,\n CircleCheck,\n Clock,\n TriangleAlert,\n UserCheck,\n} from 'lucide-react';\nimport { Button, GlassCard, Skeleton, Input } from '@burdenoff/fe-libs/ui';\nimport { useActorProfiles, type ActorInput, type ActorProfileMap } from '@burdenoff/fe-libs/shared';\n\nimport { PageLayout } from '../../components/PageLayout';\nimport { FilterTabs, type FilterOption } from '../../components/FilterTabs';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { SlaBadge } from '../../components/SlaBadge';\nimport { AssigneeChip } from '../../components/Avatar';\nimport { SummaryStrip, type SummaryStat } from '../../components/SummaryStrip';\nimport { EmptyState } from '../../components/EmptyState';\nimport { ErrorView } from '../../components/StateViews';\nimport { Pagination } from '../../components/Pagination';\nimport { cn } from '../../utils/cn';\nimport {\n useGovApplications,\n useGovServices,\n useGovDashboardSummary,\n useGovApplicationSlaSummary,\n useCursorPager,\n} from '../../hooks';\nimport { useGovCitizenHub } from '../../context';\nimport { formatDate } from '../../utils/formatters';\nimport type { GovApplication, GovApplicationStatus, CurrentUser } from '../../types';\n\nconst PAGE_SIZE = 15;\n\n/** Best available display name for the signed-in officer (never fabricated for others). */\nfunction userDisplayName(user?: CurrentUser | null): string | undefined {\n if (!user) return undefined;\n const full = [user.firstName, user.lastName].filter(Boolean).join(' ').trim();\n return user.name?.trim() || full || user.username?.trim() || user.email;\n}\n\n/** First 8 chars of an opaque actor id — an honest reference, not a name. */\nconst shortId = (id: string): string => id.slice(0, 8);\n\ntype StatusFilter = 'ALL' | GovApplicationStatus;\n\nconst STATUS_OPTIONS: { value: StatusFilter; label: string }[] = [\n { value: 'ALL', label: 'All' },\n { value: 'SUBMITTED', label: 'Submitted' },\n { value: 'IN_REVIEW', label: 'In review' },\n { value: 'INFO_REQUESTED', label: 'Info requested' },\n { value: 'APPROVED', label: 'Approved' },\n { value: 'REJECTED', label: 'Rejected' },\n { value: 'DRAFT', label: 'Draft' },\n];\n\n/** Statuses whose SLA clock has stopped — excluded from the page SLA summary. */\nconst TERMINAL = new Set<GovApplicationStatus>(['APPROVED', 'REJECTED', 'WITHDRAWN']);\n\n/** Whole calendar days until `due` (>0 future, 0 today, <0 overdue). */\nfunction daysUntilDue(due: Date): number {\n const startOfDay = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n return Math.round((startOfDay(due) - startOfDay(new Date())) / 86_400_000);\n}\n\ntype SlaBucket = 'ontrack' | 'duesoon' | 'overdue' | 'none';\n\nfunction slaBucketOf(app: GovApplication): SlaBucket {\n if (TERMINAL.has(app.status) || !app.dueDate) return 'none';\n const due = new Date(app.dueDate);\n if (Number.isNaN(due.getTime())) return 'none';\n const days = daysUntilDue(due);\n if (days < 0) return 'overdue';\n if (days <= 2) return 'duesoon';\n return 'ontrack';\n}\n\n// ---------------------------------------------------------------------------\n// Assigned-officer cell — real identity only, never a fabricated name.\n//\n// Other officers' names/avatars are resolved via the platform's shared\n// `useActorProfiles` (fe-libs), which the User federation type intentionally\n// doesn't expose firstName/lastName for directly (BOFF-4058) — the id chip\n// this replaced is a graceful, honest fallback while resolution is pending\n// or fails, never a fabricated name.\n// ---------------------------------------------------------------------------\n\nfunction AssignedCell({\n assignedToId,\n currentUser,\n officerProfiles,\n}: {\n assignedToId?: string | null;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n}) {\n if (!assignedToId) {\n return (\n <span className=\"inline-flex items-center gap-2 text-sm text-text-muted\">\n <span\n aria-hidden=\"true\"\n className=\"inline-flex size-8 items-center justify-center rounded-full border border-dashed border-border-seam text-text-muted\"\n >\n <Plus className=\"size-3.5\" />\n </span>\n Unassigned\n </span>\n );\n }\n if (currentUser?.id && assignedToId === currentUser.id) {\n return (\n <AssigneeChip\n name={userDisplayName(currentUser) ?? 'You'}\n src={currentUser.avatar}\n subtitle=\"You\"\n />\n );\n }\n const profile = officerProfiles[assignedToId];\n return (\n <AssigneeChip\n name={profile?.resolved ? profile.displayName : `Officer #${shortId(assignedToId)}`}\n src={profile?.avatarUrl}\n subtitle={(profile?.resolved && profile.email) || 'Assigned officer'}\n />\n );\n}\n\n// ---------------------------------------------------------------------------\n// Queue rows — desktop <table> + mobile stacked cards.\n//\n// We use a NATIVE <table> (display:table) gated by `hidden md:block`, NOT a\n// Tailwind grid. Build-time MFE composition means only the utility classes the\n// host shell itself emits are available to this MFE, and `md:grid` / `md:table`\n// are not among them (verified: they fall back to `display:block`), whereas\n// `md:block` / `md:hidden` / `md:flex` are. A grid-based responsive row would\n// therefore silently collapse to the mobile layout at desktop width.\n// ---------------------------------------------------------------------------\n\nfunction QueueTableRow({\n app,\n serviceName,\n currentUser,\n officerProfiles,\n onOpen,\n}: {\n app: GovApplication;\n serviceName?: string;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n onOpen: () => void;\n}) {\n return (\n <tr\n role=\"button\"\n tabIndex={0}\n aria-label={`Open application ${app.reference}`}\n onClick={onOpen}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpen();\n }\n }}\n className=\"group cursor-pointer align-middle outline-none transition-colors hover:bg-bg-sunken focus-visible:bg-bg-sunken\"\n >\n <td className=\"px-4 py-3\">\n <span className=\"block truncate font-medium text-action-primary-text\">{app.reference}</span>\n <span className=\"text-xs text-text-muted\">Filed {formatDate(app.createdAt)}</span>\n </td>\n <td className=\"px-4 py-3 text-sm text-text-secondary\">\n <span className=\"line-clamp-1\">{serviceName ?? '—'}</span>\n </td>\n <td className=\"px-4 py-3\">\n <StatusBadge status={app.priority} />\n </td>\n <td className=\"px-4 py-3\">\n <AssignedCell\n assignedToId={app.assignedToId}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n />\n </td>\n <td className=\"px-4 py-3\">\n <div className=\"flex flex-col gap-0.5\">\n <SlaBadge dueDate={app.dueDate} status={app.status} />\n {app.dueDate && (\n <span className=\"text-xs text-text-muted\">Due {formatDate(app.dueDate)}</span>\n )}\n </div>\n </td>\n <td className=\"px-4 py-3\">\n <StatusBadge status={app.status} />\n </td>\n <td className=\"px-4 py-3 text-right\">\n <ChevronRight className=\"ml-auto size-4 shrink-0 text-text-muted transition-transform group-hover:translate-x-0.5\" />\n </td>\n </tr>\n );\n}\n\nfunction QueueCard({\n app,\n serviceName,\n currentUser,\n officerProfiles,\n onOpen,\n}: {\n app: GovApplication;\n serviceName?: string;\n currentUser?: CurrentUser | null;\n officerProfiles: ActorProfileMap;\n onOpen: () => void;\n}) {\n return (\n <button\n type=\"button\"\n onClick={onOpen}\n aria-label={`Open application ${app.reference}`}\n className=\"flex w-full flex-col gap-2 px-4 py-4 text-left outline-none transition-colors hover:bg-bg-sunken focus-visible:bg-bg-sunken\"\n >\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"min-w-0\">\n <span className=\"block truncate font-medium text-action-primary-text\">\n {app.reference}\n </span>\n <span className=\"text-xs text-text-muted\">Filed {formatDate(app.createdAt)}</span>\n </span>\n <StatusBadge status={app.status} />\n </div>\n <div className=\"text-sm text-text-secondary\">{serviceName ?? '—'}</div>\n <div className=\"flex flex-wrap items-center gap-2\">\n <StatusBadge status={app.priority} />\n <SlaBadge dueDate={app.dueDate} status={app.status} />\n <AssignedCell\n assignedToId={app.assignedToId}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n />\n </div>\n </button>\n );\n}\n\nexport function ApplicationsPage() {\n const { navigateTo, currentUser, apiGatewayUrl, authToken, workspaceId } = useGovCitizenHub();\n const pager = useCursorPager();\n const [status, setStatus] = useState<StatusFilter>('ALL');\n const [search, setSearch] = useState('');\n const [mineOnly, setMineOnly] = useState(false);\n\n const { data, isLoading, isError, refetch } = useGovApplications({\n status: status === 'ALL' ? undefined : status,\n assignedToId: mineOnly ? currentUser?.id : undefined,\n pagination: { limit: PAGE_SIZE, cursor: pager.cursor },\n });\n const servicesQuery = useGovServices({ pagination: { limit: 100 } });\n const summary = useGovDashboardSummary();\n // Corpus-wide SLA breakdown — accurate regardless of pagination/filters, unlike\n // the page-level strip below which can only see whatever page is loaded.\n const corpusSla = useGovApplicationSlaSummary();\n\n const applications = useMemo(() => data?.items ?? [], [data]);\n\n // Distinct OTHER officers assigned on this page — resolved once, batched, and\n // cached by the shared hook (BOFF-4058) rather than per-row.\n const otherOfficerActors = useMemo<ActorInput[]>(() => {\n const ids = new Set<string>();\n for (const app of applications) {\n if (app.assignedToId && app.assignedToId !== currentUser?.id) ids.add(app.assignedToId);\n }\n return [...ids].map((actorId) => ({ actorId, actorType: 'user' }));\n }, [applications, currentUser?.id]);\n const officerProfiles = useActorProfiles(otherOfficerActors, {\n apiGatewayUrl,\n authToken,\n workspaceId,\n });\n\n const serviceName = useMemo(() => {\n const map = new Map<string, string>();\n servicesQuery.data?.items.forEach((svc) => map.set(svc.id, svc.name));\n return map;\n }, [servicesQuery.data]);\n\n // Authoritative per-status tab counts from the backend-computed dashboard.\n const statusCount = useMemo(() => {\n const map = new Map<GovApplicationStatus, number>();\n summary.data?.applicationsByStatus.forEach((entry) => map.set(entry.status, entry.count));\n return map;\n }, [summary.data]);\n\n const tabs: FilterOption<StatusFilter>[] = STATUS_OPTIONS.map((opt) => ({\n ...opt,\n count:\n opt.value === 'ALL'\n ? summary.data?.applicationsTotal\n : statusCount.get(opt.value as GovApplicationStatus),\n }));\n\n // SLA summary over the CURRENT page (honest window — not the whole corpus).\n const sla = useMemo(() => {\n let ontrack = 0;\n let duesoon = 0;\n let overdue = 0;\n for (const app of applications) {\n const bucket = slaBucketOf(app);\n if (bucket === 'ontrack') ontrack += 1;\n else if (bucket === 'duesoon') duesoon += 1;\n else if (bucket === 'overdue') overdue += 1;\n }\n return { ontrack, duesoon, overdue };\n }, [applications]);\n\n const slaStats: SummaryStat[] = [\n { label: 'On track', value: sla.ontrack, icon: <CircleCheck />, tone: 'success' },\n { label: 'Due soon', value: sla.duesoon, icon: <Clock />, tone: 'warning' },\n { label: 'Overdue', value: sla.overdue, icon: <TriangleAlert />, tone: 'error' },\n ];\n\n // Corpus-wide SLA summary — every non-terminal application, not just this page.\n const corpusSlaStats: SummaryStat[] = [\n {\n label: 'On track',\n value: corpusSla.data?.onTrack ?? 0,\n icon: <CircleCheck />,\n tone: 'success',\n },\n {\n label: 'Due soon',\n value: corpusSla.data?.dueSoon ?? 0,\n icon: <Clock />,\n tone: 'warning',\n },\n {\n label: 'Overdue',\n value: corpusSla.data?.overdue ?? 0,\n icon: <TriangleAlert />,\n tone: 'error',\n },\n ];\n\n const visible = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) return applications;\n return applications.filter((app) => {\n const svc = serviceName.get(app.serviceId) ?? '';\n return (\n app.reference.toLowerCase().includes(term) ||\n svc.toLowerCase().includes(term) ||\n app.status.toLowerCase().includes(term)\n );\n });\n }, [applications, search, serviceName]);\n\n const changeStatus = (next: StatusFilter) => {\n setStatus(next);\n setSearch('');\n pager.reset();\n };\n\n const toggleMineOnly = () => {\n setMineOnly((prev) => !prev);\n pager.reset();\n };\n\n return (\n <PageLayout\n title=\"Applications\"\n titleGradient\n description=\"Citizen applications moving through review, decision, and fulfilment.\"\n actions={\n <Button onClick={() => navigateTo('applications/new')}>\n <Plus className=\"mr-1.5 h-4 w-4\" /> New application\n </Button>\n }\n >\n {/* Toolbar: status tabs + My queue toggle + search */}\n <div className=\"mb-5 flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <FilterTabs options={tabs} value={status} onChange={changeStatus} />\n <button\n type=\"button\"\n disabled={!currentUser?.id}\n aria-pressed={mineOnly}\n onClick={toggleMineOnly}\n title={currentUser?.id ? undefined : 'Sign in to filter your queue'}\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-xl border px-3 py-1.5 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50',\n mineOnly\n ? 'border-transparent bg-action-primary-bg text-action-primary-text'\n : 'border-border-seam bg-bg-surface text-text-secondary hover:bg-bg-sunken hover:text-text-primary'\n )}\n >\n <UserCheck className=\"size-3.5\" aria-hidden=\"true\" />\n My queue\n </button>\n </div>\n <div className=\"relative lg:w-80\">\n <Search\n className=\"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-muted\"\n aria-hidden=\"true\"\n />\n <Input\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n placeholder=\"Search by reference or service…\"\n aria-label=\"Search applications on this page\"\n className=\"pl-9\"\n />\n </div>\n </div>\n\n {/* Corpus-wide SLA summary — every non-terminal application, not just this page. */}\n <div className=\"mb-5\">\n <div className=\"mb-2 flex items-center gap-2\">\n <h2 className=\"text-sm font-semibold text-text-primary\">SLA across all applications</h2>\n <span className=\"text-xs text-text-muted\">Corpus-wide, backend-computed</span>\n </div>\n {corpusSla.isLoading ? (\n <Skeleton className=\"h-16 w-full rounded-card\" />\n ) : (\n <SummaryStrip stats={corpusSlaStats} />\n )}\n </div>\n\n {isLoading ? (\n <div className=\"space-y-3\">\n {Array.from({ length: 6 }, (_, i) => (\n <Skeleton key={i} className=\"h-16 w-full rounded-card\" />\n ))}\n </div>\n ) : isError ? (\n <ErrorView message=\"We couldn't load applications.\" onRetry={() => refetch()} />\n ) : applications.length === 0 && pager.page === 0 ? (\n <EmptyState\n illustration=\"empty-data\"\n title=\"No applications found\"\n description={\n mineOnly\n ? 'Nothing is currently assigned to you for this status.'\n : status === 'ALL'\n ? 'File the first application from a published service.'\n : 'No applications match this status.'\n }\n action={\n <Button onClick={() => navigateTo('applications/new')}>\n <Plus className=\"mr-1.5 h-4 w-4\" /> New application\n </Button>\n }\n />\n ) : (\n <>\n {/* SLA summary for the current page */}\n <div className=\"mb-4\">\n <div className=\"mb-2 flex items-center gap-2\">\n <h2 className=\"text-sm font-semibold text-text-primary\">SLA on this page</h2>\n <span className=\"text-xs text-text-muted\">\n Based on due date · {applications.length} shown\n </span>\n </div>\n <SummaryStrip stats={slaStats} />\n </div>\n\n {/* Queue list */}\n <GlassCard treatment=\"plain\" className=\"overflow-hidden border-border-seam p-0\">\n {visible.length === 0 ? (\n <p className=\"px-5 py-10 text-center text-sm text-text-secondary\">\n No applications on this page match “{search}”.\n </p>\n ) : (\n <>\n {/* Desktop table */}\n <div className=\"hidden overflow-x-auto md:block\">\n <table className=\"w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs font-medium uppercase tracking-wide text-text-muted\">\n <th className=\"px-4 py-2.5 font-medium\">Reference</th>\n <th className=\"px-4 py-2.5 font-medium\">Service</th>\n <th className=\"px-4 py-2.5 font-medium\">Priority</th>\n <th className=\"px-4 py-2.5 font-medium\">Assigned officer</th>\n <th className=\"px-4 py-2.5 font-medium\">Due date (SLA)</th>\n <th className=\"px-4 py-2.5 font-medium\">Status</th>\n <th className=\"px-4 py-2.5\" aria-hidden=\"true\" />\n </tr>\n </thead>\n <tbody className=\"divide-y divide-border-subtle\">\n {visible.map((app) => (\n <QueueTableRow\n key={app.id}\n app={app}\n serviceName={serviceName.get(app.serviceId)}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n onOpen={() => navigateTo(`applications/${app.id}`)}\n />\n ))}\n </tbody>\n </table>\n </div>\n\n {/* Mobile stacked cards */}\n <ul className=\"divide-y divide-border-subtle md:hidden\">\n {visible.map((app) => (\n <li key={app.id}>\n <QueueCard\n app={app}\n serviceName={serviceName.get(app.serviceId)}\n currentUser={currentUser}\n officerProfiles={officerProfiles}\n onOpen={() => navigateTo(`applications/${app.id}`)}\n />\n </li>\n ))}\n </ul>\n </>\n )}\n </GlassCard>\n\n <Pagination\n page={pager.page}\n pageSize={PAGE_SIZE}\n itemCount={applications.length}\n hasMore={data?.pageInfo.hasMore ?? false}\n onPageChange={(target) => pager.onPageChange(target, data?.pageInfo.cursor)}\n />\n </>\n )}\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgDA,IAAM,IAAY;AAGlB,SA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AAA;SAClD,kBAAC,MAAD;UAAI,WAAU;UAAc,eAAY;SAAQ,CAAA;QAC9C;UACC,CAAA,GACP,kBAAC,SAAD;QAAO,WAAU;kBACd,EAAQ,KAAK,MACZ,kBAAC,GAAD;SAEO;SACL,aAAa,EAAY,IAAI,EAAI,SAAS;SAC7B;SACI;SACjB,cAAc,EAAW,gBAAgB,EAAI,IAAI;QAClD,GANM,EAAI,EAMV,CACF;OACI,CAAA,CACF;;KACJ,CAAA,GAGL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,KAAK,MACZ,kBAAC,MAAD,EAAA,UACE,kBAAC,GAAD;OACO;OACL,aAAa,EAAY,IAAI,EAAI,SAAS;OAC7B;OACI;OACjB,cAAc,EAAW,gBAAgB,EAAI,IAAI;MAClD,CAAA,EACC,GARK,EAAI,EAQT,CACL;KACC,CAAA,CACJ,EAAA,CAAA;IAEK,CAAA;IAEX,kBAAC,GAAD;KACE,MAAM,EAAM;KACZ,UAAU;KACV,WAAW,EAAa;KACxB,SAAS,GAAM,SAAS,WAAW;KACnC,eAAe,MAAW,EAAM,aAAa,GAAQ,GAAM,SAAS,MAAM;IAC3E,CAAA;GACD,EAAA,CAAA;EAEM;;AAEhB"}
|
|
@@ -10,8 +10,8 @@ import { useGovCitizenHubAnalytics as ae } from "../../hooks/useGovCitizenHubAna
|
|
|
10
10
|
import "../../hooks/index.js";
|
|
11
11
|
import { ErrorView as o, LoadingView as s } from "../../components/StateViews.js";
|
|
12
12
|
import { describeError as c, notify as l } from "../../lib/toast.js";
|
|
13
|
-
import { StatusStepper as oe } from "../../components/StatusStepper.js";
|
|
14
13
|
import { KeyValueList as u } from "../../components/KeyValueList.js";
|
|
14
|
+
import { StatusStepper as oe } from "../../components/StatusStepper.js";
|
|
15
15
|
import { isFieldVisible as se, parseFormFields as d } from "../../utils/dynamicForm.js";
|
|
16
16
|
import { DynamicFormFields as f } from "../../components/DynamicFormFields.js";
|
|
17
17
|
import { useMemo as p, useState as m } from "react";
|
|
@@ -8,9 +8,9 @@ import { EmptyState as a } from "../../components/EmptyState.js";
|
|
|
8
8
|
import { useGovApplication as o, useGovApplications as s, useGovReviewDocument as c } from "../../hooks/useGovApi.js";
|
|
9
9
|
import "../../hooks/index.js";
|
|
10
10
|
import { ErrorView as l } from "../../components/StateViews.js";
|
|
11
|
-
import {
|
|
11
|
+
import { SectionCard as u } from "../../components/SectionCard.js";
|
|
12
12
|
import { describeError as d, notify as f } from "../../lib/toast.js";
|
|
13
|
-
import {
|
|
13
|
+
import { ConfirmDialog as p } from "../../components/ConfirmDialog.js";
|
|
14
14
|
import { DocumentUploadField as m } from "../../components/DocumentUploadField.js";
|
|
15
15
|
import { useEffect as h, useMemo as g, useState as _ } from "react";
|
|
16
16
|
import { Check as v, ExternalLink as y, File as b, FileText as x, Image as S, ShieldCheck as C, X as w } from "lucide-react";
|
|
@@ -170,7 +170,7 @@ function z() {
|
|
|
170
170
|
}) : /* @__PURE__ */ D("div", {
|
|
171
171
|
className: "space-y-6",
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */ E(
|
|
173
|
+
/* @__PURE__ */ E(u, {
|
|
174
174
|
title: "Upload a document",
|
|
175
175
|
flush: !0,
|
|
176
176
|
children: /* @__PURE__ */ D("div", {
|
|
@@ -185,7 +185,7 @@ function z() {
|
|
|
185
185
|
})]
|
|
186
186
|
})
|
|
187
187
|
}),
|
|
188
|
-
/* @__PURE__ */ E(
|
|
188
|
+
/* @__PURE__ */ E(u, {
|
|
189
189
|
title: `Attached documents · ${F.reference}`,
|
|
190
190
|
icon: /* @__PURE__ */ E(x, {}),
|
|
191
191
|
flush: !0,
|
|
@@ -330,7 +330,7 @@ function z() {
|
|
|
330
330
|
}), "All documents are securely stored under government data-protection policies."]
|
|
331
331
|
})
|
|
332
332
|
]
|
|
333
|
-
}), U && /* @__PURE__ */ E(
|
|
333
|
+
}), U && /* @__PURE__ */ E(p, {
|
|
334
334
|
open: !!U,
|
|
335
335
|
onOpenChange: (e) => e ? void 0 : W(null),
|
|
336
336
|
title: `Reject ${U.name}?`,
|
|
@@ -3,17 +3,17 @@ import "../../context/index.js";
|
|
|
3
3
|
import { PageLayout as t } from "../../components/PageLayout.js";
|
|
4
4
|
import { formatDateTime as n, formatEnumLabel as r } from "../../utils/formatters.js";
|
|
5
5
|
import { StatusBadge as i } from "../../components/StatusBadge.js";
|
|
6
|
-
import { useGovAgency as
|
|
7
|
-
import { useFileUrl as
|
|
6
|
+
import { useGovAgency as a, useGovGrievance as ee, useGovTransitionGrievance as te, useGovUpdateGrievance as o } from "../../hooks/useGovApi.js";
|
|
7
|
+
import { useFileUrl as s } from "../../hooks/useFiles.js";
|
|
8
8
|
import "../../hooks/index.js";
|
|
9
|
-
import { ErrorView as
|
|
10
|
-
import { AssigneeChip as
|
|
11
|
-
import {
|
|
12
|
-
import { describeError as
|
|
13
|
-
import {
|
|
9
|
+
import { ErrorView as ne, LoadingView as c } from "../../components/StateViews.js";
|
|
10
|
+
import { AssigneeChip as l } from "../../components/Avatar.js";
|
|
11
|
+
import { SectionCard as u } from "../../components/SectionCard.js";
|
|
12
|
+
import { describeError as d, notify as f } from "../../lib/toast.js";
|
|
13
|
+
import { ConfirmDialog as re } from "../../components/ConfirmDialog.js";
|
|
14
|
+
import { KeyValueList as ie } from "../../components/KeyValueList.js";
|
|
14
15
|
import { Timeline as ae, TimelineItem as oe } from "../../components/Timeline.js";
|
|
15
|
-
import {
|
|
16
|
-
import { KeyValueList as se } from "../../components/KeyValueList.js";
|
|
16
|
+
import { StatusStepper as se } from "../../components/StatusStepper.js";
|
|
17
17
|
import { CATEGORY_ICON as p } from "./GrievancesPage.js";
|
|
18
18
|
import { useMemo as ce, useState as m } from "react";
|
|
19
19
|
import { Archive as h, Ban as le, Building2 as ue, Camera as g, CheckCircle2 as _, ChevronDown as de, CircleHelp as fe, ClipboardList as v, Eye as y, FileText as pe, Flag as me, ImageIcon as he, MapPin as ge, PlayCircle as b, User as _e, UserPlus as x, XCircle as S } from "lucide-react";
|
|
@@ -98,7 +98,7 @@ function be(e) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function xe({ fileId: e }) {
|
|
101
|
-
let { data: t, isLoading: n } =
|
|
101
|
+
let { data: t, isLoading: n } = s(e);
|
|
102
102
|
return n ? /* @__PURE__ */ w(L, { className: "aspect-video w-full rounded-lg" }) : t ? /* @__PURE__ */ w("a", {
|
|
103
103
|
href: t,
|
|
104
104
|
target: "_blank",
|
|
@@ -117,14 +117,14 @@ function xe({ fileId: e }) {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
function B() {
|
|
120
|
-
let { id:
|
|
120
|
+
let { id: s } = C(), { navigateTo: h, currentUser: g } = e(), { data: y, isLoading: b, isError: L, refetch: B } = ee(s), V = te(), H = o(), { data: U } = a(y?.agencyId ?? void 0), [W, G] = m(null), [K, q] = m(""), J = ce(() => y ? be(y.status) : [], [y]);
|
|
121
121
|
if (b) return /* @__PURE__ */ w(t, {
|
|
122
122
|
title: "Grievance",
|
|
123
123
|
back: {
|
|
124
124
|
label: "Grievances",
|
|
125
125
|
onClick: () => h("grievances")
|
|
126
126
|
},
|
|
127
|
-
children: /* @__PURE__ */ w(
|
|
127
|
+
children: /* @__PURE__ */ w(c, { label: "Loading grievance…" })
|
|
128
128
|
});
|
|
129
129
|
if (L || !y) return /* @__PURE__ */ w(t, {
|
|
130
130
|
title: "Grievance",
|
|
@@ -132,7 +132,7 @@ function B() {
|
|
|
132
132
|
label: "Grievances",
|
|
133
133
|
onClick: () => h("grievances")
|
|
134
134
|
},
|
|
135
|
-
children: /* @__PURE__ */ w(
|
|
135
|
+
children: /* @__PURE__ */ w(ne, {
|
|
136
136
|
message: "We couldn't load this grievance.",
|
|
137
137
|
onRetry: () => B()
|
|
138
138
|
})
|
|
@@ -146,9 +146,9 @@ function B() {
|
|
|
146
146
|
id: y.id,
|
|
147
147
|
status: e.status,
|
|
148
148
|
resolution: t.trim() || null
|
|
149
|
-
}),
|
|
149
|
+
}), f.success("Grievance updated", `Status is now ${r(e.status)}.`);
|
|
150
150
|
} catch (e) {
|
|
151
|
-
|
|
151
|
+
f.error("Could not update the grievance", d(e));
|
|
152
152
|
}
|
|
153
153
|
}, Te = async () => {
|
|
154
154
|
if (!K.trim()) return;
|
|
@@ -159,18 +159,18 @@ function B() {
|
|
|
159
159
|
await H.mutateAsync({
|
|
160
160
|
id: y.id,
|
|
161
161
|
input: { assignedToId: g.id }
|
|
162
|
-
}),
|
|
162
|
+
}), f.success("Assigned to you");
|
|
163
163
|
} catch (e) {
|
|
164
|
-
|
|
164
|
+
f.error("Could not assign", d(e));
|
|
165
165
|
}
|
|
166
166
|
}, De = async (e) => {
|
|
167
167
|
try {
|
|
168
168
|
await H.mutateAsync({
|
|
169
169
|
id: y.id,
|
|
170
170
|
input: { priority: e }
|
|
171
|
-
}),
|
|
171
|
+
}), f.success("Priority updated");
|
|
172
172
|
} catch (e) {
|
|
173
|
-
|
|
173
|
+
f.error("Could not update priority", d(e));
|
|
174
174
|
}
|
|
175
175
|
}, Z = !!(y.assignedToId && y.assignedToId === g?.id), Oe = p[y.category] ?? fe, Q = [{
|
|
176
176
|
key: "reported",
|
|
@@ -204,7 +204,7 @@ function B() {
|
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
label: "Assigned to",
|
|
207
|
-
value: y.assignedToId ? Z ? /* @__PURE__ */ w(
|
|
207
|
+
value: y.assignedToId ? Z ? /* @__PURE__ */ w(l, {
|
|
208
208
|
name: [g?.firstName, g?.lastName].filter(Boolean).join(" ") || g?.name || "You",
|
|
209
209
|
subtitle: "You"
|
|
210
210
|
}) : "An officer" : "Unassigned"
|
|
@@ -313,7 +313,7 @@ function B() {
|
|
|
313
313
|
children: [Y && /* @__PURE__ */ T("div", {
|
|
314
314
|
className: "mb-4 flex items-center gap-2 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
315
315
|
children: [/* @__PURE__ */ w(le, { className: "size-4 shrink-0" }), " This grievance was rejected and did not proceed through resolution."]
|
|
316
|
-
}), /* @__PURE__ */ w(
|
|
316
|
+
}), /* @__PURE__ */ w(se, {
|
|
317
317
|
steps: Ce,
|
|
318
318
|
current: Se
|
|
319
319
|
})]
|
|
@@ -323,7 +323,7 @@ function B() {
|
|
|
323
323
|
children: [/* @__PURE__ */ T("div", {
|
|
324
324
|
className: "space-y-4 lg:col-span-2",
|
|
325
325
|
children: [
|
|
326
|
-
/* @__PURE__ */ T(
|
|
326
|
+
/* @__PURE__ */ T(u, {
|
|
327
327
|
title: "Description",
|
|
328
328
|
icon: /* @__PURE__ */ w(pe, {}),
|
|
329
329
|
children: [/* @__PURE__ */ w("p", {
|
|
@@ -356,7 +356,7 @@ function B() {
|
|
|
356
356
|
})]
|
|
357
357
|
})]
|
|
358
358
|
}),
|
|
359
|
-
y.photoFileIds.length > 0 && /* @__PURE__ */ w(
|
|
359
|
+
y.photoFileIds.length > 0 && /* @__PURE__ */ w(u, {
|
|
360
360
|
title: `Photo evidence (${y.photoFileIds.length})`,
|
|
361
361
|
icon: /* @__PURE__ */ w(he, {}),
|
|
362
362
|
children: /* @__PURE__ */ w("div", {
|
|
@@ -364,7 +364,7 @@ function B() {
|
|
|
364
364
|
children: y.photoFileIds.map((e) => /* @__PURE__ */ w(xe, { fileId: e }, e))
|
|
365
365
|
})
|
|
366
366
|
}),
|
|
367
|
-
/* @__PURE__ */ w(
|
|
367
|
+
/* @__PURE__ */ w(u, {
|
|
368
368
|
title: "Resolution timeline",
|
|
369
369
|
icon: /* @__PURE__ */ w(v, {}),
|
|
370
370
|
children: /* @__PURE__ */ w(ae, { children: Q.map((e, t) => /* @__PURE__ */ w(oe, {
|
|
@@ -375,7 +375,7 @@ function B() {
|
|
|
375
375
|
children: e.body
|
|
376
376
|
}, e.key)) })
|
|
377
377
|
}),
|
|
378
|
-
we ? /* @__PURE__ */ T(
|
|
378
|
+
we ? /* @__PURE__ */ T(u, {
|
|
379
379
|
title: "Resolution",
|
|
380
380
|
icon: /* @__PURE__ */ w(_, {}),
|
|
381
381
|
children: [/* @__PURE__ */ w(ve, {
|
|
@@ -399,7 +399,7 @@ function B() {
|
|
|
399
399
|
children: [/* @__PURE__ */ w(_, { className: "mr-1.5 h-4 w-4" }), " Resolve"]
|
|
400
400
|
})]
|
|
401
401
|
})]
|
|
402
|
-
}) : y.resolution && /* @__PURE__ */ w(
|
|
402
|
+
}) : y.resolution && /* @__PURE__ */ w(u, {
|
|
403
403
|
title: Y ? "Rejection reason" : "Resolution",
|
|
404
404
|
icon: w(Y ? S : _, {}),
|
|
405
405
|
children: /* @__PURE__ */ w("p", {
|
|
@@ -410,7 +410,7 @@ function B() {
|
|
|
410
410
|
]
|
|
411
411
|
}), /* @__PURE__ */ T("div", {
|
|
412
412
|
className: "space-y-4",
|
|
413
|
-
children: [y.location && /* @__PURE__ */ T(
|
|
413
|
+
children: [y.location && /* @__PURE__ */ T(u, {
|
|
414
414
|
title: "Location",
|
|
415
415
|
icon: /* @__PURE__ */ w(ge, {}),
|
|
416
416
|
children: [/* @__PURE__ */ w("p", {
|
|
@@ -425,10 +425,10 @@ function B() {
|
|
|
425
425
|
"° E"
|
|
426
426
|
]
|
|
427
427
|
})]
|
|
428
|
-
}), /* @__PURE__ */ T(
|
|
428
|
+
}), /* @__PURE__ */ T(u, {
|
|
429
429
|
title: "Details",
|
|
430
430
|
icon: /* @__PURE__ */ w(v, {}),
|
|
431
|
-
children: [/* @__PURE__ */ w(
|
|
431
|
+
children: [/* @__PURE__ */ w(ie, {
|
|
432
432
|
items: $,
|
|
433
433
|
variant: "stacked"
|
|
434
434
|
}), /* @__PURE__ */ T("div", {
|
|
@@ -453,7 +453,7 @@ function B() {
|
|
|
453
453
|
})]
|
|
454
454
|
})]
|
|
455
455
|
}),
|
|
456
|
-
W && /* @__PURE__ */ w(
|
|
456
|
+
W && /* @__PURE__ */ w(re, {
|
|
457
457
|
open: !!W,
|
|
458
458
|
onOpenChange: (e) => e ? void 0 : G(null),
|
|
459
459
|
title: `${W.label} grievance?`,
|