Skip to content

fix: role init + sharing types backend/frontend #956

fix: role init + sharing types backend/frontend

fix: role init + sharing types backend/frontend #956

Triggered via push November 16, 2024 20:32
Status Failure
Total duration 2m 29s
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#L54
Type 'string | number' is not assignable to type '"PARA" | "CASE_MANAGER" | "ADMIN"'.
type-check: src/pages/admin/index.tsx#L146
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/admin/index.tsx#L155
Type '(newSortBy: SortBy, newSortOrder: SortOrder) => void' is not assignable to type '(sortBy: keyof User, sortOrder: "desc" | "asc") => void'.
type-check: src/pages/users/[user_id].tsx#L154
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/