How gsai9582/labelsense works
LabelSense is a browser-based medical-device labeling compliance workflow. Its documented path runs from regulatory intelligence through change-impact analysis, template-bound label authoring, hybrid verification, and controlled release with audit evidence. The repository is a React UI with data and utility modules; the sampled code supports a few local component relationships, while most cross-phase connections come from the README. Unsampled modules are represented by their exact tree paths, without assuming their internal wiring.
Main entry points: AuditModule.tsx Audit workspace · AuthorModule.tsx Label authoring · ValidateModule.tsx Validation suite · ImpactModule.tsx Impact assessment
Components 32
Regulatory intelligence
- Regulatory intelligence
src/components/sense/SenseModule.tsx - Regulatory radar
src/components/sense/RegulatoryRadar.tsx - Clause RAG viewer
src/components/sense/ClauseRAGViewer.tsx - Rule extractor
src/components/sense/RuleExtractor.tsx - Regulatory reference data
src/data/regulatoryData.ts
Change impact
- Impact assessment
src/components/impact/ImpactModule.tsx - Digital thread graph
src/components/impact/KnowledgeGraph.tsx - ECN simulator
src/components/impact/ECNSimulator.tsx - Traversal results
src/components/impact/TraversalResults.tsx
Label authoring
- Label authoring
src/components/author/AuthorModule.tsx - Constrained slot filling
src/components/author/AntiHallucinationEditor.tsx - Artwork canvas
src/components/author/LiveArtworkCanvas.tsx - ISO symbol library
src/data/isoSymbols.ts - Translation memory
src/data/translationMemory.ts - Symbol picker
src/components/author/SymbolPicker.tsx - Translation matrix
src/components/author/TranslationMatrix.tsx
Verification
- Validation suite
src/components/validate/ValidateModule.tsx - GS1 checker
src/components/validate/GS1Checker.tsx - GS1 validation logic
src/utils/gs1Validator.ts - Vision redline
src/components/validate/VisionRedline.tsx - Back-translation check
src/components/validate/NeuralBackTranslation.tsx - Confidence routing
src/components/validate/ConfidenceRouting.tsx
Release and audit
- Audit workspace
src/components/audit/AuditModule.tsx - Why-Trace inspector
src/components/audit/WhyTraceModal.tsx - Audit timeline
src/components/audit/AuditTrailTimeline.tsx - Submission packet
src/components/audit/SubmissionPacket.tsx - Electronic signature
src/components/common/ESignatureModal.tsx - Audit hash utilities
src/utils/auditTrail.ts - Abbreviation help
src/components/common/AbbrTooltip.tsx
Other components
- Labeling operator
- Workflow application
src/App.tsx - Workflow navigation
src/components/common/Header.tsx
Connections 33
- Labeling operator → Workflow application: uses
README.md - Workflow application → Workflow navigation: presents
- Workflow application → Regulatory intelligence: starts workflow
README.md - Regulatory intelligence → Impact assessment: feeds changes
README.md - Impact assessment → Label authoring: identifies artwork
README.md - Label authoring → Validation suite: submits labels
README.md - Validation suite → Audit workspace: routes release
README.md - Regulatory intelligence → Regulatory radar: monitors updates
- Regulatory radar → Clause RAG viewer: selects update
src/components/sense/ClauseRAGViewer.tsx - Clause RAG viewer → Rule extractor: promotes rules
src/components/sense/ClauseRAGViewer.tsx - Regulatory intelligence → Regulatory reference data: uses references
- Impact assessment → Digital thread graph: explores thread
- Impact assessment → ECN simulator: simulates change
- Impact assessment → Traversal results: reports impact
- Label authoring → Constrained slot filling: fills locked fields
- Label authoring → Artwork canvas: renders artwork
- Label authoring → Symbol picker: selects symbols
- Symbol picker → ISO symbol library: uses library
- Label authoring → Translation matrix: manages localization
- Translation matrix → Translation memory: uses translations
- Validation suite → GS1 checker: checks identifiers
- GS1 checker → GS1 validation logic: validates barcode
- Validation suite → Vision redline: compares artwork
- Validation suite → Back-translation check: checks language drift
- Validation suite → Confidence routing: assigns risk tier
- Confidence routing → Abbreviation help: renders help
src/components/validate/ConfidenceRouting.tsx - Confidence routing → Electronic signature: triggers signoff
- Confidence routing → Audit workspace: opens audit
- Audit workspace → Why-Trace inspector: inspects evidence
- Audit workspace → Audit timeline: reviews events
- Audit workspace → Submission packet: exports dossier
- Audit workspace → Electronic signature: records approval
- Audit hash utilities → Audit workspace: supports hashing