How igguimaraes/projet-control works
This is a React frontend for managing company fuel operations and a platform-level company administration mode. The principal workflow enters through the app shell, selects a company or platform session, and presents operational screens for fuel transactions, stock intake, history, and consumption; administrative screens manage locations, users, permissions, tanks, and vehicles. The app and screens call a shared API client, which sends HTTP requests to an external backend. Source excerpts establish the entry point and several calls; some screen-to-API links are supported by the SOURCE INDEX rather than full implementation excerpts.
Main entry points: api.js API client · App.jsx App shell · Admin.jsx Company admin · Consumption.jsx Consumption analysis
Components 19
Application shell
- React entry
src/main.jsx - App shell
src/App.jsx
Fuel operations
- Dashboard
src/screens/Dashboard.jsx - Fuel entry
src/screens/Fuel.jsx - Stock intake
src/screens/StockIn.jsx - Transaction history
src/screens/History.jsx - Consumption analysis
src/screens/Consumption.jsx - Vehicle selector
src/components/VehicleCombo.jsx
Administration
- Platform admin
src/screens/Platform.jsx - Company admin
src/screens/Admin/Admin.jsx - Location management
src/screens/Admin/AdminLocations.jsx - Access management
src/screens/Admin/AdminPermissions.jsx - Admin stock intake
src/screens/Admin/AdminStockIn.jsx - Tank management
src/screens/Admin/AdminTanks.jsx - User management
src/screens/Admin/AdminUsers.jsx - Vehicle management
src/screens/Admin/AdminVehicles.jsx
API transport
- API client
src/services/api.js
Other components
- User
- Backend API
Connections 29
- React entry → App shell: renders
src/main.jsx - App shell → Dashboard: renders
src/App.jsx - App shell → Fuel entry: renders
src/App.jsx - App shell → Transaction history: routes to
src/App.jsx - App shell → Company admin: routes to
src/App.jsx - App shell → Stock intake: routes to
src/App.jsx - App shell → Consumption analysis: routes to
src/App.jsx - App shell → Platform admin: routes to
src/App.jsx - App shell → API client: requests
src/App.jsx - Fuel entry → Vehicle selector: uses
src/components/VehicleCombo.jsx - Consumption analysis → Vehicle selector: uses
src/screens/Consumption.jsx - Consumption analysis → API client: requests
src/screens/Consumption.jsx - Transaction history → API client: requests
src/screens/History.jsx - Stock intake → API client: requests
src/screens/StockIn.jsx - Platform admin → API client: requests
src/screens/Platform.jsx - Company admin → Location management: renders
src/screens/Admin/Admin.jsx - Company admin → Access management: renders
src/screens/Admin/Admin.jsx - Company admin → Admin stock intake: renders
src/screens/Admin/Admin.jsx - Company admin → Tank management: renders
src/screens/Admin/Admin.jsx - Company admin → User management: renders
src/screens/Admin/Admin.jsx - Company admin → Vehicle management: renders
src/screens/Admin/Admin.jsx - Company admin → API client: requests
src/screens/Admin/Admin.jsx - Location management → API client: requests
src/screens/Admin/AdminLocations.jsx - Access management → API client: requests
src/screens/Admin/AdminPermissions.jsx - Admin stock intake → API client: requests
src/screens/Admin/AdminStockIn.jsx - Tank management → API client: requests
src/screens/Admin/AdminTanks.jsx - User management → API client: requests
src/screens/Admin/AdminUsers.jsx - Vehicle management → API client: requests
src/screens/Admin/AdminVehicles.jsx - API client → Backend API: sends HTTP
src/services/api.js