@buoy-gg/highlight-updates 7.0.26 → 7.0.28
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/lib/commonjs/highlight-updates/HighlightUpdatesOverlay.js +4 -4
- package/lib/commonjs/highlight-updates/components/HighlightFilterView.js +110 -87
- package/lib/commonjs/highlight-updates/components/HighlightUpdatesModal.js +12 -8
- package/lib/commonjs/highlight-updates/components/IdentifierBadge.js +2 -2
- package/lib/commonjs/highlight-updates/components/IsolatedRenderList.js +6 -6
- package/lib/commonjs/highlight-updates/components/ModalHeaderContent.js +17 -17
- package/lib/commonjs/highlight-updates/components/RenderCauseBadge.js +22 -20
- package/lib/commonjs/highlight-updates/components/RenderDetailView.js +53 -49
- package/lib/commonjs/highlight-updates/components/RenderHistoryViewer.js +62 -60
- package/lib/commonjs/highlight-updates/components/RenderListItem.js +7 -7
- package/lib/commonjs/highlight-updates/components/RendersCopySettingsView.js +18 -18
- package/lib/commonjs/highlight-updates/components/StatsDisplay.js +4 -4
- package/lib/commonjs/highlight-updates/utils/HighlightUpdatesController.js +55 -3
- package/lib/commonjs/highlight-updates/utils/RenderTracker.js +6 -1
- package/lib/commonjs/highlight-updates/utils/namedComposite.js +41 -0
- package/lib/commonjs/highlight-updates/utils/screenElements.js +50 -25
- package/lib/commonjs/highlight-updates/utils/tapMatch.js +58 -0
- package/lib/module/highlight-updates/HighlightUpdatesOverlay.js +5 -5
- package/lib/module/highlight-updates/components/HighlightFilterView.js +111 -88
- package/lib/module/highlight-updates/components/HighlightUpdatesModal.js +13 -9
- package/lib/module/highlight-updates/components/IdentifierBadge.js +3 -3
- package/lib/module/highlight-updates/components/IsolatedRenderList.js +7 -7
- package/lib/module/highlight-updates/components/ModalHeaderContent.js +18 -18
- package/lib/module/highlight-updates/components/RenderCauseBadge.js +23 -21
- package/lib/module/highlight-updates/components/RenderDetailView.js +54 -50
- package/lib/module/highlight-updates/components/RenderHistoryViewer.js +63 -61
- package/lib/module/highlight-updates/components/RenderListItem.js +8 -8
- package/lib/module/highlight-updates/components/RendersCopySettingsView.js +19 -19
- package/lib/module/highlight-updates/components/StatsDisplay.js +5 -5
- package/lib/module/highlight-updates/utils/HighlightUpdatesController.js +55 -3
- package/lib/module/highlight-updates/utils/RenderTracker.js +6 -1
- package/lib/module/highlight-updates/utils/namedComposite.js +36 -0
- package/lib/module/highlight-updates/utils/screenElements.js +50 -25
- package/lib/module/highlight-updates/utils/tapMatch.js +52 -0
- package/lib/typescript/highlight-updates/components/HighlightFilterView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/HighlightUpdatesModal.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/IdentifierBadge.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderCauseBadge.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderDetailView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderHistoryViewer.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RendersCopySettingsView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/HighlightUpdatesController.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts +6 -0
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/namedComposite.d.ts +17 -0
- package/lib/typescript/highlight-updates/utils/namedComposite.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/screenElements.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/tapMatch.d.ts +42 -0
- package/lib/typescript/highlight-updates/utils/tapMatch.d.ts.map +1 -0
- package/package.json +7 -7
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import React, { useState, useCallback } from "react";
|
|
12
12
|
import { View, Text, TouchableOpacity, TextInput, StyleSheet, ScrollView, Modal, Pressable, Switch } from "react-native";
|
|
13
|
-
import { Eye, Filter, Plus, X, Box, Settings, Hash, SectionHeader,
|
|
13
|
+
import { Eye, Filter, Plus, X, Box, Settings, Hash, SectionHeader, night } from "@buoy-gg/shared-ui";
|
|
14
14
|
import { IdentifierBadge, IDENTIFIER_CONFIG } from "./IdentifierBadge";
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
16
|
// Use shared identifier config (FilterType is a subset of IdentifierType)
|
|
@@ -54,7 +54,7 @@ function TypePicker({
|
|
|
54
54
|
style: styles.typePickerCancel,
|
|
55
55
|
children: /*#__PURE__*/_jsx(X, {
|
|
56
56
|
size: 16,
|
|
57
|
-
color:
|
|
57
|
+
color: night.color.textTertiary
|
|
58
58
|
})
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
@@ -86,7 +86,7 @@ function PatternInput({
|
|
|
86
86
|
onChangeText: setValue,
|
|
87
87
|
onSubmitEditing: handleSubmit,
|
|
88
88
|
placeholder: "Enter pattern...",
|
|
89
|
-
placeholderTextColor:
|
|
89
|
+
placeholderTextColor: night.color.placeholder,
|
|
90
90
|
style: styles.patternInput,
|
|
91
91
|
autoFocus: true,
|
|
92
92
|
returnKeyType: "done",
|
|
@@ -108,7 +108,7 @@ function PatternInput({
|
|
|
108
108
|
style: styles.cancelButton,
|
|
109
109
|
children: /*#__PURE__*/_jsx(X, {
|
|
110
110
|
size: 16,
|
|
111
|
-
color:
|
|
111
|
+
color: night.color.textTertiary
|
|
112
112
|
})
|
|
113
113
|
})]
|
|
114
114
|
});
|
|
@@ -142,7 +142,7 @@ function PatternChip({
|
|
|
142
142
|
children: pattern.value
|
|
143
143
|
}), /*#__PURE__*/_jsx(X, {
|
|
144
144
|
size: 12,
|
|
145
|
-
color:
|
|
145
|
+
color: night.color.textTertiary,
|
|
146
146
|
style: styles.patternChipX
|
|
147
147
|
})]
|
|
148
148
|
});
|
|
@@ -154,7 +154,7 @@ function PatternChip({
|
|
|
154
154
|
const ALL_CATEGORY_CONFIG = {
|
|
155
155
|
label: "All",
|
|
156
156
|
shortLabel: "All",
|
|
157
|
-
color:
|
|
157
|
+
color: night.color.textSecondary,
|
|
158
158
|
icon: Box
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -383,13 +383,13 @@ export function HighlightFilterView({
|
|
|
383
383
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
384
384
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
385
385
|
icon: Eye,
|
|
386
|
-
color:
|
|
386
|
+
color: night.color.accent,
|
|
387
387
|
size: 12
|
|
388
388
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
389
389
|
children: "INCLUDE ONLY"
|
|
390
390
|
}), filters.includePatterns.length > 0 && /*#__PURE__*/_jsx(SectionHeader.Badge, {
|
|
391
391
|
count: filters.includePatterns.length,
|
|
392
|
-
color:
|
|
392
|
+
color: night.color.accent
|
|
393
393
|
})]
|
|
394
394
|
}), /*#__PURE__*/_jsx(Text, {
|
|
395
395
|
style: styles.sectionDescription,
|
|
@@ -414,15 +414,15 @@ export function HighlightFilterView({
|
|
|
414
414
|
onCancel: () => setIncludeInputType(null)
|
|
415
415
|
}) : /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
416
416
|
style: [styles.addButton, {
|
|
417
|
-
borderColor:
|
|
417
|
+
borderColor: night.color.accentBorderStrong
|
|
418
418
|
}],
|
|
419
419
|
onPress: () => setShowIncludeTypePicker(true),
|
|
420
420
|
children: [/*#__PURE__*/_jsx(Plus, {
|
|
421
421
|
size: 14,
|
|
422
|
-
color:
|
|
422
|
+
color: night.color.accent
|
|
423
423
|
}), /*#__PURE__*/_jsx(Text, {
|
|
424
424
|
style: [styles.addButtonText, {
|
|
425
|
-
color:
|
|
425
|
+
color: night.color.accent
|
|
426
426
|
}],
|
|
427
427
|
children: "Add include pattern"
|
|
428
428
|
})]
|
|
@@ -433,13 +433,13 @@ export function HighlightFilterView({
|
|
|
433
433
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
434
434
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
435
435
|
icon: Filter,
|
|
436
|
-
color:
|
|
436
|
+
color: night.color.accent,
|
|
437
437
|
size: 12
|
|
438
438
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
439
439
|
children: "EXCLUDE"
|
|
440
440
|
}), filters.excludePatterns.length > 0 && /*#__PURE__*/_jsx(SectionHeader.Badge, {
|
|
441
441
|
count: filters.excludePatterns.length,
|
|
442
|
-
color:
|
|
442
|
+
color: night.color.accent
|
|
443
443
|
})]
|
|
444
444
|
}), /*#__PURE__*/_jsx(Text, {
|
|
445
445
|
style: styles.sectionDescription,
|
|
@@ -464,15 +464,15 @@ export function HighlightFilterView({
|
|
|
464
464
|
onCancel: () => setExcludeInputType(null)
|
|
465
465
|
}) : /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
466
466
|
style: [styles.addButton, {
|
|
467
|
-
borderColor:
|
|
467
|
+
borderColor: night.color.accentBorderStrong
|
|
468
468
|
}],
|
|
469
469
|
onPress: () => setShowExcludeTypePicker(true),
|
|
470
470
|
children: [/*#__PURE__*/_jsx(Plus, {
|
|
471
471
|
size: 14,
|
|
472
|
-
color:
|
|
472
|
+
color: night.color.accent
|
|
473
473
|
}), /*#__PURE__*/_jsx(Text, {
|
|
474
474
|
style: [styles.addButtonText, {
|
|
475
|
-
color:
|
|
475
|
+
color: night.color.accent
|
|
476
476
|
}],
|
|
477
477
|
children: "Add exclude pattern"
|
|
478
478
|
})]
|
|
@@ -483,13 +483,13 @@ export function HighlightFilterView({
|
|
|
483
483
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
484
484
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
485
485
|
icon: Hash,
|
|
486
|
-
color:
|
|
486
|
+
color: night.color.warning,
|
|
487
487
|
size: 12
|
|
488
488
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
489
489
|
children: "RENDER COUNT RANGE"
|
|
490
490
|
}), (filters.minRenderCount !== undefined || filters.maxRenderCount !== undefined) && /*#__PURE__*/_jsx(SectionHeader.Badge, {
|
|
491
491
|
count: 1,
|
|
492
|
-
color:
|
|
492
|
+
color: night.color.warning
|
|
493
493
|
})]
|
|
494
494
|
}), /*#__PURE__*/_jsx(Text, {
|
|
495
495
|
style: styles.sectionDescription,
|
|
@@ -519,7 +519,7 @@ export function HighlightFilterView({
|
|
|
519
519
|
}
|
|
520
520
|
},
|
|
521
521
|
placeholder: "0",
|
|
522
|
-
placeholderTextColor:
|
|
522
|
+
placeholderTextColor: night.color.placeholder,
|
|
523
523
|
style: styles.renderCountInput,
|
|
524
524
|
keyboardType: "number-pad",
|
|
525
525
|
returnKeyType: "done"
|
|
@@ -547,7 +547,7 @@ export function HighlightFilterView({
|
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
placeholder: "\u221E",
|
|
550
|
-
placeholderTextColor:
|
|
550
|
+
placeholderTextColor: night.color.placeholder,
|
|
551
551
|
style: styles.renderCountInput,
|
|
552
552
|
keyboardType: "number-pad",
|
|
553
553
|
returnKeyType: "done"
|
|
@@ -561,7 +561,7 @@ export function HighlightFilterView({
|
|
|
561
561
|
}),
|
|
562
562
|
children: [/*#__PURE__*/_jsx(X, {
|
|
563
563
|
size: 12,
|
|
564
|
-
color:
|
|
564
|
+
color: night.color.warning
|
|
565
565
|
}), /*#__PURE__*/_jsx(Text, {
|
|
566
566
|
style: styles.clearRangeButtonText,
|
|
567
567
|
children: "Clear Range"
|
|
@@ -573,7 +573,7 @@ export function HighlightFilterView({
|
|
|
573
573
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
574
574
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
575
575
|
icon: Box,
|
|
576
|
-
color:
|
|
576
|
+
color: night.color.textSecondary,
|
|
577
577
|
size: 12
|
|
578
578
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
579
579
|
children: "DETECTED ITEMS"
|
|
@@ -675,10 +675,10 @@ export function HighlightFilterView({
|
|
|
675
675
|
onPress: handlePopupInclude,
|
|
676
676
|
children: [/*#__PURE__*/_jsx(Eye, {
|
|
677
677
|
size: 16,
|
|
678
|
-
color:
|
|
678
|
+
color: night.color.accent
|
|
679
679
|
}), /*#__PURE__*/_jsx(Text, {
|
|
680
680
|
style: [styles.actionPopupButtonText, {
|
|
681
|
-
color:
|
|
681
|
+
color: night.color.accent
|
|
682
682
|
}],
|
|
683
683
|
children: "Include Only"
|
|
684
684
|
})]
|
|
@@ -687,10 +687,10 @@ export function HighlightFilterView({
|
|
|
687
687
|
onPress: handlePopupExclude,
|
|
688
688
|
children: [/*#__PURE__*/_jsx(Filter, {
|
|
689
689
|
size: 16,
|
|
690
|
-
color:
|
|
690
|
+
color: night.color.accent
|
|
691
691
|
}), /*#__PURE__*/_jsx(Text, {
|
|
692
692
|
style: [styles.actionPopupButtonText, {
|
|
693
|
-
color:
|
|
693
|
+
color: night.color.accent
|
|
694
694
|
}],
|
|
695
695
|
children: "Exclude"
|
|
696
696
|
})]
|
|
@@ -711,7 +711,7 @@ export function HighlightFilterView({
|
|
|
711
711
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
712
712
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
713
713
|
icon: Filter,
|
|
714
|
-
color:
|
|
714
|
+
color: night.color.textTertiary,
|
|
715
715
|
size: 12
|
|
716
716
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
717
717
|
children: "HOW FILTERS WORK"
|
|
@@ -742,7 +742,7 @@ export function HighlightFilterView({
|
|
|
742
742
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
743
743
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
744
744
|
icon: Settings,
|
|
745
|
-
color:
|
|
745
|
+
color: night.color.textTertiary,
|
|
746
746
|
size: 12
|
|
747
747
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
748
748
|
children: "SETTINGS"
|
|
@@ -770,10 +770,10 @@ export function HighlightFilterView({
|
|
|
770
770
|
}
|
|
771
771
|
},
|
|
772
772
|
trackColor: {
|
|
773
|
-
false:
|
|
774
|
-
true:
|
|
773
|
+
false: night.color.surfaceElevated,
|
|
774
|
+
true: night.color.accent + "80"
|
|
775
775
|
},
|
|
776
|
-
thumbColor: settings.showRenderCount ?
|
|
776
|
+
thumbColor: settings.showRenderCount ? night.color.accent : night.color.knob
|
|
777
777
|
})]
|
|
778
778
|
}), /*#__PURE__*/_jsx(Text, {
|
|
779
779
|
style: styles.settingDescription,
|
|
@@ -792,10 +792,10 @@ export function HighlightFilterView({
|
|
|
792
792
|
trackRenderCauses: value
|
|
793
793
|
}),
|
|
794
794
|
trackColor: {
|
|
795
|
-
false:
|
|
796
|
-
true:
|
|
795
|
+
false: night.color.surfaceElevated,
|
|
796
|
+
true: night.color.warning + "80"
|
|
797
797
|
},
|
|
798
|
-
thumbColor: settings.trackRenderCauses ?
|
|
798
|
+
thumbColor: settings.trackRenderCauses ? night.color.warning : night.color.knob,
|
|
799
799
|
disabled: !settings.showRenderCount
|
|
800
800
|
})]
|
|
801
801
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
@@ -818,10 +818,10 @@ export function HighlightFilterView({
|
|
|
818
818
|
enableRenderHistory: value
|
|
819
819
|
}),
|
|
820
820
|
trackColor: {
|
|
821
|
-
false:
|
|
822
|
-
true:
|
|
821
|
+
false: night.color.surfaceElevated,
|
|
822
|
+
true: night.color.accent + "80"
|
|
823
823
|
},
|
|
824
|
-
thumbColor: settings.enableRenderHistory ?
|
|
824
|
+
thumbColor: settings.enableRenderHistory ? night.color.accent : night.color.knob,
|
|
825
825
|
disabled: !settings.trackRenderCauses
|
|
826
826
|
})]
|
|
827
827
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
@@ -842,7 +842,7 @@ export function HighlightFilterView({
|
|
|
842
842
|
style: styles.settingValue,
|
|
843
843
|
children: /*#__PURE__*/_jsx(Text, {
|
|
844
844
|
style: [styles.settingValueText, settings.debugLogLevel !== "off" && {
|
|
845
|
-
color:
|
|
845
|
+
color: night.color.warning
|
|
846
846
|
}],
|
|
847
847
|
children: DEBUG_LOG_LEVEL_PRESETS.find(p => p.value === settings.debugLogLevel)?.label || "Off"
|
|
848
848
|
})
|
|
@@ -854,15 +854,15 @@ export function HighlightFilterView({
|
|
|
854
854
|
style: styles.batchSizePresets,
|
|
855
855
|
children: DEBUG_LOG_LEVEL_PRESETS.map(preset => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
856
856
|
style: [styles.batchSizePreset, settings.debugLogLevel === preset.value && styles.batchSizePresetActive, preset.value !== "off" && settings.debugLogLevel === preset.value && {
|
|
857
|
-
backgroundColor:
|
|
858
|
-
borderColor:
|
|
857
|
+
backgroundColor: night.color.warningSoft,
|
|
858
|
+
borderColor: night.color.warning
|
|
859
859
|
}],
|
|
860
860
|
onPress: () => onSettingsChange({
|
|
861
861
|
debugLogLevel: preset.value
|
|
862
862
|
}),
|
|
863
863
|
children: /*#__PURE__*/_jsx(Text, {
|
|
864
864
|
style: [styles.batchSizePresetText, settings.debugLogLevel === preset.value && styles.batchSizePresetTextActive, preset.value !== "off" && settings.debugLogLevel === preset.value && {
|
|
865
|
-
color:
|
|
865
|
+
color: night.color.warning
|
|
866
866
|
}],
|
|
867
867
|
children: preset.label
|
|
868
868
|
})
|
|
@@ -901,6 +901,28 @@ export function HighlightFilterView({
|
|
|
901
901
|
})
|
|
902
902
|
}, preset.value))
|
|
903
903
|
})]
|
|
904
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
905
|
+
style: [styles.settingItem, styles.settingItemSpaced],
|
|
906
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
907
|
+
style: styles.settingHeader,
|
|
908
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
909
|
+
style: styles.settingLabel,
|
|
910
|
+
children: "Show host views"
|
|
911
|
+
}), /*#__PURE__*/_jsx(Switch, {
|
|
912
|
+
value: !!settings.showHostViews,
|
|
913
|
+
onValueChange: value => onSettingsChange({
|
|
914
|
+
showHostViews: value
|
|
915
|
+
}),
|
|
916
|
+
trackColor: {
|
|
917
|
+
false: night.color.surfaceElevated,
|
|
918
|
+
true: night.color.accent + "80"
|
|
919
|
+
},
|
|
920
|
+
thumbColor: settings.showHostViews ? night.color.accent : night.color.knob
|
|
921
|
+
})]
|
|
922
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
923
|
+
style: styles.settingDescription,
|
|
924
|
+
children: "Include anonymous View / RCTView / Text hosts. Off by default so the list is named composites (what actually re-rendered)."
|
|
925
|
+
})]
|
|
904
926
|
}), /*#__PURE__*/_jsxs(View, {
|
|
905
927
|
style: [styles.settingItem, styles.settingItemSpaced],
|
|
906
928
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
@@ -914,10 +936,10 @@ export function HighlightFilterView({
|
|
|
914
936
|
excludeDevTools: !value
|
|
915
937
|
}),
|
|
916
938
|
trackColor: {
|
|
917
|
-
false:
|
|
918
|
-
true:
|
|
939
|
+
false: night.color.surfaceElevated,
|
|
940
|
+
true: night.color.accent + "80"
|
|
919
941
|
},
|
|
920
|
-
thumbColor: !settings.excludeDevTools ?
|
|
942
|
+
thumbColor: !settings.excludeDevTools ? night.color.accent : night.color.knob
|
|
921
943
|
})]
|
|
922
944
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
923
945
|
style: styles.settingDescription,
|
|
@@ -936,7 +958,8 @@ export function HighlightFilterView({
|
|
|
936
958
|
const styles = StyleSheet.create({
|
|
937
959
|
container: {
|
|
938
960
|
flex: 1,
|
|
939
|
-
|
|
961
|
+
// Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
|
|
962
|
+
backgroundColor: "transparent"
|
|
940
963
|
},
|
|
941
964
|
scrollView: {
|
|
942
965
|
flex: 1
|
|
@@ -947,16 +970,16 @@ const styles = StyleSheet.create({
|
|
|
947
970
|
paddingBottom: 32
|
|
948
971
|
},
|
|
949
972
|
section: {
|
|
950
|
-
backgroundColor:
|
|
973
|
+
backgroundColor: night.color.surface,
|
|
951
974
|
borderRadius: 8,
|
|
952
975
|
borderWidth: 1,
|
|
953
|
-
borderColor:
|
|
976
|
+
borderColor: night.color.border,
|
|
954
977
|
marginBottom: 12,
|
|
955
978
|
overflow: "hidden"
|
|
956
979
|
},
|
|
957
980
|
sectionDescription: {
|
|
958
981
|
fontSize: 11,
|
|
959
|
-
color:
|
|
982
|
+
color: night.color.textSecondary,
|
|
960
983
|
paddingHorizontal: 16,
|
|
961
984
|
paddingTop: 8,
|
|
962
985
|
lineHeight: 16
|
|
@@ -971,7 +994,7 @@ const styles = StyleSheet.create({
|
|
|
971
994
|
patternChip: {
|
|
972
995
|
flexDirection: "row",
|
|
973
996
|
alignItems: "center",
|
|
974
|
-
backgroundColor:
|
|
997
|
+
backgroundColor: night.color.surfaceElevated,
|
|
975
998
|
borderRadius: 6,
|
|
976
999
|
borderWidth: 1,
|
|
977
1000
|
paddingVertical: 4,
|
|
@@ -991,7 +1014,7 @@ const styles = StyleSheet.create({
|
|
|
991
1014
|
},
|
|
992
1015
|
patternChipValue: {
|
|
993
1016
|
fontSize: 11,
|
|
994
|
-
color:
|
|
1017
|
+
color: night.color.text,
|
|
995
1018
|
fontFamily: "monospace",
|
|
996
1019
|
flexShrink: 1
|
|
997
1020
|
},
|
|
@@ -1036,7 +1059,7 @@ const styles = StyleSheet.create({
|
|
|
1036
1059
|
paddingHorizontal: 12,
|
|
1037
1060
|
borderRadius: 6,
|
|
1038
1061
|
borderWidth: 1,
|
|
1039
|
-
backgroundColor:
|
|
1062
|
+
backgroundColor: night.color.surfaceElevated,
|
|
1040
1063
|
gap: 6
|
|
1041
1064
|
},
|
|
1042
1065
|
typeOptionText: {
|
|
@@ -1049,10 +1072,10 @@ const styles = StyleSheet.create({
|
|
|
1049
1072
|
patternInputContainer: {
|
|
1050
1073
|
flexDirection: "row",
|
|
1051
1074
|
alignItems: "center",
|
|
1052
|
-
backgroundColor:
|
|
1075
|
+
backgroundColor: night.color.surfaceElevated,
|
|
1053
1076
|
borderRadius: 8,
|
|
1054
1077
|
borderWidth: 1,
|
|
1055
|
-
borderColor:
|
|
1078
|
+
borderColor: night.color.border,
|
|
1056
1079
|
paddingLeft: 4,
|
|
1057
1080
|
paddingRight: 8,
|
|
1058
1081
|
paddingVertical: 4,
|
|
@@ -1061,7 +1084,7 @@ const styles = StyleSheet.create({
|
|
|
1061
1084
|
patternInput: {
|
|
1062
1085
|
flex: 1,
|
|
1063
1086
|
fontSize: 12,
|
|
1064
|
-
color:
|
|
1087
|
+
color: night.color.text,
|
|
1065
1088
|
paddingVertical: 6,
|
|
1066
1089
|
paddingHorizontal: 4
|
|
1067
1090
|
},
|
|
@@ -1125,7 +1148,7 @@ const styles = StyleSheet.create({
|
|
|
1125
1148
|
detectedItem: {
|
|
1126
1149
|
flexDirection: "row",
|
|
1127
1150
|
alignItems: "center",
|
|
1128
|
-
backgroundColor:
|
|
1151
|
+
backgroundColor: night.color.surfaceElevated,
|
|
1129
1152
|
borderRadius: 6,
|
|
1130
1153
|
borderWidth: 1,
|
|
1131
1154
|
paddingVertical: 6,
|
|
@@ -1134,12 +1157,12 @@ const styles = StyleSheet.create({
|
|
|
1134
1157
|
},
|
|
1135
1158
|
detectedItemText: {
|
|
1136
1159
|
fontSize: 11,
|
|
1137
|
-
color:
|
|
1160
|
+
color: night.color.text,
|
|
1138
1161
|
fontFamily: "monospace"
|
|
1139
1162
|
},
|
|
1140
1163
|
emptyText: {
|
|
1141
1164
|
fontSize: 11,
|
|
1142
|
-
color:
|
|
1165
|
+
color: night.color.textTertiary,
|
|
1143
1166
|
fontStyle: "italic",
|
|
1144
1167
|
textAlign: "center",
|
|
1145
1168
|
paddingVertical: 16,
|
|
@@ -1151,13 +1174,13 @@ const styles = StyleSheet.create({
|
|
|
1151
1174
|
},
|
|
1152
1175
|
howItWorksText: {
|
|
1153
1176
|
fontSize: 11,
|
|
1154
|
-
color:
|
|
1177
|
+
color: night.color.textTertiary,
|
|
1155
1178
|
lineHeight: 18,
|
|
1156
1179
|
fontFamily: "monospace"
|
|
1157
1180
|
},
|
|
1158
1181
|
howItWorksBold: {
|
|
1159
1182
|
fontWeight: "700",
|
|
1160
|
-
color:
|
|
1183
|
+
color: night.color.textSecondary
|
|
1161
1184
|
},
|
|
1162
1185
|
// Action popup modal styles
|
|
1163
1186
|
modalOverlay: {
|
|
@@ -1168,10 +1191,10 @@ const styles = StyleSheet.create({
|
|
|
1168
1191
|
padding: 32
|
|
1169
1192
|
},
|
|
1170
1193
|
actionPopup: {
|
|
1171
|
-
backgroundColor:
|
|
1194
|
+
backgroundColor: night.color.surface,
|
|
1172
1195
|
borderRadius: 12,
|
|
1173
1196
|
borderWidth: 1,
|
|
1174
|
-
borderColor:
|
|
1197
|
+
borderColor: night.color.border,
|
|
1175
1198
|
width: "100%",
|
|
1176
1199
|
maxWidth: 300,
|
|
1177
1200
|
overflow: "hidden"
|
|
@@ -1179,7 +1202,7 @@ const styles = StyleSheet.create({
|
|
|
1179
1202
|
actionPopupHeader: {
|
|
1180
1203
|
padding: 16,
|
|
1181
1204
|
borderBottomWidth: 1,
|
|
1182
|
-
borderBottomColor:
|
|
1205
|
+
borderBottomColor: night.color.separator,
|
|
1183
1206
|
alignItems: "center"
|
|
1184
1207
|
},
|
|
1185
1208
|
actionPopupButtons: {
|
|
@@ -1198,10 +1221,10 @@ const styles = StyleSheet.create({
|
|
|
1198
1221
|
gap: 8
|
|
1199
1222
|
},
|
|
1200
1223
|
actionPopupInclude: {
|
|
1201
|
-
backgroundColor:
|
|
1224
|
+
backgroundColor: night.color.accentSoft
|
|
1202
1225
|
},
|
|
1203
1226
|
actionPopupExclude: {
|
|
1204
|
-
backgroundColor:
|
|
1227
|
+
backgroundColor: night.color.accentSoft
|
|
1205
1228
|
},
|
|
1206
1229
|
actionPopupButtonText: {
|
|
1207
1230
|
fontSize: 13,
|
|
@@ -1210,12 +1233,12 @@ const styles = StyleSheet.create({
|
|
|
1210
1233
|
actionPopupCancel: {
|
|
1211
1234
|
padding: 12,
|
|
1212
1235
|
borderTopWidth: 1,
|
|
1213
|
-
borderTopColor:
|
|
1236
|
+
borderTopColor: night.color.separator,
|
|
1214
1237
|
alignItems: "center"
|
|
1215
1238
|
},
|
|
1216
1239
|
actionPopupCancelText: {
|
|
1217
1240
|
fontSize: 13,
|
|
1218
|
-
color:
|
|
1241
|
+
color: night.color.textTertiary,
|
|
1219
1242
|
fontWeight: "500"
|
|
1220
1243
|
},
|
|
1221
1244
|
// Settings styles
|
|
@@ -1231,7 +1254,7 @@ const styles = StyleSheet.create({
|
|
|
1231
1254
|
marginTop: 16,
|
|
1232
1255
|
paddingTop: 16,
|
|
1233
1256
|
borderTopWidth: 1,
|
|
1234
|
-
borderTopColor:
|
|
1257
|
+
borderTopColor: night.color.separator
|
|
1235
1258
|
},
|
|
1236
1259
|
settingHeader: {
|
|
1237
1260
|
flexDirection: "row",
|
|
@@ -1241,10 +1264,10 @@ const styles = StyleSheet.create({
|
|
|
1241
1264
|
settingLabel: {
|
|
1242
1265
|
fontSize: 13,
|
|
1243
1266
|
fontWeight: "600",
|
|
1244
|
-
color:
|
|
1267
|
+
color: night.color.text
|
|
1245
1268
|
},
|
|
1246
1269
|
settingValue: {
|
|
1247
|
-
backgroundColor:
|
|
1270
|
+
backgroundColor: night.color.fillSecondary,
|
|
1248
1271
|
paddingHorizontal: 10,
|
|
1249
1272
|
paddingVertical: 4,
|
|
1250
1273
|
borderRadius: 6
|
|
@@ -1252,26 +1275,26 @@ const styles = StyleSheet.create({
|
|
|
1252
1275
|
settingValueText: {
|
|
1253
1276
|
fontSize: 12,
|
|
1254
1277
|
fontWeight: "700",
|
|
1255
|
-
color:
|
|
1278
|
+
color: night.color.textTertiary,
|
|
1256
1279
|
fontFamily: "monospace"
|
|
1257
1280
|
},
|
|
1258
1281
|
settingDescription: {
|
|
1259
1282
|
fontSize: 11,
|
|
1260
|
-
color:
|
|
1283
|
+
color: night.color.textSecondary,
|
|
1261
1284
|
lineHeight: 16
|
|
1262
1285
|
},
|
|
1263
1286
|
settingDescriptionMuted: {
|
|
1264
1287
|
fontSize: 10,
|
|
1265
|
-
color:
|
|
1288
|
+
color: night.color.textTertiary,
|
|
1266
1289
|
lineHeight: 14,
|
|
1267
1290
|
marginTop: 4,
|
|
1268
1291
|
fontStyle: "italic"
|
|
1269
1292
|
},
|
|
1270
1293
|
settingLabelDisabled: {
|
|
1271
|
-
color:
|
|
1294
|
+
color: night.color.textTertiary
|
|
1272
1295
|
},
|
|
1273
1296
|
settingWarning: {
|
|
1274
|
-
color:
|
|
1297
|
+
color: night.color.warning,
|
|
1275
1298
|
fontWeight: "500"
|
|
1276
1299
|
},
|
|
1277
1300
|
batchSizePresets: {
|
|
@@ -1284,22 +1307,22 @@ const styles = StyleSheet.create({
|
|
|
1284
1307
|
paddingVertical: 8,
|
|
1285
1308
|
paddingHorizontal: 14,
|
|
1286
1309
|
borderRadius: 6,
|
|
1287
|
-
backgroundColor:
|
|
1310
|
+
backgroundColor: night.color.surfaceElevated,
|
|
1288
1311
|
borderWidth: 1,
|
|
1289
|
-
borderColor:
|
|
1312
|
+
borderColor: night.color.border
|
|
1290
1313
|
},
|
|
1291
1314
|
batchSizePresetActive: {
|
|
1292
|
-
backgroundColor:
|
|
1293
|
-
borderColor:
|
|
1315
|
+
backgroundColor: night.color.fillSecondary,
|
|
1316
|
+
borderColor: night.color.fillTertiary
|
|
1294
1317
|
},
|
|
1295
1318
|
batchSizePresetText: {
|
|
1296
1319
|
fontSize: 12,
|
|
1297
1320
|
fontWeight: "500",
|
|
1298
|
-
color:
|
|
1321
|
+
color: night.color.textSecondary,
|
|
1299
1322
|
fontFamily: "monospace"
|
|
1300
1323
|
},
|
|
1301
1324
|
batchSizePresetTextActive: {
|
|
1302
|
-
color:
|
|
1325
|
+
color: night.color.textTertiary,
|
|
1303
1326
|
fontWeight: "700"
|
|
1304
1327
|
},
|
|
1305
1328
|
// Render count range styles
|
|
@@ -1321,26 +1344,26 @@ const styles = StyleSheet.create({
|
|
|
1321
1344
|
renderCountLabel: {
|
|
1322
1345
|
fontSize: 10,
|
|
1323
1346
|
fontWeight: "600",
|
|
1324
|
-
color:
|
|
1347
|
+
color: night.color.textTertiary,
|
|
1325
1348
|
textTransform: "uppercase",
|
|
1326
1349
|
letterSpacing: 0.5
|
|
1327
1350
|
},
|
|
1328
1351
|
renderCountInput: {
|
|
1329
|
-
backgroundColor:
|
|
1352
|
+
backgroundColor: night.color.surfaceElevated,
|
|
1330
1353
|
borderRadius: 8,
|
|
1331
1354
|
borderWidth: 1,
|
|
1332
|
-
borderColor:
|
|
1355
|
+
borderColor: night.color.border,
|
|
1333
1356
|
paddingVertical: 10,
|
|
1334
1357
|
paddingHorizontal: 12,
|
|
1335
1358
|
fontSize: 14,
|
|
1336
1359
|
fontWeight: "600",
|
|
1337
|
-
color:
|
|
1360
|
+
color: night.color.text,
|
|
1338
1361
|
fontFamily: "monospace",
|
|
1339
1362
|
textAlign: "center"
|
|
1340
1363
|
},
|
|
1341
1364
|
renderCountSeparator: {
|
|
1342
1365
|
fontSize: 12,
|
|
1343
|
-
color:
|
|
1366
|
+
color: night.color.textTertiary,
|
|
1344
1367
|
marginTop: 18
|
|
1345
1368
|
},
|
|
1346
1369
|
clearRangeButton: {
|
|
@@ -1350,16 +1373,16 @@ const styles = StyleSheet.create({
|
|
|
1350
1373
|
paddingVertical: 8,
|
|
1351
1374
|
paddingHorizontal: 12,
|
|
1352
1375
|
borderRadius: 6,
|
|
1353
|
-
backgroundColor:
|
|
1376
|
+
backgroundColor: night.color.warningSoft,
|
|
1354
1377
|
borderWidth: 1,
|
|
1355
|
-
borderColor:
|
|
1378
|
+
borderColor: night.color.warning + "40",
|
|
1356
1379
|
gap: 6,
|
|
1357
1380
|
alignSelf: "center"
|
|
1358
1381
|
},
|
|
1359
1382
|
clearRangeButtonText: {
|
|
1360
1383
|
fontSize: 11,
|
|
1361
1384
|
fontWeight: "600",
|
|
1362
|
-
color:
|
|
1385
|
+
color: night.color.warning
|
|
1363
1386
|
}
|
|
1364
1387
|
});
|
|
1365
1388
|
export default HighlightFilterView;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import React, { useState, useEffect, useRef, useCallback } from "react";
|
|
19
19
|
import { View, Text, StyleSheet } from "react-native";
|
|
20
|
-
import { Power, JsModal, devToolsStorageKeys, persistentStorage,
|
|
20
|
+
import { Power, JsModal, devToolsStorageKeys, persistentStorage, night, TickProvider } from "@buoy-gg/shared-ui";
|
|
21
21
|
import { useIsPro } from "@buoy-gg/license";
|
|
22
22
|
import HighlightUpdatesController from "../utils/HighlightUpdatesController";
|
|
23
23
|
import { RenderTracker } from "../utils/RenderTracker";
|
|
@@ -35,7 +35,7 @@ const DisabledBanner = /*#__PURE__*/React.memo(function DisabledBanner() {
|
|
|
35
35
|
style: styles.disabledBanner,
|
|
36
36
|
children: [/*#__PURE__*/_jsx(Power, {
|
|
37
37
|
size: 14,
|
|
38
|
-
color:
|
|
38
|
+
color: night.color.warning
|
|
39
39
|
}), /*#__PURE__*/_jsx(Text, {
|
|
40
40
|
style: styles.disabledText,
|
|
41
41
|
children: "Render tracking is disabled"
|
|
@@ -591,18 +591,22 @@ const styles = StyleSheet.create({
|
|
|
591
591
|
inlineRoot: {
|
|
592
592
|
flex: 1,
|
|
593
593
|
minHeight: 0,
|
|
594
|
-
|
|
594
|
+
// Transparent so the desktop workbench's hoisted sky (one field spanning
|
|
595
|
+
// sidebar + panel) shows through — the shell paints its base beneath it.
|
|
596
|
+
backgroundColor: "transparent"
|
|
595
597
|
},
|
|
596
598
|
inlineHeader: {
|
|
597
599
|
paddingHorizontal: 12,
|
|
598
600
|
paddingVertical: 8,
|
|
599
601
|
borderBottomWidth: 1,
|
|
600
|
-
borderBottomColor:
|
|
601
|
-
backgroundColor:
|
|
602
|
+
borderBottomColor: night.color.border,
|
|
603
|
+
backgroundColor: night.color.surface
|
|
602
604
|
},
|
|
603
605
|
container: {
|
|
604
606
|
flex: 1,
|
|
605
|
-
|
|
607
|
+
// Transparent so the HOST's field shows through — JsModal's hoisted
|
|
608
|
+
// ToolBackground in the modal, the desktop workbench's hoisted sky inline.
|
|
609
|
+
backgroundColor: "transparent"
|
|
606
610
|
},
|
|
607
611
|
disabledBanner: {
|
|
608
612
|
flexDirection: "row",
|
|
@@ -611,13 +615,13 @@ const styles = StyleSheet.create({
|
|
|
611
615
|
padding: 10,
|
|
612
616
|
marginHorizontal: 12,
|
|
613
617
|
marginTop: 8,
|
|
614
|
-
backgroundColor:
|
|
618
|
+
backgroundColor: night.color.warningSoft,
|
|
615
619
|
borderRadius: 8,
|
|
616
620
|
borderWidth: 1,
|
|
617
|
-
borderColor:
|
|
621
|
+
borderColor: night.color.warning + "20"
|
|
618
622
|
},
|
|
619
623
|
disabledText: {
|
|
620
|
-
color:
|
|
624
|
+
color: night.color.warning,
|
|
621
625
|
fontSize: 11,
|
|
622
626
|
flex: 1
|
|
623
627
|
}
|