Experience · Frontend · Active
cs-portal frontend
React and Vite frontend for CS Portal, rendering HR, operations, administration, documents and lookup workflows through same-origin APIs.
- React 18
- Vite
- TypeScript
- Tailwind
- react-router-dom
- reactflow
- xlsx
Spec sheet
Repository path
cs-portal/frontend
Runtime
React 18 + Vite
Public host
http://portal.cs.lvh.me:8080
Frontend rule
No direct Salesforce or Core calls
Responsibilities
- Render the portal application shell and domain pages for HR, operations and administration.
- Render the economic forecast workbench with month selection, manual line editing, calculated totals, read-only costs and margins, virtual projection, clone flow and guarded month deletion.
- Consume only the cs-portal BFF through same-origin /api calls.
- Use structured lookup client helpers instead of composing raw Salesforce queries in the browser.
- Keep heavy route logic in runtime modules with small route-level wrappers.
Interfaces and contract surface
- GET / via portal host
- /administration/forecast-economico
- Same-origin /api
- Vite dev server on 5177
Consumers
- Internal Codestorm operators via browser
Dependencies and external touchpoints
Notes
- The economic forecast page is under the Administration navigation and is also visible to Portal HR as a single protected item.
- Economic forecast displays economics cards, cost/margin trend lines, collapsible line filters, per-line personnel cost source and cost-detail breakdown from BFF-enriched data; line weight scales both revenue and personnel cost.
- Economic forecast projection is frontend-only and uses previous monthly details normalized by monthly billable working days, including January, August and December non-billable stop days, to show virtual rows without creating or saving Salesforce records; projected personnel cost stays on the historical monthly average and is not reduced by those caps.
- Recent commits moved many large pages into *.runtime.tsx modules and left wrapper exports in the original files.
Source references
cs-portal/frontend/package.jsoncs-portal/frontend/src/services/lookups.tscs-portal/frontend/src/services/administration-prebilling.tscs-portal/frontend/src/features/prebillingcs-portal/frontend/src/pages