Skip to content

feat: edit user, role dropdown #954

feat: edit user, role dropdown

feat: edit user, role dropdown #954

Triggered via push November 15, 2024 21:03
Status Failure
Total duration 2m 36s
Artifacts

pr.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 warnings
lint
Process completed with exit code 1.
type-check: src/pages/admin/index.tsx#L34
Type 'keyof User' is not assignable to type '"role" | "first_name" | "last_name" | "email" | undefined'.
type-check: src/pages/admin/index.tsx#L49
Type 'string | number' is not assignable to type '"PARA" | "CASE_MANAGER" | "ADMIN"'.
type-check: src/pages/admin/index.tsx#L141
Type '{ role: string; user_id: string; first_name: string; last_name: string; email: string; image_url: string | null; }[]' is not assignable to type 'User[]'.
type-check: src/pages/users/[user_id].tsx#L150
The type 'readonly [{ readonly label: "Para"; readonly value: "PARA"; }, { readonly label: "Case Manager"; readonly value: "CASE_MANAGER"; }, { readonly label: "Admin"; readonly value: "ADMIN"; }]' is 'readonly' and cannot be assigned to the mutable type 'MenuItemProp[]'.
type-check
Process completed with exit code 2.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
type-check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
type-check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/