Skip to content

Commit

Permalink
Convert panels to all singular
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed May 4, 2022
1 parent 4011bf0 commit 1b386d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const fetchIndex = async (index?: string) => {
return response;
};

export const FleetIndicesDebugger = () => {
export const FleetIndexDebugger = () => {
const indices = [
{ label: '.fleet-agents', value: '.fleet-agents' },
{ label: '.fleet-actions', value: '.fleet-actions' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

export * from './agent_policy_debugger';
export * from './integration_debugger';
export * from './saved_objects_debugger';
export * from './saved_object_debugger';
export * from './preconfiguration_debugger';
export * from './fleet_indices_debugger';
export * from './fleet_index_debugger';
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
EuiLink,
EuiSpacer,
EuiText,
EuiTitle,
} from '@elastic/eui';

import { useMutation, useQuery } from 'react-query';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const fetchSavedObjects = async (type?: string, name?: string) => {
return response.data?.hits;
};

export const SavedObjectsDebugger: React.FunctionComponent = () => {
export const SavedObjectDebugger: React.FunctionComponent = () => {
const types = [
{ value: 'ingest-agent-policies', text: 'Agent policy' },
{ value: 'ingest-package-policies', text: 'Integration policy' },
Expand Down Expand Up @@ -83,8 +83,8 @@ export const SavedObjectsDebugger: React.FunctionComponent = () => {
<>
<EuiText grow={false}>
<p>
Search for Saved objects by selecting a type and its name. Use the code block below to
diagnose any potential issues.
Search for Fleet-related saved objects by selecting a type and name. Use the code block
below to diagnose any potential issues.
</p>
</EuiText>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import {
AgentPolicyDebugger,
IntegrationDebugger,
PreconfigurationDebugger,
FleetIndicesDebugger,
SavedObjectsDebugger,
FleetIndexDebugger,
SavedObjectDebugger,
} from './components';

// TODO: Evaluate moving this react-query initialization up to the main Fleet app
Expand All @@ -45,14 +45,14 @@ const panels = [
component: <IntegrationDebugger />,
},
{
title: 'Saved Objects Debugger',
id: 'savedObjectsDebugger',
component: <SavedObjectsDebugger />,
title: 'Saved Object Debugger',
id: 'savedObjectDebugger',
component: <SavedObjectDebugger />,
},
{
title: 'Fleet Indices Debugger',
id: 'fleetIndicesDebugger',
component: <FleetIndicesDebugger />,
title: 'Fleet Index Debugger',
id: 'fleetIndexDebugger',
component: <FleetIndexDebugger />,
},
{
title: 'Preconfiguration Debugger',
Expand Down

0 comments on commit 1b386d0

Please sign in to comment.