Overview
This guide covers administration and configuration of the Financial Close Setup Wizard (FA-UX-01). The wizard uses the PF-41 configurable wizard infrastructure.Architecture
Components
Database Template
The wizard template is seeded inpf_wizard_templates with:
- Module:
fa - Wizard Type:
setup - 6 steps (2 form-based, 4 custom components)
Permission Requirements
Configuration
Wizard Settings
The wizard uses thesefa_module_settings fields (if configured):
Checklist Templates
For the wizard to function, at least one checklist template must exist:- Navigate to FA → Close Management → Checklist Templates
- Create a template with
is_template = true - Add tasks to the template with categories:
reconciliationreportingreviewapproval
Draft Persistence
The wizard uses PF-41 draft persistence:- Storage: Local storage with
localforage - Key:
fa-setup-wizard-draft-{organizationId} - Auto-save: Every 30 seconds
- Expiration: 30 days
Clearing Drafts
Users can clear their draft by:- Completing the wizard
- Starting a new wizard session and not saving
Event Publishing
The wizard publishes the following event on completion:fa_events Supabase channel for real-time notifications.
Customization (Future)
When PF-41 wizard builder is deployed, organizations will be able to customize:- Step order and visibility
- Required vs optional fields
- Custom validation rules
- Additional form fields
- Step skip conditions
Monitoring
Wizard Usage
Query wizard completion events:Draft Statistics
Query draft statistics (requires PF-41 admin tables):Troubleshooting
Wizard Template Not Loading
- Verify the template exists:
- Check the migration ran successfully
- Verify
is_active = true
Custom Steps Not Rendering
- Verify step registration in
registerFAWizardSteps.ts - Check browser console for import errors
- Verify component IDs match template configuration
Event Publishing Failures
Event publishing is non-blocking. Failures are logged but don’t prevent wizard completion. Check Supabase logs for channel errors.Performance Considerations
- Task Batch Size: For templates with 50+ tasks, consider pagination in review step
- User Fetching: Uses
staleTime: 5minto reduce API calls - Draft Auto-save: 30-second interval prevents excessive storage writes
Security
- All database operations include
organization_idfilter (defense-in-depth) - RLS policies enforce tenant isolation
- User assignments validated against organization membership
- No PHI/PII exposed in wizard data