Project Spec: 02-document-library.md

Stack: React (TypeScript) + Supabase

Evaluator: ___________

Submission Date: ___________

Pass Threshold: 90%


How to Mark

  • [✓] Fully correct
  • [~] Partial — note the gap below the item
  • [✗] Missing or wrong

1. Database — `folders` Table









2. Database — `documents` Table












3. RLS Policies

folders table:




documents table:




storage.objects (workspace-docs bucket):




4. Storage Bucket — `workspace-docs`







5. RPC — `create_folder`












6. React — Document Library Page













7. React — Upload File Modal













8. React — Create Folder Modal







9. React — Download File








10. React — Delete File / Delete Folder

Delete File:





Delete Folder:





11. React — Breadcrumb Navigation








12. TypeScript & Standards Compliance










Score Summary

Section Total Items ✓ Pass ~ Partial ✗ Fail
1. folders Table 8
2. documents Table 10
3. RLS Policies 8
4. Storage Bucket 6
5. create_folder RPC 11
6. Library Page 12
7. Upload Modal 12
8. Create Folder Modal 6
9. Download 7
10. Delete 8
11. Breadcrumb 7
12. Standards 8
Total 103

Score: ___ / 103 (___%) — Pass / Conditional / Fail


Evaluator Notes

_Record specific failures, partial items, or other observations here._