Fieldforce Panel Implementation
Overview
The Panel app provides a comprehensive desktop interface for managers and supervisors to dispatch tasks, review completions, and audit activity securely. It uses a layout-driven structure native to SolidStart.Architecture
- Routing: Features a nested layout route
routes/app/fieldforce.tsxwhich provides the application shell (e.g. breadcrumbs, localized nav). - Data Fetching: All TanStack Query hooks are centralized in
lib/fieldforce/api.ts(e.g.,useTasks,useTask,useCreateTask). This keeps components presentation-focused. - Components: Shared UI components such as
TaskCard,TaskStatusBadge, andTaskTimelinelive undercomponents/fieldforce/.
Core Features
- Role-Adaptive Dashboard: Managers access summary cards and an approval queue, while field teams are presented directly with a prioritized task list.
- Task Management: A robust full table view using standard offset pagination, robust filtering (by status, priority, type), full-text search, and bulk actions.
- Task Detail & Timeline:
The
TaskTimelinecomponent merges bothactivitiesandaudit_logschronologically into a single, comprehensive view, providing complete history of the task’s lifecycle. - Audit & Activity Logs: Dedicated compliance pages for monitoring team activities and granular state changes.
Forms & i18n
The Create Task process uses Solid Forms supporting extensive validation. The entire module implements global i18n via Paraglide, shipping localized strings inen.json, zh.json, and ms.json.