-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move dashboard dev env + msw to separate packages for reuse
- Loading branch information
1 parent
18385e6
commit d482405
Showing
148 changed files
with
896 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
VITE_AWS_ACCESS_KEY_ID=xxxxx | ||
VITE_AWS_SECRET_ACCESS_KEY=xxxxx | ||
VITE_AWS_SESSION_TOKEN=xxxxx | ||
VITE_AWS_REGION=xxxxx | ||
VITE_EDGE_GATEWAY_ENDPOINT=xxxxx | ||
|
||
STRING_ASSET_ID=xxxxx | ||
|
||
DEMO_TURBINE_ASSET_1=xxxxx | ||
DEMO_TURBINE_ASSET_1_PROPERTY_1=xxxxx | ||
DEMO_TURBINE_ASSET_1_PROPERTY_2=xxxxx | ||
DEMO_TURBINE_ASSET_1_PROPERTY_3=xxxxx | ||
DEMO_TURBINE_ASSET_1_PROPERTY_4=xxxxx | ||
|
||
AGGREGATED_DATA_PROPERTY=xxxxx | ||
AGGREGATED_DATA_PROPERTY_2=xxxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
storybook-static |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { handlers } from '@iot-app-kit/data-mocked/handers'; | ||
import { initialize, mswLoader } from 'msw-storybook-addon'; | ||
|
||
initialize(); | ||
|
||
export const parameters = { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
msw: { | ||
handlers, | ||
}, | ||
}; | ||
|
||
export const loaders = [mswLoader]; | ||
export const tags = ['autodocs']; |
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...oard/e2e/tests/configPanel/ConfigPanel.ts → .../e2e/dashboard/configPanel/ConfigPanel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
packages/dashboard/e2e/tests/utils/grid.ts → apps/dev-env/e2e/dashboard/utils/grid.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@iot-app-kit/dev-env", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"start": "npm run dev", | ||
"clean": "rimraf storybook-static .turbo .cache test-results playwright-report", | ||
"clean:nuke": "npm run clean && rimraf node_modules", | ||
"dev": "storybook dev -p 6006", | ||
"lint": "eslint . --max-warnings=0 --cache --cache-location .cache/eslint/ & tsc --noEmit", | ||
"fix": "eslint --fix . --cache --cache-location ./cache/eslint/", | ||
"test:ui": "npx playwright test", | ||
"test:ui:ci": "npx playwright test", | ||
"test:ui:watch": "npx playwright test --ui" | ||
}, | ||
"dependencies": { | ||
"@aws-sdk/client-iot-events": "^3.354.0", | ||
"@aws-sdk/client-iotsitewise": "^3.696.0", | ||
"@aws-sdk/client-iottwinmaker": "^3.354.0", | ||
"@cloudscape-design/components": "3.0.693", | ||
"@iot-app-kit/core": "*", | ||
"@iot-app-kit/core-util": "*", | ||
"@iot-app-kit/dashboard": "*", | ||
"@iot-app-kit/data-mocked": "*", | ||
"@iot-app-kit/helpers": "*", | ||
"@iot-app-kit/ts-config": "*", | ||
"@playwright/test": "^1.48.2", | ||
"@storybook/addon-essentials": "^8.4.5", | ||
"@storybook/addon-interactions": "^8.4.5", | ||
"@storybook/addon-links": "^8.4.5", | ||
"@storybook/react": "^8.4.5", | ||
"@storybook/react-vite": "^8.4.5", | ||
"@storybook/test": "^8.4.5", | ||
"@types/node": "^18.16.18", | ||
"@vitejs/plugin-react": "^4.3.3", | ||
"eslint-config-iot-app-kit": "*", | ||
"lodash": "^4.17.21", | ||
"msw-storybook-addon": "^2.0.4", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-hook-form": "^7.46.1", | ||
"rimraf": "^5.0.1", | ||
"storybook": "^8.4.5", | ||
"typescript": "^5.5.4", | ||
"uuid": "^9.0.0", | ||
"vite": "^5.4.11" | ||
}, | ||
"msw": { | ||
"workerDirectory": "public" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.