QA Dashboard

Comprehensive quality assurance checklist for Base44 applications

Overall Progress

0/410%
⚛️

React Components

0/13 completed (0%)

Component file <300 lines (excluding comments)

→ Count lines in your component

HIGH PRIORITY

No nested function declarations (extract to separate component)

→ Search for 'function ' inside component body

HIGH PRIORITY

All data fetches use useQuery with unique queryKey

→ Verify no fetch() in useEffect without query client

HIGH PRIORITY

All mutations use useMutation with onSuccess handler

→ Check every state-changing action calls useMutation

HIGH PRIORITY

queryClient.invalidateQueries() called after mutations

→ Verify cache invalidation in onSuccess

HIGH PRIORITY

Loading spinner/skeleton shown while fetching

→ Test page with network throttling (DevTools)

HIGH PRIORITY

All errors trigger toast.error() notification

→ Verify onError callback on every useMutation

HIGH PRIORITY

Authorization checks (useAuth, email, role)

→ If restricted page, verify auth gate (line 1-20)

HIGH PRIORITY

Form state in single object, not scattered

→ Search for 'useState(' count—should be ≤3 per form

MEDIUM PRIORITY

Event handlers use useCallback

→ Handlers passed to children/list items wrapped in useCallback

MEDIUM PRIORITY

No inline object/array creation in render

→ Avoid { a: 1 } or [1,2,3] in JSX props

MEDIUM PRIORITY

No console.log in production code

→ Search for console.log (except in error handlers)

LOW PRIORITY

Imports organized (React, external, internal)

→ Verify import grouping and sorting

LOW PRIORITY
⚙️

Backend Functions

0/15 completed (0%)

Uses createClientFromRequest(req), not standalone clients

→ Verify import and usage in Deno.serve handler

HIGH PRIORITY

Calls await base44.auth.me() and handles null

→ Should return 403 if no auth (unless public endpoint)

HIGH PRIORITY

Permission checks before privileged operations

→ Admin-only ops check user.role === 'admin'

HIGH PRIORITY

All query params validated (safeSlice, trim, type)

→ Verify no unvalidated strings passed to DB

HIGH PRIORITY

Enum values checked against whitelist

→ Search for ALLOWED_VALUES, verify against input

HIGH PRIORITY

Field length limits enforced (prevent DoS)

→ Verify safeSlice(value, MAX_LEN) on all strings

HIGH PRIORITY

Top-level try/catch wraps Deno.serve handler

→ Verify outer catch returns Response.json error

HIGH PRIORITY

400 for validation errors, 403 for permission denied

→ Correct HTTP status for each error type

HIGH PRIORITY

No stack traces in Response.json() responses

→ Error messages user-friendly, not technical

HIGH PRIORITY

All state changes logged to FileAuditLog

→ Verify writeAudit() called with action details

HIGH PRIORITY

Timestamp, user_email, ip_address included in audit

→ Verify all fields present (no undefined)

HIGH PRIORITY

IP address masked (last octet = 0 for IPv4)

→ Verify maskIp() function applied

MEDIUM PRIORITY

Function <300 lines

→ Count lines, split if needed

MEDIUM PRIORITY

No local imports (each function deployed independently)

→ No 'import from ../other-file'

HIGH PRIORITY

npm: or jsr: prefixes on all imports

→ Verify import 'npm:@base44/sdk@0.8.25'

HIGH PRIORITY
📄

Page Integration

0/8 completed (0%)

Page exported as default and has route in App.jsx

→ Verify <Route path='/...' element={<Page />} />

HIGH PRIORITY

All data loaded from base44.entities or backend functions

→ No hardcoded test data or mock APIs

HIGH PRIORITY

List queries have sort/filter for performance

→ Verify .list('-updated_date', limit) or .filter()

MEDIUM PRIORITY

Manual test: load page, verify data displays

→ Open page in preview, check DevTools Network tab

HIGH PRIORITY

Manual test: break API, verify error message

→ Simulate error (offline, slow network)

HIGH PRIORITY

Manual test: logout, verify permission error

→ If auth-required, test unauthenticated access

HIGH PRIORITY

Page loads in <3 seconds

→ DevTools Network tab: measure total time

MEDIUM PRIORITY

No unnecessary requests (monitor Network tab)

→ Should be <5 initial requests

MEDIUM PRIORITY
🔒

Security

0/5 completed (0%)

Admin routes require email or role check

→ Verify user.email === admin_email OR user.role === 'admin'

HIGH PRIORITY

Backend enforces same permissions as frontend

→ Frontend check + backend check (never trust frontend alone)

HIGH PRIORITY

No PII in console.log or error messages

→ Search for email, password, sensitive fields in logs

HIGH PRIORITY

API responses don't include passwords/tokens

→ Response.json() never includes sensitive fields

HIGH PRIORITY

No SQL injection possible (using SDK entities, not raw SQL)

→ Verify no string concatenation in queries

HIGH PRIORITY

Next Steps

  • ✓ Work through each checklist systematically
  • ✓ Mark items as you verify/fix them
  • ✓ Export report when all items are complete
  • ✓ Include report in deployment notes
  • ✓ Revisit monthly to catch regressions