@gelabs/ovr 0.3.0 → 0.4.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/{chunk-HGWPA7FU.js → chunk-6AXIWTMW.js} +36 -0
- package/dist/{chunk-IS3THKTE.js → chunk-QZRRFE6E.js} +13 -2
- package/dist/{chunk-ZUMEOZ22.js → chunk-VH4J2SIV.js} +2 -2
- package/dist/core-i18n.d.ts +2 -2
- package/dist/core-i18n.js +1 -1
- package/dist/data-mock-store.js +93 -7
- package/dist/data-prisma-store.js +87 -9
- package/dist/data.d.ts +16 -1
- package/dist/generated/client/edge.js +6 -4
- package/dist/generated/client/index-browser.js +3 -1
- package/dist/generated/client/index.d.ts +97 -39
- package/dist/generated/client/index.js +6 -4
- package/dist/generated/client/package.json +1 -1
- package/dist/generated/client/schema.prisma +2 -0
- package/dist/generated/client/wasm.js +6 -4
- package/dist/index.d.ts +1 -1
- package/dist/{types-BOgdk0Jw.d.ts → types-DNEO6wrO.d.ts} +36 -0
- package/dist/types.d.ts +14 -3
- package/dist/types.js +1 -1
- package/dist/ui-components-admin/accounts-manager.js +5 -5
- package/dist/ui-components-admin/admin-nav.js +6 -4
- package/dist/ui-components-admin/issuance-form.js +10 -10
- package/dist/ui-components-admin/logs-viewer.js +4 -4
- package/dist/ui-components-admin/notifications-list.js +1 -1
- package/dist/ui-components-admin/officers-manager.js +3 -3
- package/dist/ui-components-admin/roles-manager.js +4 -4
- package/dist/ui-components-admin/ticket-preview.js +6 -6
- package/dist/ui-components-admin/tickets-table.js +3 -3
- package/dist/ui-components-admin/violations-manager.d.ts +36 -0
- package/dist/ui-components-admin/violations-manager.js +454 -0
- package/dist/ui-components-citizen/payment-form.js +3 -3
- package/dist/ui-components-citizen/payment-qr-dialog.js +2 -2
- package/dist/ui-components-citizen/violation-history-table.js +2 -2
- package/dist/ui-components-shared/ticket-receipt.js +4 -4
- package/dist/ui-components-shared/violations-table.js +2 -2
- package/dist/ui-config.d.ts +1 -1
- package/dist/ui-server.d.ts +1 -1
- package/dist/ui-server.js +1 -1
- package/package.json +6 -6
- package/prisma/migrations/20260622050000_violation_catalog_management/migration.sql +5 -0
- package/prisma/schema.prisma +2 -0
- package/dist/{chunk-IBZVIUNI.js → chunk-6BH4EFP3.js} +1 -1
- package/dist/{chunk-TLG4C2XI.js → chunk-QCAURREW.js} +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gelabs/ovr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The @gelabs/ovr SDK — one self-contained package over the OVR (Online Ordinance Violation Receipt) platform. A standalone per-LGU app installs ONLY this package and imports from @gelabs/ovr/{config,core,data,runtime,auth,ui,...}; the seven @gelabs/ovr-* implementation packages are bundled in at build time.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -158,14 +158,14 @@
|
|
|
158
158
|
"react-dom": "19.2.4",
|
|
159
159
|
"tsup": "^8.4.0",
|
|
160
160
|
"typescript": "^5",
|
|
161
|
-
"@gelabs/ovr-types": "0.0.0",
|
|
162
161
|
"@gelabs/ovr-config": "0.0.0",
|
|
162
|
+
"@gelabs/ovr-runtime": "0.0.0",
|
|
163
163
|
"@gelabs/ovr-data": "0.0.0",
|
|
164
|
-
"@gelabs/ovr-
|
|
165
|
-
"@gelabs/ovr-auth": "0.0.0",
|
|
164
|
+
"@gelabs/ovr-types": "0.0.0",
|
|
166
165
|
"@gelabs/ovr-ui": "0.0.0",
|
|
167
|
-
"@gelabs/ovr-
|
|
168
|
-
"@gelabs/ovr-
|
|
166
|
+
"@gelabs/ovr-offline": "0.0.0",
|
|
167
|
+
"@gelabs/ovr-auth": "0.0.0",
|
|
168
|
+
"@gelabs/ovr-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"scripts": {
|
|
171
171
|
"build": "tsup && node scripts/copy-assets.mjs",
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
-- GE-031 (violation catalog management): soft-delete + edit tracking.
|
|
2
|
+
-- `active` lets admins archive a violation (hidden from issuance) while keeping
|
|
3
|
+
-- it resolvable for already-issued tickets. Existing rows default to active.
|
|
4
|
+
ALTER TABLE "ViolationCatalog" ADD COLUMN "active" BOOLEAN NOT NULL DEFAULT true;
|
|
5
|
+
ALTER TABLE "ViolationCatalog" ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
package/prisma/schema.prisma
CHANGED
|
@@ -61,8 +61,10 @@ model ViolationCatalog {
|
|
|
61
61
|
category ViolationCategory
|
|
62
62
|
basicFine Decimal @db.Decimal(12, 2)
|
|
63
63
|
legalText String?
|
|
64
|
+
active Boolean @default(true) // GE-031: false = archived (hidden from issuance)
|
|
64
65
|
|
|
65
66
|
createdAt DateTime @default(now())
|
|
67
|
+
updatedAt DateTime @default(now()) @updatedAt
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
model Ticket {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Money } from './chunk-BVI5XDDA.js';
|
|
2
1
|
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-OWCGEEAZ.js';
|
|
2
|
+
import { Money } from './chunk-BVI5XDDA.js';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
function ViolationsTable({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Alert, AlertDescription } from './chunk-EYFZWQ4J.js';
|
|
2
|
-
import { Money } from './chunk-BVI5XDDA.js';
|
|
3
2
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from './chunk-M35R6JLA.js';
|
|
3
|
+
import { Money } from './chunk-BVI5XDDA.js';
|
|
4
4
|
import { Button } from './chunk-I4WDVYHX.js';
|
|
5
5
|
import { useCopy } from './chunk-TJSNVTVB.js';
|
|
6
6
|
import * as React from 'react';
|