Skip to content

Commit

Permalink
fix(dashboard): use sentence casting in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
square-li committed Mar 28, 2023
1 parent 08c7eda commit 90ff030
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/dashboard/src/components/palette/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SpaceBetween from '@cloudscape-design/components/space-between';
const Palette = () => {
return (
<>
<Box variant='awsui-key-label'>Component Library</Box>
<Box variant='awsui-key-label'>Component library</Box>
<SpaceBetween size='xs' direction='horizontal'>
{ComponentLibraryComponentOrdering.map((widgetType) => {
const [name, iconComponent] = ComponentLibraryComponentMap[widgetType];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { ItemTypes } from '../../dragLayer/itemTypes';

import './style.css';
import { useAssetDescriptionAsync } from '~/hooks/useAssetDescriptionMapAsync';
import type { AlarmSummary, AssetSummary, PropertySummary } from './mapper';
import { mapAssetDescriptionToAssetSummary } from './mapper';
import type { DashboardMessages } from '~/messages';
import type { AlarmSummary, AssetSummary, PropertySummary } from './mapper';

export interface ResourceExplorerPanelProps {
assetId: string | undefined;
Expand Down Expand Up @@ -124,7 +124,7 @@ export const ResourceExplorerPanel: React.FC<ResourceExplorerPanelProps> = ({
if (properties.length > 0) {
items.push({
type: 'header',
name: 'Asset Properties',
name: 'Asset properties',
});
items.push(...properties.map(mapper));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ResourceExplorerPanel } from '../components/panel';
import { DefaultDashboardMessages } from '../../../messages';
import type { SiteWiseQuery } from '@iot-app-kit/source-iotsitewise';
import type { AssetSummary, DescribeAssetResponse } from '@aws-sdk/client-iotsitewise';
import type { TableProps, NonCancelableCustomEvent } from '@cloudscape-design/components';
import type { NonCancelableCustomEvent, TableProps } from '@cloudscape-design/components';

import './style.css';

Expand All @@ -18,7 +18,7 @@ const DEFAULT_COLUMNS = [
{
sortingField: 'name',
id: 'name',
header: 'Asset Name',
header: 'Asset name',
cell: ({ name }: AssetSummary) => name,
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const GeneralPropertiesAlarmsSection: FC<PropertiesAlarmsSectionProps> = ({

return (
<ExpandableSection
headerText={<ExpandableSectionHeader>Properties & Alarms</ExpandableSectionHeader>}
headerText={<ExpandableSectionHeader>Properties and alarms</ExpandableSectionHeader>}
defaultExpanded
>
<SpaceBetween size='m' direction='vertical'>
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const DefaultDashboardMessages: DashboardMessages = {
sendToBackText: 'Send to Back',
},
viewport: {
title: 'Time Machine',
title: 'Time machine',
placeholder: 'Dashboard time range',
todayAriaLabel: 'Today',
nextMonthAriaLabel: 'Next month',
Expand Down

0 comments on commit 90ff030

Please sign in to comment.