How ratanak-it/fluxibiz-admin-frontend works
FluxiBiz Admin Panel is a super-administrator console for governing multi-tenant commerce. Administrators authenticate through Keycloak-backed sessions, then provision businesses and subscriptions, manage platform staff and catalog policy, and monitor health, channels, notifications, and audit activity. The sampled code shows dashboard pages using RTK Query feature APIs through a same-origin gateway; session routes resolve identity and permissions. README-described capabilities are retained where implementation excerpts were unavailable; those links are documented capabilities, not claims that unsampled calls were inspected.
Main entry points: businessAdminApi.ts Business admin API · businesses/page.tsx Business management · overview/page.tsx Operations overview · route.ts Same-origin API gateway
Components 25
Identity and access
- Sign-in pages
src/app/(auth)/login/page.tsx - Session context
src/app/api/session-context/route.ts - Auth and tokens
src/lib/auth/keycloak-token.ts - Role permissions
src/lib/permissionCatalog.ts - Platform staff
src/app/(dashboard)/users/page.tsx - Staff and role API
src/features/platformUsers/platformUserApi.ts
Tenant operations
- Business management
src/app/(dashboard)/businesses/page.tsx - Business provisioning
src/components/admin/CreateBusinessDialog.tsx - Subscriptions
src/app/(dashboard)/subscriptions/page.tsx - Business admin API
src/features/businessManagement/businessAdminApi.ts
Platform oversight
- Operations overview
src/app/(dashboard)/overview/page.tsx - Service health
src/lib/healthService.ts - Live notifications
src/lib/hook/useAdminNotifications.ts - Audit and logs
src/app/(dashboard)/logs/audit/page.tsx - Webhook monitoring
src/app/(dashboard)/settings/webhooks/page.tsx - Report export
src/lib/exportReportService.ts
Catalog and governance
- Channel management
src/app/(dashboard)/channels/page.tsx - Catalog and units
src/app/(dashboard)/categories/page.tsx
Application runtime
- Same-origin API gateway
src/app/api/v1/[...path]/route.ts - RTK query base
src/lib/baseApi.ts - Redux store
src/store/store.ts
Other components
- Super admin
- Keycloak
- Commerce platform services
- Notification socket service
Connections 26
- Super admin → Sign-in pages: signs in
README.md - Sign-in pages → Keycloak: authenticates through
README.md - Session context → Auth and tokens: resolves token
src/app/api/session-context/route.ts - Session context → Role permissions: checks roles
src/app/api/session-context/route.ts - Super admin → Business management: manages tenants
README.md - Business management → Business provisioning: opens provisioning
- Business provisioning → Business admin API: creates business
src/components/admin/CreateBusinessDialog.tsx - Business management → Business admin API: queries businesses
- Super admin → Subscriptions: manages plans
README.md - Super admin → Platform staff: manages access
README.md - Platform staff → Staff and role API: loads staff data
src/app/(dashboard)/users/page.tsx - Staff and role API → RTK query base: injects endpoints
src/features/platformUsers/platformUserApi.ts - Super admin → Operations overview: reviews metrics
README.md - Operations overview → Service health: checks services
src/app/(dashboard)/overview/page.tsx - Operations overview → Report export: exports report
src/app/(dashboard)/overview/page.tsx - Super admin → Channel management: governs channels
README.md - Channel management → Business admin API: loads channel data
src/app/(dashboard)/channels/page.tsx - Super admin → Catalog and units: enforces catalog
README.md - Super admin → Webhook monitoring: monitors deliveries
README.md - Super admin → Audit and logs: reviews compliance logs
README.md - Live notifications → Business admin API: queries audit logs
src/lib/hook/useAdminNotifications.ts - Live notifications → Notification socket service: subscribes live events
src/lib/hook/useAdminNotifications.ts - Redux store → RTK query base: registers middleware
src/store/store.ts - RTK query base → Same-origin API gateway: sends requests
src/lib/baseApi.ts - Same-origin API gateway → Auth and tokens: resolves bearer token
src/app/api/v1/[...path]/route.ts - Same-origin API gateway → Commerce platform services: forwards API requests