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.
Files changed (84) hide show
  1. package/dist/{AggregatedCell-C7nAQyMO.mjs → AggregatedCell-CqGptV6i.mjs} +199 -150
  2. package/dist/AggregatedCell-CqGptV6i.mjs.map +1 -0
  3. package/dist/Approval-DoD-GRRH.mjs.map +1 -1
  4. package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
  5. package/dist/Email-BzQQkbe9.mjs.map +1 -1
  6. package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
  7. package/dist/{LayoutTable-DX9IaO8V.d.mts → LayoutTable-CRo43iWr.d.mts} +7 -3
  8. package/dist/{RouterListItemButton-ULMlaQh6.mjs → RouterListItemButton-ke6iPKkL.mjs} +9 -9
  9. package/dist/RouterListItemButton-ke6iPKkL.mjs.map +1 -0
  10. package/dist/{approval-DiNOXd4B.mjs → approval-L09uPzTU.mjs} +2 -2
  11. package/dist/approval-L09uPzTU.mjs.map +1 -0
  12. package/dist/auth.d.mts +1 -0
  13. package/dist/auth.mjs +15 -12
  14. package/dist/auth.mjs.map +1 -1
  15. package/dist/components.d.mts +1 -1
  16. package/dist/components.mjs +594 -361
  17. package/dist/components.mjs.map +1 -1
  18. package/dist/{createApi-DGJJ4I_R.mjs → createApi-BhNkG4jz.mjs} +3 -3
  19. package/dist/createApi-BhNkG4jz.mjs.map +1 -0
  20. package/dist/data/client.mjs +3 -3
  21. package/dist/data/client.mjs.map +1 -1
  22. package/dist/data/server.mjs +4 -4
  23. package/dist/data/server.mjs.map +1 -1
  24. package/dist/{file-C14fhUeg.mjs → file-Chlljz3o.mjs} +4 -4
  25. package/dist/file-Chlljz3o.mjs.map +1 -0
  26. package/dist/{file-C5BOj1q8.mjs → file-Dl8JCcqy.mjs} +4 -4
  27. package/dist/file-Dl8JCcqy.mjs.map +1 -0
  28. package/dist/hooks.d.mts +2 -1
  29. package/dist/hooks.mjs +541 -591
  30. package/dist/hooks.mjs.map +1 -1
  31. package/dist/index.mjs +420 -426
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/middleware.mjs +2 -2
  34. package/dist/middleware.mjs.map +1 -1
  35. package/dist/models.mjs.map +1 -1
  36. package/dist/{peoplesoft-BkJMCcHb.mjs → peoplesoft-BhintHQz.mjs} +3 -3
  37. package/dist/peoplesoft-BhintHQz.mjs.map +1 -0
  38. package/dist/{providers-DrairEO2.mjs → providers-BvuZWkpD.mjs} +2 -2
  39. package/dist/providers-BvuZWkpD.mjs.map +1 -0
  40. package/dist/{tokens-BLRreL1j.mjs → tokens-XuFhVbh5.mjs} +9 -6
  41. package/dist/tokens-XuFhVbh5.mjs.map +1 -0
  42. package/dist/{utils-BUpDoqme.mjs → utils-CaeVFWF-.mjs} +18 -7
  43. package/dist/utils-CaeVFWF-.mjs.map +1 -0
  44. package/dist/utils.mjs +1 -1
  45. package/dist/vite.mjs +11 -0
  46. package/dist/vite.mjs.map +1 -1
  47. package/package.json +131 -130
  48. package/skills/client-db/SKILL.md +136 -136
  49. package/skills/db-schema/SKILL.md +98 -98
  50. package/skills/dialogs/SKILL.md +74 -74
  51. package/skills/forms/SKILL.md +122 -122
  52. package/skills/general/SKILL.md +127 -127
  53. package/skills/general/references/exports.md +109 -109
  54. package/skills/migrations/SKILL.md +57 -57
  55. package/skills/migrations/versions/migrate-v10-to-v11.md +1 -1
  56. package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
  57. package/skills/routing/SKILL.md +87 -87
  58. package/skills/server-functions/SKILL.md +95 -95
  59. package/skills/services/SKILL.md +34 -34
  60. package/skills/services/docs/email.md +32 -32
  61. package/skills/services/docs/file.md +108 -108
  62. package/skills/services/docs/peoplesoft.md +114 -114
  63. package/skills/start/SKILL.md +52 -52
  64. package/skills/start/steps/01-git-setup.md +10 -10
  65. package/skills/start/steps/02-project-name-setup.md +19 -19
  66. package/skills/start/steps/03-apm-setup.md +97 -208
  67. package/skills/start/steps/04-wicop-setup.md +105 -105
  68. package/skills/start/steps/05-database-setup.md +52 -52
  69. package/skills/start/steps/06-entra-setup.md +96 -96
  70. package/skills/start/steps/07-vault-setup.md +115 -115
  71. package/skills/start/steps/08-generate-favicon.md +8 -8
  72. package/skills/start/steps/09-gitlab-ci.md +25 -25
  73. package/skills/start/steps/10-commit.md +15 -15
  74. package/skills/table/SKILL.md +266 -264
  75. package/dist/AggregatedCell-C7nAQyMO.mjs.map +0 -1
  76. package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
  77. package/dist/approval-DiNOXd4B.mjs.map +0 -1
  78. package/dist/createApi-DGJJ4I_R.mjs.map +0 -1
  79. package/dist/file-C14fhUeg.mjs.map +0 -1
  80. package/dist/file-C5BOj1q8.mjs.map +0 -1
  81. package/dist/peoplesoft-BkJMCcHb.mjs.map +0 -1
  82. package/dist/providers-DrairEO2.mjs.map +0 -1
  83. package/dist/tokens-BLRreL1j.mjs.map +0 -1
  84. package/dist/utils-BUpDoqme.mjs.map +0 -1
@@ -1,208 +1,97 @@
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.
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]