@buoy-gg/events 7.0.25 → 7.0.27
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/components/EventsCopySettingsView.js +20 -20
- package/lib/commonjs/components/EventsCopySettingsView.js.map +1 -1
- package/lib/commonjs/components/EventsModal.js +21 -26
- package/lib/commonjs/components/EventsModal.js.map +1 -1
- package/lib/commonjs/components/ReactQueryEventDetail.js +21 -20
- package/lib/commonjs/components/ReactQueryEventDetail.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventDetail.js +11 -10
- package/lib/commonjs/components/UnifiedEventDetail.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventFilters.js +13 -12
- package/lib/commonjs/components/UnifiedEventFilters.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventItem.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventList.js +10 -8
- package/lib/commonjs/components/UnifiedEventList.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventViewer.js +9 -8
- package/lib/commonjs/components/UnifiedEventViewer.js.map +1 -1
- package/lib/module/components/EventsCopySettingsView.js +21 -21
- package/lib/module/components/EventsCopySettingsView.js.map +1 -1
- package/lib/module/components/EventsModal.js +22 -27
- package/lib/module/components/EventsModal.js.map +1 -1
- package/lib/module/components/ReactQueryEventDetail.js +22 -21
- package/lib/module/components/ReactQueryEventDetail.js.map +1 -1
- package/lib/module/components/UnifiedEventDetail.js +12 -11
- package/lib/module/components/UnifiedEventDetail.js.map +1 -1
- package/lib/module/components/UnifiedEventFilters.js +14 -13
- package/lib/module/components/UnifiedEventFilters.js.map +1 -1
- package/lib/module/components/UnifiedEventItem.js.map +1 -1
- package/lib/module/components/UnifiedEventList.js +11 -9
- package/lib/module/components/UnifiedEventList.js.map +1 -1
- package/lib/module/components/UnifiedEventViewer.js +10 -9
- package/lib/module/components/UnifiedEventViewer.js.map +1 -1
- package/lib/typescript/components/EventsCopySettingsView.d.ts.map +1 -1
- package/lib/typescript/components/EventsModal.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/EventsCopySettingsView.tsx +23 -22
- package/src/components/EventsModal.tsx +25 -29
- package/src/components/ReactQueryEventDetail.tsx +22 -21
- package/src/components/UnifiedEventDetail.tsx +12 -11
- package/src/components/UnifiedEventFilters.tsx +19 -18
- package/src/components/UnifiedEventItem.tsx +1 -1
- package/src/components/UnifiedEventList.tsx +11 -9
- package/src/components/UnifiedEventViewer.tsx +10 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/events",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.27",
|
|
4
4
|
"description": "One timeline across every Buoy devtool, with LLM-ready export presets. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@buoy-gg/floating-tools-core": "^7.0.
|
|
31
|
-
"@buoy-gg/shared-ui": "^7.0.
|
|
30
|
+
"@buoy-gg/floating-tools-core": "^7.0.27",
|
|
31
|
+
"@buoy-gg/shared-ui": "^7.0.27"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "*",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
DynamicFilterView,
|
|
12
12
|
type DynamicFilterConfig,
|
|
13
13
|
macOSColors,
|
|
14
|
+
night,
|
|
14
15
|
FileText,
|
|
15
16
|
FileCode,
|
|
16
17
|
Hash,
|
|
@@ -247,10 +248,10 @@ export function EventsCopySettingsView({
|
|
|
247
248
|
if (!isPreviewExpanded) {
|
|
248
249
|
const warningColor =
|
|
249
250
|
sizeWarningLevel === "danger"
|
|
250
|
-
?
|
|
251
|
+
? night.color.danger
|
|
251
252
|
: sizeWarningLevel === "warning"
|
|
252
|
-
?
|
|
253
|
-
:
|
|
253
|
+
? night.color.warning
|
|
254
|
+
: night.color.textSecondary;
|
|
254
255
|
|
|
255
256
|
return (
|
|
256
257
|
<View style={styles.collapsedPreview}>
|
|
@@ -259,7 +260,7 @@ export function EventsCopySettingsView({
|
|
|
259
260
|
onPress={() => setIsPreviewExpanded(true)}
|
|
260
261
|
>
|
|
261
262
|
<View style={styles.expandButtonContent}>
|
|
262
|
-
<Eye size={16} color={
|
|
263
|
+
<Eye size={16} color={night.color.info} />
|
|
263
264
|
<View style={styles.expandButtonTextContainer}>
|
|
264
265
|
<Text style={styles.expandButtonTitle}>Show Preview</Text>
|
|
265
266
|
<Text style={styles.expandButtonSubtitle}>
|
|
@@ -268,7 +269,7 @@ export function EventsCopySettingsView({
|
|
|
268
269
|
{!hasLiveData ? " (mock data)" : ""}
|
|
269
270
|
</Text>
|
|
270
271
|
</View>
|
|
271
|
-
<ChevronDown size={16} color={
|
|
272
|
+
<ChevronDown size={16} color={night.color.textTertiary} />
|
|
272
273
|
</View>
|
|
273
274
|
</TouchableOpacity>
|
|
274
275
|
|
|
@@ -301,7 +302,7 @@ export function EventsCopySettingsView({
|
|
|
301
302
|
onPress={() => setIsPreviewExpanded(false)}
|
|
302
303
|
>
|
|
303
304
|
<Text style={styles.collapseButtonText}>Hide Preview</Text>
|
|
304
|
-
<ChevronUp size={14} color={
|
|
305
|
+
<ChevronUp size={14} color={night.color.textSecondary} />
|
|
305
306
|
</TouchableOpacity>
|
|
306
307
|
|
|
307
308
|
{settings.format === "json" ? (
|
|
@@ -422,7 +423,7 @@ export function EventsCopySettingsView({
|
|
|
422
423
|
id: "preset::custom",
|
|
423
424
|
label: "Custom",
|
|
424
425
|
icon: Settings,
|
|
425
|
-
color:
|
|
426
|
+
color: night.color.textSecondary,
|
|
426
427
|
value: "custom",
|
|
427
428
|
isActive: activePreset === null,
|
|
428
429
|
description: "User-configured",
|
|
@@ -513,7 +514,7 @@ export function EventsCopySettingsView({
|
|
|
513
514
|
id: "format::plaintext",
|
|
514
515
|
label: "Text",
|
|
515
516
|
icon: Hash,
|
|
516
|
-
color:
|
|
517
|
+
color: night.color.textSecondary,
|
|
517
518
|
value: "plaintext",
|
|
518
519
|
isActive: settings.format === "plaintext",
|
|
519
520
|
},
|
|
@@ -681,10 +682,10 @@ const styles = StyleSheet.create({
|
|
|
681
682
|
gap: 8,
|
|
682
683
|
},
|
|
683
684
|
expandButton: {
|
|
684
|
-
backgroundColor:
|
|
685
|
+
backgroundColor: night.color.surfaceElevated,
|
|
685
686
|
borderRadius: 8,
|
|
686
687
|
borderWidth: 1,
|
|
687
|
-
borderColor:
|
|
688
|
+
borderColor: night.color.border,
|
|
688
689
|
padding: 12,
|
|
689
690
|
},
|
|
690
691
|
expandButtonContent: {
|
|
@@ -698,11 +699,11 @@ const styles = StyleSheet.create({
|
|
|
698
699
|
expandButtonTitle: {
|
|
699
700
|
fontSize: 13,
|
|
700
701
|
fontWeight: "600",
|
|
701
|
-
color:
|
|
702
|
+
color: night.color.text,
|
|
702
703
|
},
|
|
703
704
|
expandButtonSubtitle: {
|
|
704
705
|
fontSize: 11,
|
|
705
|
-
color:
|
|
706
|
+
color: night.color.textSecondary,
|
|
706
707
|
marginTop: 2,
|
|
707
708
|
},
|
|
708
709
|
collapseButton: {
|
|
@@ -712,15 +713,15 @@ const styles = StyleSheet.create({
|
|
|
712
713
|
gap: 6,
|
|
713
714
|
paddingVertical: 8,
|
|
714
715
|
marginBottom: 8,
|
|
715
|
-
backgroundColor:
|
|
716
|
+
backgroundColor: night.color.surfaceElevated,
|
|
716
717
|
borderRadius: 6,
|
|
717
718
|
borderWidth: 1,
|
|
718
|
-
borderColor:
|
|
719
|
+
borderColor: night.color.border,
|
|
719
720
|
},
|
|
720
721
|
collapseButtonText: {
|
|
721
722
|
fontSize: 12,
|
|
722
723
|
fontWeight: "500",
|
|
723
|
-
color:
|
|
724
|
+
color: night.color.textSecondary,
|
|
724
725
|
},
|
|
725
726
|
sizeWarning: {
|
|
726
727
|
flexDirection: "row",
|
|
@@ -728,14 +729,14 @@ const styles = StyleSheet.create({
|
|
|
728
729
|
gap: 6,
|
|
729
730
|
paddingHorizontal: 10,
|
|
730
731
|
paddingVertical: 6,
|
|
731
|
-
backgroundColor:
|
|
732
|
+
backgroundColor: night.color.warningSoft,
|
|
732
733
|
borderRadius: 6,
|
|
733
734
|
borderWidth: 1,
|
|
734
|
-
borderColor:
|
|
735
|
+
borderColor: night.color.warning + "30",
|
|
735
736
|
},
|
|
736
737
|
sizeWarningDanger: {
|
|
737
|
-
backgroundColor:
|
|
738
|
-
borderColor:
|
|
738
|
+
backgroundColor: night.color.dangerSoft,
|
|
739
|
+
borderColor: night.color.danger + "30",
|
|
739
740
|
},
|
|
740
741
|
sizeWarningText: {
|
|
741
742
|
fontSize: 11,
|
|
@@ -748,12 +749,12 @@ const styles = StyleSheet.create({
|
|
|
748
749
|
previewText: {
|
|
749
750
|
fontFamily: "monospace",
|
|
750
751
|
fontSize: 11,
|
|
751
|
-
color:
|
|
752
|
+
color: night.color.text,
|
|
752
753
|
lineHeight: 18,
|
|
753
754
|
},
|
|
754
755
|
mermaidHint: {
|
|
755
756
|
fontSize: 11,
|
|
756
|
-
color:
|
|
757
|
+
color: night.color.textSecondary,
|
|
757
758
|
marginBottom: 8,
|
|
758
759
|
paddingHorizontal: 8,
|
|
759
760
|
paddingVertical: 6,
|
|
@@ -764,7 +765,7 @@ const styles = StyleSheet.create({
|
|
|
764
765
|
statusLabel: {
|
|
765
766
|
fontSize: 11,
|
|
766
767
|
fontWeight: "600",
|
|
767
|
-
color:
|
|
768
|
+
color: night.color.textTertiary,
|
|
768
769
|
marginRight: 8,
|
|
769
770
|
},
|
|
770
771
|
gatedContainer: {
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
JsModal,
|
|
26
26
|
ModalHeader,
|
|
27
27
|
buoyColors,
|
|
28
|
+
night,
|
|
28
29
|
Trash2,
|
|
29
30
|
Copy,
|
|
30
31
|
Search,
|
|
@@ -247,12 +248,12 @@ export function EventsModal({
|
|
|
247
248
|
<ModalHeader.Content title="">
|
|
248
249
|
{isSearchActive ? (
|
|
249
250
|
<View style={styles.headerSearchContainer}>
|
|
250
|
-
<Search size={14} color={
|
|
251
|
+
<Search size={14} color={night.color.textSecondary} />
|
|
251
252
|
<TextInput
|
|
252
253
|
ref={searchInputRef}
|
|
253
254
|
style={styles.headerSearchInput}
|
|
254
255
|
placeholder="Search events..."
|
|
255
|
-
placeholderTextColor={
|
|
256
|
+
placeholderTextColor={night.color.placeholder}
|
|
256
257
|
value={searchText}
|
|
257
258
|
onChangeText={setSearchText}
|
|
258
259
|
onSubmitEditing={() => searchInputRef.current?.blur()}
|
|
@@ -271,7 +272,7 @@ export function EventsModal({
|
|
|
271
272
|
style={styles.headerSearchClear}
|
|
272
273
|
accessibilityLabel="Close search"
|
|
273
274
|
>
|
|
274
|
-
<X size={14} color={
|
|
275
|
+
<X size={14} color={night.color.textSecondary} />
|
|
275
276
|
</TouchableOpacity>
|
|
276
277
|
</View>
|
|
277
278
|
) : (
|
|
@@ -297,8 +298,8 @@ export function EventsModal({
|
|
|
297
298
|
size={14}
|
|
298
299
|
color={
|
|
299
300
|
searchText.length > 0
|
|
300
|
-
?
|
|
301
|
-
:
|
|
301
|
+
? night.color.accent
|
|
302
|
+
: night.color.textSecondary
|
|
302
303
|
}
|
|
303
304
|
/>
|
|
304
305
|
</TouchableOpacity>
|
|
@@ -317,8 +318,8 @@ export function EventsModal({
|
|
|
317
318
|
size={14}
|
|
318
319
|
color={
|
|
319
320
|
totalCount > 0
|
|
320
|
-
?
|
|
321
|
-
:
|
|
321
|
+
? night.color.textSecondary
|
|
322
|
+
: night.color.textTertiary
|
|
322
323
|
}
|
|
323
324
|
/>
|
|
324
325
|
</TouchableOpacity>
|
|
@@ -342,8 +343,8 @@ export function EventsModal({
|
|
|
342
343
|
size={14}
|
|
343
344
|
color={
|
|
344
345
|
totalCount > 0
|
|
345
|
-
?
|
|
346
|
-
:
|
|
346
|
+
? night.color.textSecondary
|
|
347
|
+
: night.color.textTertiary
|
|
347
348
|
}
|
|
348
349
|
/>
|
|
349
350
|
</TouchableOpacity>
|
|
@@ -452,7 +453,9 @@ const styles = StyleSheet.create({
|
|
|
452
453
|
inlineRoot: {
|
|
453
454
|
flex: 1,
|
|
454
455
|
minHeight: 0,
|
|
455
|
-
|
|
456
|
+
// Transparent so the desktop workbench's hoisted sky (one field spanning
|
|
457
|
+
// sidebar + panel) shows through — the shell paints its base beneath it.
|
|
458
|
+
backgroundColor: "transparent",
|
|
456
459
|
},
|
|
457
460
|
inlineHeader: {
|
|
458
461
|
paddingHorizontal: 12,
|
|
@@ -463,7 +466,8 @@ const styles = StyleSheet.create({
|
|
|
463
466
|
},
|
|
464
467
|
container: {
|
|
465
468
|
flex: 1,
|
|
466
|
-
|
|
469
|
+
// Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
|
|
470
|
+
backgroundColor: "transparent",
|
|
467
471
|
},
|
|
468
472
|
headerTitleContainer: {
|
|
469
473
|
flexDirection: "row",
|
|
@@ -473,19 +477,19 @@ const styles = StyleSheet.create({
|
|
|
473
477
|
headerTitle: {
|
|
474
478
|
fontSize: 16,
|
|
475
479
|
fontWeight: "600",
|
|
476
|
-
color:
|
|
480
|
+
color: night.color.text,
|
|
477
481
|
},
|
|
478
482
|
headerSubtitle: {
|
|
479
483
|
fontSize: 12,
|
|
480
|
-
color:
|
|
484
|
+
color: night.color.textTertiary,
|
|
481
485
|
},
|
|
482
486
|
headerActionButton: {
|
|
483
487
|
width: 32,
|
|
484
488
|
height: 32,
|
|
485
489
|
borderRadius: 8,
|
|
486
|
-
backgroundColor:
|
|
490
|
+
backgroundColor: night.color.buttonSurface,
|
|
487
491
|
borderWidth: 1,
|
|
488
|
-
borderColor:
|
|
492
|
+
borderColor: night.color.border,
|
|
489
493
|
alignItems: "center",
|
|
490
494
|
justifyContent: "center",
|
|
491
495
|
},
|
|
@@ -493,22 +497,22 @@ const styles = StyleSheet.create({
|
|
|
493
497
|
opacity: 0.55,
|
|
494
498
|
},
|
|
495
499
|
headerActionButtonActive: {
|
|
496
|
-
backgroundColor:
|
|
497
|
-
borderColor:
|
|
500
|
+
backgroundColor: night.color.accentSoft,
|
|
501
|
+
borderColor: night.color.accentBorderStrong,
|
|
498
502
|
},
|
|
499
503
|
headerSearchContainer: {
|
|
500
504
|
flexDirection: "row",
|
|
501
505
|
alignItems: "center",
|
|
502
|
-
backgroundColor:
|
|
503
|
-
borderRadius:
|
|
506
|
+
backgroundColor: night.color.surfaceElevated,
|
|
507
|
+
borderRadius: night.radius.row,
|
|
504
508
|
borderWidth: 1,
|
|
505
|
-
borderColor:
|
|
509
|
+
borderColor: night.color.border,
|
|
506
510
|
paddingHorizontal: 10,
|
|
507
511
|
paddingVertical: 4,
|
|
508
512
|
},
|
|
509
513
|
headerSearchInput: {
|
|
510
514
|
flex: 1,
|
|
511
|
-
color:
|
|
515
|
+
color: night.color.text,
|
|
512
516
|
fontSize: 13,
|
|
513
517
|
marginLeft: 6,
|
|
514
518
|
paddingVertical: 2,
|
|
@@ -517,14 +521,6 @@ const styles = StyleSheet.create({
|
|
|
517
521
|
marginLeft: 6,
|
|
518
522
|
padding: 4,
|
|
519
523
|
},
|
|
520
|
-
startButton: {
|
|
521
|
-
backgroundColor: buoyColors.success + "20",
|
|
522
|
-
borderColor: buoyColors.success + "40",
|
|
523
|
-
},
|
|
524
|
-
stopButton: {
|
|
525
|
-
backgroundColor: buoyColors.error + "20",
|
|
526
|
-
borderColor: buoyColors.error + "40",
|
|
527
|
-
},
|
|
528
524
|
});
|
|
529
525
|
|
|
530
526
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { memo, useMemo } from "react";
|
|
11
11
|
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
12
|
-
import { buoyColors, formatRelativeTime, displayValue } from "@buoy-gg/shared-ui";
|
|
12
|
+
import { buoyColors, night, formatRelativeTime, displayValue } from "@buoy-gg/shared-ui";
|
|
13
13
|
import { DataViewer } from "@buoy-gg/shared-ui/dataViewer";
|
|
14
14
|
import type { UnifiedEvent } from "../types";
|
|
15
15
|
import type { ReactQueryEvent } from "../utils/eventTransformers";
|
|
@@ -34,7 +34,7 @@ const EVENT_TYPE_CONFIG: Record<
|
|
|
34
34
|
> = {
|
|
35
35
|
"query-fetch-start": {
|
|
36
36
|
label: "Query Fetching",
|
|
37
|
-
color:
|
|
37
|
+
color: night.color.accent,
|
|
38
38
|
icon: "hourglass",
|
|
39
39
|
},
|
|
40
40
|
"query-fetch-success": {
|
|
@@ -54,7 +54,7 @@ const EVENT_TYPE_CONFIG: Record<
|
|
|
54
54
|
},
|
|
55
55
|
"mutation-start": {
|
|
56
56
|
label: "Mutation Started",
|
|
57
|
-
color:
|
|
57
|
+
color: night.color.accent,
|
|
58
58
|
icon: "hourglass",
|
|
59
59
|
},
|
|
60
60
|
"mutation-success": {
|
|
@@ -79,7 +79,7 @@ export const ReactQueryEventDetail = memo(function ReactQueryEventDetail({
|
|
|
79
79
|
const reactQueryEvent = event.originalEvent as ExtendedReactQueryEvent;
|
|
80
80
|
const eventConfig = EVENT_TYPE_CONFIG[reactQueryEvent.type] || {
|
|
81
81
|
label: reactQueryEvent.type,
|
|
82
|
-
color:
|
|
82
|
+
color: night.color.textTertiary,
|
|
83
83
|
icon: "help",
|
|
84
84
|
};
|
|
85
85
|
|
|
@@ -272,7 +272,8 @@ function EventStatusChip({ type, color }: { type: string; color: string }) {
|
|
|
272
272
|
const styles = StyleSheet.create({
|
|
273
273
|
container: {
|
|
274
274
|
flex: 1,
|
|
275
|
-
|
|
275
|
+
// Transparent so the night sheet's star field shows through.
|
|
276
|
+
backgroundColor: "transparent",
|
|
276
277
|
},
|
|
277
278
|
contentContainer: {
|
|
278
279
|
padding: 8,
|
|
@@ -284,11 +285,11 @@ const styles = StyleSheet.create({
|
|
|
284
285
|
// Event type container (like QueryDetails)
|
|
285
286
|
eventTypeContainer: {
|
|
286
287
|
minWidth: 200,
|
|
287
|
-
backgroundColor:
|
|
288
|
+
backgroundColor: night.color.surface,
|
|
288
289
|
borderRadius: 6,
|
|
289
290
|
borderWidth: 1,
|
|
290
291
|
overflow: "hidden",
|
|
291
|
-
shadowColor:
|
|
292
|
+
shadowColor: night.color.accent,
|
|
292
293
|
shadowOffset: { width: 0, height: 0 },
|
|
293
294
|
shadowOpacity: 0.1,
|
|
294
295
|
shadowRadius: 6,
|
|
@@ -299,7 +300,7 @@ const styles = StyleSheet.create({
|
|
|
299
300
|
fontWeight: "600",
|
|
300
301
|
fontSize: 12,
|
|
301
302
|
borderBottomWidth: 1,
|
|
302
|
-
borderBottomColor:
|
|
303
|
+
borderBottomColor: night.color.accentBorder,
|
|
303
304
|
letterSpacing: 0.5,
|
|
304
305
|
textTransform: "uppercase",
|
|
305
306
|
fontFamily: "monospace",
|
|
@@ -314,7 +315,7 @@ const styles = StyleSheet.create({
|
|
|
314
315
|
paddingHorizontal: 12,
|
|
315
316
|
paddingVertical: 10,
|
|
316
317
|
borderBottomWidth: 1,
|
|
317
|
-
borderBottomColor:
|
|
318
|
+
borderBottomColor: night.color.separator,
|
|
318
319
|
},
|
|
319
320
|
keyScrollView: {
|
|
320
321
|
flex: 1,
|
|
@@ -322,15 +323,15 @@ const styles = StyleSheet.create({
|
|
|
322
323
|
},
|
|
323
324
|
keyText: {
|
|
324
325
|
fontSize: 12,
|
|
325
|
-
color:
|
|
326
|
+
color: night.color.text,
|
|
326
327
|
fontFamily: "monospace",
|
|
327
328
|
lineHeight: 18,
|
|
328
|
-
backgroundColor:
|
|
329
|
+
backgroundColor: night.color.accentSoft,
|
|
329
330
|
paddingHorizontal: 8,
|
|
330
331
|
paddingVertical: 4,
|
|
331
332
|
borderRadius: 4,
|
|
332
333
|
borderWidth: 1,
|
|
333
|
-
borderColor:
|
|
334
|
+
borderColor: night.color.accentBorderStrong,
|
|
334
335
|
},
|
|
335
336
|
row: {
|
|
336
337
|
flexDirection: "row",
|
|
@@ -339,11 +340,11 @@ const styles = StyleSheet.create({
|
|
|
339
340
|
paddingHorizontal: 12,
|
|
340
341
|
paddingVertical: 10,
|
|
341
342
|
borderBottomWidth: 1,
|
|
342
|
-
borderBottomColor:
|
|
343
|
+
borderBottomColor: night.color.separator,
|
|
343
344
|
},
|
|
344
345
|
labelText: {
|
|
345
346
|
fontSize: 10,
|
|
346
|
-
color:
|
|
347
|
+
color: night.color.textSecondary,
|
|
347
348
|
fontWeight: "600",
|
|
348
349
|
letterSpacing: 0.5,
|
|
349
350
|
textTransform: "uppercase",
|
|
@@ -351,7 +352,7 @@ const styles = StyleSheet.create({
|
|
|
351
352
|
},
|
|
352
353
|
valueText: {
|
|
353
354
|
fontSize: 12,
|
|
354
|
-
color:
|
|
355
|
+
color: night.color.text,
|
|
355
356
|
fontWeight: "500",
|
|
356
357
|
fontVariant: ["tabular-nums"],
|
|
357
358
|
fontFamily: "monospace",
|
|
@@ -379,25 +380,25 @@ const styles = StyleSheet.create({
|
|
|
379
380
|
// Data containers
|
|
380
381
|
dataContainer: {
|
|
381
382
|
minWidth: 200,
|
|
382
|
-
backgroundColor:
|
|
383
|
+
backgroundColor: night.color.surface,
|
|
383
384
|
borderRadius: 6,
|
|
384
385
|
borderWidth: 1,
|
|
385
|
-
borderColor:
|
|
386
|
+
borderColor: night.color.accentBorderStrong,
|
|
386
387
|
overflow: "hidden",
|
|
387
|
-
shadowColor:
|
|
388
|
+
shadowColor: night.color.accent,
|
|
388
389
|
shadowOffset: { width: 0, height: 0 },
|
|
389
390
|
shadowOpacity: 0.1,
|
|
390
391
|
shadowRadius: 6,
|
|
391
392
|
},
|
|
392
393
|
dataHeader: {
|
|
393
|
-
backgroundColor:
|
|
394
|
+
backgroundColor: night.color.accentSoft,
|
|
394
395
|
paddingHorizontal: 12,
|
|
395
396
|
paddingVertical: 10,
|
|
396
397
|
fontWeight: "600",
|
|
397
398
|
fontSize: 12,
|
|
398
|
-
color:
|
|
399
|
+
color: night.color.accent,
|
|
399
400
|
borderBottomWidth: 1,
|
|
400
|
-
borderBottomColor:
|
|
401
|
+
borderBottomColor: night.color.accentBorder,
|
|
401
402
|
letterSpacing: 0.5,
|
|
402
403
|
textTransform: "uppercase",
|
|
403
404
|
fontFamily: "monospace",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
10
10
|
import { memo, useMemo, type ComponentType, type ReactNode } from "react";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
night,
|
|
13
13
|
formatRelativeTime,
|
|
14
14
|
copyToClipboard,
|
|
15
15
|
parseValue,
|
|
@@ -514,7 +514,8 @@ export const UnifiedEventDetail = memo(function UnifiedEventDetail({
|
|
|
514
514
|
const styles = StyleSheet.create({
|
|
515
515
|
container: {
|
|
516
516
|
flex: 1,
|
|
517
|
-
|
|
517
|
+
// Transparent so the night sheet's star field shows through.
|
|
518
|
+
backgroundColor: "transparent",
|
|
518
519
|
},
|
|
519
520
|
content: {
|
|
520
521
|
flex: 1,
|
|
@@ -546,12 +547,12 @@ const styles = StyleSheet.create({
|
|
|
546
547
|
title: {
|
|
547
548
|
fontSize: 24,
|
|
548
549
|
fontWeight: "700",
|
|
549
|
-
color:
|
|
550
|
+
color: night.color.text,
|
|
550
551
|
marginBottom: 4,
|
|
551
552
|
},
|
|
552
553
|
subtitle: {
|
|
553
554
|
fontSize: 16,
|
|
554
|
-
color:
|
|
555
|
+
color: night.color.textTertiary,
|
|
555
556
|
marginBottom: 16,
|
|
556
557
|
},
|
|
557
558
|
timestampRow: {
|
|
@@ -560,18 +561,18 @@ const styles = StyleSheet.create({
|
|
|
560
561
|
alignItems: "center",
|
|
561
562
|
paddingVertical: 12,
|
|
562
563
|
borderTopWidth: 1,
|
|
563
|
-
borderTopColor:
|
|
564
|
+
borderTopColor: night.color.border,
|
|
564
565
|
borderBottomWidth: 1,
|
|
565
|
-
borderBottomColor:
|
|
566
|
+
borderBottomColor: night.color.border,
|
|
566
567
|
marginBottom: 16,
|
|
567
568
|
},
|
|
568
569
|
timestampLabel: {
|
|
569
570
|
fontSize: 14,
|
|
570
|
-
color:
|
|
571
|
+
color: night.color.textTertiary,
|
|
571
572
|
},
|
|
572
573
|
timestampValue: {
|
|
573
574
|
fontSize: 14,
|
|
574
|
-
color:
|
|
575
|
+
color: night.color.text,
|
|
575
576
|
fontFamily: "monospace",
|
|
576
577
|
},
|
|
577
578
|
dataSection: {
|
|
@@ -580,16 +581,16 @@ const styles = StyleSheet.create({
|
|
|
580
581
|
sectionLabel: {
|
|
581
582
|
fontSize: 12,
|
|
582
583
|
fontWeight: "600",
|
|
583
|
-
color:
|
|
584
|
+
color: night.color.textTertiary,
|
|
584
585
|
textTransform: "uppercase",
|
|
585
586
|
letterSpacing: 0.5,
|
|
586
587
|
marginBottom: 8,
|
|
587
588
|
},
|
|
588
589
|
dataContainer: {
|
|
589
|
-
backgroundColor:
|
|
590
|
+
backgroundColor: night.color.surface,
|
|
590
591
|
borderRadius: 8,
|
|
591
592
|
borderWidth: 1,
|
|
592
|
-
borderColor:
|
|
593
|
+
borderColor: night.color.border,
|
|
593
594
|
overflow: "hidden",
|
|
594
595
|
},
|
|
595
596
|
});
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import { View, Text, TouchableOpacity, StyleSheet, ScrollView } from "react-native";
|
|
13
13
|
import { memo } from "react";
|
|
14
|
-
import {
|
|
14
|
+
import { night } from "@buoy-gg/shared-ui";
|
|
15
15
|
import type { EventSource, SourceInfo } from "../types";
|
|
16
16
|
|
|
17
17
|
interface UnifiedEventFiltersProps {
|
|
@@ -58,7 +58,7 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
58
58
|
styles.badge,
|
|
59
59
|
isEnabled
|
|
60
60
|
? {
|
|
61
|
-
backgroundColor:
|
|
61
|
+
backgroundColor: night.color.surface,
|
|
62
62
|
borderColor: source.color + "50",
|
|
63
63
|
}
|
|
64
64
|
: styles.badgeDisabled,
|
|
@@ -75,8 +75,8 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
75
75
|
backgroundColor: isEnabled
|
|
76
76
|
? subscriberCount > 0
|
|
77
77
|
? source.color + "25"
|
|
78
|
-
:
|
|
79
|
-
:
|
|
78
|
+
: night.color.fillSecondary
|
|
79
|
+
: night.color.fill,
|
|
80
80
|
},
|
|
81
81
|
]}
|
|
82
82
|
>
|
|
@@ -87,8 +87,8 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
87
87
|
color: isEnabled
|
|
88
88
|
? subscriberCount > 0
|
|
89
89
|
? source.color
|
|
90
|
-
:
|
|
91
|
-
:
|
|
90
|
+
: night.color.textTertiary
|
|
91
|
+
: night.color.textTertiary,
|
|
92
92
|
},
|
|
93
93
|
]}
|
|
94
94
|
>
|
|
@@ -104,7 +104,7 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
104
104
|
{
|
|
105
105
|
backgroundColor: isEnabled
|
|
106
106
|
? source.color
|
|
107
|
-
:
|
|
107
|
+
: night.color.fillTertiary,
|
|
108
108
|
},
|
|
109
109
|
]}
|
|
110
110
|
/>
|
|
@@ -115,8 +115,8 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
115
115
|
styles.badgeLabel,
|
|
116
116
|
{
|
|
117
117
|
color: isEnabled
|
|
118
|
-
?
|
|
119
|
-
:
|
|
118
|
+
? night.color.text
|
|
119
|
+
: night.color.textTertiary,
|
|
120
120
|
},
|
|
121
121
|
]}
|
|
122
122
|
>
|
|
@@ -131,8 +131,8 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
131
131
|
backgroundColor: isEnabled
|
|
132
132
|
? eventCount > 0
|
|
133
133
|
? source.color + "20"
|
|
134
|
-
:
|
|
135
|
-
:
|
|
134
|
+
: night.color.fill
|
|
135
|
+
: night.color.fill,
|
|
136
136
|
},
|
|
137
137
|
]}
|
|
138
138
|
>
|
|
@@ -143,8 +143,8 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
143
143
|
color: isEnabled
|
|
144
144
|
? eventCount > 0
|
|
145
145
|
? source.color
|
|
146
|
-
:
|
|
147
|
-
:
|
|
146
|
+
: night.color.textTertiary
|
|
147
|
+
: night.color.textTertiary,
|
|
148
148
|
},
|
|
149
149
|
]}
|
|
150
150
|
>
|
|
@@ -169,9 +169,10 @@ export const UnifiedEventFilters = memo(function UnifiedEventFilters({
|
|
|
169
169
|
const styles = StyleSheet.create({
|
|
170
170
|
container: {
|
|
171
171
|
paddingVertical: 8,
|
|
172
|
-
|
|
172
|
+
// Transparent so the night sheet's star field shows through.
|
|
173
|
+
backgroundColor: "transparent",
|
|
173
174
|
borderBottomWidth: 1,
|
|
174
|
-
borderBottomColor:
|
|
175
|
+
borderBottomColor: night.color.border,
|
|
175
176
|
},
|
|
176
177
|
badgesRow: {
|
|
177
178
|
flexDirection: "row",
|
|
@@ -188,8 +189,8 @@ const styles = StyleSheet.create({
|
|
|
188
189
|
gap: 6,
|
|
189
190
|
},
|
|
190
191
|
badgeDisabled: {
|
|
191
|
-
backgroundColor:
|
|
192
|
-
borderColor:
|
|
192
|
+
backgroundColor: night.color.surface,
|
|
193
|
+
borderColor: night.color.border,
|
|
193
194
|
opacity: 0.5,
|
|
194
195
|
},
|
|
195
196
|
dot: {
|
|
@@ -217,7 +218,7 @@ const styles = StyleSheet.create({
|
|
|
217
218
|
filterInfo: {
|
|
218
219
|
marginTop: 6,
|
|
219
220
|
fontSize: 11,
|
|
220
|
-
color:
|
|
221
|
+
color: night.color.textTertiary,
|
|
221
222
|
textAlign: "center",
|
|
222
223
|
},
|
|
223
224
|
});
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { memo, type ComponentType, type ReactNode } from "react";
|
|
10
10
|
import { View, Text, StyleSheet } from "react-native";
|
|
11
|
-
import { CompactRow, formatRelativeTime
|
|
11
|
+
import { CompactRow, formatRelativeTime } from "@buoy-gg/shared-ui";
|
|
12
12
|
import type { UnifiedEvent, EventSource } from "../types";
|
|
13
13
|
import type {
|
|
14
14
|
StorageEvent,
|