{
@@ -66,9 +54,6 @@ export const AutoRepresentation: React.FC
= ({ representation, isRulesEnabl
{response && currentTab === TABS[responseTabIndex].tab &&
}
- {isRulesEnabled && currentTab === TABS[rulesTabIndex].tab &&
-
- }
}
;
}
diff --git a/ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.tsx b/ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.tsx
index 4c6391973..0b618d631 100644
--- a/ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.tsx
+++ b/ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.tsx
@@ -3,18 +3,12 @@ import { AutoRepresentation } from './AutoRepresentation';
interface Props {
representation: any;
- isRulesEnabled: boolean;
- rulesMatched: any;
color: string;
- elapsedTime: number;
}
-const EntryViewer: React.FC
= ({ representation, isRulesEnabled, rulesMatched, elapsedTime, color }) => {
+const EntryViewer: React.FC = ({representation, color}) => {
return
diff --git a/ui-common/src/components/EntryListItem/EntryListItem.module.sass b/ui-common/src/components/EntryListItem/EntryListItem.module.sass
index dd22fbd4e..c118a3a0f 100644
--- a/ui-common/src/components/EntryListItem/EntryListItem.module.sass
+++ b/ui-common/src/components/EntryListItem/EntryListItem.module.sass
@@ -20,31 +20,6 @@
.rowSelected
border: 1px $blue-color solid
-.ruleSuccessRow
- background: #E8FFF1
-
-.ruleSuccessRowSelected
- border: 1px #6FCF97 solid
- border-left: 5px #6FCF97 solid
-
-.ruleFailureRow
- background: #FFE9EF
-
-.ruleFailureRowSelected
- border: 1px $failure-color solid
- border-left: 5px $failure-color solid
-
-.ruleNumberText
- font-size: 12px
- font-weight: 600
- white-space: nowrap
-
-.ruleNumberTextFailure
- color: #DB2156
-
-.ruleNumberTextSuccess
- color: #219653
-
.resolvedName
text-overflow: ellipsis
white-space: nowrap
diff --git a/ui-common/src/components/EntryListItem/EntryListItem.tsx b/ui-common/src/components/EntryListItem/EntryListItem.tsx
index a5037cc85..6f80b5894 100644
--- a/ui-common/src/components/EntryListItem/EntryListItem.tsx
+++ b/ui-common/src/components/EntryListItem/EntryListItem.tsx
@@ -37,13 +37,6 @@ interface Entry {
dst: TCPInterface,
isOutgoing?: boolean;
latency: number;
- rules: Rules;
-}
-
-interface Rules {
- status: boolean;
- latency: number;
- numberOfRules: number;
}
interface EntryProps {
@@ -67,7 +60,6 @@ export const EntryItem: React.FC = ({entry, style, headingMode, name
const isSelected = focusedEntryId === entry.id;
const classification = getClassification(entry.status)
- const numberOfRules = entry.rules.numberOfRules
let ingoingIcon;
let outgoingIcon;
switch(classification) {
@@ -87,35 +79,6 @@ export const EntryItem: React.FC = ({entry, style, headingMode, name
break;
}
}
- let additionalRulesProperties = "";
- let ruleSuccess = true;
- let rule = 'latency' in entry.rules
- if (rule) {
- if (entry.rules.latency !== -1) {
- if (entry.rules.latency >= entry.latency || !('latency' in entry)) {
- additionalRulesProperties = styles.ruleSuccessRow
- ruleSuccess = true
- } else {
- additionalRulesProperties = styles.ruleFailureRow
- ruleSuccess = false
- }
- if (isSelected) {
- additionalRulesProperties += ` ${entry.rules.latency >= entry.latency ? styles.ruleSuccessRowSelected : styles.ruleFailureRowSelected}`
- }
- } else {
- if (entry.rules.status) {
- additionalRulesProperties = styles.ruleSuccessRow
- ruleSuccess = true
- } else {
- additionalRulesProperties = styles.ruleFailureRow
- ruleSuccess = false
- }
- if (isSelected) {
- additionalRulesProperties += ` ${entry.rules.status ? styles.ruleSuccessRowSelected : styles.ruleFailureRowSelected}`
- }
- }
- }
-
const isStatusCodeEnabled = ((entry.proto.name === "http" && "status" in entry) || entry.status !== 0);
@@ -123,7 +86,7 @@ export const EntryItem: React.FC = ({entry, style, headingMode, name
{
if (!setFocusedEntryId) return;
setFocusedEntryId(entry.id);
@@ -187,13 +150,7 @@ export const EntryItem: React.FC = ({entry, style, headingMode, name
- {
- rule ?
-