@digital-realty/ui-launchpad 14.0.0-IXUAT-11032.548350 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,30 +1,38 @@
1
- <p align="center">
2
- <img width="200" src="https://open-wc.org/hero.png"></img>
3
- </p>
4
-
5
- ## Open-wc Starter App
6
-
7
- [![Built with open-wc recommendations](https://img.shields.io/badge/built%20with-open--wc-blue.svg)](https://github.com/open-wc)
8
-
9
- ## Quickstart
10
-
11
- To get started:
12
-
13
- ```sh
14
- npm init @open-wc
15
- # requires node 10 & npm 6 or higher
16
- ```
1
+ # ui-launchpad
2
+
3
+ The default dashboard view of the Digital Realty Global Portal (GPv2).
4
+ Mounts at the app-shell root (`/`) once the customer is signed in.
5
+
6
+ - **Status tiles** — Active Tickets, Active Users, My Sites, DCIM-Enabled
7
+ Locations, Active Orders. Permission-gated summary counts.
8
+ - **Navigation menus** — Order Management, User Management, Service
9
+ Tickets, Service Request / Termination shortcuts. Each item hands off
10
+ to another MFE via `@vaadin/router` or a `CustomEvent` the app-shell
11
+ consumes.
12
+ - **Recent activity** — Ticket Updates and Your Action Required tables,
13
+ merging Service Management and GOM Order Management data streams.
14
+ - **Knowledge Base iframe** — external KB app with a `postMessage`
15
+ contract for opening articles at full screen.
16
+ - **What's New / Resources / Promotions** — sidebar cards driven by the
17
+ KB feed, including an in-page video modal for learning resources.
18
+ - **Support contacts** — email and regional phone numbers.
19
+ - **Contact Us form** — drawer with a support-category form for raising
20
+ a ticket without leaving the launchpad.
21
+ - **Release notes** — first-run dialog with dismiss / read-more actions.
22
+
23
+ Every widget and nav fragment is permission-gated by
24
+ `/usermanagement/my-permissions`, and Service Tickets items are further
25
+ gated by per-location probes against `/inventory/locations`.
17
26
 
18
27
  ## Scripts
19
28
 
20
29
  - `start` runs your app for development, reloading on file changes
21
30
  - `start:build` runs your app after it has been built using the build command
22
- - `build` builds your app and outputs it in your `dist` directory
23
- - `test` runs your test suite with Web Test Runner
24
31
  - `lint` runs the linter for your project
25
-
26
- ## Tooling configs
27
-
28
- For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
29
-
30
- If you customize the configuration a lot, you can consider moving them to individual files.
32
+ - `build` builds your app and outputs it in your `dist` directory
33
+ - `test` runs both unit and acceptance tests
34
+ - `pnpm run test:unit` runs unit tests
35
+ - `pnpm run test:acceptance` run acceptance tests
36
+ - `pnpm run test:acceptance:ui` run acceptance tests with playwright ui and headed browser
37
+ - `pnpm run test:report` view the playwright html test report
38
+ - `pnpm run test:coverage` merge and view the test coverage report
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><base href="/"><script>window.process={env:{NODE_ENV:"production"}}</script><script>!function(){var n=new XMLHttpRequest;n.open("GET","/config.json",!1),n.send(),n.status>=200&&n.status<300&&(window.gpConfig={"ui-launchpad":JSON.parse(n.responseText)})}()</script><title>ui-launchpad</title></head><body data-theme="ix-theme"><script type="module" src="./ui-launchpad.js"></script><script inject-service-worker="">"serviceWorker"in navigator&&window.addEventListener("load",function(){navigator.serviceWorker.register("sw.js").then(function(){console.log('ServiceWorker registered from "sw.js".')}).catch(function(e){console.log("ServiceWorker registration failed: ",e)})})</script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><script async="" src="https://cdn.jsdelivr.net/npm/es-module-shims@1.6.0/dist/es-module-shims.js"></script><script>!function(){const n=new XMLHttpRequest;n.open("GET","/config.json",!1),n.send(),n.status>=200&&n.status<300&&(window.gpConfig={"ui-launchpad":JSON.parse(n.responseText)})}()</script><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="DLR Portal"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&amp;display=block"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;700&amp;display=swap"><link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;1,500&amp;display=swap" rel="stylesheet"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastify-js@^1.12.0/src/toastify.min.css"><meta name="msapplication-TileColor" content="#0099cc"><meta name="msapplication-config" content="./assets/images/app-icons/browserconfig.xml"><meta name="theme-color" content="#ffffff"><meta name="format-detection" content="telephone=no"><base href="/"><script>window.process={env:{NODE_ENV:"production"}}</script><style>body,html{background-color:#f5f7ff}:host :root [data-theme=ix-theme],:host [data-theme=ix-theme],:root [data-theme=ix-theme]{--md-sys-color-on-surface-variant:#B8BFC8}vaadin-date-picker-overlay,vaadin-time-picker-overlay{z-index:99999}</style><title>ui-launchpad</title></head><body data-theme="ix-theme"><ui-launchpad></ui-launchpad><noscript>Please enable JavaScript to view this website.</noscript><script type="module" src="./ui-launchpad.js"></script><script inject-service-worker="">"serviceWorker"in navigator&&window.addEventListener("load",function(){navigator.serviceWorker.register("sw.js").then(function(){console.log('ServiceWorker registered from "sw.js".')}).catch(function(e){console.log("ServiceWorker registration failed: ",e)})})</script></body></html>
package/dist/sw.js CHANGED
@@ -1,2 +1,2 @@
1
- if(!self.define){let e,i={};const n=(n,t)=>(n=new URL(n+".js",t).href,i[n]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()}).then(()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let s={};const c=e=>n(e,r),d={module:{uri:r},exports:s,require:c};i[r]=Promise.all(t.map(e=>d[e]||c(e))).then(e=>(o(...e),s))}}define(["./workbox-b865b753"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"fcd3c98e7d960dcf13ed3fcfb6ca4bfd"},{url:"ui-launchpad.js",revision:"463984434d2c0fce5045b5c68da1070f"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute("polyfills/*.js",new e.CacheFirst,"GET")});
1
+ if(!self.define){let e,i={};const n=(n,t)=>(n=new URL(n+".js",t).href,i[n]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()}).then(()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let s={};const c=e=>n(e,r),l={module:{uri:r},exports:s,require:c};i[r]=Promise.all(t.map(e=>l[e]||c(e))).then(e=>(o(...e),s))}}define(["./workbox-b865b753"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"2c69eb2da85c9b2ee93b0c537cf41d78"},{url:"ui-launchpad.js",revision:"463984434d2c0fce5045b5c68da1070f"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute("polyfills/*.js",new e.CacheFirst,"GET")});
2
2
  //# sourceMappingURL=sw.js.map
package/dist/sw.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/8j/3c4g2vh16vgc8j40cj25qfqh0000gn/T/d727d1c3111f9a720dd367e0620fbb0f/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-strategies@6.6.0/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-core@6.6.0/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"index.html\",\n \"revision\": \"fcd3c98e7d960dcf13ed3fcfb6ca4bfd\"\n },\n {\n \"url\": \"ui-launchpad.js\",\n \"revision\": \"463984434d2c0fce5045b5c68da1070f\"\n }\n], {});\n\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\")));\n\n\nworkbox_routing_registerRoute(\"polyfills/*.js\", new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox","registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","workbox_strategies_CacheFirst"],"mappings":"inBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,qCAEb,CAAE,GAEwBC,EAAAC,cAAC,IAAIC,EAAAA,gBAAgCC,EAAAA,wBAA2C,iBAGhFH,EAAAC,cAAC,iBAAkB,IAAIG,aAAiC"}
1
+ {"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/8j/3c4g2vh16vgc8j40cj25qfqh0000gn/T/1b132bd0c0b69763faa44c0bf27e5776/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-strategies@6.6.0/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-core@6.6.0/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"index.html\",\n \"revision\": \"2c69eb2da85c9b2ee93b0c537cf41d78\"\n },\n {\n \"url\": \"ui-launchpad.js\",\n \"revision\": \"463984434d2c0fce5045b5c68da1070f\"\n }\n], {});\n\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\")));\n\n\nworkbox_routing_registerRoute(\"polyfills/*.js\", new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox","registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","workbox_strategies_CacheFirst"],"mappings":"inBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,qCAEb,CAAE,GAEwBC,EAAAC,cAAC,IAAIC,EAAAA,gBAAgCC,EAAAA,wBAA2C,iBAGhFH,EAAAC,cAAC,iBAAkB,IAAIG,aAAiC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent ui-launchpad following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "ui-launchpad",
6
- "version": "14.0.0-IXUAT-11032.548350",
6
+ "version": "14.0.0",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  "./ui-launchpad.js": "./dist/ui-launchpad.js",
@@ -36,14 +36,17 @@
36
36
  "lit": "^3.1.0"
37
37
  },
38
38
  "devDependencies": {
39
+ "@axe-core/playwright": "^4.12.1",
39
40
  "@babel/preset-env": "^7.16.4",
40
41
  "@custom-elements-manifest/analyzer": "^0.4.17",
41
42
  "@digital-realty/ix-twlit": "^1.2.4",
42
43
  "@digital-realty/theme": "^3.1.4",
44
+ "@faker-js/faker": "^10.5.0",
43
45
  "@koa/cors": "^5.0.0",
44
46
  "@open-wc/building-rollup": "^2.0.2",
45
47
  "@open-wc/eslint-config": "^9.2.1",
46
48
  "@open-wc/testing": "^3.1.6",
49
+ "@playwright/test": "1.61.0",
47
50
  "@rollup/plugin-alias": "^5.1.1",
48
51
  "@rollup/plugin-babel": "^5.3.0",
49
52
  "@rollup/plugin-commonjs": "^25.0.4",
@@ -52,16 +55,17 @@
52
55
  "@rollup/plugin-replace": "^5.0.5",
53
56
  "@types/markdown-it": "^14.1.2",
54
57
  "@types/mocha": "^10.0.10",
58
+ "@types/node": "^24.13.3",
55
59
  "@typescript-eslint/eslint-plugin": "^5.48.0",
56
60
  "@typescript-eslint/parser": "^5.48.0",
61
+ "@vitest/browser": "^4.1.10",
62
+ "@vitest/browser-playwright": "^4.1.10",
63
+ "@vitest/runner": "^4.1.10",
57
64
  "@web/dev-server": "^0.4.6",
58
65
  "@web/dev-server-rollup": "^0.6.4",
59
66
  "@web/dev-server-storybook": "^0.0.2",
60
67
  "@web/rollup-plugin-html": "^1.11.0",
61
68
  "@web/rollup-plugin-import-meta-assets": "^1.0.7",
62
- "@web/test-runner": "^0.19.0",
63
- "@web/test-runner-commands": "^0.9.0",
64
- "@web/test-runner-playwright": "^0.11.0",
65
69
  "babel-plugin-template-html-minifier": "^4.1.0",
66
70
  "change-case": "^3.1.0",
67
71
  "concurrently": "^5.3.0",
@@ -69,12 +73,14 @@
69
73
  "deepmerge": "^4.2.2",
70
74
  "eslint": "^8.31.0",
71
75
  "eslint-config-prettier": "^8.3.0",
76
+ "happy-dom": "^20.10.6",
72
77
  "husky": "^9.0.11",
73
78
  "less": "^4.2.0",
74
79
  "lint-staged": "^10.5.4",
80
+ "monocart-coverage-reports": "^2.12.12",
75
81
  "nodemon": "^3.1.0",
76
- "playwright": "^1.60.0",
77
- "prettier": "^2.4.1",
82
+ "playwright": "1.61.0",
83
+ "prettier": "^3.3.0",
78
84
  "rimraf": "^3.0.2",
79
85
  "rollup": "^2.60.0",
80
86
  "rollup-plugin-esbuild": "^5.0.0",
@@ -82,7 +88,10 @@
82
88
  "rollup-plugin-workbox": "^6.2.0",
83
89
  "tailwindcss": "^3.4.1",
84
90
  "tslib": "^2.3.1",
85
- "typescript": "^4.5.2"
91
+ "typescript": "^5.7.0",
92
+ "vitest": "^4.1.10",
93
+ "vitest-browser-lit": "^1.0.1",
94
+ "vitest-monocart-coverage": "^4.0.2"
86
95
  },
87
96
  "eslintConfig": {
88
97
  "parser": "@typescript-eslint/parser",
@@ -107,6 +116,19 @@
107
116
  "ignorePackages": true
108
117
  }
109
118
  ],
119
+ "import/no-extraneous-dependencies": [
120
+ "error",
121
+ {
122
+ "devDependencies": [
123
+ "**/test/**",
124
+ "**/test-new/**",
125
+ "**/*.test.ts",
126
+ "**/*.spec.ts",
127
+ "**/playwright.config.ts",
128
+ "**/vitest.config.ts"
129
+ ]
130
+ }
131
+ ],
110
132
  "no-restricted-syntax": [
111
133
  "error",
112
134
  {
@@ -133,8 +155,15 @@
133
155
  "build:workspace": "pnpm run build",
134
156
  "lint": "eslint --ext .ts,.html . && prettier \"**/*.ts\" --check",
135
157
  "format": "eslint --ext .ts,.html . --fix && prettier \"**/*.ts\" --write",
136
- "test": "tsc && wtr --coverage",
137
- "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
158
+ "test": "pnpm test:typecheck && pnpm test:unit && pnpm test:component && pnpm test:acceptance && pnpm test:coverage --no-bail",
159
+ "test:typecheck": "tsc -p test/tsconfig.json",
160
+ "test:unit": "vitest run --config=test/unit/vitest.config.ts",
161
+ "test:component": "vitest run --config=test/component/vitest.config.ts",
162
+ "test:acceptance": "playwright test --config=test/acceptance/playwright.config.ts",
163
+ "test:acceptance:ui": "playwright test --config=test/acceptance/playwright.config.ts --ui --headed",
164
+ "test:acceptance:report": "playwright show-report test-results/acceptance/reports",
165
+ "test:coverage": "node ./test/mcr-merge.ts",
166
+ "junit": "node test/add-junit-attachments.ts test-results/unit/reports/junit.xml test-results/unit/artifacts && node test/add-junit-attachments.ts test-results/component/reports/junit.xml test-results/component/artifacts",
138
167
  "storybook": "tsc && pnpm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
139
168
  "storybook:build": "tsc && pnpm run analyze -- --exclude dist && build-storybook",
140
169
  "build": "rimraf dist && pnpm run tailwindcss:build && pnpm run twlit:build && tsc && pnpm run less:build && rollup -c rollup.config.mjs",