Comprehensive quality assurance checklist for Base44 applications
0/13 completed (0%)
Component file <300 lines (excluding comments)
→ Count lines in your component
No nested function declarations (extract to separate component)
→ Search for 'function ' inside component body
All data fetches use useQuery with unique queryKey
→ Verify no fetch() in useEffect without query client
All mutations use useMutation with onSuccess handler
→ Check every state-changing action calls useMutation
queryClient.invalidateQueries() called after mutations
→ Verify cache invalidation in onSuccess
Loading spinner/skeleton shown while fetching
→ Test page with network throttling (DevTools)
All errors trigger toast.error() notification
→ Verify onError callback on every useMutation
Authorization checks (useAuth, email, role)
→ If restricted page, verify auth gate (line 1-20)
Form state in single object, not scattered
→ Search for 'useState(' count—should be ≤3 per form
Event handlers use useCallback
→ Handlers passed to children/list items wrapped in useCallback
No inline object/array creation in render
→ Avoid { a: 1 } or [1,2,3] in JSX props
No console.log in production code
→ Search for console.log (except in error handlers)
Imports organized (React, external, internal)
→ Verify import grouping and sorting
0/15 completed (0%)
Uses createClientFromRequest(req), not standalone clients
→ Verify import and usage in Deno.serve handler
Calls await base44.auth.me() and handles null
→ Should return 403 if no auth (unless public endpoint)
Permission checks before privileged operations
→ Admin-only ops check user.role === 'admin'
All query params validated (safeSlice, trim, type)
→ Verify no unvalidated strings passed to DB
Enum values checked against whitelist
→ Search for ALLOWED_VALUES, verify against input
Field length limits enforced (prevent DoS)
→ Verify safeSlice(value, MAX_LEN) on all strings
Top-level try/catch wraps Deno.serve handler
→ Verify outer catch returns Response.json error
400 for validation errors, 403 for permission denied
→ Correct HTTP status for each error type
No stack traces in Response.json() responses
→ Error messages user-friendly, not technical
All state changes logged to FileAuditLog
→ Verify writeAudit() called with action details
Timestamp, user_email, ip_address included in audit
→ Verify all fields present (no undefined)
IP address masked (last octet = 0 for IPv4)
→ Verify maskIp() function applied
Function <300 lines
→ Count lines, split if needed
No local imports (each function deployed independently)
→ No 'import from ../other-file'
npm: or jsr: prefixes on all imports
→ Verify import 'npm:@base44/sdk@0.8.25'
0/8 completed (0%)
Page exported as default and has route in App.jsx
→ Verify <Route path='/...' element={<Page />} />
All data loaded from base44.entities or backend functions
→ No hardcoded test data or mock APIs
List queries have sort/filter for performance
→ Verify .list('-updated_date', limit) or .filter()
Manual test: load page, verify data displays
→ Open page in preview, check DevTools Network tab
Manual test: break API, verify error message
→ Simulate error (offline, slow network)
Manual test: logout, verify permission error
→ If auth-required, test unauthenticated access
Page loads in <3 seconds
→ DevTools Network tab: measure total time
No unnecessary requests (monitor Network tab)
→ Should be <5 initial requests
0/5 completed (0%)
Admin routes require email or role check
→ Verify user.email === admin_email OR user.role === 'admin'
Backend enforces same permissions as frontend
→ Frontend check + backend check (never trust frontend alone)
No PII in console.log or error messages
→ Search for email, password, sensitive fields in logs
API responses don't include passwords/tokens
→ Response.json() never includes sensitive fields
No SQL injection possible (using SDK entities, not raw SQL)
→ Verify no string concatenation in queries