chore(data): purge residual placeholder name in docs; normalize sub_001 trade + owner email

This commit is contained in:
Satyam Rastogi
2026-05-29 05:00:22 +05:30
parent 55ede33c2f
commit f794ec28b4
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -97,14 +97,14 @@ function getDocType(filename) {
function seedDocsMock(projectId) {
const all = [
{ id: 'doc_1', name: 'Insurance Claim Form.pdf', uploadedBy: 'Sarah Owner', uploadedDate: '2026-01-15', size: '245 KB', notes: 'Original claim submitted. Claim #TX-9920-881.' },
{ id: 'doc_1', name: 'Insurance Claim Form.pdf', uploadedBy: 'Justin Johnson', uploadedDate: '2026-01-15', size: '245 KB', notes: 'Original claim submitted. Claim #TX-9920-881.' },
{ id: 'doc_2', name: 'Roof Inspection Report.pdf', uploadedBy: 'Cody Tatum', uploadedDate: '2026-01-18', size: '1.2 MB', notes: 'Hail damage confirmed on north face. See page 7.' },
{ id: 'doc_3', name: 'Adjuster Notes.docx', uploadedBy: 'Sarah Owner', uploadedDate: '2026-01-22', size: '38 KB', notes: '' },
{ id: 'doc_3', name: 'Adjuster Notes.docx', uploadedBy: 'Justin Johnson', uploadedDate: '2026-01-22', size: '38 KB', notes: '' },
{ id: 'doc_4', name: 'Signed Contract.pdf', uploadedBy: 'Cody Tatum', uploadedDate: '2026-02-01', size: '512 KB', notes: 'Fully executed. Watch payment schedule on page 4.' },
{ id: 'doc_5', name: 'Before Photo - Front.jpg', uploadedBy: 'Cody Tatum', uploadedDate: '2026-02-03', size: '3.1 MB', notes: 'Taken before work started.' },
{ id: 'doc_6', name: 'Material Spec Sheet.md', uploadedBy: 'Sarah Owner', uploadedDate: '2026-02-05', size: '12 KB', notes: 'Owens Corning Duration — Class 4 IR.' },
{ id: 'doc_6', name: 'Material Spec Sheet.md', uploadedBy: 'Justin Johnson', uploadedDate: '2026-02-05', size: '12 KB', notes: 'Owens Corning Duration — Class 4 IR.' },
{ id: 'doc_7', name: 'Site Sketch.png', uploadedBy: 'Cody Tatum', uploadedDate: '2026-02-08', size: '890 KB', notes: '' },
{ id: 'doc_8', name: 'Work Order.txt', uploadedBy: 'Sarah Owner', uploadedDate: '2026-02-10', size: '4 KB', notes: 'Internal work order #WO-2026-044.' },
{ id: 'doc_8', name: 'Work Order.txt', uploadedBy: 'Justin Johnson', uploadedDate: '2026-02-10', size: '4 KB', notes: 'Internal work order #WO-2026-044.' },
];
const seed = projectId.charCodeAt(projectId.length - 1) % 4;
return all.slice(0, 4 + seed);