Commit Graph

6 Commits

Author SHA1 Message Date
Samer Salameh 03d16e742a Grids: copy icon beside every cell value (no toast), also on the refinery claim trip tables
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 17:43:12 +03:00
Samer Salameh cc0cde3219 Login page: split layout with symbolic brand panel, white transparent logo, copyright footer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 10:05:34 +03:00
Samer Salameh bf1c04b590 Security hardening, time zone, voice call SOAP, registry fixes, CO role, remarks byte limit
- Permits: confirming a turn (accept/reject/revoke-accepted) is staff-only; submit needs REQST; company access check no longer passes null; seed/check-trucks SU-only; duplicate company-destinations endpoint removed
- Registry: attachment download scoped to the user's company; long original names and 20-char column caps; add-trailer button after revoke
- Dialer callback: constant-time key, NO_ANSWER only for REQST and legacy-style reset, postpone days capped
- Voice call: SOAP callAPI like legacy, single flight, started/busy results
- Company turn permits: truck number editable
- Blacklist remarks cut by UTF-8 bytes (500-byte column)
- Distribution: BlCategory bind, OPEN guards, process-with-destination dropdowns and server check, per-category confirmation
- Container TZ=Asia/Amman; production ownership code lists; IVR config
- Role CO (same rights as GTO), date field padding, home page grouping, grid and report fixes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 15:55:03 +03:00
Samer Salameh cbdfe423c1 Date fields as dd/mm/yyyy; no spinner on number fields; empty billing fines default to 0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 15:58:07 +03:00
Samer Salameh 21328b7d1a Grains: menu reorganisation, DB-driven permissions, form/grid polish
- Create-permit and register-turn become DB authorities (grains.permits.create, grains.orders.supply)
- Reorganise menus (permits, orders, finance, flat reports) and fix sidebar expand/collapse
- Company destinations grouped by cargo type; weighbridge screen reduced to manual weighing
- Hide absence toggle; remove PDF actions from reports; loading-weights uses literal dates
- FormCard/SectionTitle components, framed DataGrid with row hover
- DB scripts: menu-reorganisation, permits-create-permission, disabled-features, events perf notes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:18:04 +03:00
Samer Salameh 0c0b64239c Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments
Rebuild of the legacy ColdFusion NTP Grains module: Orders, Permits, Registry and Reports on a Dapper/Oracle API with a
metadata-driven React front end (Arabic RTL default, English LTR, light and dark).

Environments
- API: appsettings.{Development,QA,Production}.json carry only non-secret settings. Connection strings, Jwt__Key, CORS origin and
  super users come from the server environment. Production and QA CORS origins fail closed until set. launchSettings gets a QA profile.
- Web: Vite modes qa and production (web/.env.qa, web/.env.production), configurable VITE_API_BASE, scripts build:qa and build:prod.
- docs/ENVIRONMENTS.md documents the three environments, required settings and a new-environment checklist.

Security and access
- Backend-driven permissions (GET /auth/permissions, [RequirePermission]) from GRAINS_SCREEN_PERMISSIONS; SU always allowed.
  SQL in db/ (grains-screen-permissions.sql, registry-create-permissions.sql).
- OracleCredentialGuard stops retrying an account after ORA-01017 so a misconfigured copy cannot lock the database account.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 11:56:48 +03:00