diff --git a/.changeset/light-socks-admire.md b/.changeset/light-socks-admire.md
new file mode 100644
index 00000000..50193fa6
--- /dev/null
+++ b/.changeset/light-socks-admire.md
@@ -0,0 +1,7 @@
+---
+'@spotlightjs/overlay': patch
+'@spotlightjs/electron': patch
+'@spotlightjs/spotlight': patch
+---
+
+Overhaul React code for multiple fixes and performance improvements
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 744146b9..81af5f75 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,6 +9,8 @@
"spotlightjs",
"svgr",
"tailwindcss",
- "uuidv"
+ "ttfb",
+ "uuidv",
+ "webvitals"
]
}
diff --git a/packages/overlay/src/components/Overview.tsx b/packages/overlay/src/components/Overview.tsx
index 4a694a52..69c2f234 100644
--- a/packages/overlay/src/components/Overview.tsx
+++ b/packages/overlay/src/components/Overview.tsx
@@ -51,21 +51,12 @@ export default function Overview({
- {key}
- |
-
- - {JSON.stringify(value, undefined, 2)} -- |
-
---|---|
+ {key}
+ |
+
+ + {JSON.stringify(value, undefined, 2)} ++ |
+
{line}-
{line}+
{line}-
{line}+
Query not found.;
+ }
+ return (
+ <>
+
Query not found. ; + | ||||
---|---|---|---|---|
+ + {span.trace_id} + + | ++ + {span.span_id} + + | ++ {getFormattedDuration(span.timestamp - span.start_timestamp)} + | +
No Resource found.;
+ }
+ return (
+
No Resource found. ; + | |||||
---|---|---|---|---|---|
+ Preview+ + + ) + } + > +{resource.description}
+ |
+ + {getFormattedDuration(resource.avgDuration)} + | ++ {getFormattedDuration(resource.timeSpent)} + | ++ {formatBytes(resource.avgEncodedSize)} + | +
No Measurements found.;
+ }
+ return (
+ <>
+
No Measurements found. ; + | ||||||||
---|---|---|---|---|---|---|---|---|
+ + {event.transaction} + + | ++ {event.measurements?.lcp ? getFormattedDuration(event.measurements.lcp.value) : '-'} + | ++ {event.measurements?.fcp ? getFormattedDuration(event.measurements.fcp.value) : '-'} + | ++ {event.measurements?.fid ? getFormattedDuration(event.measurements.fid.value) : '-'} + | ++ {event.measurements?.cls ? event.measurements.cls.value : '-'} + | ++ {event.measurements?.ttfb ? getFormattedDuration(event.measurements.ttfb.value) : '-'} + | ++ {event.measurements['score.total']?.value + ? Math.trunc(event.measurements['score.total'].value * 100) + : '-'} + | +
- {key}
- |
-
- {JSON.stringify(value, undefined, 2)}- |
-
---|---|
+ {key}
+ |
+
+ {JSON.stringify(value, undefined, 2)}+ |
+
{value}-
{value}+
- {key}
- |
-
- {formatValue(key, value)}- |
-
---|---|
+ {key}
+ |
+
+ {formatValue(key, value)}+ |
+
{value}-
{value}+
- {key}
- |
-
- {JSON.stringify(value, undefined, 2)}- |
-
---|---|
+ {key}
+ |
+
+ {JSON.stringify(value, undefined, 2)}+ |
+