Commit Graph

11 Commits

Author SHA1 Message Date
Samer Salameh 0f1c6ab3eb Permit view fields/actions/weights, ask-for-filter grids, blacklist view, optional non-Omani plate code, hide investor/company info, LOP_CC filters
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:56:28 +03:00
Samer Salameh e41bcfa279 Register page: coloured account-type cards with hover and arrow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 15:33:56 +03:00
Samer Salameh 25c79c4740 Navy dashboard headline banner; Arabic name for Madayn office job title
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 15:03:23 +03:00
Samer Salameh 1dde9568b3 Richer dashboards and infographics, full screen with rotation
- Fleet, Personnel and Stakeholders infographics and the three statistics dashboards get their own layouts:
  headline totals, stat cards with icons, status heat-maps, gauges, rings, columns, icon bars and a gender pictogram
- Full screen button on every dashboard: hides the menu and header (and asks the browser for full screen);
  in full screen the dashboards the user may open take turns every 5 seconds, with a countdown line and a pause button
- Titles: "Fleet by stakeholders"; Arabic labels "شاشة كاملة" / "شاشة مصغرة"

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 13:17:57 +03:00
Samer Salameh 3ba7837d05 Fleet edit page: offer the record's other actions (temporary stop) beside Save
The old record page was a form that drew every action the backend listed for the record's status. The new edit form
only had Save. A vehicle's edit page now also shows the record's simple actions (temporary stop, delete...), with the
same confirmation / reason popup the record page uses; Save stays hidden when the role cannot update the record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:23:04 +03:00
Samer Salameh e631b3c12b Truck layouts, company Riyada value, cache tool, sign-in return and Home colors
- Trucks: truck info in legacy column order, owner section like the trailer's, new vehicles default to Omani document nationality
- Fleet record pages hide the owner's identity-document fields; save button hidden when the role cannot update
- Companies: Riyada card value on the record page and the tick box for the operations office
- Customer Service: ticket type and subject mandatory on create
- System cache page (/caching) for the system administrator role and the "system" user, with a user-menu entry
- Signing in returns to the page that was asked for before the login page
- Home page section icons use the menu colors; Registration system color changed
- Company profile page has no back button or breadcrumb

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:17:45 +03:00
Samer Salameh a01c9324c3 Add a /v2/ build mode and nginx config for serving under mams.nafith.om
- .env.v2 and `npm run build:v2` (base /v2/, output dist-v2/)
- deploy/nginx-mams-v2.conf: serve the app at https://mams.nafith.om/v2/ so the existing reCAPTCHA key works

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:17:44 +03:00
Samer Salameh f9754cd75f Upgrade dependencies: MUI 9, TypeScript 7 and patch updates
- @mui/material and @mui/icons-material 6.5 -> 9.5
- typescript 5.6 -> 7.0
- react-query, vite and @vitejs/plugin-react patch/minor updates
- npm audit: 0 vulnerabilities in production dependencies

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:05:35 +03:00
Samer Salameh e1182bf4af Feature work: events section, filters, form layouts, wizard fixes
- Record pages: collapsible Events table (GETLOG) with filters and an old/new values popup
- New-password dialog with a copy button after "reset password immediately"
- Confirmation tick box on create/edit forms for non-Nafith users
- Entry permit requests: menu placement, create form fields, sender/receiver filters
  (dependent lists, role-limited), no record count under grid titles
- Deposits, Users, Employees, Driver-Owner, Trucks and fleet layout changes
- Plate code value in Arabic edit/view forms; audit fields on all fleet record pages
- Logistics platform menu hidden; wizard hint lines and driver-documents message fixed
- Session-ended redirect and other client fixes
- Small syntax changes ahead of MUI 9 (sx instead of system props, slotProps, icon names)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:05:35 +03:00
Samer Salameh dd179a2e30 Add CLAUDE.md with the working rules, architecture and UI conventions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:58:03 +03:00
Samer Salameh ebefaa7533 Initial commit: new MAMS front end (React, Vite, TypeScript, MUI)
Replaces only the front end of the legacy ColdFusion system; the backend is
unchanged. Arabic (RTL) is the default language with English, light theme by
default with dark mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:55:26 +03:00