Maintenance Dashboard Live
System health stats, quick actions, recent operations
9:41
File Maintenance
14.2K
Records
99.7%
Integrity
38
Flagged
Integrity Check
Scan all records
Bulk Operations
Mass update/delete
Archive Manager
342 archived
Audit Log
Full history
Recent Operations
AK
Integrity scan completed
38 issues found • 2h ago
Issues
SL
Bulk archive: 45 records
Inactive jobs > 90 days • 1d ago
Done
AK
Orphan cleanup: 12 records
Dangling references removed • 2d ago
Done
Info:Integrity checks run automatically every Sunday at 2 AM. Manual scans can be triggered anytime. All operations are logged and reversible within 30 days.

Data Integrity Check Live
Scan results with issue categories and fix actions
9:41
Integrity Check
Last Scan Results
14,238 of 14,238 records scanned 100%
Issues Found (38)
Orphaned References
12 records with dangling foreign keys
12
Duplicate Entries
8 potential duplicate user profiles
8
Missing Fields
11 records with required fields empty
11
Stale Data
7 records not updated in 180+ days
7
Pro Tip:Auto-fix handles orphaned references and missing fields safely. Duplicate resolution requires manual review to choose the correct record to keep.

Bulk Operations Live
Mass update, delete, and export with preview
9:41
Bulk Operations
Select Table
Jobs (4,218)
Users (2,847)
Bids (6,142)
Messages (1,031)
Matching Records
247
records match current filters
247 of 4,218 total jobs

Archive Manager Planned
Browse archived records, restore, permanent delete
9:41
Archive
342
Archived
1.2GB
Size
Archived Records
Jobs batch (45)
Inactive > 90 days • Archived 1d ago
Jobs
Users batch (28)
Deactivated accounts • Archived 1w ago
Users
Messages batch (189)
Resolved threads • Archived 2w ago
Messages
Contracts batch (80)
Completed > 1 year • Archived 1mo ago
Contracts
Best Practice:Archived records are retained for 1 year before auto-purge. Restore is instant. Purge is permanent and requires admin confirmation with 2FA.

Audit Log Live
Timestamped log of all maintenance operations
9:41
Audit Log
Recent Activity
AK
Integrity scan completed
Admin Kim • Mar 26, 9:15 AM • 38 issues
Scan
SL
Bulk archive: 45 jobs
Sam Lee • Mar 25, 3:42 PM • Inactive >90d
Archive
AK
Auto-fix: 12 orphans removed
Admin Kim • Mar 24, 11:00 AM
Fix
SL
Restored: 3 user records
Sam Lee • Mar 23, 2:18 PM
Restore
Dashboard + Integrity Live
9:41
File Maintenance
14.2K
Records
99.7%
Integrity
Recent Operations
AK
Integrity scan
38 issues • 2h ago
SL
Bulk archive: 45
Jobs • 1d ago
Integrity Issues (38)
Orphaned References
12 dangling foreign keys
12
Duplicates
8 potential duplicates
8
Missing Fields
11 records incomplete
11
Stale Data
7 records 180+ days old
7

Bulk Ops + Preview Live
9:41
Bulk Operations
Select Table
Jobs4,218
Users2,847
Bids6,142
Messages1,031
Filter & Preview
247
matching records

Archive + Restore Planned
9:41
Archive Manager
342
Archived
1.2GB
Size
Jobs (45)
Archived 1d ago
Users (28)
Archived 1w ago
Messages (189)
Archived 2w ago
Archive Details: Jobs (45)
Archived BySam Lee
ReasonInactive > 90 days
Auto-PurgeMar 25, 2027

Audit + Export Live
9:41
Audit Log
Filter
All
Scans
Archives
Deletes
AK
Integrity scan
38 issues • 9:15 AM
Scan
SL
Bulk archive: 45
Mar 25, 3:42 PM
Archive
AK
Auto-fix: 12
Mar 24, 11:00 AM
Fix
Log Detail: Integrity Scan
Initiated ByAdmin Kim
TimestampMar 26, 9:15 AM
Records Scanned14,238
Issues Found38
Maintenance Dashboard Live
https://app.3bids.io/admin/maintenance
3BidsMaintenance
Dashboard ⌘1
Integrity ⌘2
Bulk Ops ⌘3
Archive ⌘4
Audit Log ⌘5
Settings ⌘,
AK
Admin Kim
Platform Admin

File Maintenance

14,238 Records · 99.7% Integrity
14.2K
Total Records
99.7%
Integrity
38
Issues
342
Archived
Recent Operations
AK
Integrity scan completed
38 issues • 2h ago
Scan
SL
Bulk archive: 45 jobs
Inactive >90d • 1d ago
Archive
AK
Auto-fix: 12 orphans
Dangling refs • 2d ago
Fix
Record Distribution
Jobs4,218
Bids6,142
Users2,847
Messages1,031

Integrity Check Live
https://app.3bids.io/admin/maintenance/integrity
3BidsMaintenance
Dashboard ⌘1
Integrity ⌘2
Bulk Ops ⌘3
Archive ⌘4
Audit Log ⌘5
Settings ⌘,
AK
Admin Kim
Platform Admin

Integrity Check

Last Scan: 2h ago · 38 Issues
Issues by Category
38 total
Orphaned References
Dangling foreign keys
12
Duplicate Entries
Potential duplicate users
8
Missing Fields
Required fields empty
11
Stale Data
180+ days without update
7
Scan Progress
14,238 of 14,238 scanned100%
Integrity History
Mar 2638 issues
Mar 1912 issues
Mar 125 issues

Bulk Operations Live
https://app.3bids.io/admin/maintenance/bulk
3BidsMaintenance
Dashboard ⌘1
Integrity ⌘2
Bulk Ops ⌘3
Archive ⌘4
Audit Log ⌘5
Settings ⌘,
AK
Admin Kim
Platform Admin

Bulk Operations

Jobs Selected · 247 Matching
Table & Filters
Jobs (4,218)
Users (2,847)
Bids (6,142)
Messages (1,031)
247
matching records
247 of 4,218 total
Available Actions
Destructive actions require confirmation
Delete operations require admin 2FA verification

Audit Log Live
https://app.3bids.io/admin/maintenance/audit
3BidsMaintenance
Dashboard ⌘1
Integrity ⌘2
Bulk Ops ⌘3
Archive ⌘4
Audit Log ⌘5
Settings ⌘,
AK
Admin Kim
Platform Admin

Audit Log

All Operations
Activity Log
All
Scans
Archives
Deletes
AK
Integrity scan completed
Admin Kim • Mar 26, 9:15 AM • 38 issues found
Scan
SL
Bulk archive: 45 job records
Sam Lee • Mar 25, 3:42 PM • Inactive > 90 days
Archive
AK
Auto-fix: 12 orphaned references removed
Admin Kim • Mar 24, 11:00 AM • Dangling FK cleanup
Fix
SL
Restored: 3 user records from archive
Sam Lee • Mar 23, 2:18 PM • Accidental archive recovery
Restore

Data Architecture

File maintenance system — data integrity checks, bulk operations, archive management, and full audit logging.

Source Files

app/(admin)/maintenance/index.tsx
Maintenance dashboard with health stats and quick actions
Component
app/(admin)/maintenance/integrity.tsx
Integrity check with issue categories and auto-fix
Component
app/(admin)/maintenance/bulk.tsx
Bulk operations with table selection, filters, and preview
Component
app/(admin)/maintenance/archive.tsx
Archive manager with restore and purge capabilities
Component

Convex Queries

maintenance.healthStats
Record counts, integrity score, and issue summary
Query
maintenance.integrityResults
Latest scan results grouped by issue category
Query
maintenance.auditLog
Paginated audit log with filter by action type and user
Query

Convex Mutations

maintenance.runIntegrityCheck
Full-table scan for orphans, duplicates, missing fields, stale data
Mutation
maintenance.autoFix
Auto-resolve orphaned references and fill missing required fields
Mutation
maintenance.bulkArchive
Move matching records to archive with metadata
Mutation
maintenance.restore
Restore archived records to active tables
Mutation

Maintenance Flow

Integrity Scan
Issues Detected
Auto-Fix / Review
Archive / Purge

Key Design Decisions

Non-Destructive by Default

All operations are reversible within 30 days. Archive before delete. Auto-fix only touches safe operations (orphan cleanup, field backfill). Duplicates always require manual review.

Full Audit Trail

Every maintenance operation is logged with user, timestamp, affected records, and reason. Logs are immutable and exportable for compliance. Auto-scheduled scans run every Sunday 2 AM.

2FA for Destructive Actions

Permanent deletions and purges require admin 2FA verification. Bulk operations show preview counts before execution. Archive auto-purge is set to 1 year with admin-configurable retention.