Skip to content

Commit

Permalink
feat(pci-load-balancer): review design
Browse files Browse the repository at this point in the history
ref: DTCORE-2846
Signed-off-by: Yoann Fievez <[email protected]>
  • Loading branch information
kqesar committed Nov 15, 2024
1 parent 2cc2cd4 commit f13210c
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Links } from '@ovh-ux/manager-react-components';
import { Headers, Links } from '@ovh-ux/manager-react-components';
import { OdsHTMLAnchorElementTarget } from '@ovhcloud/ods-common-core';
import { ODS_TEXT_LEVEL, ODS_TEXT_SIZE } from '@ovhcloud/ods-components';
import { OsdsText } from '@ovhcloud/ods-components/react';
Expand All @@ -14,15 +14,9 @@ export default function Listeners() {

return (
<div>
<OsdsText
size={ODS_TEXT_SIZE._600}
level={ODS_TEXT_LEVEL.heading}
color={ODS_THEME_COLOR_INTENT.text}
>
{t('octavia_load_balancer_listeners_title')}
</OsdsText>
<Headers title={t('octavia_load_balancer_listeners_title')} />

<div className="my-8">
<div>
<OsdsText
className="block"
size={ODS_TEXT_SIZE._400}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ListenerList() {
<div className="sm:flex items-center justify-between mt-4">
<OsdsButton
size={ODS_BUTTON_SIZE.sm}
variant={ODS_BUTTON_VARIANT.stroked}
variant={ODS_BUTTON_VARIANT.flat}
color={ODS_THEME_COLOR_INTENT.primary}
className="xs:mb-0.5 sm:mb-0"
onClick={() => {
Expand All @@ -80,7 +80,7 @@ export default function ListenerList() {
<OsdsIcon
size={ODS_ICON_SIZE.xs}
name={ODS_ICON_NAME.PLUS}
className="mr-2"
className="mr-2 bg-white"
color={ODS_THEME_COLOR_INTENT.primary}
/>
{t('octavia_load_balancer_listeners_add_button')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function StreamsPage() {
className="mt-4"
color={ODS_THEME_COLOR_INTENT.primary}
size={ODS_BUTTON_SIZE.sm}
variant={ODS_BUTTON_VARIANT.stroked}
variant={ODS_BUTTON_VARIANT.flat}
onClick={() => {
gotoAddDataStream();
}}
Expand All @@ -99,6 +99,7 @@ export default function StreamsPage() {
<OsdsIcon
name={ODS_ICON_NAME.ADD}
size={ODS_ICON_SIZE.xxs}
className="bg-white"
color={ODS_THEME_COLOR_INTENT.primary}
/>
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Links } from '@ovh-ux/manager-react-components';
import { Headers, Links } from '@ovh-ux/manager-react-components';
import { OdsHTMLAnchorElementTarget } from '@ovhcloud/ods-common-core';
import { ODS_TEXT_LEVEL, ODS_TEXT_SIZE } from '@ovhcloud/ods-components';
import { OsdsText } from '@ovhcloud/ods-components/react';
Expand All @@ -14,15 +14,9 @@ export default function Pools() {

return (
<div>
<OsdsText
size={ODS_TEXT_SIZE._600}
level={ODS_TEXT_LEVEL.heading}
color={ODS_THEME_COLOR_INTENT.text}
>
{t('octavia_load_balancer_pools_title')}
</OsdsText>
<Headers title={t('octavia_load_balancer_pools_title')} />

<div className="my-8">
<div>
<OsdsText
className="block"
size={ODS_TEXT_SIZE._400}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function PoolList() {
<div className="sm:flex items-center justify-between mt-4">
<OsdsButton
size={ODS_BUTTON_SIZE.sm}
variant={ODS_BUTTON_VARIANT.stroked}
variant={ODS_BUTTON_VARIANT.flat}
color={ODS_THEME_COLOR_INTENT.primary}
className="xs:mb-0.5 sm:mb-0"
onClick={() => {
Expand All @@ -80,7 +80,7 @@ export default function PoolList() {
<OsdsIcon
size={ODS_ICON_SIZE.xs}
name={ODS_ICON_NAME.PLUS}
className="mr-2"
className="mr-2 bg-white"
color={ODS_THEME_COLOR_INTENT.primary}
/>
{t('octavia_load_balancer_pools_add_button')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function ListingPage() {
<div className="sm:flex items-center justify-between mt-4">
<OsdsButton
size={ODS_BUTTON_SIZE.sm}
variant={ODS_BUTTON_VARIANT.stroked}
variant={ODS_BUTTON_VARIANT.flat}
color={ODS_THEME_COLOR_INTENT.primary}
className="xs:mb-0.5 sm:mb-0"
onClick={() => {
Expand All @@ -94,7 +94,7 @@ export default function ListingPage() {
<OsdsIcon
size={ODS_ICON_SIZE.xs}
name={ODS_ICON_NAME.PLUS}
className="mr-2"
className="mr-2 bg-white"
color={ODS_THEME_COLOR_INTENT.primary}
/>
{t('octavia_load_balancers_add_button')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import clsx from 'clsx';
import isEqual from 'lodash.isequal';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { AccordionComponent } from '../accordion/Accordion.component';
import { DefaultItemLabelComponent } from './default-components/item-label';
import { DefaultStackLabelComponent } from './default-components/stack-label';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { ReactNode } from 'react';
import React, { ReactNode } from 'react';
import { GHOST_BUTTON_CLASS } from '../constants';

export const DefaultShapeComponent = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

export const DefaultGroupLabelComponent = ({
groupName,
isGroupSelected,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

export const DefaultItemLabelComponent = ({
item,
isItemSelected,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

export const DefaultStackLabelComponent = ({
stackKey,
isStackSelected,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

export const DefaultStackTitleComponent = ({
stackKey,
}: {
Expand Down

0 comments on commit f13210c

Please sign in to comment.