wcz-layout 6.7.2 → 9.6.3
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/dist/Approval-C-hF4jbT.mjs +194 -0
- package/dist/Approval-C-hF4jbT.mjs.map +1 -0
- package/dist/DialogsContext-DLqA8RJ_.mjs +7 -0
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -0
- package/dist/Email-BzQQkbe9.mjs +20 -0
- package/dist/Email-BzQQkbe9.mjs.map +1 -0
- package/dist/Email-CKUxOURX.d.mts +17 -0
- package/dist/Employee-iepWeWhO.d.mts +363 -0
- package/dist/FileMeta-Be9viU7D.d.mts +19 -0
- package/dist/FileMeta-DDqUju1Y.mjs +19 -0
- package/dist/FileMeta-DDqUju1Y.mjs.map +1 -0
- package/dist/NotificationContext-CgwUOeW0.mjs +7 -0
- package/dist/NotificationContext-CgwUOeW0.mjs.map +1 -0
- package/dist/QueryClientParam-Cbb0MIKg.d.mts +10 -0
- package/dist/RouterListItemButton-owZVvuC_.mjs +78 -0
- package/dist/RouterListItemButton-owZVvuC_.mjs.map +1 -0
- package/dist/User-1gKoYJvW.d.mts +12 -0
- package/dist/auth.d.mts +19 -0
- package/dist/auth.mjs +92 -0
- package/dist/auth.mjs.map +1 -0
- package/dist/authMiddleware-CKD6lG9v.mjs +49 -0
- package/dist/authMiddleware-CKD6lG9v.mjs.map +1 -0
- package/dist/components.d.mts +104 -0
- package/dist/components.mjs +1277 -0
- package/dist/components.mjs.map +1 -0
- package/dist/data/client.d.mts +3202 -0
- package/dist/data/client.mjs +211 -0
- package/dist/data/client.mjs.map +1 -0
- package/dist/data/server.d.mts +10 -0
- package/dist/data/server.mjs +16 -0
- package/dist/data/server.mjs.map +1 -0
- package/dist/entra-47nBhMK-.mjs +109 -0
- package/dist/entra-47nBhMK-.mjs.map +1 -0
- package/dist/env-CoveIivr.mjs +30 -0
- package/dist/env-CoveIivr.mjs.map +1 -0
- package/dist/file-Bcoxn1YA.mjs +154 -0
- package/dist/file-Bcoxn1YA.mjs.map +1 -0
- package/dist/file-DgooCXxX.mjs +171 -0
- package/dist/file-DgooCXxX.mjs.map +1 -0
- package/dist/hooks.d.mts +215 -0
- package/dist/hooks.mjs +1090 -0
- package/dist/hooks.mjs.map +1 -0
- package/dist/index.d.mts +50 -0
- package/dist/index.mjs +1951 -0
- package/dist/index.mjs.map +1 -0
- package/dist/middleware.d.mts +33 -0
- package/dist/middleware.mjs +27 -0
- package/dist/middleware.mjs.map +1 -0
- package/dist/models.d.mts +225 -0
- package/dist/models.mjs +74 -0
- package/dist/models.mjs.map +1 -0
- package/dist/msalServer-Ce9p7sTC.mjs +30 -0
- package/dist/msalServer-Ce9p7sTC.mjs.map +1 -0
- package/dist/peoplesoft-4pOmhLn5.d.mts +167 -0
- package/dist/peoplesoft-BdPHe6Ac.mjs +202 -0
- package/dist/peoplesoft-BdPHe6Ac.mjs.map +1 -0
- package/dist/useDialogs-BUzVrTSP.mjs +248 -0
- package/dist/useDialogs-BUzVrTSP.mjs.map +1 -0
- package/dist/user-Dzv0N9fj.d.mts +16 -0
- package/dist/utils-5x4uNxsX.d.mts +63 -0
- package/dist/utils-CqVAK5F8.mjs +238 -0
- package/dist/utils-CqVAK5F8.mjs.map +1 -0
- package/dist/utils-D39-w_ij.mjs +4 -0
- package/dist/utils.d.mts +5 -0
- package/dist/utils.mjs +3 -0
- package/dist/vite.d.mts +6 -0
- package/dist/vite.mjs +149 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +127 -62
- package/skills/client-db/SKILL.md +109 -0
- package/skills/data-grid/SKILL.md +142 -0
- package/skills/db-schema/SKILL.md +72 -0
- package/skills/dialogs/SKILL.md +78 -0
- package/skills/forms/SKILL.md +83 -0
- package/skills/general/SKILL.md +74 -0
- package/skills/routing/SKILL.md +94 -0
- package/skills/server-functions/SKILL.md +111 -0
- package/skills/services/SKILL.md +31 -0
- package/skills/services/docs/approval.md +257 -0
- package/skills/services/docs/email.md +32 -0
- package/skills/services/docs/file.md +108 -0
- package/skills/services/docs/peoplesoft.md +110 -0
- package/skills/start/SKILL.md +47 -0
- package/skills/start/steps/01-git-setup.md +11 -0
- package/skills/start/steps/02-project-name-setup.md +19 -0
- package/skills/start/steps/03-apm-setup.md +208 -0
- package/skills/start/steps/04-wicop-setup.md +80 -0
- package/skills/start/steps/05-database-setup.md +44 -0
- package/skills/start/steps/06-entra-setup.md +98 -0
- package/skills/start/steps/07-vault-setup.md +69 -0
- package/skills/start/steps/08-generate-favicon.md +8 -0
- package/skills/start/steps/09-commit.md +15 -0
- package/skills/start/steps/10-gitlab-ci.md +25 -0
- package/dist/src/components/Layout.d.ts +0 -16
- package/dist/src/components/Layout.js +0 -122
- package/dist/src/components/Layout.js.map +0 -1
- package/dist/src/components/dataGrid/ChipInputCell.d.ts +0 -9
- package/dist/src/components/dataGrid/ChipInputCell.js +0 -17
- package/dist/src/components/dataGrid/ChipInputCell.js.map +0 -1
- package/dist/src/components/dataGrid/EditableColumnHeader.d.ts +0 -2
- package/dist/src/components/dataGrid/EditableColumnHeader.js +0 -7
- package/dist/src/components/dataGrid/EditableColumnHeader.js.map +0 -1
- package/dist/src/components/dataGrid/GridToolbar.d.ts +0 -8
- package/dist/src/components/dataGrid/GridToolbar.js +0 -40
- package/dist/src/components/dataGrid/GridToolbar.js.map +0 -1
- package/dist/src/components/dataGrid/TableContainer.d.ts +0 -3
- package/dist/src/components/dataGrid/TableContainer.js +0 -32
- package/dist/src/components/dataGrid/TableContainer.js.map +0 -1
- package/dist/src/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/src/components/form/FormAutocomplete.js +0 -10
- package/dist/src/components/form/FormAutocomplete.js.map +0 -1
- package/dist/src/components/form/FormCheckbox.d.ts +0 -7
- package/dist/src/components/form/FormCheckbox.js +0 -11
- package/dist/src/components/form/FormCheckbox.js.map +0 -1
- package/dist/src/components/form/FormDatePicker.d.ts +0 -9
- package/dist/src/components/form/FormDatePicker.js +0 -19
- package/dist/src/components/form/FormDatePicker.js.map +0 -1
- package/dist/src/components/form/FormDateTimePicker.d.ts +0 -9
- package/dist/src/components/form/FormDateTimePicker.js +0 -19
- package/dist/src/components/form/FormDateTimePicker.js.map +0 -1
- package/dist/src/components/form/FormNumberField.d.ts +0 -12
- package/dist/src/components/form/FormNumberField.js +0 -12
- package/dist/src/components/form/FormNumberField.js.map +0 -1
- package/dist/src/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/src/components/form/FormRadioGroup.js +0 -11
- package/dist/src/components/form/FormRadioGroup.js.map +0 -1
- package/dist/src/components/form/FormSlider.d.ts +0 -7
- package/dist/src/components/form/FormSlider.js +0 -11
- package/dist/src/components/form/FormSlider.js.map +0 -1
- package/dist/src/components/form/FormSubmitButton.d.ts +0 -5
- package/dist/src/components/form/FormSubmitButton.js +0 -13
- package/dist/src/components/form/FormSubmitButton.js.map +0 -1
- package/dist/src/components/form/FormSwitch.d.ts +0 -7
- package/dist/src/components/form/FormSwitch.js +0 -11
- package/dist/src/components/form/FormSwitch.js.map +0 -1
- package/dist/src/components/form/FormTextField.d.ts +0 -7
- package/dist/src/components/form/FormTextField.js +0 -11
- package/dist/src/components/form/FormTextField.js.map +0 -1
- package/dist/src/components/layout/AccountMenu.d.ts +0 -9
- package/dist/src/components/layout/AccountMenu.js +0 -44
- package/dist/src/components/layout/AccountMenu.js.map +0 -1
- package/dist/src/components/layout/DevelopmentBanner.d.ts +0 -7
- package/dist/src/components/layout/DevelopmentBanner.js +0 -29
- package/dist/src/components/layout/DevelopmentBanner.js.map +0 -1
- package/dist/src/components/layout/ErrorPage.d.ts +0 -2
- package/dist/src/components/layout/ErrorPage.js +0 -25
- package/dist/src/components/layout/ErrorPage.js.map +0 -1
- package/dist/src/components/layout/LayoutDialog.d.ts +0 -12
- package/dist/src/components/layout/LayoutDialog.js +0 -12
- package/dist/src/components/layout/LayoutDialog.js.map +0 -1
- package/dist/src/components/layout/LayoutSnackbar.d.ts +0 -8
- package/dist/src/components/layout/LayoutSnackbar.js +0 -25
- package/dist/src/components/layout/LayoutSnackbar.js.map +0 -1
- package/dist/src/components/layout/NavigationDrawer.d.ts +0 -11
- package/dist/src/components/layout/NavigationDrawer.js +0 -70
- package/dist/src/components/layout/NavigationDrawer.js.map +0 -1
- package/dist/src/components/layout/NotificationMenu.d.ts +0 -8
- package/dist/src/components/layout/NotificationMenu.js +0 -26
- package/dist/src/components/layout/NotificationMenu.js.map +0 -1
- package/dist/src/components/layout/TypographyWithIcon.d.ts +0 -7
- package/dist/src/components/layout/TypographyWithIcon.js +0 -22
- package/dist/src/components/layout/TypographyWithIcon.js.map +0 -1
- package/dist/src/components/layout/Unauthorized.d.ts +0 -2
- package/dist/src/components/layout/Unauthorized.js +0 -26
- package/dist/src/components/layout/Unauthorized.js.map +0 -1
- package/dist/src/contexts/LayoutContext.d.ts +0 -40
- package/dist/src/contexts/LayoutContext.js +0 -60
- package/dist/src/contexts/LayoutContext.js.map +0 -1
- package/dist/src/contexts/UserContext.d.ts +0 -24
- package/dist/src/contexts/UserContext.js +0 -55
- package/dist/src/contexts/UserContext.js.map +0 -1
- package/dist/src/hooks/FormHooks.d.ts +0 -46
- package/dist/src/hooks/FormHooks.js +0 -31
- package/dist/src/hooks/FormHooks.js.map +0 -1
- package/dist/src/hooks/UseSnackbar.d.ts +0 -10
- package/dist/src/hooks/UseSnackbar.js +0 -23
- package/dist/src/hooks/UseSnackbar.js.map +0 -1
- package/dist/src/hooks/UseUser.d.ts +0 -10
- package/dist/src/hooks/UseUser.js +0 -25
- package/dist/src/hooks/UseUser.js.map +0 -1
- package/dist/src/index.d.ts +0 -20
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +0 -1
- package/dist/src/models/Error.d.ts +0 -6
- package/dist/src/models/Error.js +0 -2
- package/dist/src/models/Error.js.map +0 -1
- package/dist/src/models/KeycloakSettings.d.ts +0 -8
- package/dist/src/models/KeycloakSettings.js +0 -2
- package/dist/src/models/KeycloakSettings.js.map +0 -1
- package/dist/src/models/LayoutPaletteColorOptions.d.ts +0 -6
- package/dist/src/models/LayoutPaletteColorOptions.js +0 -2
- package/dist/src/models/LayoutPaletteColorOptions.js.map +0 -1
- package/dist/src/models/LayoutRoute.d.ts +0 -14
- package/dist/src/models/LayoutRoute.js +0 -2
- package/dist/src/models/LayoutRoute.js.map +0 -1
- package/dist/src/models/Notification.d.ts +0 -9
- package/dist/src/models/Notification.js +0 -2
- package/dist/src/models/Notification.js.map +0 -1
- package/dist/src/models/PeoplesoftDepartment.d.ts +0 -14
- package/dist/src/models/PeoplesoftDepartment.js +0 -2
- package/dist/src/models/PeoplesoftDepartment.js.map +0 -1
- package/dist/src/models/PeoplesoftEmployee.d.ts +0 -34
- package/dist/src/models/PeoplesoftEmployee.js +0 -2
- package/dist/src/models/PeoplesoftEmployee.js.map +0 -1
- package/dist/src/models/Snackbar.d.ts +0 -15
- package/dist/src/models/Snackbar.js +0 -2
- package/dist/src/models/Snackbar.js.map +0 -1
- package/dist/src/models/User.d.ts +0 -27
- package/dist/src/models/User.js +0 -11
- package/dist/src/models/User.js.map +0 -1
- package/dist/src/models/types/EmployeeCategoryGroup.d.ts +0 -1
- package/dist/src/models/types/EmployeeCategoryGroup.js +0 -2
- package/dist/src/models/types/EmployeeCategoryGroup.js.map +0 -1
- package/dist/src/models/types/EmployeeStatus.d.ts +0 -1
- package/dist/src/models/types/EmployeeStatus.js +0 -2
- package/dist/src/models/types/EmployeeStatus.js.map +0 -1
- package/dist/src/utils/Auth.d.ts +0 -12
- package/dist/src/utils/Auth.js +0 -49
- package/dist/src/utils/Auth.js.map +0 -1
- package/dist/src/utils/Fetches.d.ts +0 -5
- package/dist/src/utils/Fetches.js +0 -66
- package/dist/src/utils/Fetches.js.map +0 -1
- package/dist/src/utils/FormUtils.d.ts +0 -7
- package/dist/src/utils/FormUtils.js +0 -9
- package/dist/src/utils/FormUtils.js.map +0 -1
- package/dist/src/utils/Helpers.d.ts +0 -11
- package/dist/src/utils/Helpers.js +0 -26
- package/dist/src/utils/Helpers.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/components/Layout.tsx +0 -183
- package/src/components/dataGrid/ChipInputCell.tsx +0 -31
- package/src/components/dataGrid/EditableColumnHeader.tsx +0 -7
- package/src/components/dataGrid/GridToolbar.tsx +0 -63
- package/src/components/dataGrid/TableContainer.tsx +0 -39
- package/src/components/form/FormAutocomplete.tsx +0 -34
- package/src/components/form/FormCheckbox.tsx +0 -32
- package/src/components/form/FormDatePicker.tsx +0 -34
- package/src/components/form/FormDateTimePicker.tsx +0 -34
- package/src/components/form/FormNumberField.tsx +0 -33
- package/src/components/form/FormRadioGroup.tsx +0 -43
- package/src/components/form/FormSlider.tsx +0 -28
- package/src/components/form/FormSubmitButton.tsx +0 -29
- package/src/components/form/FormSwitch.tsx +0 -32
- package/src/components/form/FormTextField.tsx +0 -26
- package/src/components/layout/AccountMenu.tsx +0 -160
- package/src/components/layout/DevelopmentBanner.tsx +0 -54
- package/src/components/layout/ErrorPage.tsx +0 -34
- package/src/components/layout/LayoutDialog.tsx +0 -50
- package/src/components/layout/LayoutSnackbar.tsx +0 -44
- package/src/components/layout/NavigationDrawer.tsx +0 -131
- package/src/components/layout/NotificationMenu.tsx +0 -76
- package/src/components/layout/TypographyWithIcon.tsx +0 -35
- package/src/components/layout/Unauthorized.tsx +0 -37
- package/src/contexts/LayoutContext.tsx +0 -127
- package/src/contexts/UserContext.tsx +0 -88
- package/src/hooks/FormHooks.ts +0 -33
- package/src/hooks/UseSnackbar.tsx +0 -28
- package/src/hooks/UseUser.tsx +0 -29
- package/src/index.ts +0 -27
- package/src/models/Error.tsx +0 -6
- package/src/models/KeycloakSettings.ts +0 -8
- package/src/models/LayoutPaletteColorOptions.tsx +0 -7
- package/src/models/LayoutRoute.ts +0 -15
- package/src/models/Notification.ts +0 -10
- package/src/models/PeoplesoftDepartment.ts +0 -15
- package/src/models/PeoplesoftEmployee.ts +0 -35
- package/src/models/Snackbar.ts +0 -16
- package/src/models/User.ts +0 -13
- package/src/models/types/EmployeeCategoryGroup.ts +0 -1
- package/src/models/types/EmployeeStatus.ts +0 -1
- package/src/utils/Auth.ts +0 -58
- package/src/utils/Fetches.ts +0 -83
- package/src/utils/FormUtils.ts +0 -22
- package/src/utils/Helpers.ts +0 -27
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# APM Setup
|
|
2
|
+
|
|
3
|
+
## Goal
|
|
4
|
+
|
|
5
|
+
Create the new application entry in **Application Portfolio Management (APM)**. APM is the internal source list of our company applications and must contain the app before later workflows, such as requesting a WiCOP server namespace, can reference it.
|
|
6
|
+
|
|
7
|
+
## Rules
|
|
8
|
+
|
|
9
|
+
- Control the browser carefully and fill only information that is known, provided by the user, or visible in APM.
|
|
10
|
+
- Do not click the final approval `Confirm` button until the user has reviewed the approval dialog and explicitly agrees to submit.
|
|
11
|
+
|
|
12
|
+
## Browser Actions
|
|
13
|
+
|
|
14
|
+
1. Open https://apm.wistron.com/ and let user sign in if needed.
|
|
15
|
+
2. Start a new record with `Create` button.
|
|
16
|
+
3. Fill the tabs from left to right using the sections below.
|
|
17
|
+
4. When a tab shows a checkmark/save icon after editing, click it before switching tabs.
|
|
18
|
+
5. If validation errors appear, fix only fields whose correct values are known. Ask the user for the rest.
|
|
19
|
+
|
|
20
|
+
## Tab 1 — Application Information
|
|
21
|
+
|
|
22
|
+
### Basic Information
|
|
23
|
+
|
|
24
|
+
Fill these fields:
|
|
25
|
+
|
|
26
|
+
| APM label | Action |
|
|
27
|
+
| ---------------------------------- | ------------------------------------------------------- |
|
|
28
|
+
| `Application Name` | Enter the user-provided application name in Title Case. |
|
|
29
|
+
| `Application English Abbreviation` | Use the same as `Application name` field. |
|
|
30
|
+
| `Application English Name` | Use the same as `Application name` field. |
|
|
31
|
+
| `Application Chinese Name` | Use the same as `Application name` field. |
|
|
32
|
+
| `BCM Domain` | Ask user to provide business domain. Do not infer. |
|
|
33
|
+
| `Application Description` | Ask user to provide description. |
|
|
34
|
+
| `Initial On-line Date` | Use APM's date picker and set end of curent month. |
|
|
35
|
+
|
|
36
|
+
### HealthCheck
|
|
37
|
+
|
|
38
|
+
Click add icon and fill these fields:
|
|
39
|
+
|
|
40
|
+
| APM label | Action |
|
|
41
|
+
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
42
|
+
| `type` | Search by employee ID or name, select the user-provided owner, and verify the owner appears in the table with job number, name, and email. |
|
|
43
|
+
| `url` | Search by employee ID or name, select the user-provided owner, and verify the owner appears in the table with job number, name, and email. |
|
|
44
|
+
|
|
45
|
+
### Owner Information
|
|
46
|
+
|
|
47
|
+
| APM label | Action |
|
|
48
|
+
| ------------------- | -------------------- |
|
|
49
|
+
| `Application Owner` | Ask user to fill in. |
|
|
50
|
+
|
|
51
|
+
### Development Team Information
|
|
52
|
+
|
|
53
|
+
| APM label | Action |
|
|
54
|
+
| ----------- | -------------------- |
|
|
55
|
+
| `Developer` | Ask user to fill in. |
|
|
56
|
+
|
|
57
|
+
### Maintain Team Information
|
|
58
|
+
|
|
59
|
+
Copy the maintainers from development team. Keep the order!
|
|
60
|
+
|
|
61
|
+
| APM label | Action |
|
|
62
|
+
| ------------ | ------------------------------------------------ |
|
|
63
|
+
| `Maintainer` | Copy by searching `Job Number` from table above. |
|
|
64
|
+
|
|
65
|
+
## Tab 2 — Application Status
|
|
66
|
+
|
|
67
|
+
### Cloud Maturity
|
|
68
|
+
|
|
69
|
+
Fill or confirm these fields with the user:
|
|
70
|
+
|
|
71
|
+
| APM label | Action |
|
|
72
|
+
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
73
|
+
| `Hosting Type` | Select the user-confirmed hosting type. For WiCOP deployment this may be `Private Cloud (Kubernetes)`, but still confirm with the user. |
|
|
74
|
+
| `Cloud Maturity Feasibility` | Select the user-confirmed Yes/No value. |
|
|
75
|
+
| `Cloud Maturity Plan Date` | Enter/select the user-provided plan date. |
|
|
76
|
+
| `Postponed Cloud Maturity Date` | Leave unchanged unless the user provides a date. |
|
|
77
|
+
| `Cloud Maturity Date` | Leave unchanged unless the user provides a date. |
|
|
78
|
+
| `Cloud Maturity Progress` | Leave unchanged unless the user provides a progress value. |
|
|
79
|
+
| `Cloud Maturity Remark` | Leave unchanged unless the user provides a remark. |
|
|
80
|
+
| `Cloud Admin Remark` | Read-only or admin-owned. Do not fill unless APM allows and the user provides the exact text. |
|
|
81
|
+
|
|
82
|
+
### Database
|
|
83
|
+
|
|
84
|
+
The screenshot shows this table empty. Add database rows only if the user provides database details. Required row data may include `Database`, `Version`, and `Vendor`.
|
|
85
|
+
|
|
86
|
+
### Main Programming Language
|
|
87
|
+
|
|
88
|
+
The screenshot shows this table empty. Add programming language rows only if the user provides details. Required row data may include `Programming Language`, `Version`, `Status`, `Start Date`, `End Date`, and `Vendor`.
|
|
89
|
+
|
|
90
|
+
### Lifecycle
|
|
91
|
+
|
|
92
|
+
Only the `Lifecycle` heading is visible in the reference screenshot. Do not fill lifecycle data unless APM requires it or the user provides exact values.
|
|
93
|
+
|
|
94
|
+
## Tab 3 — Application Use Status
|
|
95
|
+
|
|
96
|
+
### Application User
|
|
97
|
+
|
|
98
|
+
Fill these fields:
|
|
99
|
+
|
|
100
|
+
| APM label | Action |
|
|
101
|
+
| --------- | ------------------------------------------------------------------------ |
|
|
102
|
+
| `useSite` | Select the user-provided site. Example from screenshot: `WCZ`. |
|
|
103
|
+
| `useBg` | Select the user-provided business group. Example from screenshot: `ALL`. |
|
|
104
|
+
|
|
105
|
+
## Tab 4 — Application Complexity
|
|
106
|
+
|
|
107
|
+
No reference screenshot was provided for this tab. Open it and inspect whether APM requires any fields.
|
|
108
|
+
|
|
109
|
+
- If there are no required fields, leave the tab unchanged.
|
|
110
|
+
- If required fields exist, ask the user for each value before filling it.
|
|
111
|
+
- Do not infer complexity from the codebase or project template.
|
|
112
|
+
|
|
113
|
+
## Tab 5 — Information Security
|
|
114
|
+
|
|
115
|
+
### DevSecOps Information
|
|
116
|
+
|
|
117
|
+
Fill or confirm these fields with the user:
|
|
118
|
+
|
|
119
|
+
| APM label | Action |
|
|
120
|
+
| ----------------------------------------------- | --------------------------------------------------------------------------- |
|
|
121
|
+
| `SAMM Feasibility of Implementation` | Select the user-confirmed Yes/No value. Example from screenshot: `No`. |
|
|
122
|
+
| `DSOMM Feasibility of Implementation` | Select the user-confirmed Yes/No value. Example from screenshot: `Yes`. |
|
|
123
|
+
| `Implementation Completion Date` | Enter/select the user-provided date. Example from screenshot: `2027-01-01`. |
|
|
124
|
+
| `DSOMM/SAMM Execution Progress` | Enter the user-provided progress. Example from screenshot: `0 %`. |
|
|
125
|
+
| `Reasons for DSOMM/SAMM Implementation Failure` | Fill only if the user provides a reason or APM requires one. |
|
|
126
|
+
| `Remarks` | Fill only if the user provides remarks. |
|
|
127
|
+
| `Internet Facing` | Select the user-confirmed Yes/No value. Example from screenshot: `No`. |
|
|
128
|
+
|
|
129
|
+
### Division Lead
|
|
130
|
+
|
|
131
|
+
Fill `Division Lead` by searching for the user-provided employee ID or name. Verify the selected lead appears in the table with job number, name, and email.
|
|
132
|
+
|
|
133
|
+
### Information Security
|
|
134
|
+
|
|
135
|
+
Fill or confirm these fields with the user:
|
|
136
|
+
|
|
137
|
+
| APM label | Action |
|
|
138
|
+
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
139
|
+
| `Data Sensitivity` | Select the user-confirmed Yes/No value. Example from screenshot: `No`. |
|
|
140
|
+
| `Is CI/CD Implemented` | Select the user-confirmed Yes/No value. Example from screenshot: `Yes`. |
|
|
141
|
+
| `Is WiCOP Resource Available` | For a brand-new app created before the WiCOP namespace request, this is usually not available yet, but confirm with the user. If the user has an existing WiCOP resource, use the `Check` flow and verify the result. |
|
|
142
|
+
| `Is CMDB/ITSM Resource Available` | Confirm with the user. If they provide a resource name or identifier, enter it and click `Check`; otherwise leave as `No` or the APM default. |
|
|
143
|
+
|
|
144
|
+
Do not create or guess WiCOP, CMDB, or ITSM resource identifiers.
|
|
145
|
+
|
|
146
|
+
## Tab 6 — Approval Status Inquiry
|
|
147
|
+
|
|
148
|
+
Fill `Approval` with the user-confirmed value. The reference screenshot shows `No`, but confirm before using that value.
|
|
149
|
+
|
|
150
|
+
## Tab 7 — Covering Enterprise Domain
|
|
151
|
+
|
|
152
|
+
This tab maps the application to Wistron's enterprise domain taxonomy. These values are business-specific and cannot be determined automatically.
|
|
153
|
+
|
|
154
|
+
### Add Cover Domain Row
|
|
155
|
+
|
|
156
|
+
1. Click the `+` button on the right side of the Cover Domain table.
|
|
157
|
+
2. In the `Edit` dialog, fill the fields from top to bottom using values supplied or selected by the user:
|
|
158
|
+
|
|
159
|
+
| Dialog label | Action |
|
|
160
|
+
| ---------------- | ----------------------------------------------- |
|
|
161
|
+
| `L0 Domain` | Select the user-provided L0 domain. |
|
|
162
|
+
| `L1 Subdomain` | Select the user-provided L1 subdomain. |
|
|
163
|
+
| `L2 Value Chain` | Select the user-provided L2 value chain. |
|
|
164
|
+
| `L3 Activity` | Select one or more user-provided L3 activities. |
|
|
165
|
+
|
|
166
|
+
3. Click `Confirm` in the dialog.
|
|
167
|
+
4. Verify the new row appears in the Cover Domain table.
|
|
168
|
+
|
|
169
|
+
The screenshot example shows `1 Manufacturing` → `1.5 Quality` → `1.5.17 Customer Quality Relationship` → `1.5.17.5 Disaster Emergency Measures And Status Reports`, but use those values only if the user explicitly selects or confirms them.
|
|
170
|
+
|
|
171
|
+
Use `Upload Excel file` only when the user provides a file path and asks to upload domain mappings from Excel.
|
|
172
|
+
|
|
173
|
+
## Tab 8 — Appendix
|
|
174
|
+
|
|
175
|
+
No reference screenshot was provided for this tab. Upload or fill appendix data only if the user provides attachments or exact values. Otherwise leave it unchanged.
|
|
176
|
+
|
|
177
|
+
## Tab 9 — Revised Record
|
|
178
|
+
|
|
179
|
+
This tab is expected to be historical/read-only. Review it only if needed. Do not edit anything unless APM exposes required fields and the user provides exact values.
|
|
180
|
+
|
|
181
|
+
## Tab 10 — Approval Record
|
|
182
|
+
|
|
183
|
+
This tab is expected to be historical/read-only. Review it only if needed. Do not edit anything unless APM exposes required fields and the user provides exact values.
|
|
184
|
+
|
|
185
|
+
## Send Approval Dialog
|
|
186
|
+
|
|
187
|
+
After all required tabs are complete and saved:
|
|
188
|
+
|
|
189
|
+
1. Click `Send Approval` in the top-right area of APM.
|
|
190
|
+
2. A dialog titled `Approval Content` opens. This dialog is not a tab.
|
|
191
|
+
3. Read the warning text: new application values are shown in black; modified existing application values are shown in red.
|
|
192
|
+
4. Scroll through the dialog and verify the summarized values against the user-provided data, especially:
|
|
193
|
+
- basic application names and abbreviation;
|
|
194
|
+
- BCM domain;
|
|
195
|
+
- initial online date;
|
|
196
|
+
- application description;
|
|
197
|
+
- owner, development team, and maintain team;
|
|
198
|
+
- cloud maturity values;
|
|
199
|
+
- use site and use BG;
|
|
200
|
+
- information security values;
|
|
201
|
+
- covering enterprise domain taxonomy.
|
|
202
|
+
5. If anything is missing, wrong, or uncertain, click `Cancel`, return to the relevant tab, and fix it with user input.
|
|
203
|
+
6. Ask via **AskUserQuestion**: **"Submit the APM approval?"** — options `Submit` / `Not yet`.
|
|
204
|
+
7. Only after the user selects `Submit`, click `Confirm` in the approval dialog.
|
|
205
|
+
|
|
206
|
+
## Completion
|
|
207
|
+
|
|
208
|
+
The step is complete when APM accepts the approval submission or the user confirms that the APM record has been saved for later submission. Record the generated `EA ID` if APM shows one after saving or submission.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# WiCOP Setup
|
|
2
|
+
|
|
3
|
+
Ask the user only through the **AskUserQuestion** pop-up, never as chat text
|
|
4
|
+
waiting for a typed reply, and never with a single `Continue`-style option —
|
|
5
|
+
that is a wait, not a question. Ask only when there is a real choice, always
|
|
6
|
+
with at least two concrete options; enable free text only for open-ended
|
|
7
|
+
values (cost center, employee ID), not for yes/no decisions.
|
|
8
|
+
|
|
9
|
+
To wait for something the user does in the browser, poll in a tool loop:
|
|
10
|
+
wait ~5 s, re-read the page, repeat until the expected state appears or ~5
|
|
11
|
+
minutes pass, then carry straight on. Never end your turn while waiting —
|
|
12
|
+
announcing "I'll continue once you have signed in" and stopping ends the
|
|
13
|
+
session, and nothing resumes it.
|
|
14
|
+
|
|
15
|
+
1. Open [WiCOP](https://wicop.wistron.com/). If the sign-in page appears, do
|
|
16
|
+
not ask for any application-form values yet. Say in one line that the user
|
|
17
|
+
should finish the Microsoft sign-in, then poll (wait, re-read, repeat)
|
|
18
|
+
inside the same turn until the signed-in shell is visible — the user name
|
|
19
|
+
in the header and the left navigation — and continue without asking.
|
|
20
|
+
2. Open **Application Forms > New Account Combo Flow > Start**. Select **New
|
|
21
|
+
Account Combo**, set **Purpose** to `Initialization of a new application.`,
|
|
22
|
+
and select **OK**.
|
|
23
|
+
3. On **IBU Apply**, ask via **AskUserQuestion** for the **Cost Center** and
|
|
24
|
+
whether to create **QAS**, **PRD**, or both. Fill the form sequentially from top to bottom;
|
|
25
|
+
never interact with a field while a required field above it is incomplete.
|
|
26
|
+
Leave prefilled and unneeded fields unchanged. The controls appear on the
|
|
27
|
+
page in this order — use these values as each one is reached:
|
|
28
|
+
- **I already have an IBU**: keep `No, apply a new IBU`. **IBU Group
|
|
29
|
+
(Service Name)** is generated from the fields below; never type into it.
|
|
30
|
+
- _Cloud Environment_
|
|
31
|
+
- Service Provider: `K8S`
|
|
32
|
+
- Application Name (EA ID): the user selects it — see step 4
|
|
33
|
+
- Service(System) Alias Name: read `package.json` `name` converted to
|
|
34
|
+
uppercase letters and digits only, with spaces and punctuation removed
|
|
35
|
+
(`my-app` becomes `MYAPP`)
|
|
36
|
+
- Cloud Type: `Satellite Cloud`
|
|
37
|
+
- Cloud Site / Plant: `WCZ` / `WCZ`
|
|
38
|
+
- Environment: tick only the requested boxes (DEV, QAS, PRD in that
|
|
39
|
+
order); each ticked box enables its own **Cloud Cluster ID** and
|
|
40
|
+
**Budget (TWD)** below it
|
|
41
|
+
- QAS cluster / budget: `wcz-sat-qas-01` / `0`
|
|
42
|
+
- PRD cluster / budget: `wcz-sat-prd-01` / `0`
|
|
43
|
+
- _Owner information_
|
|
44
|
+
- Cost Center: the user-provided value, entered in the editable IBU
|
|
45
|
+
control, not the prefilled read-only IBG control
|
|
46
|
+
- _Charge Setting_
|
|
47
|
+
- Charge Type: `By Fixed Amount (per IBU)`
|
|
48
|
+
- Charge Groups: reuse the same Cost Center if its row asks for one
|
|
49
|
+
4. When **Application Name (EA ID)** is reached, leave it entirely to the
|
|
50
|
+
user: do not type, search, or select a value. Say in one line that the user
|
|
51
|
+
should pick the EA ID, then poll the field until it holds a value and
|
|
52
|
+
resume filling the form sequentially. Select **Next >** when complete.
|
|
53
|
+
5. On **IBG Apply**, verify the inherited read-only values and select
|
|
54
|
+
**Next >**.
|
|
55
|
+
6. On **Project Apply**, set **Memory (GB)** to `2` for each selected
|
|
56
|
+
environment; leave other fields unchanged. Ask via **AskUserQuestion**
|
|
57
|
+
before selecting **Next >**.
|
|
58
|
+
7. On **Team Apply**, ask via **AskUserQuestion** for the GitLab team manager's
|
|
59
|
+
name or ID.
|
|
60
|
+
Populate all other team fields automatically. Add `C0708003`, `C1107048`,
|
|
61
|
+
`C2503017`, `C2404003`, `C2404002`, and `C2508015` as GitLab members,
|
|
62
|
+
excluding the selected manager from the member list. Use **Copy & Paste
|
|
63
|
+
Now** for all other teams. Create a JSM team and select its license-charge
|
|
64
|
+
agreement when requested, then copy the GitLab team to it. Do not add a
|
|
65
|
+
member row after the final member.
|
|
66
|
+
8. On **Review & Confirm**, present the summary to the user, then ask via
|
|
67
|
+
**AskUserQuestion**: **"Submit the WiCOP request?"** with options `Submit` /
|
|
68
|
+
`Not yet`. Only after they select `Submit`, select **Submit**; in the dialog,
|
|
69
|
+
accept the CCoE Policy and select **Confirm**. On the successful-submission
|
|
70
|
+
dialog, select **Let's Go** to open **Apply Status**.
|
|
71
|
+
9. Close the current browser session.
|
|
72
|
+
|
|
73
|
+
This applies on every page and to every advancing control (**OK**, **Next >**,
|
|
74
|
+
**Submit**, **Confirm**, **Let's Go**): after selecting it, inspect the next
|
|
75
|
+
step and continue the workflow without pausing unless user input, a required
|
|
76
|
+
confirmation, or a final submission decision is needed. If the UI does not
|
|
77
|
+
visibly advance, select the same control once more, then stop.
|
|
78
|
+
|
|
79
|
+
Do not submit the final request without the user's confirmation. WiCOP sends
|
|
80
|
+
the application to the manager, owner, and owner division head for approval.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Database Setup
|
|
2
|
+
|
|
3
|
+
> Create `.env.local` if it does not exist.
|
|
4
|
+
|
|
5
|
+
## User Input
|
|
6
|
+
|
|
7
|
+
Ask via **AskUserQuestion**: **"Do you already have a Postgres database created for this project?"** — options `Yes` / `No`.
|
|
8
|
+
|
|
9
|
+
## Branch A — Existing database
|
|
10
|
+
|
|
11
|
+
1. Ask: **"Please provide the database connection details**.
|
|
12
|
+
|
|
13
|
+
2. Update `.env.local`:
|
|
14
|
+
- Set `DATABASE_URL=postgres://<schema-username>:<password>@<server-address>:5432/<database-name>`.
|
|
15
|
+
- Set `DATABASE_SCHEMA=<schema-username>`.
|
|
16
|
+
|
|
17
|
+
## Branch B — No database
|
|
18
|
+
|
|
19
|
+
Ask via **AskUserQuestion**: **"Would you like me to create a local Postgres database using Docker?"** — options `Yes` / `No`.
|
|
20
|
+
|
|
21
|
+
- **No** → continue to next step.
|
|
22
|
+
- **Yes** → execute the Docker flow below.
|
|
23
|
+
|
|
24
|
+
### Docker flow
|
|
25
|
+
|
|
26
|
+
The container name is `<project-name>-postgres` where `<project-name>` is the kebab-case project name (read from the `name` field in `package.json`).
|
|
27
|
+
|
|
28
|
+
1. Ensure the Docker daemon is running. If not, start Docker Desktop via terminal automatically.
|
|
29
|
+
2. Auto-generate password.
|
|
30
|
+
3. Discover occupied ports by listing **all** containers (including stopped) and pick the first port in **5432 → 5450** that does **not** appear in the output. If all ports are occupied, stop and inform the user.
|
|
31
|
+
4. Run the container on the chosen port:
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
docker run --name <project-name>-postgres -e POSTGRES_PASSWORD=<password> -d -p <PORT>:5432 postgres
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
- **Success** → continue.
|
|
38
|
+
- **Error** → stop and show the full error to the user.
|
|
39
|
+
|
|
40
|
+
5. Update `.env.local`:
|
|
41
|
+
- Set `DATABASE_URL=postgres://postgres:<password>@localhost:<PORT>/postgres`.
|
|
42
|
+
- Set `DATABASE_SCHEMA=public`.
|
|
43
|
+
6. Output exactly:
|
|
44
|
+
> ✅ Local Postgres database created successfully on port [PORT]
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Entra ID Setup
|
|
2
|
+
|
|
3
|
+
Ask the user only through the **AskUserQuestion** pop-up, never as chat text
|
|
4
|
+
waiting for a typed reply, and never with a single `Continue`-style option —
|
|
5
|
+
that is a wait, not a question. Ask only when there is a real choice, always
|
|
6
|
+
with at least two concrete options; enable free text only for open-ended
|
|
7
|
+
values (client ID, user count), not for yes/no decisions.
|
|
8
|
+
|
|
9
|
+
To wait for something the user does in the browser — signing in, filling a
|
|
10
|
+
field, clicking Submit — poll in a tool loop: wait ~5 s, re-read the page,
|
|
11
|
+
repeat until the expected state appears or ~5 minutes pass, then carry
|
|
12
|
+
straight on. Never end your turn while waiting; announcing "I'll continue
|
|
13
|
+
once you have signed in" and stopping ends the session, and nothing resumes
|
|
14
|
+
it. A page that renders blank is usually still loading or still on the
|
|
15
|
+
sign-in gate — keep polling instead of reporting it as a problem.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Part A — Application Creation
|
|
20
|
+
|
|
21
|
+
Ask via **AskUserQuestion**: **"Is the Entra ID application already created for this project?"** — options `Yes` / `No`.
|
|
22
|
+
|
|
23
|
+
- **Yes** → proceed to Part B.
|
|
24
|
+
- **No** → Open `https://itsr.wistron.com/homepage/apply` in the browser and perform the request with the user:
|
|
25
|
+
|
|
26
|
+
1. Select Service Type → Azure AD - Application Management - Add or Modify → Submit.
|
|
27
|
+
2. Select Add Application → Add Applicant.
|
|
28
|
+
3. Fill in the required application details:
|
|
29
|
+
- Set the English application name from the chat context. Do not ask the user for it. If it is absent from the context, read the `name` property in `package.json`, convert it to spaced Pascal Case, and prefix it with `WCZ` (for example, `my-project` becomes `WCZ My Project`).
|
|
30
|
+
- Write a concise, single-sentence reason for creating the application based on its name and purpose. Do not ask the user for this.
|
|
31
|
+
- Ask via **AskUserQuestion** for the expected user count, and separately: **"Who can reach the app?"** — options `Internal network only (OA)` / `Also from the public internet`. Do not choose either value on their behalf. In the ITSR form, `Internal network only` is the OA-restricted choice.
|
|
32
|
+
- Ask via **AskUserQuestion** for the application manager's employee ID, alongside the questions above, with free text enabled. Then use the form's search control to resolve and select that person.
|
|
33
|
+
4. Once every field is filled, click Submit yourself to add the applicant. The applicant appears in the page's summary table and enables the page-level final Submit.
|
|
34
|
+
5. On the summary page, ask via **AskUserQuestion**: **"Submit the ITSR request?"** — options `Submit` / `Add another application`.
|
|
35
|
+
- `Add another application` → click **+ Add Applicant** above the summary table, fill the dialog exactly as in step 3, submit the dialog so the new row joins the table, then return to this question. Ask again for the new application's name, its expected user count, and its access scope — these are unique per application, so never carry them over from an existing row. Write its reason yourself.
|
|
36
|
+
- `Submit` → click the page-level final Submit and confirm the portal accepted the request.
|
|
37
|
+
|
|
38
|
+
Repeat until the user answers `Submit`. Only that answer may trigger the final Submit — the request goes to approvers.
|
|
39
|
+
|
|
40
|
+
When the portal needs sign-in, poll until the ITSR request form is visible and continue — do not end the turn.
|
|
41
|
+
|
|
42
|
+
Once the request is submitted, close the ITSR browser session, **skip Part B**, and continue to the next step — the applications do not exist until the request is approved.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Part B — Application Configuration
|
|
47
|
+
|
|
48
|
+
Ask via **AskUserQuestion**: **"Have you configured the Entra ID application settings?"** — options `Yes` / `No`.
|
|
49
|
+
|
|
50
|
+
- **Yes** → skip to **Credentials** below.
|
|
51
|
+
- **No** → Open `https://entra.microsoft.com/` and complete every Part B step in one uninterrupted run. Reuse this signed-in tab and the portal's own navigation; for slow controls, poll and re-read the current blade instead of reloading or opening another tab. Derive every value from the app name and the fixed values below. Do not ask for owners; the owner list is fixed. Ask only before an explicitly user-approved irreversible action.
|
|
52
|
+
|
|
53
|
+
Gradually write all the data to `.env.local` with exactly these keys — keep any values already set by earlier steps (if this file does not exist, create it). If empty - fill `SESSION_SECRET` with a freshly generated value, and leave the rest empty until you know the values:
|
|
54
|
+
|
|
55
|
+
```dotenv
|
|
56
|
+
ENTRA_CLIENT_ID=
|
|
57
|
+
ENTRA_TENANT_ID=
|
|
58
|
+
ENTRA_CLIENT_SECRET=
|
|
59
|
+
SESSION_SECRET=<generated-64-char-hex>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Left navigation: App Registrations:**
|
|
63
|
+
|
|
64
|
+
1. Use the application's display name already present in chat context. Ask via **AskUserQuestion** only if it is genuinely absent; otherwise open **App registrations**, filter by the exact name, and click the matching row. Its **Overview** page shows **Application (client) ID** and **Directory (tenant) ID** — read both and write them to `.env.local` as `ENTRA_CLIENT_ID` and `ENTRA_TENANT_ID` straight away, before configuring anything else. Never ask the user for these two values. Leave `ENTRA_CLIENT_SECRET` empty only until the client secret is created in step 3.
|
|
65
|
+
2. **Authentication (Preview)** — the left-nav item is named that, and it opens on the **Redirect URI configuration** tab. Three URIs are needed, where `<app-name>` is the `name` from `package.json`:
|
|
66
|
+
- `http://localhost:3000/auth/callback`
|
|
67
|
+
- `https://<app-name>.wcz-sat-qas-01.k8s.wistron.com/auth/callback`
|
|
68
|
+
- `https://<app-name>.wcz-sat-prd-01.k8s.wistron.com/auth/callback`
|
|
69
|
+
|
|
70
|
+
The portal only accepts them one panel at a time:
|
|
71
|
+
|
|
72
|
+
a. **+ Add Redirect URI** → platform picker → **Web** → **Select**. The login flow is server-side (confidential client), so never pick **Single-page application**.
|
|
73
|
+
b. The panel takes a single URI. Enter the localhost one and click **Configure**. A success toast appears and the platform picker reopens — click **Cancel** to return to the list.
|
|
74
|
+
c. The list now shows a **Web** group row with an **Edit** link. Click **Edit**: the panel lists the saved URIs plus one empty row, and filling a row spawns another empty row below it. Add the `qas` and `prd` URIs, then click **Configure**.
|
|
75
|
+
d. Verify all three appear as Web rows in the list.
|
|
76
|
+
|
|
77
|
+
3. **Certificates & secrets:** open the **Client secrets** tab → **+ New client secret**. Leave **Description** empty and set **Expires** to `730 days (24 months)` — always these values, never ask the user — then click **Add**. Read the new row's **Secret ID** and write it into `ENTRA_CLIENT_SECRET` in `.env.local` before navigating anywhere else. Never print the secret ID in chat or in a commit.
|
|
78
|
+
4. **Token configuration:** click **Add groups claim**. In the panel tick **Security groups** only, then expand each of **ID**, **Access**, and **SAML** in "Customize token properties by type" and switch the radio from `Group ID` to `sAMAccountName`. Click **Add**. The list should then show a `groups` claim with token type `ID, Access, SAML`.
|
|
79
|
+
5. **Expose an API:** next to **Application ID URI** click **Add** (or **Edit** if one exists). The portal prefills `api://<client-id>` — replace it with `api://wistron.com/<app-name>` (for `wh-fg-preparation`: `api://wistron.com/wh-fg-preparation`) and **Save**. Then **+ Add a scope** named `access_as_user`, set **Who can consent?** to `Admins and users`, and fill only the two required fields — **Admin consent display name** and **Admin consent description**. Leave the user consent fields empty (optional) and **State** on `Enabled`, then click **Add scope**. Do not navigate away or report progress as complete until the saved `api://wistron.com/<app-name>` URI and enabled `access_as_user` scope are both visible in the portal.
|
|
80
|
+
6. **Owners:** first read the current table once. Add only missing people from this fixed list: Radim Staworowski, Martin Husar, Dalibor Homola, Patrik Lorenc, Tien Thanh Tran, Sebastian Ondruska. In the picker, search each missing full name, wait for the exact name and Wistron UPN match, select it, then replace the search text with the next name without closing the picker. Submit the batch once and verify all six names in the refreshed table.
|
|
81
|
+
7. **Manifest:** the page opens the **Microsoft Graph App Manifest (New)** JSON in a code editor. Inside the `api` object change `"acceptMappedClaims": null` to `true` and `"requestedAccessTokenVersion": null` to `2`, then click **Save**.
|
|
82
|
+
|
|
83
|
+
**Left navigation: Enterprise Applications:**
|
|
84
|
+
|
|
85
|
+
1. Open **Enterprise apps → All applications** and search with the exact display name already resolved in App Registrations; do not ask for it again.
|
|
86
|
+
2. **Owners:** repeat the batched owner process from App Registrations. Inspect the table once, keep the picker open while searching and selecting every missing exact Wistron record, and confirm the selected-user count increments after each selection. Click **Select** once, wait for `Owner assignment succeeded`, then verify all six names in the refreshed table. The toolbar and table may load after the heading; keep polling until both appear.
|
|
87
|
+
3. **Single sign-on** opens as **OIDC-based Sign-on**; there is no SAML wizard. Wait for the embedded OIDC content, then click the visible **Edit** pencil under **② Attributes & Claims**. If its reference is stale, re-read this page and click the new reference. Ignore background `400`/`403` console messages while the requested controls remain usable. Confirm the claims list already holds `groups → user.groups`, then add each missing row with **+ Add new claim**:
|
|
88
|
+
|
|
89
|
+
| Claim Name | Source Attribute |
|
|
90
|
+
| ------------------ | --------------------------- |
|
|
91
|
+
| `department` | `user.department` |
|
|
92
|
+
| `employeeId` | `user.extensionattribute5` |
|
|
93
|
+
| `employeeCategory` | `user.extensionattribute13` |
|
|
94
|
+
| `companyName` | `user.companyname` |
|
|
95
|
+
|
|
96
|
+
For each one: type the claim name in **Name** and leave **Source** on `Attribute`. **Source attribute** is a dropdown, not a text field: click it, use its filter input when needed, and select the plain unquoted attribute option (never the quoted constant). Click **Save**, then wait for the editor to close and verify the exact name/value row in **Additional claims** before adding the next claim. During the close transition the old form may briefly mark every field invalid even though the save succeeded; the refreshed claims row or `Successfully saved SSO user claims` notification is authoritative. Leave **Claim conditions** and **Advanced SAML claims options** untouched. Finish by verifying all four rows plus the existing `groups → user.groups` row in one claims-table read.
|
|
97
|
+
|
|
98
|
+
4. After all owners and claims are verified, close the Entra browser session and report Part B complete.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Vault Setup
|
|
2
|
+
|
|
3
|
+
Never print user-provided secret values into chat, files, or logs — reference only the env keys and where each value lives. The one value the AI generates itself is `SESSION_SECRET`: a fresh 64-char hex string via `node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"`. The template ships only `VITE_MUI_LICENSE_KEY` in `.env`; all project configuration goes into the gitignored `.env.local`, which may have been created by an earlier setup step and is normalized in this step.
|
|
4
|
+
|
|
5
|
+
## User Input
|
|
6
|
+
|
|
7
|
+
Ask via **AskUserQuestion**: **"Do you use Vault for this project?"** — options `Yes` / `No`.
|
|
8
|
+
|
|
9
|
+
- **Yes** → Branch A.
|
|
10
|
+
- **No** → Branch B.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Branch A — Vault
|
|
15
|
+
|
|
16
|
+
### Part 1 — Vault secrets (user fills these in the Vault UI)
|
|
17
|
+
|
|
18
|
+
Output:
|
|
19
|
+
|
|
20
|
+
> 1. Navigate to your Vault UI and log in.
|
|
21
|
+
> 2. In your app's root path, create a secret named exactly `harborvault`: toggle 'JSON' mode, then copy-paste the JSON values from another app's `harborvault` secret and save.
|
|
22
|
+
> 3. Open your app's `default` secret, click 'Edit' (toggle 'View as JSON'), fill in these keys, then save. Provide user this in JSON to copy-paste — empty string values, except `SESSION_SECRET`, which you pre-fill with a freshly generated value:
|
|
23
|
+
>
|
|
24
|
+
> | Key | Value source |
|
|
25
|
+
> | ----------------------- | ----------------------------------------------------- |
|
|
26
|
+
> | `ENTRA_CLIENT_ID` | the Entra ID step |
|
|
27
|
+
> | `ENTRA_TENANT_ID` | same for all Wistron apps — copy from another project |
|
|
28
|
+
> | `ENTRA_CLIENT_SECRET` | your Entra ID application |
|
|
29
|
+
> | `SESSION_SECRET` | already pre-filled in the JSON — generated by the AI |
|
|
30
|
+
> | `DATABASE_SCHEMA` | the database step |
|
|
31
|
+
> | `DATABASE_AUTO_MIGRATE` | `true` unless you manage migrations manually |
|
|
32
|
+
> | `DATABASE_URL` | the database step |
|
|
33
|
+
>
|
|
34
|
+
Then ask via **AskUserQuestion**: **"Are the Vault secrets filled in and saved?"** — options `Done` / `Not yet`. On `Not yet`, wait and ask again.
|
|
35
|
+
|
|
36
|
+
### Part 2 — Normalize `.env.local`
|
|
37
|
+
|
|
38
|
+
Rewrite `.env.local` so it contains **only** the keys below. Never fill in secret values yourself — keep values empty except `DATABASE_URL` and `DATABASE_SCHEMA`, where you keep the values if the database step already set them (drizzle-kit reads both):
|
|
39
|
+
|
|
40
|
+
```dotenv
|
|
41
|
+
VAULT_ADDRESS=
|
|
42
|
+
VAULT_SECRET_PATH=
|
|
43
|
+
VAULT_USERNAME=
|
|
44
|
+
VAULT_PASSWORD=
|
|
45
|
+
|
|
46
|
+
DATABASE_URL=
|
|
47
|
+
DATABASE_SCHEMA=
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then ask the user to fill in the empty values directly in `.env.local` (not in chat), and confirm via **AskUserQuestion**: **"Are the `.env.local` values filled in?"** — options `Done` / `Not yet`. On `Not yet`, wait and ask again.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Branch B — No Vault
|
|
55
|
+
|
|
56
|
+
Create `.env.local` to contain exactly these keys — keep any values already set by earlier steps, fill `SESSION_SECRET` with a freshly generated value, and leave the rest empty:
|
|
57
|
+
|
|
58
|
+
```dotenv
|
|
59
|
+
ENTRA_CLIENT_ID=
|
|
60
|
+
ENTRA_TENANT_ID=
|
|
61
|
+
ENTRA_CLIENT_SECRET=
|
|
62
|
+
SESSION_SECRET=<generated-64-char-hex>
|
|
63
|
+
|
|
64
|
+
DATABASE_SCHEMA=
|
|
65
|
+
DATABASE_AUTO_MIGRATE=
|
|
66
|
+
DATABASE_URL=
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Then ask the user to fill in the empty values directly in `.env.local` (not in chat), and confirm via **AskUserQuestion**: **"Are the `.env.local` values filled in?"** — options `Done` / `Not yet`. On `Not yet`, wait and ask again.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Favicon Generation
|
|
2
|
+
|
|
3
|
+
1. Ask the user for the absolute filesystem path to their app logo. Recommend a square PNG, JPG, BMP, or WEBP image at least 512 x 512 pixels, but continue with a smaller image when the user provides one.
|
|
4
|
+
2. Verify that the supplied path exists and is an image file.
|
|
5
|
+
3. Check whether `favicons` is installed globally. If it is missing, run `npm install --global favicons`. Do not add it to this project's dependencies.
|
|
6
|
+
4. Set `NODE_PATH` to the result of `npm root --global` and use a temporary CommonJS Node script to call `favicons(sourcePath, options)`. Enable Android and favicon output, enable Apple output with `background: "transparent"`, and disable Apple startup, Windows, and Yandex assets. Write the returned `images` and `files` entries to `/public`.
|
|
7
|
+
5. Keep only the existing favicon assets that the template owns: `android-chrome-192x192.png`, `android-chrome-512x512.png`, `apple-touch-icon.png`, `favicon-16x16.png`, `favicon-32x32.png`, and `favicon.ico`. Delete any additional generated assets and the temporary script. Leave unrelated public assets unchanged.
|
|
8
|
+
6. Verify that all six favicon assets exist, then report completion to the user.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Initial Commit
|
|
2
|
+
|
|
3
|
+
## Actions
|
|
4
|
+
|
|
5
|
+
Run sequentially:
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
git add .
|
|
9
|
+
git commit -m "initial project setup"
|
|
10
|
+
git push -u origin master
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Wait for completion. Once the push succeeds, output:
|
|
14
|
+
|
|
15
|
+
> **✅ Project initialization is complete! Happy coding.**
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# GitLab CI
|
|
2
|
+
|
|
3
|
+
## SAST And Build Image
|
|
4
|
+
|
|
5
|
+
The pipeline includes additional stages beyond this section. Complete the following setup before relying on the first GitLab CI run.
|
|
6
|
+
|
|
7
|
+
### SAST
|
|
8
|
+
|
|
9
|
+
The SAST stage requires both the Sonatype SCA and SonarQube projects to be configured.
|
|
10
|
+
|
|
11
|
+
#### Sonatype SCA
|
|
12
|
+
|
|
13
|
+
1. Sign in to [Sonatype](https://sca.wistron.com/) with the general development account. Retrieve its credentials from KeePass.
|
|
14
|
+
2. Navigate to **Orgs and policies** > **Applications**.
|
|
15
|
+
3. Select the add-application icon, then choose **New application**.
|
|
16
|
+
4. Set **Application Name** to exactly the GitLab project name, then save the application.
|
|
17
|
+
|
|
18
|
+
#### SonarQube
|
|
19
|
+
|
|
20
|
+
1. Sign in to [SonarQube](https://sonarqube.wistron.com/) with your employee ID and domain password.
|
|
21
|
+
2. Select **Create Project** > **Manually**.
|
|
22
|
+
3. Set the project display name to exactly the GitLab project name and set the main branch to `master`.
|
|
23
|
+
4. Generate a project token.
|
|
24
|
+
5. In GitLab, navigate to **Settings** > **CI/CD** > **Variables** and create `SONAR_TOKEN` with the generated token as its value. Do not expose the token in chat, files, or logs.
|
|
25
|
+
6. In SonarQube, navigate to **Project Settings** > **Permissions** and grant the development team the required project permissions.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import { LayoutPaletteColorOptions } from "../models/LayoutPaletteColorOptions";
|
|
3
|
-
import { LayoutRoute } from "../models/LayoutRoute";
|
|
4
|
-
import Notification from "../models/Notification";
|
|
5
|
-
import { User } from "../models/User";
|
|
6
|
-
interface LayoutProps {
|
|
7
|
-
routes: LayoutRoute[];
|
|
8
|
-
appVersion: string;
|
|
9
|
-
colors: LayoutPaletteColorOptions;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
user: User;
|
|
12
|
-
notifications: Notification[] | undefined;
|
|
13
|
-
setNotifications: Dispatch<SetStateAction<Notification[] | undefined>>;
|
|
14
|
-
}
|
|
15
|
-
export declare const Layout: React.FC<LayoutProps>;
|
|
16
|
-
export {};
|