Production attachments on /mnt/NTPFiles; center trucks/used columns in orders grid

- appsettings.Production.json: Grains:Registry UploadedFilesPath=/mnt/NTPFiles, TempUploadPath=/mnt/NTPFiles/tempuploadedfiles
- docker-compose (prod): bind-mount /mnt/NTPFiles into the container
- Orders grid: عدد السيارات / المستخدم centred

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Samer Salameh 2026-11-17 09:13:48 +03:00
parent e5159c7383
commit cc5772092f
3 changed files with 15 additions and 2 deletions

View File

@ -18,3 +18,6 @@ services:
ports:
# change the left side (or set NTP_PORT in .env) when 8081 is taken; use 127.0.0.1: when the proxy runs on this host
- "127.0.0.1:${NTP_PORT:-8081}:8080"
volumes:
# attachments (trucks / trailers / drivers): the host folder /mnt/NTPFiles is read and written by the API at the same path
- /mnt/NTPFiles:/mnt/NTPFiles

View File

@ -20,5 +20,15 @@
"Oracle": {
"MinPoolSize": 5,
"MaxPoolSize": 100
},
// Attachments of trucks / trailers / drivers are read and written on the shared folder /mnt/NTPFiles
// (mounted into the container, see deploy/prod/docker-compose.yml). Stored files go to
// <UploadedFilesPath>/ntp_trucks_files | ntp_trailers_files | ntp_drivers_files; uploads wait in TempUploadPath until Save.
"Grains": {
"Registry": {
"UploadedFilesPath": "/mnt/NTPFiles",
"TempUploadPath": "/mnt/NTPFiles/tempuploadedfiles"
}
}
}

View File

@ -62,8 +62,8 @@ export const tenderOrderGrid = (h: OrderGridHandlers): GridMeta<TenderOrder> =>
key: 'mobileShift', header: { en: 'Shift', ar: 'الفترة' }, hideBelow: 'md',
render: (r, { lang }) => (r.mobileShift && shiftLabels[r.mobileShift] ? shiftLabels[r.mobileShift]![lang] : ''),
},
{ key: 'quantity', header: { en: 'Trucks', ar: 'عدد السيارات' }, format: 'number', align: 'end' },
{ key: 'usedQuota', header: { en: 'Used', ar: 'المستخدم' }, format: 'number', align: 'end', hideBelow: 'sm' },
{ key: 'quantity', header: { en: 'Trucks', ar: 'عدد السيارات' }, format: 'number', align: 'center' },
{ key: 'usedQuota', header: { en: 'Used', ar: 'المستخدم' }, format: 'number', align: 'center', hideBelow: 'sm' },
{ key: 'isTipper', header: { en: 'Tipper', ar: 'قلاب' }, format: 'boolean', hideBelow: 'lg' },
{
key: 'type', header: { en: 'Individuals / companies', ar: 'افراد - شركات' }, hideBelow: 'md',