Commit Graph
585 Commits
Author SHA1 Message Date
SepehrYahyaee 99aba7e0fd fix(validation): normalize Persian accident condition labels 2026-11-22 15:24:51 +03:30
s.hajizadeh 41a3372225 fix(fanavaran): require vehicle review and recover submitted base claims
Require approved vehicle classification before new base submissions. Allow a first review for existing base claims without damage or expertise, preserve remote IDs, and resume deferred damage submission. Keep approved submitted classifications locked and compare stage IDs and review snapshots when saving.
2026-11-22 15:23:11 +03:30
SepehrYahyaee 6b968c0952 fix(workflows): resolve QA blockers and protect case evidence
Fix registrar signing, reviewer re-entry, replacement evidence freshness, owner decision and rating races, multipart objections, vehicle serialization and product reporting.

Validate uploaded media with FFmpeg, serve evidence through expiring signed links, and add targeted regressions plus a dry-run repair for prematurely completed visit cases.
2026-11-22 12:50:22 +03:30
SepehrYahyaee 90f290154c fix(claims): reuse saved Sheba across claim workflow steps 2026-11-21 16:36:34 +03:30
SepehrYahyaee 1a38b98829 fix(inquiries): route all tenants through ESG and Fanavaran 2026-11-21 15:27:06 +03:30
s.hajizadeh 61ef4faaf4 fix(fanavaran): preserve assessed part ids in hull expertise
Use each saved expert-reply partId as AccessoryKindId and preserve its label. Resolve policy coverage separately so factory-bundle and caption matches cannot overwrite the selected part identity. Add coverage for the six-part expert reply and document the mapping.
2026-11-21 14:45:31 +03:30
s.hajizadeh 99e6fa0850 fix(fanavaran): honor supplied submission payload fields
Apply every supplied JSON field over generated defaults, preserving IDs, nested values and explicit nulls across base, damage and expertise submits. Validate manual hull payloads without rewriting their values or premium, and derive an empty replacement flag for old hull licences.
2026-11-21 13:33:41 +03:30
s.hajizadeh 83d7351310 merge upstream 2026-11-21 12:48:06 +03:30
s.hajizadeh ab3ae53ec0 new person registration + car body matching accident date with endDate 2026-11-21 12:47:50 +03:30
SepehrYahyaee e33f5736a2 fix: recover saved photo uploads and lower car-body description minimum
Read saved document status from maps and plain objects, acknowledge verified document retries without replacing stored images, and preserve upload authorization and resend behavior. Lower the car-body narrative minimum to 30 characters with Persian errors and boundary regression coverage.
2026-11-21 12:35:49 +03:30
s.hajizadeh 5c6e21dd14 fix(car-body): validate policy coverage on accident date
Validate hull coverage against the accident date, select the covering renewal, and defer validation until that date is collected.
2026-11-21 12:04:09 +03:30
s.hajizadeh cda424a536 fix(claims): defer flow 1 fanavaran submission at creation
Skip creation-time submission for Flow 1 while preserving branch validation, later staged submission, and other flows.
2026-11-21 10:33:11 +03:30
SepehrYahyaee c6022a1646 fix: support manual accident addresses and expose final Fanavaran completion
Accept and persist address-only locations across user and expert flows, preserve workflow authorization, and include addresses in reports and Fanavaran review. Expose persisted final submission completion so the expert panel can prevent repeat sends.
2026-11-21 09:45:13 +03:30
SepehrYahyaee 83376df4ad feat: manage expert access and merge Parsian expert seeds
Allow role-specific identities and admin account activation, support national-code-only claim experts, and remove required voice from v4/v5. Add a combined, resumable Parsian seed that preserves existing accounts and merges locations and product codes.
2026-11-18 17:16:26 +03:30
s.hajizadeh 2cdbc35d2e fix: return inquiry-specific Persian not-found messages 2026-11-18 12:31:44 +03:30
SepehrYahyaee e5c4b740e7 fix: make user branch selection and signature completion reliable 2026-11-16 10:40:09 +03:30
SepehrYahyaee a15c54d017 feat: route user claims by branch and align licence issue dates
Require the damaged party in user flows to select an active insurer branch and preserve branch access rules. Accept older licence issue dates, correct anniversary boundaries, and update Fanavaran audit documentation and regression coverage.
2026-11-14 12:24:14 +03:30
s.hajizadeh f021793b00 moallem client address for fanavaran modified 2026-11-14 10:03:35 +03:30
s.hajizadeh ee40b3e811 pppppp 2026-11-12 18:50:18 +03:30
s.hajizadeh 9178058173 default sets to 6 when its 1 or its null 2026-11-12 17:51:45 +03:30
s.hajizadeh 457fd0b174 warnings are just info warning now 2026-11-12 16:24:53 +03:30
s.hajizadeh 7ab6b4c03d done vehicle hull accessories 2026-11-12 15:05:16 +03:30
s.hajizadeh cbdf4fd2bc invalid image formats after two retries skips 2026-11-12 13:38:08 +03:30
s.hajizadeh af9bed3b0d vehicle hull accessories debug , either success or clear YARA error 2026-11-12 13:01:32 +03:30
s.hajizadehandCursor 3fe897031a Submit Fanavaran base on claim create for all flows.
GEN.03 no longer waits on vehicle review; V3/file-maker create triggers early auto-submit, and expertise auto-path soft-ensures prior stages when each client's body is ready.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 11:45:49 +03:30
s.hajizadeh e215dbdc03 culprit licence bug fixed , and handled some default values 2026-11-12 11:23:40 +03:30
s.hajizadeh 8b9dabc9f2 automatiacally previous stages submitted 2026-11-11 18:36:10 +03:30
s.hajizadeh 84b92eb55a update the 2 new apis for getting expertise and files of the request 2026-11-11 17:59:48 +03:30
s.hajizadeh 90bdc51715 update the IsLicenseReplaced and for the accessories 2026-11-11 17:20:02 +03:30
s.hajizadeh 54459877a2 fanavaran locations getting from branches 2026-11-11 15:29:37 +03:30
s.hajizadeh d469cce463 location dynamicallllllly finally or not ? 2026-11-11 15:07:19 +03:30
s.hajizadeh 5d84b9697f location default changed 2026-11-11 14:39:55 +03:30
s.hajizadeh 658a8a74cc dynamic locations 2026-11-11 14:10:01 +03:30
SepehrYahyaee d53922a1bc fix: reuse completed operator inquiries throughout v6 workflows 2026-11-09 19:28:04 +03:30
s.hajizadeh cc0d69dcb2 update the vehicle used , also sharh hardcoded 2026-11-09 18:34:57 +03:30
s.hajizadeh f33eabeb4f fanavaran expert codes 2026-11-09 18:05:20 +03:30
s.hajizadeh f49e6b704b expert codes 2026-11-09 17:29:35 +03:30
s.hajizadeh 6775635a81 read the expert Ids from the db not hardcoded from every flow 2026-11-09 16:31:25 +03:30
SepehrYahyaee 3073391d79 fix: keep AI provider and billing metadata out of case results 2026-11-09 15:13:51 +03:30
SepehrYahyaee 8da8170787 feat: add Moalem MIC SMS provider with shared token cache 2026-11-09 12:35:00 +03:30
SepehrYahyaee 27bd9da54a revert back the moalem fanavaran's baseURL to apimanager 2026-11-09 12:17:38 +03:30
SepehrYahyaee 755e921c08 feat: replace OpenAI pricing with AI assessment estimates
Extend durable image assessments with explicit Persian vehicle names, deployment severity settings and advisory market prices normalized to rials. Preserve case access and retry boundaries, and remove the retired OpenAI pricing module and routes.
2026-11-08 10:52:45 +03:30
SepehrYahyaee 2056412efe fix: harden profile updates and localize public errors in Persian
Preserve actor and user profile fields during partial updates and validate supported personal data.

Add Persian HTTP error handling, validation translations, regression tests, and audit documentation.
2026-11-04 12:03:04 +03:30
SepehrYahyaee e75a144e50 Changed AI to new version 2026-11-03 15:58:23 +03:30
SepehrYahyaee 6e94717cc8 fix: sms links to match the base url 2026-11-01 15:37:42 +03:30
SepehrYahyaee 9e158d4e8d fix: support user panel base path in SMS links 2026-10-31 11:08:04 +03:30
s.yahyaee e56e697e4f Merge pull request 'fix: bind Moallem auth tokens to correct host' (#368) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#368
2026-10-26 16:11:44 +03:30
SepehrYahyaee 63b1bb3e2c fix: bind Moallem auth tokens to correct host 2026-10-26 16:10:32 +03:30
s.hajizadeh 69a9fc351c lookups query and api call fixed 2026-10-24 15:10:55 +03:30
s.yahyaee fa2b1972a2 Merge pull request 'fix: enforce fake_otp variable to be false while in production' (#365) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#365
2026-10-19 11:12:28 +03:30