wcz-layout 10.1.8 → 10.1.9
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/{Employee-N9fRSnIl.d.mts → Employee-agVPiGrJ.d.mts} +9 -9
- package/dist/components.mjs +42 -34
- package/dist/components.mjs.map +1 -1
- package/dist/data/client.d.mts +241 -241
- package/dist/data/server.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +1 -1
- package/dist/models.mjs +4 -4
- package/dist/models.mjs.map +1 -1
- package/dist/peoplesoft-BhintHQz.mjs.map +1 -1
- package/dist/{peoplesoft-BIdTNshE.d.mts → peoplesoft-D6q3cYsH.d.mts} +2 -2
- package/dist/utils-CaeVFWF-.mjs.map +1 -1
- package/package.json +131 -131
- package/skills/general/references/exports.md +114 -114
- package/skills/migrations/versions/migrate-v10-to-v11.md +4 -4
- package/skills/start/steps/03-apm-setup.md +97 -97
- package/skills/table/SKILL.md +267 -267
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
# wcz-layout exports
|
|
2
|
-
|
|
3
|
-
Public import subpaths and commonly used exports. Read this when you need to know where a
|
|
4
|
-
symbol lives; you do not need it loaded for ordinary feature work.
|
|
5
|
-
|
|
6
|
-
## `wcz-layout`
|
|
7
|
-
|
|
8
|
-
The root subpath. Everything the application shell needs.
|
|
9
|
-
|
|
10
|
-
- `LayoutProvider` — root shell provider. Props: `theme` (required), `navigation?`,
|
|
11
|
-
`options?`. Installs the Emotion cache, MUI `ThemeProvider`, `LocalizationProvider`
|
|
12
|
-
(dayjs), i18next and the dialogs provider. Wrap `{children}` with it inside `<body>` in
|
|
13
|
-
`__root.tsx`. Do not install any of those yourself. Render `<html lang={i18n.language}>`
|
|
14
|
-
in the shell: the browser starts i18next in that language before hydrating, so the
|
|
15
|
-
server-rendered page is kept rather than rebuilt in another language.
|
|
16
|
-
- `Navigation` — the type for the sidebar tree. Items are
|
|
17
|
-
`{ kind: "item" | "header" | "group" | "divider" }`; an item takes `to` or `href`,
|
|
18
|
-
`title`, `icon` and optional `search`; groups take `title`, `icon` and `children`; headers
|
|
19
|
-
take `title`; every kind accepts `hidden`.
|
|
20
|
-
- `rootRouteHead` — returns the root route's `head()` value (title, meta, links).
|
|
21
|
-
- `getUser({ queryClient })` — resolves the signed-in user. Call it in the root
|
|
22
|
-
`beforeLoad` and return `{ user }`; that is what makes `Route.useRouteContext().user`
|
|
23
|
-
available on every route.
|
|
24
|
-
- `setLanguageFromRequest()` — on the server, switches i18next to the request's language (the
|
|
25
|
-
`i18next` cookie, then `Accept-Language`) so pages server-render in it; a no-op in the
|
|
26
|
-
browser. `await` it first in the root `beforeLoad`, before `getUser`.
|
|
27
|
-
- `loginProvidersQueryOptions` — query options for the configured OAuth providers. The
|
|
28
|
-
`/login` route loads it so the buttons server-render.
|
|
29
|
-
- `WISTRON_PRIMARY_COLOR`, `WISTRON_SECONDARY_COLOR` — brand colors for the app's theme.
|
|
30
|
-
|
|
31
|
-
## `wcz-layout/vite`
|
|
32
|
-
|
|
33
|
-
- `viteWczLayout()` — **required** Vite plugin. Keep the template's plugin order after
|
|
34
|
-
`tanstackStart()`, `nitro()`, `viteReact()` and the React Compiler babel plugin. It
|
|
35
|
-
builds the `virtual:wcz-layout` module from the app's `src/lib/locales/*.json`,
|
|
36
|
-
`src/lib/auth/permissions.ts`, `src/lib/auth/scopes.ts`, `src/env.ts` and
|
|
37
|
-
`public/manifest.json`, and loads Vault secrets into `process.env` during `serve`.
|
|
38
|
-
Without it the build fails to resolve
|
|
39
|
-
`virtual:wcz-layout`. The app must also declare that module in
|
|
40
|
-
`src/types/wcz-layout.d.ts`.
|
|
41
|
-
|
|
42
|
-
## `wcz-layout/components`
|
|
43
|
-
|
|
44
|
-
- `LayoutTable` — table renderer; see the `table` skill. Types: `LayoutTableProps`,
|
|
45
|
-
`RowAction`, `LayoutColumnMeta`, `FilterOperator`, `TableFilterOption`,
|
|
46
|
-
`TableFilterVariant`
|
|
47
|
-
- `AggregatedCell` — aggregated value cell for grouped rows
|
|
48
|
-
- `Fullscreen` — fills the viewport, for a page whose only content is a table
|
|
49
|
-
- `Dropzone`, `FileViewer` — file upload and preview; see the `services` skill
|
|
50
|
-
- `LoginForm` — provider buttons for the login route; takes no props and reads
|
|
51
|
-
`?returnTo` itself
|
|
52
|
-
- `RouterButton`, `RouterFab`, `RouterIconButton`, `RouterLink`, `RouterListItemButton`,
|
|
53
|
-
`RouterTab` — MUI components taking router `to` / `params` / `search`
|
|
54
|
-
- `RouterNotFound`, `RouterError` — default 404 and error components. Pass them to
|
|
55
|
-
`createRouter` as `defaultNotFoundComponent` and `defaultErrorComponent`.
|
|
56
|
-
|
|
57
|
-
## `wcz-layout/hooks`
|
|
58
|
-
|
|
59
|
-
- `useLayoutForm`, `withLayoutForm`, `useFormContext`, `useFieldContext` — form instance,
|
|
60
|
-
reusable sub-forms, and the contexts custom field components read; see the `forms` skill
|
|
61
|
-
- `useLayoutTable`, `createLayoutColumnHelper`, `layoutTableFeatures`, `useTableContext`,
|
|
62
|
-
`useHeaderContext`, `useCellContext` — table instance, column helper and contexts, plus
|
|
63
|
-
type `LayoutTableFeatures`; see the `table` skill
|
|
64
|
-
- `useDialogs` — alert, confirm, custom dialogs and `close`, plus type `DialogProps`; see
|
|
65
|
-
the `dialogs` skill
|
|
66
|
-
- `useTranslation` — translation inside components
|
|
67
|
-
- `useInView` — element visibility observer
|
|
68
|
-
- `useScanDetection` — barcode scanner keystrokes
|
|
69
|
-
|
|
70
|
-
## `wcz-layout/middleware`
|
|
71
|
-
|
|
72
|
-
- `authMiddleware` — rejects unauthenticated calls, optionally checks a permission key.
|
|
73
|
-
Goes in a server function's `.middleware([])`, **after** `databaseMiddleware` so it
|
|
74
|
-
narrows `context.user` to `User`. See the `server-functions` skill for the full order.
|
|
75
|
-
- `userMiddleware` — attaches the user without requiring one, as `User | null`
|
|
76
|
-
- `validationMiddleware` — validates API route input against a Zod schema. REST routes
|
|
77
|
-
only; server functions use `.validator()`.
|
|
78
|
-
- `csrfMiddleware` — CSRF protection for server functions. Without a `src/start.ts`, Start
|
|
79
|
-
applies the same check by default, so the template has none. If the app adds
|
|
80
|
-
`src/start.ts` for its own request middleware, list `csrfMiddleware` there too —
|
|
81
|
-
`createStart(() => ({ requestMiddleware: [csrfMiddleware, ...] }))` — because a start
|
|
82
|
-
instance replaces that default. It is a **request** middleware, never part of a
|
|
83
|
-
`.middleware([])` array.
|
|
84
|
-
|
|
85
|
-
`databaseMiddleware` is **not** here. It is app-local; every app writes its own. See the
|
|
86
|
-
`server-functions` skill.
|
|
87
|
-
|
|
88
|
-
## `wcz-layout/utils`
|
|
89
|
-
|
|
90
|
-
- `t`, `i18next` — translation outside components
|
|
91
|
-
- `uuidv7` — time-sortable id. Use it for every client-generated primary key.
|
|
92
|
-
- `requireAuth` — `beforeLoad` route guard, redirects to `/login`; see the `routing` skill
|
|
93
|
-
- `hasPermission` — permission check for a user
|
|
94
|
-
- `Platform` — OS detection from the user agent
|
|
95
|
-
- `createEnv` — typed environment schema
|
|
96
|
-
|
|
97
|
-
## `wcz-layout/auth`
|
|
98
|
-
|
|
99
|
-
- `handleLogin`, `handleCallback`, `handleLogout` — OAuth route handlers. Mount each as a
|
|
100
|
-
server `GET` handler at `/auth/login`, `/auth/callback` and `/auth/logout`.
|
|
101
|
-
- `getAccessToken` — delegated token for the signed-in user, server-only
|
|
102
|
-
- `getAppToken` — app-only token for background jobs, server-only
|
|
103
|
-
|
|
104
|
-
## `wcz-layout/models`
|
|
105
|
-
|
|
106
|
-
- Service types: `User`, `Permissions`, `Scopes`, `FileMeta`, `Email`, `EmailAttachment`,
|
|
107
|
-
`Employee`, `Department`, `EmployeeStatus`, `EmployeeCategoryGroup`, `Approval*`
|
|
108
|
-
- Matching Zod schemas: `FileMetaSchema`, `EmailSchema`, `EmailAttachmentSchema`,
|
|
109
|
-
`EmployeeSchema`, `DepartmentSchema` and the approval `*Schema`
|
|
110
|
-
|
|
111
|
-
## `wcz-layout/data/client`, `wcz-layout/data/server`
|
|
112
|
-
|
|
113
|
-
- Client query and mutation option factories for file, approval and PeopleSoft services.
|
|
114
|
-
Server exports contain those operations plus `sendEmail`; see the `services` skill.
|
|
1
|
+
# wcz-layout exports
|
|
2
|
+
|
|
3
|
+
Public import subpaths and commonly used exports. Read this when you need to know where a
|
|
4
|
+
symbol lives; you do not need it loaded for ordinary feature work.
|
|
5
|
+
|
|
6
|
+
## `wcz-layout`
|
|
7
|
+
|
|
8
|
+
The root subpath. Everything the application shell needs.
|
|
9
|
+
|
|
10
|
+
- `LayoutProvider` — root shell provider. Props: `theme` (required), `navigation?`,
|
|
11
|
+
`options?`. Installs the Emotion cache, MUI `ThemeProvider`, `LocalizationProvider`
|
|
12
|
+
(dayjs), i18next and the dialogs provider. Wrap `{children}` with it inside `<body>` in
|
|
13
|
+
`__root.tsx`. Do not install any of those yourself. Render `<html lang={i18n.language}>`
|
|
14
|
+
in the shell: the browser starts i18next in that language before hydrating, so the
|
|
15
|
+
server-rendered page is kept rather than rebuilt in another language.
|
|
16
|
+
- `Navigation` — the type for the sidebar tree. Items are
|
|
17
|
+
`{ kind: "item" | "header" | "group" | "divider" }`; an item takes `to` or `href`,
|
|
18
|
+
`title`, `icon` and optional `search`; groups take `title`, `icon` and `children`; headers
|
|
19
|
+
take `title`; every kind accepts `hidden`.
|
|
20
|
+
- `rootRouteHead` — returns the root route's `head()` value (title, meta, links).
|
|
21
|
+
- `getUser({ queryClient })` — resolves the signed-in user. Call it in the root
|
|
22
|
+
`beforeLoad` and return `{ user }`; that is what makes `Route.useRouteContext().user`
|
|
23
|
+
available on every route.
|
|
24
|
+
- `setLanguageFromRequest()` — on the server, switches i18next to the request's language (the
|
|
25
|
+
`i18next` cookie, then `Accept-Language`) so pages server-render in it; a no-op in the
|
|
26
|
+
browser. `await` it first in the root `beforeLoad`, before `getUser`.
|
|
27
|
+
- `loginProvidersQueryOptions` — query options for the configured OAuth providers. The
|
|
28
|
+
`/login` route loads it so the buttons server-render.
|
|
29
|
+
- `WISTRON_PRIMARY_COLOR`, `WISTRON_SECONDARY_COLOR` — brand colors for the app's theme.
|
|
30
|
+
|
|
31
|
+
## `wcz-layout/vite`
|
|
32
|
+
|
|
33
|
+
- `viteWczLayout()` — **required** Vite plugin. Keep the template's plugin order after
|
|
34
|
+
`tanstackStart()`, `nitro()`, `viteReact()` and the React Compiler babel plugin. It
|
|
35
|
+
builds the `virtual:wcz-layout` module from the app's `src/lib/locales/*.json`,
|
|
36
|
+
`src/lib/auth/permissions.ts`, `src/lib/auth/scopes.ts`, `src/env.ts` and
|
|
37
|
+
`public/manifest.json`, and loads Vault secrets into `process.env` during `serve`.
|
|
38
|
+
Without it the build fails to resolve
|
|
39
|
+
`virtual:wcz-layout`. The app must also declare that module in
|
|
40
|
+
`src/types/wcz-layout.d.ts`.
|
|
41
|
+
|
|
42
|
+
## `wcz-layout/components`
|
|
43
|
+
|
|
44
|
+
- `LayoutTable` — table renderer; see the `table` skill. Types: `LayoutTableProps`,
|
|
45
|
+
`RowAction`, `LayoutColumnMeta`, `FilterOperator`, `TableFilterOption`,
|
|
46
|
+
`TableFilterVariant`
|
|
47
|
+
- `AggregatedCell` — aggregated value cell for grouped rows
|
|
48
|
+
- `Fullscreen` — fills the viewport, for a page whose only content is a table
|
|
49
|
+
- `Dropzone`, `FileViewer` — file upload and preview; see the `services` skill
|
|
50
|
+
- `LoginForm` — provider buttons for the login route; takes no props and reads
|
|
51
|
+
`?returnTo` itself
|
|
52
|
+
- `RouterButton`, `RouterFab`, `RouterIconButton`, `RouterLink`, `RouterListItemButton`,
|
|
53
|
+
`RouterTab` — MUI components taking router `to` / `params` / `search`
|
|
54
|
+
- `RouterNotFound`, `RouterError` — default 404 and error components. Pass them to
|
|
55
|
+
`createRouter` as `defaultNotFoundComponent` and `defaultErrorComponent`.
|
|
56
|
+
|
|
57
|
+
## `wcz-layout/hooks`
|
|
58
|
+
|
|
59
|
+
- `useLayoutForm`, `withLayoutForm`, `useFormContext`, `useFieldContext` — form instance,
|
|
60
|
+
reusable sub-forms, and the contexts custom field components read; see the `forms` skill
|
|
61
|
+
- `useLayoutTable`, `createLayoutColumnHelper`, `layoutTableFeatures`, `useTableContext`,
|
|
62
|
+
`useHeaderContext`, `useCellContext` — table instance, column helper and contexts, plus
|
|
63
|
+
type `LayoutTableFeatures`; see the `table` skill
|
|
64
|
+
- `useDialogs` — alert, confirm, custom dialogs and `close`, plus type `DialogProps`; see
|
|
65
|
+
the `dialogs` skill
|
|
66
|
+
- `useTranslation` — translation inside components
|
|
67
|
+
- `useInView` — element visibility observer
|
|
68
|
+
- `useScanDetection` — barcode scanner keystrokes
|
|
69
|
+
|
|
70
|
+
## `wcz-layout/middleware`
|
|
71
|
+
|
|
72
|
+
- `authMiddleware` — rejects unauthenticated calls, optionally checks a permission key.
|
|
73
|
+
Goes in a server function's `.middleware([])`, **after** `databaseMiddleware` so it
|
|
74
|
+
narrows `context.user` to `User`. See the `server-functions` skill for the full order.
|
|
75
|
+
- `userMiddleware` — attaches the user without requiring one, as `User | null`
|
|
76
|
+
- `validationMiddleware` — validates API route input against a Zod schema. REST routes
|
|
77
|
+
only; server functions use `.validator()`.
|
|
78
|
+
- `csrfMiddleware` — CSRF protection for server functions. Without a `src/start.ts`, Start
|
|
79
|
+
applies the same check by default, so the template has none. If the app adds
|
|
80
|
+
`src/start.ts` for its own request middleware, list `csrfMiddleware` there too —
|
|
81
|
+
`createStart(() => ({ requestMiddleware: [csrfMiddleware, ...] }))` — because a start
|
|
82
|
+
instance replaces that default. It is a **request** middleware, never part of a
|
|
83
|
+
`.middleware([])` array.
|
|
84
|
+
|
|
85
|
+
`databaseMiddleware` is **not** here. It is app-local; every app writes its own. See the
|
|
86
|
+
`server-functions` skill.
|
|
87
|
+
|
|
88
|
+
## `wcz-layout/utils`
|
|
89
|
+
|
|
90
|
+
- `t`, `i18next` — translation outside components
|
|
91
|
+
- `uuidv7` — time-sortable id. Use it for every client-generated primary key.
|
|
92
|
+
- `requireAuth` — `beforeLoad` route guard, redirects to `/login`; see the `routing` skill
|
|
93
|
+
- `hasPermission` — permission check for a user
|
|
94
|
+
- `Platform` — OS detection from the user agent
|
|
95
|
+
- `createEnv` — typed environment schema
|
|
96
|
+
|
|
97
|
+
## `wcz-layout/auth`
|
|
98
|
+
|
|
99
|
+
- `handleLogin`, `handleCallback`, `handleLogout` — OAuth route handlers. Mount each as a
|
|
100
|
+
server `GET` handler at `/auth/login`, `/auth/callback` and `/auth/logout`.
|
|
101
|
+
- `getAccessToken` — delegated token for the signed-in user, server-only
|
|
102
|
+
- `getAppToken` — app-only token for background jobs, server-only
|
|
103
|
+
|
|
104
|
+
## `wcz-layout/models`
|
|
105
|
+
|
|
106
|
+
- Service types: `User`, `Permissions`, `Scopes`, `FileMeta`, `Email`, `EmailAttachment`,
|
|
107
|
+
`Employee`, `Department`, `EmployeeStatus`, `EmployeeCategoryGroup`, `Approval*`
|
|
108
|
+
- Matching Zod schemas: `FileMetaSchema`, `EmailSchema`, `EmailAttachmentSchema`,
|
|
109
|
+
`EmployeeSchema`, `DepartmentSchema` and the approval `*Schema`
|
|
110
|
+
|
|
111
|
+
## `wcz-layout/data/client`, `wcz-layout/data/server`
|
|
112
|
+
|
|
113
|
+
- Client query and mutation option factories for file, approval and PeopleSoft services.
|
|
114
|
+
Server exports contain those operations plus `sendEmail`; see the `services` skill.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
https://mui.com/material-ui/react-number-field/
|
|
2
|
-
https://tanstack.com/router/latest/docs/guide/internationalization-i18n
|
|
3
|
-
https://tanstack.com/start/latest/docs/framework/react/guide/environment-variables#runtime-validation
|
|
4
|
-
File HTTP streaming, signed URL
|
|
1
|
+
https://mui.com/material-ui/react-number-field/
|
|
2
|
+
https://tanstack.com/router/latest/docs/guide/internationalization-i18n
|
|
3
|
+
https://tanstack.com/start/latest/docs/framework/react/guide/environment-variables#runtime-validation
|
|
4
|
+
File HTTP streaming, signed URL
|
|
@@ -1,97 +1,97 @@
|
|
|
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
|
+
# 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`.
|