Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.8.11",
"react-icons": "^5.5.0",
"react-modal": "^3.14.4",
"react-router": "^5.3.0",
"react-router-dom": "^5.3.0"
Expand Down
11 changes: 6 additions & 5 deletions web/src/components/drawer/record/record-field.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ResourceIcon, ResourceLink } from '@openshift-console/dynamic-plugin-sdk';
import { Button, Flex, FlexItem, Popover, Text, TextContent, TextVariants, Tooltip } from '@patternfly/react-core';
import { FilterIcon, GlobeAmericasIcon, TimesIcon, ToggleOffIcon, ToggleOnIcon } from '@patternfly/react-icons';
import { GlobeAmericasIcon } from '@patternfly/react-icons';
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
Expand All @@ -16,6 +16,7 @@ import { formatPort } from '../../../utils/port';
import { formatProtocol, getProtocolDocUrl } from '../../../utils/protocol';
import { getFlagsList, getTCPFlagsDocUrl } from '../../../utils/tcp-flags';
import { Size } from '../../dropdowns/table-display-dropdown';
import { FilterAddIcon, FilterRemoveIcon, FilterToggleOffIcon, FilterToggleOnIcon } from '../../icons';
import './record-field.css';

export type RecordFieldFilter = {
Expand Down Expand Up @@ -635,14 +636,14 @@ export const RecordField: React.FC<RecordFieldProps> = ({
<Button variant="link" aria-label="Filter" onClick={filter.onClick}>
{filter.type === 'filter' ? (
filter.isDelete ? (
<TimesIcon />
<FilterRemoveIcon />
) : (
<FilterIcon />
<FilterAddIcon />
)
) : filter.isDelete ? (
<ToggleOffIcon />
<FilterToggleOffIcon />
) : (
<ToggleOnIcon />
<FilterToggleOnIcon />
)}
</Button>
</Tooltip>
Expand Down
9 changes: 2 additions & 7 deletions web/src/components/dropdowns/match-dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Dropdown, DropdownItem, MenuToggle, MenuToggleElement } from '@patternfly/react-core';
import { LongArrowAltDownIcon, LongArrowAltUpIcon } from '@patternfly/react-icons';
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { Match } from '../../model/flow-query';
import { BackAndForthIcon } from '../icons';

export interface MatchDropdownProps {
selected: Match;
Expand All @@ -26,12 +26,7 @@ export const MatchDropdown: React.FC<MatchDropdownProps> = ({ allowBidirectional
case 'bidirectional':
if (allowBidirectional) {
if (toggle) {
return (
<div style={{ transform: 'rotate(90deg)' }}>
<LongArrowAltUpIcon />
<LongArrowAltDownIcon />
</div>
);
return <BackAndForthIcon size="1.5em" />;
} else {
return t('Bidirectional');
}
Expand Down
13 changes: 13 additions & 0 deletions web/src/components/icons/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Icon components for Network Observability
*
* This module exports custom icons and icon wrappers for consistent styling
* across the application. It includes:
* - React Icons wrapper for consistent sizing
* - Kubernetes resource icons
* - Network-specific icons (filters, packets, etc.)
*/

export * from './kubernetes-icons';
export * from './react-icons';
export * from './react-icons-wrapper';
Loading
Loading