Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions cypress/e2e/cloud/operator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('Operator Page', () => {
})

cy.getByTestID('overlay--container').should('be.visible')
cy.getByTestID('overlay--header').contains('678')
cy.getByTestID('org-overlay-orgID').contains('678')

cy.getByTestID('limits-rate.readKBs--input').clear().type('666')

Expand Down Expand Up @@ -223,7 +223,7 @@ describe('Operator Page', () => {
})

cy.getByTestID('overlay--container').should('be.visible')
cy.getByTestID('overlay--header').contains('678')
cy.getByTestID('org-overlay-orgID').contains('678')

cy.getByTestID('limits-rate.readKBs--input')
.invoke('attr', 'value')
Expand Down
2 changes: 2 additions & 0 deletions src/operator/LimitsField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ interface Props {
const LimitsField: FC<Props> = ({type, name, limits, onChangeLimits}) => {
const [hasFocus, setHasFocus] = useState(false)
const {hasWritePermissions} = useContext(OperatorContext)

const value = get(limits, name, '')

const formatted_value =
type === InputType.Number
? Intl.NumberFormat(navigator.language).format(value)
Expand Down
5 changes: 5 additions & 0 deletions src/operator/OrgOverlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@
padding: $cf-space-2xs $cf-space-s;
}
}

.org-overlay-detail--text {
font-weight: 700;
font-size: 16px;
}
32 changes: 24 additions & 8 deletions src/operator/OrgOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const OrgOverlay: FC = () => {
const history = useHistory()
const canReactivateOrg =
hasWritePermissions && organization?.state === 'suspended'

const isIOx =
organization?.storageType &&
organization.storageType.toLowerCase() === 'iox'
Expand Down Expand Up @@ -98,8 +99,8 @@ const OrgOverlay: FC = () => {
>
<Overlay.Container maxWidth={1000}>
<Overlay.Header
title={orgID}
className="overlay-header--color overlay-header--title"
title="Organization Details"
className="overlay-header--color"
onDismiss={() => history.goBack()}
/>
<SpinnerContainer
Expand All @@ -110,13 +111,20 @@ const OrgOverlay: FC = () => {
<Panel.Body>
<Grid>
<Grid.Row>
<Grid.Column widthMD={Columns.Four}>
<label>Organization Name</label>
<p>{organization?.name ?? ''}</p>
<Grid.Column
widthMD={Columns.Four}
testID="org-overlay-orgID"
>
<label className="org-overlay-detail--text">
Organization ID
</label>
<p>{orgID}</p>
</Grid.Column>
<Grid.Column widthMD={Columns.Four}>
<label>Account Type</label>
<p>{organization?.account?.type ?? ''}</p>
<label className="org-overlay-detail--text">
Organization Name
</label>
<p>{organization?.name ?? ''}</p>
</Grid.Column>
<Grid.Column widthMD={Columns.Four}>
<LinkButton
Expand Down Expand Up @@ -151,9 +159,17 @@ const OrgOverlay: FC = () => {
</Grid.Row>
<Grid.Row>
<Grid.Column widthMD={Columns.Four}>
<label>Organization State</label>
<label className="org-overlay-detail--text">
Organization State
</label>
<p>{organization?.state ?? ''}</p>
</Grid.Column>
<Grid.Column widthMD={Columns.Four}>
<label className="org-overlay-detail--text">
Account Type
</label>
<p>{organization?.account?.type ?? ''}</p>
</Grid.Column>
</Grid.Row>
<SpinnerContainer
loading={limitsStatus}
Expand Down