How snafx/opusm-assessment works
This repository is an assessment starter for a skill-management app on SAP Field Service Management (FSM). The intended user workflow is to manage a skill matrix, assign skills with validity periods, and attach certificates; the checked-in UI is still a setup page that checks connectivity and lists people. The implemented foundation is a browser client, a server-side FSM proxy with OAuth and write restrictions, and shared-company name scoping. The documented management features are goals, not sampled implementations, so the graph shows available API capabilities without implying those screens or workflows exist. Links reflect excerpts, the source index, or README statements.
Main entry points: health/route.ts Connection check · StarterPage.tsx Setup page · [...path]/route.ts FSM API proxy · token.ts OAuth session
Components 15
App entry and UI
- Home entry
src/app/page.tsx - Setup page
src/components/StarterPage.tsx - UI providers
src/components/providers/AppProviders.tsx - UI5 assets
src/components/providers/ui5-setup.ts
Browser integration
- Name scoping
src/lib/candidate.ts - FSM browser client
src/lib/fsm/client.ts - DTO versions
src/lib/fsm/dtos.ts
Server and FSM access
- FSM API proxy
src/app/api/fsm/[...path]/route.ts - Connection check
src/app/api/health/route.ts - OAuth session
src/lib/fsm/token.ts - FSM configuration
src/lib/fsm/config.ts - FSM headers
src/lib/fsm/headers.ts
Other components
- Browser user
- SAP FSM APIs
- OAuth service
Connections 18
- Browser user → Home entry: opens
README.md - Home entry → Setup page: renders
src/app/page.tsx - Setup page → FSM browser client: queries people
src/components/StarterPage.tsx - Setup page → Connection check: checks connection
src/components/StarterPage.tsx - Setup page → Name scoping: reads namespace
src/components/StarterPage.tsx - UI providers → UI5 assets: loads assets
src/components/providers/AppProviders.tsx - FSM browser client → FSM API proxy: fetches API
README.md - FSM browser client → DTO versions: uses versions
src/lib/fsm/client.ts - FSM API proxy → OAuth session: gets session
src/app/api/fsm/[...path]/route.ts - FSM API proxy → FSM headers: sets headers
src/app/api/fsm/[...path]/route.ts - FSM API proxy → SAP FSM APIs: proxies requests
src/app/api/fsm/[...path]/route.ts - OAuth session → FSM configuration: loads settings
src/lib/fsm/token.ts - OAuth session → OAuth service: requests token
src/lib/fsm/token.ts - Connection check → OAuth session: gets session
src/app/api/health/route.ts - Connection check → FSM headers: sets headers
src/app/api/health/route.ts - Connection check → DTO versions: uses person DTO
src/app/api/health/route.ts - Connection check → SAP FSM APIs: counts people
src/app/api/health/route.ts - Home entry → UI providers: uses layout