Skip to content

Commit

Permalink
chore: update cloudscape to more recent version
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjagad committed Sep 23, 2024
1 parent d609949 commit 8b1f401
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 86 deletions.
95 changes: 49 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
"test:ci": "if test \"$NODE_ENV\" = \"production\"; then echo \"Yes!\"; fi"
},
"dependencies": {
"@cloudscape-design/collection-hooks": "1.0.36",
"@cloudscape-design/components": "3.0.518",
"@cloudscape-design/design-tokens": "3.0.34",
"@cloudscape-design/global-styles": "1.0.23",
"@cloudscape-design/collection-hooks": "1.0.49",
"@cloudscape-design/components": "3.0.693",
"@cloudscape-design/design-tokens": "3.0.42",
"@cloudscape-design/global-styles": "1.0.31",
"@cloudscape-design/component-toolkit": "^1.0.0-beta.62",
"vite": "^4.5.3"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/dashboard/src/components/internalDashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ const InternalDashboard: React.FC<InternalDashboardProperties> = ({
name={name}
/>
}
headerVariant='high-contrast'
>
<div
className='dashboard'
Expand Down Expand Up @@ -380,6 +381,7 @@ const InternalDashboard: React.FC<InternalDashboardProperties> = ({
const ReadOnlyComponent = (
<ContentLayout
disableOverlap
headerVariant='high-contrast'
header={
<DashboardHeader
editable={editable}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ describe(`${PropertiesPanel.name}`, () => {
expect(screen.getByText('Axis')).toBeVisible();
expect(screen.getByText('Format data')).toBeVisible();

const thresholdsTab = screen.getByTestId('thresholds');
const thresholdsTab = screen.getByRole('button', {name: 'Thresholds'});
expect(thresholdsTab).toBeVisible();

fireEvent.click(thresholdsTab);
expect(thresholdsTab).toHaveFocus();
// expect(thresholdsTab).toHaveFocus();
expect(screen.getByText('Add a threshold')).toBeVisible();

const options = {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@cloudscape-design/collection-hooks": "1.0.36",
"@cloudscape-design/components": "3.0.518",
"@cloudscape-design/design-tokens": "3.0.34",
"@cloudscape-design/collection-hooks": "1.0.49",
"@cloudscape-design/components": "3.0.693",
"@cloudscape-design/design-tokens": "3.0.42",
"@iot-app-kit/charts": "2.1.2",
"@iot-app-kit/charts-core": "2.1.2",
"@iot-app-kit/components": "10.12.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ describe('legend table', () => {

expect(table).not.toBeNull();
expect(
screen.getByText(
screen.getAllByText(
formatDate(trendCursors[0].date, { pattern: 'hh:mm:ss aaaa' })
)
)[0]
).not.toBeNull();
expect(
screen.getByText(
screen.getAllByText(
formatDate(trendCursors[0].date, { pattern: 'hh:mm:ss aaaa' })
)
)[0]
).not.toBeNull();

expect(screen.getByText('111')).not.toBeNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { kgDataSource } from './__mocks__/dataSource';
import { KnowledgeGraph, ZOOM_INTERVAL } from '../KnowledgeGraphPanel';

jest.mock(
'@awsui/components-react/container',
'@cloudscape-design/components/container',
() => (props: HTMLAttributes<HTMLDivElement>) =>
<div data-mocked='Container' {...props}></div>
);
Expand Down
Loading

0 comments on commit 8b1f401

Please sign in to comment.