MEGAINFRA-WEBAPP/src/lib
DEls c36eaeed51 fix(plant-hours-template): ESM-safe __dirname + freeze note
Two follow-up fixes from the Task 5 code-quality review:

- scripts/generate-plant-hours-template.ts uses
  fileURLToPath(import.meta.url) instead of __dirname. The
  project's tsconfig has module: esnext, so the moment the
  package flips to ESM the original would throw
  ReferenceError: __dirname is not defined.
- src/lib/plant-hours-template.ts documents that the frozen
  header row is a best-effort request — SheetJS Community
  Edition silently drops the !freeze property (only Pro emits
  frozen-pane XML). The function still produces the canonical
  13-column workbook, but the doc comment no longer claims a
  behaviour that doesn't happen.
2026-08-28 12:55:08 +02:00
..
attention-acknowledged.test.ts feat(fuel): isAlertAcknowledged helper for dismiss filter 2026-08-28 12:35:36 +02:00
attention-acknowledged.ts feat(fuel): isAlertAcknowledged helper for dismiss filter 2026-08-28 12:35:36 +02:00
batch-state.test.ts refactor(batch): drop unused status field, expand test edges 2026-08-19 19:29:35 +02:00
batch-state.ts refactor(batch): drop unused status field, expand test edges 2026-08-19 19:29:35 +02:00
fuel-import-parse.test.ts feat(fuel): drop-in xlsx/csv import for pump sheets 2026-08-24 22:03:08 +02:00
fuel-import-parse.ts refactor(imports): extract shared import-parse helpers + add parseTime 2026-08-28 12:41:59 +02:00
fuel-variance.ts feat(dashboard): enhance fuel monitoring and attention alerts 2026-08-25 08:14:20 +02:00
import-parse.test.ts refactor(imports): extract shared import-parse helpers + add parseTime 2026-08-28 12:41:59 +02:00
import-parse.ts refactor(imports): extract shared import-parse helpers + add parseTime 2026-08-28 12:41:59 +02:00
ocr-result-tier.test.ts feat(ocr-result): enhance PO validation and tier resolution logic 2026-08-26 22:07:42 +02:00
ocr-result-tier.ts feat(ocr-result): enhance PO validation and tier resolution logic 2026-08-26 22:07:42 +02:00
partition-fixed-costs.test.ts test(partition-fixed-costs): add failing tests 2026-08-28 12:50:36 +02:00
partition-fixed-costs.ts feat(lib): add partitionFixedCosts helper 2026-08-28 12:53:38 +02:00
pb-types.ts feat(types): add is_recurring to FixedCostRecord 2026-08-28 12:47:40 +02:00
pb.ts feat(purchasing): enhance purchasing page with received items tracking 2026-08-26 23:05:05 +02:00
plant-hours-schema.test.ts test(plant-hours): cover unknown-QR deviation + value rounding 2026-08-28 12:48:42 +02:00
plant-hours-schema.ts feat(plant-hours): row validator + derived field helpers 2026-08-28 12:46:13 +02:00
plant-hours-template.test.ts feat(plant-hours): template workbook generator + seed file 2026-08-28 12:51:14 +02:00
plant-hours-template.ts fix(plant-hours-template): ESM-safe __dirname + freeze note 2026-08-28 12:55:08 +02:00
po-matching.test.ts feat(ocr-result, po-items): enhance PO matching logic with fuzzy search 2026-08-26 21:39:59 +02:00
po-matching.ts feat(ocr-result, po-items): enhance PO matching logic with fuzzy search 2026-08-26 21:39:59 +02:00
purchase-order-schema.test.ts fix(po-schema): allow qty = 0 on line items 2026-08-24 21:32:13 +02:00
purchase-order-schema.ts fix(po-schema): allow qty = 0 on line items 2026-08-24 21:32:13 +02:00
timesheet-casual-parse.test.ts feat(timesheets): enhance import functionality with site linking and employee creation 2026-08-26 12:44:02 +02:00
timesheet-casual-parse.ts feat(timesheets): enhance import functionality with site linking and employee creation 2026-08-26 12:44:02 +02:00
timesheet-grid-parse.test.ts feat(timesheets): enhance import functionality to support XLSX and CSV formats 2026-08-25 18:38:02 +02:00
timesheet-grid-parse.ts feat(timesheets): enhance import functionality to support XLSX and CSV formats 2026-08-25 18:38:02 +02:00
use-file-drop-zone.ts feat(delivery-notes): enhance delivery note upload and processing 2026-08-26 15:33:30 +02:00
use-inline-edit.ts feat(fuel-view): enhance inline editing and UI components 2026-08-26 08:54:57 +02:00
utils.ts feat(purchasing): show 'Supplier unknown' badge when OCR couldn't extract supplier 2026-08-27 00:41:10 +02:00
validate-matched-po-items.test.ts feat(ocr-result): enhance PO validation and tier resolution logic 2026-08-26 22:07:42 +02:00
validate-matched-po-items.ts feat(ocr-result): enhance PO validation and tier resolution logic 2026-08-26 22:07:42 +02:00