react-native-inapp-inspector 2.3.15 → 2.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +438 -7
- package/bin/cli.js +0 -0
- package/dist/commonjs/capture.d.ts +26 -0
- package/dist/commonjs/capture.js +32 -0
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
- package/dist/commonjs/components/AnimatedEntrance.js +6 -70
- package/dist/commonjs/components/DomainHeader.js +3 -48
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/HeadersSection.js +14 -34
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -24
- package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -23
- package/dist/commonjs/components/Inspector/CrashTab.js +4 -25
- package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +552 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +675 -285
- package/dist/commonjs/components/Inspector/MainScreen.js +66 -69
- package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +196 -206
- package/dist/commonjs/components/Inspector/NpmStarPrompt.d.ts +3 -0
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +494 -0
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
- package/dist/commonjs/components/Inspector/PerformanceTab.js +8 -1
- package/dist/commonjs/components/Inspector/ReduxTab.js +4 -24
- package/dist/commonjs/components/Inspector/SettingsPanel.js +1280 -173
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/Inspector/StorageTab.js +3 -26
- package/dist/commonjs/components/Inspector/TabBar.js +55 -25
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
- package/dist/commonjs/components/JsonViewer.js +43 -20
- package/dist/commonjs/components/LogCard.js +5 -5
- package/dist/commonjs/components/MetaAccordion.js +78 -80
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +83 -2
- package/dist/commonjs/components/SectionHeader.js +3 -48
- package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/SourcePageCard.js +43 -45
- package/dist/commonjs/components/Toast.js +4 -4
- package/dist/commonjs/components/TouchableScale.js +9 -65
- package/dist/commonjs/components/TreeNode.js +2 -14
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
- package/dist/commonjs/customHooks/useAccordion.js +6 -36
- package/dist/commonjs/helpers/index.d.ts +3 -1
- package/dist/commonjs/helpers/index.js +11 -1
- package/dist/commonjs/helpers/remoteConfig.d.ts +4 -0
- package/dist/commonjs/helpers/remoteConfig.js +165 -0
- package/dist/commonjs/helpers/searchQueryParser.js +2 -0
- package/dist/commonjs/helpers/telemetry.d.ts +5 -0
- package/dist/commonjs/helpers/telemetry.js +339 -8
- package/dist/commonjs/i18n/locales/en.json +66 -2
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.js +70 -23
- package/dist/commonjs/native/NativeInspector.d.ts +60 -0
- package/dist/commonjs/native/NativeInspector.js +109 -2
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/commonjs/styles/AppColors.d.ts +36 -0
- package/dist/commonjs/styles/AppColors.js +36 -0
- package/dist/commonjs/styles/AppFonts.d.ts +2 -0
- package/dist/commonjs/styles/AppFonts.js +1 -0
- package/dist/commonjs/styles/index.d.ts +25 -1
- package/dist/commonjs/styles/index.js +22 -1
- package/dist/commonjs/types/enums.d.ts +2 -0
- package/dist/commonjs/types/enums.js +2 -0
- package/dist/commonjs/types/index.d.ts +2 -2
- package/dist/commonjs/types/interfaces.d.ts +12 -0
- package/dist/esm/capture.d.ts +26 -0
- package/dist/esm/capture.js +29 -0
- package/dist/esm/components/AnalyticsEventCard.js +11 -11
- package/dist/esm/components/AnimatedEntrance.js +4 -38
- package/dist/esm/components/DomainHeader.js +4 -16
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/HeadersSection.js +16 -36
- package/dist/esm/components/Inspector/AnalyticsTab.js +3 -26
- package/dist/esm/components/Inspector/ConsoleTab.js +3 -25
- package/dist/esm/components/Inspector/CrashTab.js +6 -27
- package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +7 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +515 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +678 -288
- package/dist/esm/components/Inspector/MainScreen.js +67 -70
- package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
- package/dist/esm/components/Inspector/NetworkTab.js +199 -209
- package/dist/esm/components/Inspector/NpmStarPrompt.d.ts +3 -0
- package/dist/esm/components/Inspector/NpmStarPrompt.js +454 -0
- package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
- package/dist/esm/components/Inspector/PerformanceTab.js +8 -1
- package/dist/esm/components/Inspector/ReduxTab.js +6 -26
- package/dist/esm/components/Inspector/SettingsPanel.js +1283 -176
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/Inspector/StorageTab.js +3 -26
- package/dist/esm/components/Inspector/TabBar.js +56 -26
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
- package/dist/esm/components/JsonViewer.js +43 -20
- package/dist/esm/components/LogCard.js +5 -5
- package/dist/esm/components/MetaAccordion.js +79 -81
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +68 -0
- package/dist/esm/components/SectionHeader.js +4 -16
- package/dist/esm/components/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/SourcePageCard.js +44 -46
- package/dist/esm/components/Toast.js +4 -4
- package/dist/esm/components/TouchableScale.js +7 -33
- package/dist/esm/components/TreeNode.js +4 -16
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/useAccordion.d.ts +3 -8
- package/dist/esm/customHooks/useAccordion.js +7 -37
- package/dist/esm/helpers/index.d.ts +3 -1
- package/dist/esm/helpers/index.js +9 -0
- package/dist/esm/helpers/remoteConfig.d.ts +4 -0
- package/dist/esm/helpers/remoteConfig.js +160 -0
- package/dist/esm/helpers/searchQueryParser.js +2 -0
- package/dist/esm/helpers/telemetry.d.ts +5 -0
- package/dist/esm/helpers/telemetry.js +332 -9
- package/dist/esm/i18n/locales/en.json +66 -2
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +66 -23
- package/dist/esm/native/NativeInspector.d.ts +60 -0
- package/dist/esm/native/NativeInspector.js +100 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/esm/styles/AppColors.d.ts +36 -0
- package/dist/esm/styles/AppColors.js +36 -0
- package/dist/esm/styles/AppFonts.d.ts +2 -0
- package/dist/esm/styles/AppFonts.js +1 -0
- package/dist/esm/styles/index.d.ts +25 -1
- package/dist/esm/styles/index.js +22 -1
- package/dist/esm/types/enums.d.ts +2 -0
- package/dist/esm/types/enums.js +2 -0
- package/dist/esm/types/index.d.ts +2 -2
- package/dist/esm/types/interfaces.d.ts +12 -0
- package/ios/NetworkInspectorModule.h +1 -0
- package/ios/NetworkInspectorModule.mm +736 -7
- package/package.json +10 -2
- package/react-native-inapp-inspector.podspec +1 -0
- package/src/capture.ts +101 -0
- package/src/components/AnalyticsEventCard.tsx +15 -13
- package/src/components/AnimatedEntrance.tsx +3 -47
- package/src/components/DomainHeader.tsx +4 -17
- package/src/components/EmptyState.tsx +2 -2
- package/src/components/HeadersSection.tsx +31 -56
- package/src/components/Inspector/AnalyticsTab.tsx +2 -25
- package/src/components/Inspector/ConsoleTab.tsx +2 -24
- package/src/components/Inspector/CrashTab.tsx +4 -25
- package/src/components/Inspector/DebuggingTab.tsx +2 -2
- package/src/components/Inspector/FeedbackModal.tsx +626 -0
- package/src/components/Inspector/InspectorHeader.tsx +1230 -728
- package/src/components/Inspector/MainScreen.tsx +97 -82
- package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
- package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
- package/src/components/Inspector/NetworkTab.tsx +83 -93
- package/src/components/Inspector/NpmStarPrompt.tsx +532 -0
- package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
- package/src/components/Inspector/PerformanceTab.tsx +8 -1
- package/src/components/Inspector/ReduxTab.tsx +5 -25
- package/src/components/Inspector/SettingsPanel.tsx +1493 -225
- package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
- package/src/components/Inspector/StorageTab.tsx +3 -26
- package/src/components/Inspector/TabBar.tsx +63 -32
- package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
- package/src/components/JsonViewer.tsx +101 -60
- package/src/components/LogCard.tsx +10 -8
- package/src/components/MetaAccordion.tsx +6 -6
- package/src/components/NetworkIcons.tsx +242 -0
- package/src/components/SectionHeader.tsx +4 -16
- package/src/components/SkeletonPlaceholder.tsx +2 -2
- package/src/components/SourcePageCard.tsx +57 -55
- package/src/components/Toast.tsx +4 -4
- package/src/components/TouchableScale.tsx +8 -38
- package/src/components/TreeNode.tsx +5 -20
- package/src/constants/telemetryConfig.ts +3 -5
- package/src/constants/version.ts +1 -1
- package/src/customHooks/useAccordion.tsx +10 -43
- package/src/helpers/index.ts +11 -1
- package/src/helpers/remoteConfig.ts +212 -0
- package/src/helpers/searchQueryParser.ts +3 -0
- package/src/helpers/telemetry.ts +381 -10
- package/src/i18n/locales/en.json +69 -2
- package/src/index.tsx +93 -23
- package/src/native/NativeInspector.ts +186 -1
- package/src/native/NativeNetworkInspector.ts +9 -0
- package/src/styles/AppColors.ts +38 -0
- package/src/styles/AppFonts.ts +2 -0
- package/src/styles/index.ts +23 -2
- package/src/types/enums.ts +4 -0
- package/src/types/index.ts +2 -2
- package/src/types/interfaces.ts +12 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/reports/problems/problems-report.html +0 -659
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useRef } from 'react';
|
|
2
|
-
import { FlatList, Pressable, ScrollView, Text, TextInput, View, } from 'react-native';
|
|
3
|
-
import {
|
|
2
|
+
import { FlatList, Platform, Pressable, ScrollView, Text, TextInput, View, } from 'react-native';
|
|
3
|
+
import { useInspector } from './InspectorContext';
|
|
4
4
|
import TouchableScale from '../TouchableScale';
|
|
5
5
|
import AnimatedEntrance from '../AnimatedEntrance';
|
|
6
6
|
import DomainHeader from '../DomainHeader';
|
|
@@ -13,7 +13,7 @@ import { AppColors } from '../../styles/AppColors';
|
|
|
13
13
|
import { AppFonts } from '../../styles/AppFonts';
|
|
14
14
|
import { METHOD_COLORS } from '../../constants';
|
|
15
15
|
import { useTranslation } from '../../i18n';
|
|
16
|
-
import { SearchIcon, ClearIcon, TrashIcon, SortArrowIcon, FilterIcon,
|
|
16
|
+
import { SearchIcon, ClearIcon, TrashIcon, SortArrowIcon, FilterIcon, CircleCheckIcon, CircleXIcon, LayersIcon, HeaderPauseIcon, ClockIcon, RequestIcon, ResponseIcon, AtomIcon, } from '../NetworkIcons';
|
|
17
17
|
const NetworkTab = React.memo(() => {
|
|
18
18
|
const { groupedData, search, setSearch, searchScope, setSearchScope, isRegexSearch, setIsRegexSearch, isCaseSensitive, setIsCaseSensitive, quickFilter, setQuickFilter, handleDelete, selectedLogs, sortOrder, setSortOrder, statusFilters, setStatusFilters, methodFilters, setMethodFilters, availableMethods, filteredLogs, logs, toggleSectionFilter, toggleSectionCollapse, minStart, totalRange, newLogIds, toggleSelect, setSelected, isNetworkPaused, setIsNetworkPaused, } = useInspector();
|
|
19
19
|
const { t } = useTranslation();
|
|
@@ -190,7 +190,6 @@ const NetworkTab = React.memo(() => {
|
|
|
190
190
|
</View>
|
|
191
191
|
<View style={styles.treeCardWrapper}>
|
|
192
192
|
<LogCard item={log} isSelected={selectedLogs.has(log.id)} onToggleSelect={toggleSelect} onPress={() => {
|
|
193
|
-
animateNextLayout();
|
|
194
193
|
setSelected(log);
|
|
195
194
|
}} timelineMinStart={minStart} timelineTotalRange={totalRange} isNew={newLogIds.has(log.id)} searchStr={search}/>
|
|
196
195
|
</View>
|
|
@@ -207,33 +206,33 @@ const NetworkTab = React.memo(() => {
|
|
|
207
206
|
setSelected,
|
|
208
207
|
]);
|
|
209
208
|
return (<View style={{ flex: 1 }}>
|
|
210
|
-
<
|
|
209
|
+
<View style={{ marginTop: 6 }}>
|
|
211
210
|
|
|
212
211
|
{networkMetrics != null && networkMetrics.totalCount > 0 && (<View style={{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
212
|
+
flexDirection: 'row',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
justifyContent: 'space-between',
|
|
215
|
+
backgroundColor: AppColors.grayBackground,
|
|
216
|
+
borderRadius: 8,
|
|
217
|
+
paddingHorizontal: 10,
|
|
218
|
+
paddingVertical: 5.5,
|
|
219
|
+
marginHorizontal: 12,
|
|
220
|
+
marginBottom: 6,
|
|
221
|
+
borderWidth: 1,
|
|
222
|
+
borderColor: AppColors.dividerColor,
|
|
223
|
+
}}>
|
|
225
224
|
|
|
226
225
|
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 4.5 }}>
|
|
227
226
|
<View style={{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
227
|
+
width: 6,
|
|
228
|
+
height: 6,
|
|
229
|
+
borderRadius: 3,
|
|
230
|
+
backgroundColor: networkMetrics.successRate >= 95
|
|
231
|
+
? AppColors.greenColor
|
|
232
|
+
: networkMetrics.successRate >= 80
|
|
233
|
+
? AppColors.amber500
|
|
234
|
+
: AppColors.errorColor,
|
|
235
|
+
}}/>
|
|
237
236
|
<Text style={{ fontFamily: AppFonts.interBold, fontSize: 10.5, color: AppColors.primaryBlack }}>
|
|
238
237
|
{networkMetrics.successRate}%
|
|
239
238
|
</Text>
|
|
@@ -271,33 +270,33 @@ const NetworkTab = React.memo(() => {
|
|
|
271
270
|
|
|
272
271
|
<View style={styles.toolbarRow}>
|
|
273
272
|
<View style={[
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
273
|
+
styles.searchContainer,
|
|
274
|
+
isSearchFocused && {
|
|
275
|
+
borderColor: AppColors.purple,
|
|
276
|
+
borderWidth: 1.5,
|
|
277
|
+
},
|
|
278
|
+
]}>
|
|
280
279
|
<SearchIcon color={isSearchFocused
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
? AppColors.purple
|
|
281
|
+
: AppColors.grayTextWeak} size={15}/>
|
|
283
282
|
<TextInput placeholder="Search URL, status, method, headers, body..." placeholderTextColor={AppColors.grayTextWeak} value={search} onChangeText={setSearch} onFocus={() => setIsSearchFocused(true)} onBlur={() => setIsSearchFocused(false)} style={styles.searchInput} autoCorrect={false} autoCapitalize="none"/>
|
|
284
283
|
|
|
285
284
|
{search.length > 0 && (<View style={{
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
flexDirection: 'row',
|
|
286
|
+
alignItems: 'center',
|
|
287
|
+
gap: 4,
|
|
288
|
+
}}>
|
|
290
289
|
<View style={{
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
backgroundColor: `${AppColors.purple}20`,
|
|
291
|
+
borderRadius: 10,
|
|
292
|
+
paddingHorizontal: 6,
|
|
293
|
+
paddingVertical: 1.5,
|
|
294
|
+
}}>
|
|
296
295
|
<Text style={{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
color: AppColors.purple,
|
|
297
|
+
fontSize: 9.5,
|
|
298
|
+
fontFamily: AppFonts.interBold,
|
|
299
|
+
}}>
|
|
301
300
|
{filteredLogs.length}
|
|
302
301
|
</Text>
|
|
303
302
|
</View>
|
|
@@ -309,24 +308,24 @@ const NetworkTab = React.memo(() => {
|
|
|
309
308
|
|
|
310
309
|
<View style={styles.toolbarRight}>
|
|
311
310
|
<TouchableScale style={[
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
styles.toolbarBtn,
|
|
312
|
+
isNetworkPaused && {
|
|
313
|
+
borderColor: `${AppColors.darkOrange}50`,
|
|
314
|
+
backgroundColor: `${AppColors.darkOrange}18`,
|
|
315
|
+
},
|
|
316
|
+
]} onPress={() => setIsNetworkPaused(p => !p)} hitSlop={6}>
|
|
318
317
|
<HeaderPauseIcon isPaused={isNetworkPaused} color={isNetworkPaused
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
? AppColors.darkOrange
|
|
319
|
+
: AppColors.grayTextStrong} size={16}/>
|
|
321
320
|
</TouchableScale>
|
|
322
321
|
|
|
323
322
|
<TouchableScale style={[
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
323
|
+
styles.toolbarBtn,
|
|
324
|
+
{
|
|
325
|
+
borderColor: `${AppColors.errorColor}38`,
|
|
326
|
+
backgroundColor: `${AppColors.errorColor}0F`,
|
|
327
|
+
},
|
|
328
|
+
]} onPress={handleDelete} hitSlop={6}>
|
|
330
329
|
<TrashIcon color={AppColors.errorColor} size={15}/>
|
|
331
330
|
{selectedLogs.size > 0 && (<View style={styles.trashBadge}>
|
|
332
331
|
<Text style={styles.trashBadgeText}>
|
|
@@ -340,51 +339,57 @@ const NetworkTab = React.memo(() => {
|
|
|
340
339
|
</TouchableScale>
|
|
341
340
|
|
|
342
341
|
<TouchableScale style={[
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
342
|
+
styles.toolbarBtn,
|
|
343
|
+
(statusFilters.size > 0 || methodFilters.size > 0) && {
|
|
344
|
+
borderColor: AppColors.purple,
|
|
345
|
+
backgroundColor: `${AppColors.purple}15`,
|
|
346
|
+
},
|
|
347
|
+
]} onPress={() => setIsFilterModalOpen(true)} hitSlop={6}>
|
|
349
348
|
<FilterIcon color={statusFilters.size > 0 || methodFilters.size > 0
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
? AppColors.purple
|
|
350
|
+
: AppColors.grayTextStrong} size={16}/>
|
|
352
351
|
{(statusFilters.size > 0 ||
|
|
353
|
-
|
|
352
|
+
methodFilters.size > 0) && (<View style={styles.activeFilterDot}/>)}
|
|
354
353
|
</TouchableScale>
|
|
355
354
|
</View>
|
|
356
355
|
</View>
|
|
357
356
|
|
|
358
357
|
|
|
359
|
-
<View style={{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
358
|
+
<View style={{
|
|
359
|
+
flexDirection: 'row',
|
|
360
|
+
alignItems: 'center',
|
|
361
|
+
marginBottom: 8,
|
|
362
|
+
paddingHorizontal: 12,
|
|
363
|
+
gap: 6,
|
|
364
|
+
}}>
|
|
365
|
+
<ScrollView horizontal showsHorizontalScrollIndicator={false} style={{ flex: 1 }} contentContainerStyle={{
|
|
366
|
+
flexDirection: 'row',
|
|
367
|
+
alignItems: 'center',
|
|
368
|
+
gap: 6,
|
|
369
|
+
paddingRight: 6,
|
|
370
|
+
}}>
|
|
366
371
|
{QUICK_CHIPS.map(chip => {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
372
|
+
const isActive = quickFilter === chip.id;
|
|
373
|
+
const chipColor = chip.color || AppColors.purple;
|
|
374
|
+
const iconColor = isActive ? AppColors.white : chipColor;
|
|
375
|
+
return (<TouchableScale key={chip.id} onPress={() => {
|
|
376
|
+
setQuickFilter(isActive ? 'all' : chip.id);
|
|
377
|
+
}}>
|
|
373
378
|
<View style={{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
379
|
+
flexDirection: 'row',
|
|
380
|
+
alignItems: 'center',
|
|
381
|
+
paddingHorizontal: 9,
|
|
382
|
+
paddingVertical: 4.5,
|
|
383
|
+
borderRadius: 8,
|
|
384
|
+
backgroundColor: isActive
|
|
385
|
+
? chipColor
|
|
386
|
+
: `${chipColor}12`,
|
|
387
|
+
borderWidth: 1,
|
|
388
|
+
borderColor: isActive
|
|
389
|
+
? chipColor
|
|
390
|
+
: `${chipColor}30`,
|
|
391
|
+
gap: 5,
|
|
392
|
+
}}>
|
|
388
393
|
{chip.id === 'all' && <LayersIcon size={11} color={iconColor}/>}
|
|
389
394
|
{chip.id === 'errors' && <CircleXIcon size={11} color={iconColor}/>}
|
|
390
395
|
{chip.id === 'success' && <CircleCheckIcon size={11} color={iconColor}/>}
|
|
@@ -393,122 +398,129 @@ const NetworkTab = React.memo(() => {
|
|
|
393
398
|
{chip.id === 'GET' && <ResponseIcon size={11} color={iconColor}/>}
|
|
394
399
|
{chip.id === 'graphql' && <AtomIcon size={11} color={iconColor}/>}
|
|
395
400
|
<Text style={{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
401
|
+
fontFamily: AppFonts.interBold,
|
|
402
|
+
fontSize: 10.5,
|
|
403
|
+
color: isActive
|
|
404
|
+
? AppColors.white
|
|
405
|
+
: AppColors.primaryBlack,
|
|
406
|
+
}}>
|
|
402
407
|
{chip.label}
|
|
403
408
|
</Text>
|
|
404
409
|
<View style={{
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
backgroundColor: isActive
|
|
411
|
+
? 'rgba(255,255,255,0.25)'
|
|
412
|
+
: `${chipColor}20`,
|
|
413
|
+
paddingHorizontal: 5,
|
|
414
|
+
paddingVertical: 1,
|
|
415
|
+
borderRadius: 8,
|
|
416
|
+
}}>
|
|
412
417
|
<Text style={{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
418
|
+
fontFamily: AppFonts.interBold,
|
|
419
|
+
fontSize: 9,
|
|
420
|
+
color: isActive ? AppColors.white : chipColor,
|
|
421
|
+
}}>
|
|
417
422
|
{chip.count}
|
|
418
423
|
</Text>
|
|
419
424
|
</View>
|
|
420
425
|
</View>
|
|
421
426
|
</TouchableScale>);
|
|
422
|
-
|
|
427
|
+
})}
|
|
428
|
+
</ScrollView>
|
|
423
429
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
? AppColors.purple
|
|
437
|
-
: AppColors.grayBorderSecondary,
|
|
438
|
-
gap: 5,
|
|
439
|
-
}}>
|
|
440
|
-
<FilterIcon size={11} color={statusFilters.size > 0 || methodFilters.size > 0
|
|
430
|
+
<TouchableScale onPress={() => setIsFilterModalOpen(true)} style={{ flexShrink: 0 }}>
|
|
431
|
+
<View style={{
|
|
432
|
+
flexDirection: 'row',
|
|
433
|
+
alignItems: 'center',
|
|
434
|
+
paddingHorizontal: 10,
|
|
435
|
+
paddingVertical: 4.5,
|
|
436
|
+
borderRadius: 8,
|
|
437
|
+
backgroundColor: statusFilters.size > 0 || methodFilters.size > 0
|
|
438
|
+
? `${AppColors.purple}20`
|
|
439
|
+
: AppColors.grayBackground,
|
|
440
|
+
borderWidth: 1,
|
|
441
|
+
borderColor: statusFilters.size > 0 || methodFilters.size > 0
|
|
441
442
|
? AppColors.purple
|
|
442
|
-
: AppColors.
|
|
443
|
-
|
|
443
|
+
: AppColors.grayBorderSecondary,
|
|
444
|
+
gap: 5,
|
|
445
|
+
shadowColor: AppColors.black,
|
|
446
|
+
shadowOpacity: 0.04,
|
|
447
|
+
shadowRadius: 2,
|
|
448
|
+
shadowOffset: { width: 0, height: 1 },
|
|
449
|
+
elevation: 1,
|
|
450
|
+
}}>
|
|
451
|
+
<FilterIcon size={11} color={statusFilters.size > 0 || methodFilters.size > 0
|
|
452
|
+
? AppColors.purple
|
|
453
|
+
: AppColors.grayText}/>
|
|
454
|
+
<Text style={{
|
|
455
|
+
fontFamily: AppFonts.interBold,
|
|
456
|
+
fontSize: 10.5,
|
|
457
|
+
color: statusFilters.size > 0 || methodFilters.size > 0
|
|
458
|
+
? AppColors.purple
|
|
459
|
+
: AppColors.grayText,
|
|
460
|
+
}}>
|
|
461
|
+
More Filters
|
|
462
|
+
</Text>
|
|
463
|
+
{(statusFilters.size > 0 || methodFilters.size > 0) && (<View style={{
|
|
464
|
+
backgroundColor: AppColors.purple,
|
|
465
|
+
paddingHorizontal: 4.5,
|
|
466
|
+
paddingVertical: 1,
|
|
467
|
+
borderRadius: 6,
|
|
468
|
+
}}>
|
|
469
|
+
<Text style={{
|
|
444
470
|
fontFamily: AppFonts.interBold,
|
|
445
|
-
fontSize:
|
|
446
|
-
color:
|
|
447
|
-
? AppColors.purple
|
|
448
|
-
: AppColors.grayText,
|
|
471
|
+
fontSize: 8.5,
|
|
472
|
+
color: AppColors.white,
|
|
449
473
|
}}>
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
paddingVertical: 1,
|
|
456
|
-
borderRadius: 6,
|
|
457
|
-
}}>
|
|
458
|
-
<Text style={{
|
|
459
|
-
fontFamily: AppFonts.interBold,
|
|
460
|
-
fontSize: 8.5,
|
|
461
|
-
color: AppColors.white,
|
|
462
|
-
}}>
|
|
463
|
-
{statusFilters.size + methodFilters.size}
|
|
464
|
-
</Text>
|
|
465
|
-
</View>)}
|
|
466
|
-
</View>
|
|
467
|
-
</TouchableScale>
|
|
468
|
-
</ScrollView>
|
|
474
|
+
{statusFilters.size + methodFilters.size}
|
|
475
|
+
</Text>
|
|
476
|
+
</View>)}
|
|
477
|
+
</View>
|
|
478
|
+
</TouchableScale>
|
|
469
479
|
</View>
|
|
470
480
|
|
|
471
481
|
|
|
472
482
|
{(quickFilter !== 'all' ||
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
search.trim().length > 0 ||
|
|
484
|
+
statusFilters.size > 0 ||
|
|
485
|
+
methodFilters.size > 0 ||
|
|
486
|
+
filteredLogs.length !== logs.length) && (<View style={{
|
|
487
|
+
flexDirection: 'row',
|
|
488
|
+
alignItems: 'center',
|
|
489
|
+
justifyContent: 'space-between',
|
|
490
|
+
marginHorizontal: 12,
|
|
491
|
+
marginBottom: 8,
|
|
492
|
+
paddingHorizontal: 10,
|
|
493
|
+
paddingVertical: 5.5,
|
|
494
|
+
backgroundColor: `${AppColors.purple}10`,
|
|
495
|
+
borderRadius: 8,
|
|
496
|
+
borderWidth: 1,
|
|
497
|
+
borderColor: `${AppColors.purple}25`,
|
|
498
|
+
}}>
|
|
489
499
|
<Text style={{
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
500
|
+
fontFamily: AppFonts.interMedium,
|
|
501
|
+
fontSize: 10.5,
|
|
502
|
+
color: AppColors.purple,
|
|
503
|
+
}}>
|
|
494
504
|
Showing {filteredLogs.length} of {logs.length} requests
|
|
495
505
|
</Text>
|
|
496
506
|
<TouchableScale onPress={() => {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
507
|
+
setSearch('');
|
|
508
|
+
setQuickFilter('all');
|
|
509
|
+
setStatusFilters(new Set());
|
|
510
|
+
setMethodFilters(new Set());
|
|
511
|
+
}}>
|
|
502
512
|
<Text style={{
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
513
|
+
fontFamily: AppFonts.interBold,
|
|
514
|
+
fontSize: 10.5,
|
|
515
|
+
color: AppColors.errorColor,
|
|
516
|
+
}}>
|
|
507
517
|
Clear All Filters
|
|
508
518
|
</Text>
|
|
509
519
|
</TouchableScale>
|
|
510
520
|
</View>)}
|
|
511
|
-
</View>
|
|
521
|
+
</View>
|
|
522
|
+
|
|
523
|
+
<FlatList ref={apisListRef} data={groupedData} keyExtractor={item => item?.id?.toString()} renderItem={renderItem} initialNumToRender={12} maxToRenderPerBatch={8} windowSize={5} removeClippedSubviews={Platform.OS === 'android'} renderToHardwareTextureAndroid={true} ListEmptyComponent={<EmptyState isSearch={search.length > 0 ||
|
|
512
524
|
statusFilters.size > 0 ||
|
|
513
525
|
methodFilters.size > 0 ||
|
|
514
526
|
quickFilter !== 'all'} searchQuery={search} customTitle={search.length > 0
|
|
@@ -523,28 +535,6 @@ const NetworkTab = React.memo(() => {
|
|
|
523
535
|
styles.listContent,
|
|
524
536
|
filteredLogs.length === 0 && { flexGrow: 1 },
|
|
525
537
|
]} keyboardShouldPersistTaps="handled"/>
|
|
526
|
-
|
|
527
|
-
<TouchableScale onPress={() => {
|
|
528
|
-
try {
|
|
529
|
-
apisListRef.current?.scrollToOffset({
|
|
530
|
-
offset: 0,
|
|
531
|
-
animated: true,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
catch {
|
|
535
|
-
try {
|
|
536
|
-
apisListRef.current?.scrollToIndex({
|
|
537
|
-
index: 0,
|
|
538
|
-
animated: true,
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
catch { }
|
|
542
|
-
}
|
|
543
|
-
}} hitSlop={12} style={styles.scrollTopBtn}>
|
|
544
|
-
<View style={{ transform: [{ rotate: '180deg' }] }}>
|
|
545
|
-
<ChevronIcon color={AppColors.white} size={18}/>
|
|
546
|
-
</View>
|
|
547
|
-
</TouchableScale>
|
|
548
538
|
|
|
549
539
|
|
|
550
540
|
<NetworkFilterModal visible={isFilterModalOpen} onClose={() => setIsFilterModalOpen(false)} filters={modalFilterState} onApply={handleApplyNetworkFilters} searchQuery={search}/>
|