2.0 KiB
2.0 KiB
Task D.7.3 CSV Template Generator Static Template Pack
Date: 2026-07-02 Status: implemented
Scope Delivered
Created the official static setup CSV template pack under setup/templates/.
Generated supported CSV files:
organizations.csvusers.csvmemberships.csvcrm-role-assignments.csvmaster-options.csvbranches.csvproduct-types.csvdocument-sequences.csvapproval-workflows.csvapproval-steps.csvapproval-matrix.csvcustomers.csvcontacts.csvcontact-shares.csvleads.csvopportunities.csvopportunity-parties.csvquotations.csvquotation-items.csvquotation-parties.csvquotation-topics.csvquotation-topic-items.csv
Supporting files:
setup/templates/README.mdsetup/templates/templates.json
Optional read-only metadata API:
GET /api/setup/templates
Safety Notes
- No CSV parser was implemented.
- No CSV validation/preview engine was implemented.
- No CSV commit/import logic was implemented.
- No seed execution was implemented.
- No reset/reseed logic was implemented.
- No unsupported CSV files were generated.
- Sample
users.csvleavespasswordempty to avoid embedding secrets.
Verification
- Template structure check: 22 CSV files; each has one header row and one sample row.
- Column count check: every sample row has the same column count as its header row.
- Unsupported template check: no unsupported CSV files were present.
templates.jsonparse check: passed; 22 templates listed.npm run typecheck: passed.npx oxlint src/app/api/setup setup/templates: passed.npm run lint: failed due to pre-existing unrelated repo lint issues outside this task, includingsrc/features/foundation/document-template/server/management-service.tsand skill asset scripts.
Follow-up
- D.7.4 should use
setup/templates/templates.jsonand the CSV headers as the source contract for preview validation. - D.7.6 can call
GET /api/setup/templatesfor template metadata.