feat(dtc): DTC veri kaynağı soyutlaması — büyümeye hazır iskele (PR-DTC-1)#17
Merged
Conversation
…TC-1) Faz 2 temeli. Büyük veri EKLENMEDİ, davranış korundu. - yeni src/platform/obd/dtcDataSource.ts: DTC tipleri + veri-kaynağı registry (registerDtcCatalog/resolveDtcRecord) + LAZY yükleme iskeleti (registerLazyDtcSource/ensureExtendedDtcLoaded — bundle-güvenli, talep üzerine). - DTCCode tipi AI teşhis için genişletildi (hepsi OPSİYONEL): trDescription, driveSafe, estimatedCost, repairSuggestions, relatedPids. - dtcService: tek çözümleme noktası resolveDtcRecord'a bağlandı; DTC_DB hot-core olarak kaydedildi; _lookupCode → public lookupDtc (saf/senkron). Tipler dtcDataSource'tan re-export (geriye dönük uyumlu). - 49 çekirdek kodun davranışı BİREBİR korunur; lazy kaynak yok → bundle şişmez. - test: çekirdek kod bulunuyor + normalize + bilinmeyen fallback + yeni alanlar default undefined + ek katalog genişleme + lazy iskelet merge. Büyük DTC verisi/200+ kod/PID genişletme/Renault DID: KAPSAM DIŞI (sonraki PR'lar). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BGyEuFVP2aaEwC3JRdyUGe
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Özet
OBD genişletme planı PR-DTC-1 (Faz 2 temeli). DTC veri kaynağını büyümeye hazır hale getirir — büyük veri EKLEMEDEN, davranışı bozmadan, bundle şişirmeden.
Yeni Mimari
src/platform/obd/dtcDataSource.ts(yeni):registerDtcCatalog/resolveDtcRecord(senkron, yalnız yüklü kaynaklar)registerLazyDtcSource(loader)+ensureExtendedDtcLoaded()— geniş kataloglar (P0 kuyruk/P1/B/C/U) yalnız talep üzerine dinamik import; aksi halde bundle'a girmez (Mali-400 ilk-yükleme bütçesi).DTCCodegenişletildi (hepsi OPSİYONEL — AI teşhis Faz 4 için):trDescription,driveSafe,estimatedCost,repairSuggestions,relatedPids.dtcService.ts:resolveDtcRecord'a bağlandı;DTC_DBhot-core olarak kaydedildi._lookupCode→ publiclookupDtc(saf/senkron — sesli asistan & bakım beyni de tüketebilir).preloadExtendedDtcCatalogexport'u (UI tam kataloğu tetikler).Testler (
src/__tests__/dtcService.test.ts)undefined(davranış bozulmuyor)registerLazyDtcSource+ensureExtendedDtcLoadedmerge ediyorRisk
import { DTCCode } from './dtcService'çalışmaya devam eder).🤖 Generated with Claude Code