Skip to content

Commit 2117bcd

Browse files
committed
finished styling ax tool tip display
1 parent 13c25e3 commit 2117bcd

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

src/app/containers/ProvConContainer.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,19 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
8080
}
8181

8282
// Flatten componentData properties into root level if they exist
83-
if (node.componentData) {
83+
if (node.componentData.context && !isEmptyObject(node.componentData.context)) {
8484
// Add context directly if it exists
85-
if (node.componentData.context && !isEmptyObject(node.componentData.context)) {
86-
filteredNode.context = node.componentData.context;
87-
}
85+
Object.entries(node.componentData.context).forEach(([key, value]) => {
86+
if (!isEmptyObject(value)) {
87+
filteredNode[`${key}`] = value;
88+
}
89+
});
8890

8991
// Flatten componentData.props if they exist
9092
if (node.componentData.props && !isEmptyObject(node.componentData.props)) {
9193
Object.entries(node.componentData.props).forEach(([key, value]) => {
9294
if (!isEmptyObject(value)) {
93-
filteredNode[`prop_${key}`] = value;
95+
filteredNode[`${key}`] = value;
9496
}
9597
});
9698
}
@@ -99,7 +101,7 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
99101
if (node.componentData.hooksState && !isEmptyObject(node.componentData.hooksState)) {
100102
Object.entries(node.componentData.hooksState).forEach(([key, value]) => {
101103
if (!isEmptyObject(value)) {
102-
filteredNode[`hook_${key}`] = value;
104+
filteredNode[`${key}`] = value;
103105
}
104106
});
105107
}

src/app/styles/components/_ax.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@
6161
font-size: 16px;
6262
font-family: 'Outfit', sans-serif;
6363
}
64+
65+
.tooltipData-JSONTree {
66+
list-style-type: none;
67+
margin: 0;
68+
padding: 0;
69+
padding: 8px 12px;
70+
border-bottom: 1px solid #e5e7eb;
71+
transition: background-color 150ms ease;
72+
}

src/extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const metrics = {};
1919
function setupKeepAlive() {
2020
//ellie
2121
// Create an alarm that triggers every 4.9 minutes (under the 5-minute limit)
22-
chrome.alarms.create('keepAlive', { periodInMinutes: 1 });
22+
chrome.alarms.create('keepAlive', { periodInMinutes: 0.5 });
2323

2424
chrome.alarms.onAlarm.addListener((alarm) => {
2525
if (alarm.name === 'keepAlive') {

0 commit comments

Comments
 (0)