wcz-layout 10.1.2 → 10.1.6
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/{AggregatedCell-C7nAQyMO.mjs → AggregatedCell-CqGptV6i.mjs} +199 -150
- package/dist/AggregatedCell-CqGptV6i.mjs.map +1 -0
- package/dist/Approval-DoD-GRRH.mjs.map +1 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
- package/dist/Email-BzQQkbe9.mjs.map +1 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
- package/dist/{LayoutTable-DX9IaO8V.d.mts → LayoutTable-CRo43iWr.d.mts} +7 -3
- package/dist/{RouterListItemButton-ULMlaQh6.mjs → RouterListItemButton-ke6iPKkL.mjs} +9 -9
- package/dist/RouterListItemButton-ke6iPKkL.mjs.map +1 -0
- package/dist/{approval-DiNOXd4B.mjs → approval-L09uPzTU.mjs} +2 -2
- package/dist/approval-L09uPzTU.mjs.map +1 -0
- package/dist/auth.d.mts +1 -0
- package/dist/auth.mjs +15 -12
- package/dist/auth.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +594 -361
- package/dist/components.mjs.map +1 -1
- package/dist/{createApi-DGJJ4I_R.mjs → createApi-BhNkG4jz.mjs} +3 -3
- package/dist/createApi-BhNkG4jz.mjs.map +1 -0
- package/dist/data/client.mjs +3 -3
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.mjs +4 -4
- package/dist/data/server.mjs.map +1 -1
- package/dist/{file-C14fhUeg.mjs → file-Chlljz3o.mjs} +4 -4
- package/dist/file-Chlljz3o.mjs.map +1 -0
- package/dist/{file-C5BOj1q8.mjs → file-Dl8JCcqy.mjs} +4 -4
- package/dist/file-Dl8JCcqy.mjs.map +1 -0
- package/dist/hooks.d.mts +2 -1
- package/dist/hooks.mjs +541 -591
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.mjs +420 -426
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.mjs +2 -2
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/{peoplesoft-BkJMCcHb.mjs → peoplesoft-BhintHQz.mjs} +3 -3
- package/dist/peoplesoft-BhintHQz.mjs.map +1 -0
- package/dist/{providers-DrairEO2.mjs → providers-BvuZWkpD.mjs} +2 -2
- package/dist/providers-BvuZWkpD.mjs.map +1 -0
- package/dist/{tokens-BLRreL1j.mjs → tokens-XuFhVbh5.mjs} +9 -6
- package/dist/tokens-XuFhVbh5.mjs.map +1 -0
- package/dist/{utils-BUpDoqme.mjs → utils-CaeVFWF-.mjs} +18 -7
- package/dist/utils-CaeVFWF-.mjs.map +1 -0
- package/dist/utils.mjs +1 -1
- package/dist/vite.mjs +11 -0
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -130
- package/skills/client-db/SKILL.md +136 -136
- package/skills/db-schema/SKILL.md +98 -98
- package/skills/dialogs/SKILL.md +74 -74
- package/skills/forms/SKILL.md +122 -122
- package/skills/general/SKILL.md +127 -127
- package/skills/general/references/exports.md +109 -109
- package/skills/migrations/SKILL.md +57 -57
- package/skills/migrations/versions/migrate-v10-to-v11.md +1 -1
- package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
- package/skills/routing/SKILL.md +87 -87
- package/skills/server-functions/SKILL.md +95 -95
- package/skills/services/SKILL.md +34 -34
- package/skills/services/docs/email.md +32 -32
- package/skills/services/docs/file.md +108 -108
- package/skills/services/docs/peoplesoft.md +114 -114
- package/skills/start/SKILL.md +52 -52
- package/skills/start/steps/01-git-setup.md +10 -10
- package/skills/start/steps/02-project-name-setup.md +19 -19
- package/skills/start/steps/03-apm-setup.md +97 -208
- package/skills/start/steps/04-wicop-setup.md +105 -105
- package/skills/start/steps/05-database-setup.md +52 -52
- package/skills/start/steps/06-entra-setup.md +96 -96
- package/skills/start/steps/07-vault-setup.md +115 -115
- package/skills/start/steps/08-generate-favicon.md +8 -8
- package/skills/start/steps/09-gitlab-ci.md +25 -25
- package/skills/start/steps/10-commit.md +15 -15
- package/skills/table/SKILL.md +266 -264
- package/dist/AggregatedCell-C7nAQyMO.mjs.map +0 -1
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
- package/dist/approval-DiNOXd4B.mjs.map +0 -1
- package/dist/createApi-DGJJ4I_R.mjs.map +0 -1
- package/dist/file-C14fhUeg.mjs.map +0 -1
- package/dist/file-C5BOj1q8.mjs.map +0 -1
- package/dist/peoplesoft-BkJMCcHb.mjs.map +0 -1
- package/dist/providers-DrairEO2.mjs.map +0 -1
- package/dist/tokens-BLRreL1j.mjs.map +0 -1
- package/dist/utils-BUpDoqme.mjs.map +0 -1
|
@@ -1,208 +1,97 @@
|
|
|
1
|
-
# APM Setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## Tab
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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.
|
|
1
|
+
# APM Setup
|
|
2
|
+
|
|
3
|
+
Register the app in **Application Portfolio Management** (https://apm.wistron.com/). Later steps (WiCOP) need its `EA ID`.
|
|
4
|
+
|
|
5
|
+
## Rules
|
|
6
|
+
|
|
7
|
+
- Be autonomous: fill every value below yourself. Ask only where marked **Ask**, through **AskUserQuestion**, with your proposed answer as the first (recommended) option.
|
|
8
|
+
- Never click the final `Confirm` in `Send Approval` without the user's explicit `Submit`.
|
|
9
|
+
- Pages and edit forms load slowly (5–15 s). Poll instead of reporting a blank page; the same goes for sign-in.
|
|
10
|
+
- **Signed-in user** = the name in APM's top bar.
|
|
11
|
+
- **Team** (fixed, never ask): signed-in user first, then the rest of Radim Staworowski, Martin Husar, Dalibor Homola, Patrik Lorenc, Tien Thanh Tran, Sebastian Ondruska in this order.
|
|
12
|
+
|
|
13
|
+
## Ask up front (one AskUserQuestion)
|
|
14
|
+
|
|
15
|
+
1. **Business logic**: what the app does, unless chat context or an attached doc already covers it. You need it for the description, BCM domain, approval and cover domain.
|
|
16
|
+
2. **Is Internal Closed Network**: `Yes` (internal OA only) / `No`.
|
|
17
|
+
3. **User Identities** (multi-select): `IDL`, `DL`, `Non-Wistron Employee`.
|
|
18
|
+
|
|
19
|
+
## UI mechanics
|
|
20
|
+
|
|
21
|
+
- `Create` → dismiss the notice with `OK`. Tab 1 opens in edit mode. Every other section opens with its pencil and saves with its ✓. After a save, check for the `Update successful` toast.
|
|
22
|
+
- Dropdown option refs change every time a dropdown opens. Open it, find the option, then click.
|
|
23
|
+
- Person fields: type the full name, click the suggestion, and verify the row (job number, name, email).
|
|
24
|
+
- A ✓ that stays disabled means a required field is unset. After a failed save, change any dropdown and change it back to re-enable the ✓.
|
|
25
|
+
|
|
26
|
+
## Tab 1 — Application Information
|
|
27
|
+
|
|
28
|
+
| Field | Value |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| Name, English Abbreviation, English Name, Chinese Name | App name in Title Case (from context, otherwise `package.json` `name`) |
|
|
31
|
+
| BCM Domain | Derive it from the business logic, using APM's `BCM` link in the left panel if unclear. **Ask** to confirm. |
|
|
32
|
+
| Application Description | Write 1–2 sentences from the business logic yourself. |
|
|
33
|
+
| Initial On-line Date | End of the current month |
|
|
34
|
+
| Service Level | `SC3` |
|
|
35
|
+
| HealthCheck | Skip |
|
|
36
|
+
| Application Owner, Developer, Maintainer | **Team**, in order, in each list |
|
|
37
|
+
|
|
38
|
+
Saving creates the record. Note the `EA ID`.
|
|
39
|
+
|
|
40
|
+
## Tab 2 — Application Status
|
|
41
|
+
|
|
42
|
+
- Hosting Type: `Private Cloud (Kubernetes)`, not the Cloud Operating Model variant.
|
|
43
|
+
- Cloud Maturity Feasibility: `expected plan`.
|
|
44
|
+
- Cloud Maturity Plan Date: **end of the quarter** that contains the on-line date, e.g. 2026-10-31 → 2026-12-31.
|
|
45
|
+
- Leave the other fields, Database, Programming Language and Lifecycle empty.
|
|
46
|
+
|
|
47
|
+
## Tab 3 — Application Use Status
|
|
48
|
+
|
|
49
|
+
- useSite: `Specific Sites` → `WCZ`.
|
|
50
|
+
- useBg: `Specific BG` → `BG5` if the app name contains `SMS` or `WSCZ` (ignore case), otherwise `BG2`.
|
|
51
|
+
- Login Validation: Closed Network and User Identities from the up-front answers. Authentication Methods: `MS Entra ID`.
|
|
52
|
+
|
|
53
|
+
## Tab 4 — Application Complexity
|
|
54
|
+
|
|
55
|
+
Skip.
|
|
56
|
+
|
|
57
|
+
## Tab 5 — Information Security
|
|
58
|
+
|
|
59
|
+
- SAMM `No`, DSOMM `Yes`, Execution Progress `0` (view mode shows `--`), Internet Facing `No`.
|
|
60
|
+
- Implementation Completion Date: same as the Tab 2 plan date.
|
|
61
|
+
- Division Lead: signed-in user.
|
|
62
|
+
- Data Sensitivity `No`, CI/CD Implemented `Yes`.
|
|
63
|
+
- WiCOP Resource: click `Check` (expect `No`). CMDB/ITSM: type `N/A`, click `Check` (expect `No`).
|
|
64
|
+
|
|
65
|
+
## Tab 6 — Approval Status Inquiry
|
|
66
|
+
|
|
67
|
+
Propose the values from the business logic and **Ask** to confirm them in one question. For reference, SMS External Transfer used:
|
|
68
|
+
|
|
69
|
+
- Approval `Yes`.
|
|
70
|
+
- Purpose `Other (Remark)`, remark `material transfer out of the production area`.
|
|
71
|
+
- HR/Finance `Other (Remark)`, remark `-`.
|
|
72
|
+
- CEO/Chairman `Yes`, BG/BU Head `Yes`.
|
|
73
|
+
- Engine `Other (Remark)`, remark `-`.
|
|
74
|
+
- Approval remarks `-`.
|
|
75
|
+
- Portal APP `No integrations`.
|
|
76
|
+
|
|
77
|
+
Quirks, which cause a silent HTTP 500 or a disabled ✓:
|
|
78
|
+
|
|
79
|
+
- Every remark must be **≤ ~45 characters**.
|
|
80
|
+
- Put `-` in every remark field that has no real value.
|
|
81
|
+
- Select BG/BU Head explicitly. The `No` shown by default is not a value.
|
|
82
|
+
|
|
83
|
+
## Tab 7 — Covering Enterprise Domain
|
|
84
|
+
|
|
85
|
+
1. Click pencil → `+`. Pick L0 to match the BCM domain, browse L1 → L2 → L3, and choose the path that fits the business logic.
|
|
86
|
+
2. **Ask** to confirm the path. For reference, SMS External Transfer used `8 Administrative` → `8.3 Security management` → `8.3.2 Security administration` → `8.3.2.1 Controlled entry and exit of goods`.
|
|
87
|
+
3. Click `Confirm` in the dialog, then the tab's ✓.
|
|
88
|
+
|
|
89
|
+
Skip tabs 8–10.
|
|
90
|
+
|
|
91
|
+
## Send Approval
|
|
92
|
+
|
|
93
|
+
1. Click `Send Approval`. In the `Approval Content` dialog, check the values against what you entered. Black means new, red means changed.
|
|
94
|
+
2. If anything is wrong, click `Cancel` and fix it.
|
|
95
|
+
3. **Ask**: "Submit the APM approval?" with the options `Submit` / `Not yet`. Click `Confirm` only on `Submit`.
|
|
96
|
+
|
|
97
|
+
Done when APM accepts the submission or the user saves the record for later. Report the `EA ID`.
|
|
@@ -1,105 +1,105 @@
|
|
|
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-check, repeat until the expected state appears or ~5 minutes
|
|
11
|
-
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. Poll cheaply: a full page read returns the
|
|
14
|
-
entire sidebar and is tens of kilobytes, so when you are waiting on one
|
|
15
|
-
field, screenshot that field's ref instead. Element refs stay valid across
|
|
16
|
-
re-renders, so reuse the ones you already have rather than re-reading the
|
|
17
|
-
page to rediscover them.
|
|
18
|
-
|
|
19
|
-
1. Open [WiCOP](https://wicop.wistron.com/). If the sign-in page appears, do
|
|
20
|
-
not ask for any application-form values yet. Say in one line that the user
|
|
21
|
-
should finish the Microsoft sign-in, then poll inside the same turn until
|
|
22
|
-
the URL returns to `wicop.wistron.com`. While the sign-in pages are open,
|
|
23
|
-
poll the page title and URL only — never read the page content, because the
|
|
24
|
-
password the user types is exposed in the accessibility snapshot. Once back
|
|
25
|
-
on WiCOP, confirm the signed-in shell (user name in the header, left
|
|
26
|
-
navigation) and continue without asking.
|
|
27
|
-
2. Navigate directly to
|
|
28
|
-
`https://wicop.wistron.com/wicop/applicationForms/newAccountComboFlow` —
|
|
29
|
-
the collapsed left-nav submenu intercepts pointer events and clicking its
|
|
30
|
-
links times out. Select **Start**, then **New Account Combo**, set
|
|
31
|
-
**Purpose** to `Initialization of a new application.`, and select **OK**.
|
|
32
|
-
3. On **IBU Apply**, ask via **AskUserQuestion** for the **Cost Center** and
|
|
33
|
-
whether to create **QAS**, **PRD**, or both. Fill the form sequentially from top to bottom;
|
|
34
|
-
never interact with a field while a required field above it is incomplete.
|
|
35
|
-
Leave prefilled and unneeded fields unchanged. The controls appear on the
|
|
36
|
-
page in this order — use these values as each one is reached:
|
|
37
|
-
- **I already have an IBU**: keep `No, apply a new IBU`. **IBU Group
|
|
38
|
-
(Service Name)** is generated from the fields below; never type into it.
|
|
39
|
-
- _Cloud Environment_
|
|
40
|
-
- Service Provider: `K8S`
|
|
41
|
-
- Application Name (EA ID): search for it yourself first — see step 4
|
|
42
|
-
- Service(System) Alias Name: read `package.json` `name` converted to
|
|
43
|
-
uppercase letters and digits only, with spaces and punctuation removed
|
|
44
|
-
(`my-app` becomes `MYAPP`); the field accepts at most 16 characters
|
|
45
|
-
- Cloud Type: `Satellite Cloud`
|
|
46
|
-
- Cloud Site: `WCZ`
|
|
47
|
-
- Plant: `WCZ` — this control only appears once Cloud Type is
|
|
48
|
-
`Satellite Cloud`, below Cloud Site
|
|
49
|
-
- Environment: tick only the requested boxes; the list is filtered by
|
|
50
|
-
site, so WCZ Satellite offers QAS and PRD only. Each ticked box
|
|
51
|
-
enables its own **Cloud Cluster ID** and **Budget (TWD)** below it
|
|
52
|
-
- QAS cluster / budget: `wcz-sat-qas-01` / `0`
|
|
53
|
-
- PRD cluster / budget: `wcz-sat-prd-01` / `0`
|
|
54
|
-
- _Owner information_
|
|
55
|
-
- Cost Center: the user-provided value, entered in the editable IBU
|
|
56
|
-
control, not the prefilled read-only IBG control
|
|
57
|
-
- _Charge Setting_
|
|
58
|
-
- Charge Type: `By Fixed Amount (per IBU)`
|
|
59
|
-
- Charge Groups: reuse the same Cost Center if its row asks for one
|
|
60
|
-
4. When **Application Name (EA ID)** is reached, try to find it yourself. The
|
|
61
|
-
registered application names follow no convention — they may differ from
|
|
62
|
-
`package.json` `name` in casing, spacing, punctuation, and wording (`My
|
|
63
|
-
App`, `MyApp`, `My Application`, or an unrelated label), so do not expect an
|
|
64
|
-
exact match. Click the field first — it only starts searching once focused —
|
|
65
|
-
then type only a few leading characters of the most likely name to get a
|
|
66
|
-
wide option list. The options are loaded lazily, so wait and re-check the
|
|
67
|
-
list until it appears instead of concluding there are no matches; read the
|
|
68
|
-
options and select the one that clearly matches the project. Make a few
|
|
69
|
-
attempts with different guesses (short
|
|
70
|
-
prefix, the words separately, the full name). If no option is clearly the
|
|
71
|
-
right one, clear the field, say in one line that the user should pick the EA
|
|
72
|
-
ID, then poll the field until it holds a value. Resume filling the form
|
|
73
|
-
sequentially and select **Next >** when complete.
|
|
74
|
-
5. On **IBG Apply**, verify the inherited read-only values and select
|
|
75
|
-
**Next >**. This page routinely needs the click twice.
|
|
76
|
-
6. On **Project Apply**, set **Memory (GB)** to `2` for each selected
|
|
77
|
-
environment; leave other fields unchanged. Ask via **AskUserQuestion**
|
|
78
|
-
before selecting **Next >**.
|
|
79
|
-
7. On **Team Apply**, ask via **AskUserQuestion** who the GitLab team manager
|
|
80
|
-
is, offering exactly two options: `Martin Husar (C1107048)` and the
|
|
81
|
-
logged-in user — read that ID and name from the top-right corner of the
|
|
82
|
-
WiCOP header.
|
|
83
|
-
Populate all other team fields automatically. Add `C0708003`, `C1107048`,
|
|
84
|
-
`C2503017`, `C2404003`, `C2404002`, and `C2508015` as GitLab members,
|
|
85
|
-
excluding the selected manager from the member list. Each member box is a
|
|
86
|
-
search field: type the ID, then select the suggestion it offers before
|
|
87
|
-
adding the next row — an unresolved ID is discarded. Use **Copy & Paste
|
|
88
|
-
Now** for all other teams. Create a JSM team and select its license-charge
|
|
89
|
-
agreement when requested, then copy the GitLab team to it. Do not add a
|
|
90
|
-
member row after the final member.
|
|
91
|
-
8. On **Review & Confirm**, present the summary to the user, then ask via
|
|
92
|
-
**AskUserQuestion**: **"Submit the WiCOP request?"** with options `Submit` /
|
|
93
|
-
`Not yet`. Only after they select `Submit`, select **Submit**; in the dialog,
|
|
94
|
-
accept the CCoE Policy and select **Confirm**. On the successful-submission
|
|
95
|
-
dialog, select **Let's Go** to open **Apply Status**.
|
|
96
|
-
9. Close the current browser session.
|
|
97
|
-
|
|
98
|
-
This applies on every page and to every advancing control (**OK**, **Next >**,
|
|
99
|
-
**Submit**, **Confirm**, **Let's Go**): after selecting it, inspect the next
|
|
100
|
-
step and continue the workflow without pausing unless user input, a required
|
|
101
|
-
confirmation, or a final submission decision is needed. If the UI does not
|
|
102
|
-
visibly advance, select the same control once more, then stop.
|
|
103
|
-
|
|
104
|
-
Do not submit the final request without the user's confirmation. WiCOP sends
|
|
105
|
-
the application to the manager, owner, and owner division head for approval.
|
|
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-check, repeat until the expected state appears or ~5 minutes
|
|
11
|
+
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. Poll cheaply: a full page read returns the
|
|
14
|
+
entire sidebar and is tens of kilobytes, so when you are waiting on one
|
|
15
|
+
field, screenshot that field's ref instead. Element refs stay valid across
|
|
16
|
+
re-renders, so reuse the ones you already have rather than re-reading the
|
|
17
|
+
page to rediscover them.
|
|
18
|
+
|
|
19
|
+
1. Open [WiCOP](https://wicop.wistron.com/). If the sign-in page appears, do
|
|
20
|
+
not ask for any application-form values yet. Say in one line that the user
|
|
21
|
+
should finish the Microsoft sign-in, then poll inside the same turn until
|
|
22
|
+
the URL returns to `wicop.wistron.com`. While the sign-in pages are open,
|
|
23
|
+
poll the page title and URL only — never read the page content, because the
|
|
24
|
+
password the user types is exposed in the accessibility snapshot. Once back
|
|
25
|
+
on WiCOP, confirm the signed-in shell (user name in the header, left
|
|
26
|
+
navigation) and continue without asking.
|
|
27
|
+
2. Navigate directly to
|
|
28
|
+
`https://wicop.wistron.com/wicop/applicationForms/newAccountComboFlow` —
|
|
29
|
+
the collapsed left-nav submenu intercepts pointer events and clicking its
|
|
30
|
+
links times out. Select **Start**, then **New Account Combo**, set
|
|
31
|
+
**Purpose** to `Initialization of a new application.`, and select **OK**.
|
|
32
|
+
3. On **IBU Apply**, ask via **AskUserQuestion** for the **Cost Center** and
|
|
33
|
+
whether to create **QAS**, **PRD**, or both. Fill the form sequentially from top to bottom;
|
|
34
|
+
never interact with a field while a required field above it is incomplete.
|
|
35
|
+
Leave prefilled and unneeded fields unchanged. The controls appear on the
|
|
36
|
+
page in this order — use these values as each one is reached:
|
|
37
|
+
- **I already have an IBU**: keep `No, apply a new IBU`. **IBU Group
|
|
38
|
+
(Service Name)** is generated from the fields below; never type into it.
|
|
39
|
+
- _Cloud Environment_
|
|
40
|
+
- Service Provider: `K8S`
|
|
41
|
+
- Application Name (EA ID): search for it yourself first — see step 4
|
|
42
|
+
- Service(System) Alias Name: read `package.json` `name` converted to
|
|
43
|
+
uppercase letters and digits only, with spaces and punctuation removed
|
|
44
|
+
(`my-app` becomes `MYAPP`); the field accepts at most 16 characters
|
|
45
|
+
- Cloud Type: `Satellite Cloud`
|
|
46
|
+
- Cloud Site: `WCZ`
|
|
47
|
+
- Plant: `WCZ` — this control only appears once Cloud Type is
|
|
48
|
+
`Satellite Cloud`, below Cloud Site
|
|
49
|
+
- Environment: tick only the requested boxes; the list is filtered by
|
|
50
|
+
site, so WCZ Satellite offers QAS and PRD only. Each ticked box
|
|
51
|
+
enables its own **Cloud Cluster ID** and **Budget (TWD)** below it
|
|
52
|
+
- QAS cluster / budget: `wcz-sat-qas-01` / `0`
|
|
53
|
+
- PRD cluster / budget: `wcz-sat-prd-01` / `0`
|
|
54
|
+
- _Owner information_
|
|
55
|
+
- Cost Center: the user-provided value, entered in the editable IBU
|
|
56
|
+
control, not the prefilled read-only IBG control
|
|
57
|
+
- _Charge Setting_
|
|
58
|
+
- Charge Type: `By Fixed Amount (per IBU)`
|
|
59
|
+
- Charge Groups: reuse the same Cost Center if its row asks for one
|
|
60
|
+
4. When **Application Name (EA ID)** is reached, try to find it yourself. The
|
|
61
|
+
registered application names follow no convention — they may differ from
|
|
62
|
+
`package.json` `name` in casing, spacing, punctuation, and wording (`My
|
|
63
|
+
App`, `MyApp`, `My Application`, or an unrelated label), so do not expect an
|
|
64
|
+
exact match. Click the field first — it only starts searching once focused —
|
|
65
|
+
then type only a few leading characters of the most likely name to get a
|
|
66
|
+
wide option list. The options are loaded lazily, so wait and re-check the
|
|
67
|
+
list until it appears instead of concluding there are no matches; read the
|
|
68
|
+
options and select the one that clearly matches the project. Make a few
|
|
69
|
+
attempts with different guesses (short
|
|
70
|
+
prefix, the words separately, the full name). If no option is clearly the
|
|
71
|
+
right one, clear the field, say in one line that the user should pick the EA
|
|
72
|
+
ID, then poll the field until it holds a value. Resume filling the form
|
|
73
|
+
sequentially and select **Next >** when complete.
|
|
74
|
+
5. On **IBG Apply**, verify the inherited read-only values and select
|
|
75
|
+
**Next >**. This page routinely needs the click twice.
|
|
76
|
+
6. On **Project Apply**, set **Memory (GB)** to `2` for each selected
|
|
77
|
+
environment; leave other fields unchanged. Ask via **AskUserQuestion**
|
|
78
|
+
before selecting **Next >**.
|
|
79
|
+
7. On **Team Apply**, ask via **AskUserQuestion** who the GitLab team manager
|
|
80
|
+
is, offering exactly two options: `Martin Husar (C1107048)` and the
|
|
81
|
+
logged-in user — read that ID and name from the top-right corner of the
|
|
82
|
+
WiCOP header.
|
|
83
|
+
Populate all other team fields automatically. Add `C0708003`, `C1107048`,
|
|
84
|
+
`C2503017`, `C2404003`, `C2404002`, and `C2508015` as GitLab members,
|
|
85
|
+
excluding the selected manager from the member list. Each member box is a
|
|
86
|
+
search field: type the ID, then select the suggestion it offers before
|
|
87
|
+
adding the next row — an unresolved ID is discarded. Use **Copy & Paste
|
|
88
|
+
Now** for all other teams. Create a JSM team and select its license-charge
|
|
89
|
+
agreement when requested, then copy the GitLab team to it. Do not add a
|
|
90
|
+
member row after the final member.
|
|
91
|
+
8. On **Review & Confirm**, present the summary to the user, then ask via
|
|
92
|
+
**AskUserQuestion**: **"Submit the WiCOP request?"** with options `Submit` /
|
|
93
|
+
`Not yet`. Only after they select `Submit`, select **Submit**; in the dialog,
|
|
94
|
+
accept the CCoE Policy and select **Confirm**. On the successful-submission
|
|
95
|
+
dialog, select **Let's Go** to open **Apply Status**.
|
|
96
|
+
9. Close the current browser session.
|
|
97
|
+
|
|
98
|
+
This applies on every page and to every advancing control (**OK**, **Next >**,
|
|
99
|
+
**Submit**, **Confirm**, **Let's Go**): after selecting it, inspect the next
|
|
100
|
+
step and continue the workflow without pausing unless user input, a required
|
|
101
|
+
confirmation, or a final submission decision is needed. If the UI does not
|
|
102
|
+
visibly advance, select the same control once more, then stop.
|
|
103
|
+
|
|
104
|
+
Do not submit the final request without the user's confirmation. WiCOP sends
|
|
105
|
+
the application to the manager, owner, and owner division head for approval.
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# Database Setup
|
|
2
|
-
|
|
3
|
-
> Create `.env.local` if it does not exist.
|
|
4
|
-
> The app pins `search_path` to the `DATABASE_URL` username, so a schema with that
|
|
5
|
-
> exact name must exist. `public` cannot be a username — it is a reserved role.
|
|
6
|
-
|
|
7
|
-
## User Input
|
|
8
|
-
|
|
9
|
-
Ask via **AskUserQuestion**: **"Do you already have a Postgres database created for this project?"** — options `Yes` / `No`.
|
|
10
|
-
|
|
11
|
-
## Branch A — Existing database
|
|
12
|
-
|
|
13
|
-
1. Ask: **"Please provide the database connection details"**.
|
|
14
|
-
|
|
15
|
-
Fill the host in automatically — QAS is always `10.82.36.60:5432`, PRD is always `10.82.36.50:5432`.
|
|
16
|
-
|
|
17
|
-
2. Update `.env.local`:
|
|
18
|
-
- Set `DATABASE_URL=postgres://<schema-username>:<password>@<server-address>:5432/<database-name>`.
|
|
19
|
-
|
|
20
|
-
## Branch B — No database
|
|
21
|
-
|
|
22
|
-
Ask via **AskUserQuestion**: **"Would you like me to create a local Postgres database using Docker?"** — options `Yes` / `No`.
|
|
23
|
-
|
|
24
|
-
- **No** → continue to next step.
|
|
25
|
-
- **Yes** → execute the Docker flow below.
|
|
26
|
-
|
|
27
|
-
### Docker flow
|
|
28
|
-
|
|
29
|
-
The container name is `<project-name>-postgres` where `<project-name>` is the kebab-case project name (read from the `name` field in `package.json`).
|
|
30
|
-
|
|
31
|
-
1. Ensure the Docker daemon is running. If not, start Docker Desktop via terminal automatically.
|
|
32
|
-
2. Auto-generate password.
|
|
33
|
-
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.
|
|
34
|
-
4. Run the container on the chosen port:
|
|
35
|
-
|
|
36
|
-
```powershell
|
|
37
|
-
docker run --name <project-name>-postgres -e POSTGRES_PASSWORD=<password> -d -p <PORT>:5432 postgres
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
- **Success** → continue.
|
|
41
|
-
- **Error** → stop and show the full error to the user.
|
|
42
|
-
|
|
43
|
-
5. Create the schema matching the username:
|
|
44
|
-
|
|
45
|
-
```powershell
|
|
46
|
-
docker exec <project-name>-postgres psql -U postgres -c "CREATE SCHEMA IF NOT EXISTS postgres AUTHORIZATION postgres;"
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
6. Update `.env.local`:
|
|
50
|
-
- Set `DATABASE_URL=postgres://postgres:<password>@localhost:<PORT>/postgres`.
|
|
51
|
-
7. Output exactly:
|
|
52
|
-
> ✅ Local Postgres database created successfully on port [PORT]
|
|
1
|
+
# Database Setup
|
|
2
|
+
|
|
3
|
+
> Create `.env.local` if it does not exist.
|
|
4
|
+
> The app pins `search_path` to the `DATABASE_URL` username, so a schema with that
|
|
5
|
+
> exact name must exist. `public` cannot be a username — it is a reserved role.
|
|
6
|
+
|
|
7
|
+
## User Input
|
|
8
|
+
|
|
9
|
+
Ask via **AskUserQuestion**: **"Do you already have a Postgres database created for this project?"** — options `Yes` / `No`.
|
|
10
|
+
|
|
11
|
+
## Branch A — Existing database
|
|
12
|
+
|
|
13
|
+
1. Ask: **"Please provide the database connection details"**.
|
|
14
|
+
|
|
15
|
+
Fill the host in automatically — QAS is always `10.82.36.60:5432`, PRD is always `10.82.36.50:5432`.
|
|
16
|
+
|
|
17
|
+
2. Update `.env.local`:
|
|
18
|
+
- Set `DATABASE_URL=postgres://<schema-username>:<password>@<server-address>:5432/<database-name>`.
|
|
19
|
+
|
|
20
|
+
## Branch B — No database
|
|
21
|
+
|
|
22
|
+
Ask via **AskUserQuestion**: **"Would you like me to create a local Postgres database using Docker?"** — options `Yes` / `No`.
|
|
23
|
+
|
|
24
|
+
- **No** → continue to next step.
|
|
25
|
+
- **Yes** → execute the Docker flow below.
|
|
26
|
+
|
|
27
|
+
### Docker flow
|
|
28
|
+
|
|
29
|
+
The container name is `<project-name>-postgres` where `<project-name>` is the kebab-case project name (read from the `name` field in `package.json`).
|
|
30
|
+
|
|
31
|
+
1. Ensure the Docker daemon is running. If not, start Docker Desktop via terminal automatically.
|
|
32
|
+
2. Auto-generate password.
|
|
33
|
+
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.
|
|
34
|
+
4. Run the container on the chosen port:
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
docker run --name <project-name>-postgres -e POSTGRES_PASSWORD=<password> -d -p <PORT>:5432 postgres
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- **Success** → continue.
|
|
41
|
+
- **Error** → stop and show the full error to the user.
|
|
42
|
+
|
|
43
|
+
5. Create the schema matching the username:
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
docker exec <project-name>-postgres psql -U postgres -c "CREATE SCHEMA IF NOT EXISTS postgres AUTHORIZATION postgres;"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
6. Update `.env.local`:
|
|
50
|
+
- Set `DATABASE_URL=postgres://postgres:<password>@localhost:<PORT>/postgres`.
|
|
51
|
+
7. Output exactly:
|
|
52
|
+
> ✅ Local Postgres database created successfully on port [PORT]
|