How getmilan4/servicepro works
Whimstack is a role-based internal portal with sign-in, dashboards, user administration, and navigation to customer, application, loan-pipeline, and resource areas. The visible workflow is login form → server action → Oracle-backed authentication and role routing → dashboard; administrators can then view platform statistics and manage users. The sampled code also documents optional WhimReward provisioning during user creation. Several feature pages are indexed but not excerpted, so their internal behavior and connections are not inferred.
Main entry points: db.ts Oracle connection pool · actions.ts User mutations · page.tsx User management page · Sidebar.tsx Role-based sidebar
Components 23
Access and navigation
- Sign-in form
app/login/page.tsx - Login actions
app/login/actions.ts - Session authentication
lib/auth.ts - Role routing
lib/role-routing.ts - Client shell
app/ClientShell.tsx - Role-based sidebar
components/Sidebar.tsx - Navigation rules
lib/navigation.ts - Logout action
app/logout.ts - Brand logo
components/WhimstackLogo.tsx
Administration
- Admin overview
app/admin/page.tsx - User management page
app/admin/users/page.tsx - User mutations
app/admin/users/actions.ts - User creation form
app/admin/users/CreateUserForm.tsx - User table
app/admin/users/UserTable.tsx
Portal areas
- Role dashboard
app/dashboard/page.tsx - Customer area
app/customers/page.tsx - Applications area
app/applications/page.tsx - Loan pipeline
app/pipeline/page.tsx - Resource center
app/resources
Data and integrations
- Oracle connection pool
lib/db.ts - Oracle database
- WhimReward API
Other components
- Portal user
Connections 26
- Portal user → Sign-in form: signs in
app/login/page.tsx - Sign-in form → Login actions: submits credentials
app/login/page.tsx - Login actions → Oracle connection pool: queries users
app/login/actions.ts - Login actions → Role routing: routes by role
app/login/actions.ts - Client shell → Role-based sidebar: renders
app/ClientShell.tsx - Role-based sidebar → Navigation rules: gets visible links
components/Sidebar.tsx - Role-based sidebar → Role routing: selects dashboard
components/Sidebar.tsx - Role-based sidebar → Logout action: invokes
components/Sidebar.tsx - Role-based sidebar → Brand logo: renders
components/Sidebar.tsx - Role dashboard → Session authentication: requires user
app/dashboard/page.tsx - Role dashboard → Role routing: routes by role
app/dashboard/page.tsx - Session authentication → Oracle connection pool: checks session
lib/auth.ts - Admin overview → Session authentication: requires user
app/admin/page.tsx - Admin overview → Oracle connection pool: queries statistics
app/admin/page.tsx - User management page → Session authentication: requires user
app/admin/users/page.tsx - User management page → Oracle connection pool: loads users
app/admin/users/page.tsx - User management page → User mutations: imports actions
app/admin/users/page.tsx - User management page → User creation form: renders
app/admin/users/page.tsx - User management page → User table: renders
app/admin/users/page.tsx - User creation form → User mutations: submits to
app/admin/users/CreateUserForm.tsx - User table → User mutations: uses actions
app/admin/users/UserTable.tsx - User mutations → Session authentication: requires admin
app/admin/users/actions.ts - User mutations → Oracle connection pool: writes users
app/admin/users/actions.ts - User mutations → WhimReward API: provisions account
app/admin/users/actions.ts - Oracle connection pool → Oracle database: opens connections
lib/db.ts - Logout action → Oracle connection pool: updates session
app/logout.ts