diff --git a/src/screens/ResultScreen.tsx b/src/screens/ResultScreen.tsx index 44d4c3f..aaa83a5 100644 --- a/src/screens/ResultScreen.tsx +++ b/src/screens/ResultScreen.tsx @@ -219,102 +219,102 @@ export function ResultScreen({ route, navigation }: ResultScreenProps) { {transponder && (chipInfo || chipFamilyInfo) && ( - setShowChipInfo(!showChipInfo)} - style={styles.chipInfoHeader} - activeOpacity={0.7}> - - ABOUT THIS CHIP - - - {showChipInfo ? '▼' : '▶'} - - + setShowChipInfo(!showChipInfo)} + style={styles.chipInfoHeader} + activeOpacity={0.7}> + + ABOUT THIS CHIP + + + {showChipInfo ? '▼' : '▶'} + + - {showChipInfo && ( - <> - + {showChipInfo && ( + <> + - {/* Family description */} - {chipFamilyInfo && ( - - {chipFamilyInfo} - - )} - - {/* Detailed chip info */} - {chipInfo && ( - <> - - {chipInfo.description} + {/* Family description */} + {chipFamilyInfo && ( + + {chipFamilyInfo} + )} + + {/* Detailed chip info */} + {chipInfo && ( + <> + + {chipInfo.description} + + + {chipInfo.memoryNote && ( + + + Memory: + + + {chipInfo.memoryNote} + + + )} - {chipInfo.memoryNote && ( - Memory: + Security: - - {chipInfo.memoryNote} + + {chipInfo.securityLevel.toUpperCase()} - )} - - - Security: + + {getSecurityLevelDescription(chipInfo.securityLevel)} - - {chipInfo.securityLevel.toUpperCase()} - - - - {getSecurityLevelDescription(chipInfo.securityLevel)} - - - {chipInfo.commonUses.length > 0 && ( - <> - - COMMON USES - - {chipInfo.commonUses.map((use, idx) => ( - - • {use} + {chipInfo.commonUses.length > 0 && ( + <> + + COMMON USES - ))} - - )} + {chipInfo.commonUses.map((use, idx) => ( + + • {use} + + ))} + + )} - {chipInfo.capabilities.length > 0 && ( - <> - - CAPABILITIES - - {chipInfo.capabilities.map((cap, idx) => ( - - • {cap} + {chipInfo.capabilities.length > 0 && ( + <> + + CAPABILITIES - ))} - - )} - - )} - - )} - + {chipInfo.capabilities.map((cap, idx) => ( + + • {cap} + + ))} + + )} + + )} + + )} + )} @@ -341,6 +341,9 @@ export function ResultScreen({ route, navigation }: ResultScreenProps) { textStyle={styles.formFactorChipText}> {product.formFactor.replace('_', ' ')} + {product.formFactor.startsWith("X") && Injectable} + {product.formFactor.startsWith("B") && Large, rigid} + {product.formFactor.startsWith("F") && Large, semi-rigid} @@ -390,28 +393,28 @@ export function ResultScreen({ route, navigation }: ResultScreenProps) { {transponder && matchResult && matchResult.exactMatches.length === 0 && matchResult.cloneTargets.length === 0 && ( - - NO DIRECT MATCH - - + + NO DIRECT MATCH + + - - {getMatchSummary(matchResult, transponder.chipName)} - + + {getMatchSummary(matchResult, transponder.chipName)} + - {matchResult.familyMatches.length > 0 && ( - <> - - Related products in the same chip family: - - {matchResult.familyMatches.slice(0, 2).map(product => ( - - • {product.name} + {matchResult.familyMatches.length > 0 && ( + <> + + Related products in the same chip family: - ))} - - )} - + {matchResult.familyMatches.slice(0, 2).map(product => ( + + • {product.name} + + ))} + + )} + )} @@ -419,29 +422,29 @@ export function ResultScreen({ route, navigation }: ResultScreenProps) { {transponder?.sakSwapInfo?.hasSakSwap && ( - - SAK SWAP DETECTED - - + + SAK SWAP DETECTED + + - - {transponder.sakSwapInfo.swapType?.replace(/_/g, ' ').toUpperCase()} - + + {transponder.sakSwapInfo.swapType?.replace(/_/g, ' ').toUpperCase()} + - - {transponder.sakSwapInfo.description} - + + {transponder.sakSwapInfo.description} + - {transponder.sakSwapInfo.notes && transponder.sakSwapInfo.notes.length > 0 && ( - - {transponder.sakSwapInfo.notes.map((note, index) => ( - - • {note} - - ))} - - )} - + {transponder.sakSwapInfo.notes && transponder.sakSwapInfo.notes.length > 0 && ( + + {transponder.sakSwapInfo.notes.map((note, index) => ( + + • {note} + + ))} + + )} + )} @@ -449,90 +452,90 @@ export function ResultScreen({ route, navigation }: ResultScreenProps) { - {tagData ? ( - <> - - - UID - - - {tagData.uid || 'N/A'} - - - - - - TECHNOLOGIES - - { - tagData.techTypes.map((t, i) => - - {t} - ) - } - - - {tagData.sak !== undefined && ( + {tagData ? ( + <> - - SAK + + UID - - 0x{tagData.sak.toString(16).toUpperCase().padStart(2, '0')} + + {tagData.uid || 'N/A'} - )} - {tagData.atqa && ( - - ATQA - - - {tagData.atqa} + + TECHNOLOGIES + { + tagData.techTypes.map((t, i) => + + {t} + ) + } - )} - {tagData.historicalBytes && ( - - - HISTORICAL BYTES - - - {tagData.historicalBytes} - - - )} - - ) : ( - - No tag data available - - )} - + {tagData.sak !== undefined && ( + + + SAK + + + 0x{tagData.sak.toString(16).toUpperCase().padStart(2, '0')} + + + )} + + {tagData.atqa && ( + + + ATQA + + + {tagData.atqa} + + + )} + + {tagData.historicalBytes && ( + + + HISTORICAL BYTES + + + {tagData.historicalBytes} + + + )} + + ) : ( + + No tag data available + + )} + {/* No Detection Card (fallback) */} {!transponder && ( - - CHIP NOT IDENTIFIED - - - - Unable to identify this chip type. It may be unsupported or require advanced detection. - - - Need help? Ask on our forum for assistance. - - Linking.openURL(buildTrackedUrl('https://dngr.us/forum', 'unknown_chip'))} - > - VISIT FORUM - - + + CHIP NOT IDENTIFIED + + + + Unable to identify this chip type. It may be unsupported or require advanced detection. + + + Need help? Ask on our forum for assistance. + + Linking.openURL(buildTrackedUrl('https://dngr.us/forum', 'unknown_chip'))} + > + VISIT FORUM + + )}