Skip to content

Commit

Permalink
feat(FR-369): Add icon components for Neo design (#3223)
Browse files Browse the repository at this point in the history
resolves #3033 (FR-369)
<!-- replace NNN, MMM with the GitHub issue number and the corresponding Jira issue number. -->

Add an Icon component for Neo Webui. Componentise the icons within the Pygma design file.

**How to test:**
- Verify that colours, font size, etc. are applied correctly with inline css.
- Check for missing icons or duplicates.

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

**Checklist:** (if applicable)

- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
  • Loading branch information
ironAiken2 committed Feb 21, 2025
1 parent d54d1c4 commit 0be79da
Show file tree
Hide file tree
Showing 46 changed files with 398 additions and 19 deletions.
6 changes: 6 additions & 0 deletions react/src/components/BAIIcons/App.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/AppIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './App.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface AppIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const AppIcon: React.FC<AppIconProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default AppIcon;
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/CalculateResource.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/CalculateResourceIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './CalculateResource.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface CalculateResourceIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const CalculateResourceIcon: React.FC<CalculateResourceIconProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default CalculateResourceIcon;
6 changes: 6 additions & 0 deletions react/src/components/BAIIcons/ContainerCommit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/ContainerCommitIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './ContainerCommit.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface ContainerCommitIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const ContainerCommitIcon: React.FC<ContainerCommitIconProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default ContainerCommitIcon;
3 changes: 3 additions & 0 deletions react/src/components/BAIIcons/Dashboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/DashboardIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './Dashboard.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface DashboardIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const DashboardIcon: React.FC<DashboardIconProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default DashboardIcon;
11 changes: 11 additions & 0 deletions react/src/components/BAIIcons/Endpoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/EndpointIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './Endpoint.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface EndpointProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const Endpoint: React.FC<EndpointProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default Endpoint;
17 changes: 5 additions & 12 deletions react/src/components/BAIIcons/Examples.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions react/src/components/BAIIcons/List.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions react/src/components/BAIIcons/ListIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ReactComponent as logo } from './List.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface ListIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {}

const ListIcon: React.FC<ListIconProps> = (props) => {
return <Icon component={logo} {...props} />;
};

export default ListIcon;
Loading

0 comments on commit 0be79da

Please sign in to comment.