Skip to content

Commit b4a04e2

Browse files
authored
Update inputs overview pages (#24519)
* move notifications under title - remove stop input button color * update inputs overview * fix quotes
1 parent 7b4725c commit b4a04e2

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

graylog2-web-interface/src/components/inputs/InputStateControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const InputStateControl = ({ input, openWizard, inputStates }: Props) => {
8585

8686
if (isInputRunning(inputStates, input.id)) {
8787
return (
88-
<Button bsStyle="danger" bsSize="xsmall" onClick={stopInput} disabled={isLoading}>
88+
<Button bsSize="xsmall" onClick={stopInput} disabled={isLoading}>
8989
{isLoading ? 'Stopping...' : 'Stop input'}
9090
</Button>
9191
);

graylog2-web-interface/src/components/inputs/InputsOveriew/ColumnRenderers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ const customColumnRenderers = ({ inputTypes, inputStates }: Props): ColumnRender
6666
<NodeCell input={input} />
6767
</ExpandedSectionToggleWrapper>
6868
),
69-
staticWidth: 130,
69+
staticWidth: 150,
7070
},
7171
traffic: {
7272
renderCell: (_traffic: string, input: InputSummary) => (
7373
<ExpandedSectionToggleWrapper id={input.id}>
7474
<ThroughputCell input={input} />
7575
</ExpandedSectionToggleWrapper>
7676
),
77-
staticWidth: 130,
77+
staticWidth: 180,
7878
},
7979
address: {
8080
renderCell: (_address: string, input: InputSummary) => (

graylog2-web-interface/src/components/inputs/InputsOveriew/Constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { Sort } from 'stores/PaginationTypes';
1919
const getInputsTableElements = () => {
2020
const tableLayout = {
2121
entityTableId: 'inputs',
22-
defaultPageSize: 20,
22+
defaultPageSize: 50,
2323
defaultSort: { attributeId: 'title', direction: 'asc' } as Sort,
2424
defaultDisplayedAttributes: [
2525
'title',
@@ -33,8 +33,9 @@ const getInputsTableElements = () => {
3333
],
3434
defaultColumnOrder: ['title', 'type', 'direction', 'desired_state', 'traffic', 'node_id', 'address', 'port'],
3535
};
36+
3637
const additionalAttributes = [
37-
{ id: 'traffic', title: 'Traffic' },
38+
{ id: 'traffic', title: 'Traffic Last Minute' },
3839
{ id: 'address', title: 'Address' },
3940
{ id: 'port', title: 'Port' },
4041
];

graylog2-web-interface/src/components/inputs/InputsOveriew/cells/ThroughputCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const ThroughputCell = ({ input }: Props) => {
7777
ref={spanRef}
7878
title={`${throughputSectionIsOpen ? 'Hide' : 'Show'} metrics`}
7979
onClick={toggleTrafficSection}>
80-
{!isNaN(incomingMessages) ? formatCount(incomingMessages) : 0} msg/s Last Minute
80+
{!isNaN(incomingMessages) ? formatCount(incomingMessages) : 0} msg/s
8181
</StyledSpan>
8282
);
8383
};

graylog2-web-interface/src/pages/InputsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const InputsPage = () => {
4040

4141
return (
4242
<DocumentTitle title="Inputs">
43-
<InputsNotifications />
4443
<PageHeader
4544
title="Inputs"
4645
documentationLink={{
@@ -63,6 +62,7 @@ const InputsPage = () => {
6362
<span>{productName} nodes accept data via inputs. Launch or terminate as many inputs as you want here.</span>
6463
)}
6564
</PageHeader>
65+
<InputsNotifications />
6666
<Row className="content">
6767
<Col md={12}>
6868
<InputsOverview inputTypeDescriptions={inputTypeDescriptions} inputTypes={inputTypes} />

0 commit comments

Comments
 (0)