You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2026/10/12 23:19:06 UTC

(airavata-custos) branch web-strict-types updated (bc0647eb4 -> be6a48788)

This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a change to branch web-strict-types
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git


    from bc0647eb4 strict-type the web portal against the Go models
     add be6a48788 derive API record types from the generated schemas

No new revisions were added by this update.

Summary of changes:
 web/scripts/gen-api.mts                            |  2 +-
 .../cluster-accounts/ClusterAccountsContainer.tsx  |  9 +--
 .../admin/users/management/AddUserDialog.tsx       | 20 +++---
 .../admin/users/management/IdentitiesCell.tsx      |  2 +-
 .../admin/users/management/PermissionsDrawer.tsx   |  2 +-
 .../admin/users/management/RoleAssignMenu.tsx      |  2 +-
 .../(portal)/admin/users/management/RolesCell.tsx  |  2 +-
 .../(portal)/admin/users/management/UsersTable.tsx |  9 ++-
 .../__tests__/PermissionsDrawer.test.tsx           |  2 +-
 .../management/__tests__/RoleAssignMenu.test.tsx   |  2 +-
 .../users/management/__tests__/UsersTable.test.tsx |  2 +-
 .../allocations/AllocationsListContainer.tsx       |  2 +-
 .../(portal)/projects/ProjectsListContainer.tsx    |  2 +-
 web/src/features/connectors/amie/api.ts            | 13 ++--
 .../__tests__/AllocationHistoryTab.test.tsx        |  4 +-
 .../__tests__/AllocationMembersTab.test.tsx        |  2 +-
 .../__tests__/AllocationOverviewTab.test.tsx       |  4 +-
 .../__tests__/AllocationUsageTab.test.tsx          |  6 +-
 .../allocations/__tests__/AllocationsList.test.tsx |  2 +-
 .../core/allocations/__tests__/schemas.test.ts     | 11 ++--
 web/src/features/core/allocations/api.ts           | 22 ++++---
 .../components/AllocationChangeRequestsTab.tsx     |  3 +-
 .../components/AllocationDetailHeader.tsx          |  4 +-
 .../components/AllocationHistoryTab.tsx            |  4 +-
 .../components/AllocationMembersTab.tsx            |  3 +-
 .../components/AllocationOverviewTab.tsx           |  4 +-
 .../allocations/components/AllocationUsageTab.tsx  |  2 +-
 .../allocations/components/AllocationsList.tsx     |  2 +-
 web/src/features/core/allocations/schemas.ts       | 41 ++-----------
 web/src/features/core/allocations/types.ts         | 21 ++-----
 .../features/core/analytics/__tests__/lib.test.ts  |  3 +-
 web/src/features/core/analytics/api.ts             |  7 ++-
 .../core/analytics/components/AnalyticsPage.tsx    |  5 +-
 .../core/analytics/components/ContextSwitcher.tsx  |  9 +--
 .../core/analytics/components/HeroTiles.tsx        |  6 +-
 .../core/analytics/components/JobsTable.tsx        |  8 +--
 .../core/analytics/components/MemberBreakdown.tsx  |  2 +-
 .../components/__tests__/widgets.test.tsx          | 13 ++--
 web/src/features/core/analytics/lib.ts             |  3 +-
 web/src/features/core/analytics/schemas.ts         | 21 ++-----
 .../core/analytics/useAnalyticsSelection.ts        | 11 ++--
 .../features/core/audit/__tests__/schemas.test.ts  | 10 +--
 web/src/features/core/audit/api.ts                 |  5 +-
 web/src/features/core/audit/schemas.ts             |  9 ---
 web/src/features/core/audit/types.ts               |  2 -
 .../__tests__/ClusterAccountsTable.test.tsx        |  8 +--
 .../__tests__/ReviewClusterAccountDialog.test.tsx  |  4 +-
 web/src/features/core/cluster-accounts/api.ts      |  7 ++-
 .../components/ClusterAccountsTable.tsx            | 14 ++---
 .../components/ReviewClusterAccountDialog.tsx      | 10 ++-
 web/src/features/core/cluster-accounts/schemas.ts  | 18 ++----
 web/src/features/core/cluster-accounts/types.ts    |  7 +--
 .../core/clusters/__tests__/ClustersTab.test.tsx   |  2 +-
 web/src/features/core/clusters/api.ts              |  3 +-
 .../clusters/components/ClusterUsersDrawer.tsx     |  2 +-
 .../core/clusters/components/ClustersTab.tsx       |  2 +-
 web/src/features/core/clusters/schemas.ts          | 25 --------
 web/src/features/core/events/api.ts                |  5 +-
 web/src/features/core/events/queries.ts            |  6 +-
 web/src/features/core/events/schemas.ts            |  3 -
 web/src/features/core/events/types.ts              |  2 -
 web/src/features/core/identity/api.ts              | 53 ++++++----------
 .../core/identity/components/AccessCard.tsx        | 18 ++----
 .../core/identity/components/IdentitiesCard.tsx    |  4 +-
 .../core/identity/components/ProfileCard.tsx       | 19 +++---
 .../components/__tests__/IdentitiesCard.test.tsx   |  2 +-
 .../components/__tests__/ProfileCard.test.tsx      |  4 +-
 web/src/features/core/identity/queries.ts          |  6 +-
 web/src/features/core/identity/schemas.ts          | 30 ++-------
 .../__tests__/OrganizationsList.test.tsx           |  4 +-
 .../core/organizations/__tests__/schemas.test.ts   | 11 ++--
 web/src/features/core/organizations/api.ts         |  3 +-
 .../organizations/components/OrganizationsList.tsx |  4 +-
 web/src/features/core/organizations/schemas.ts     |  9 +--
 web/src/features/core/organizations/types.ts       |  7 +--
 .../core/projects/__tests__/ProjectsList.test.tsx  |  6 +-
 .../core/projects/__tests__/schemas.test.ts        |  6 +-
 web/src/features/core/projects/api.ts              | 17 +++---
 .../projects/components/ProjectDetailHeader.tsx    | 12 ++--
 .../projects/components/ProjectOverviewTab.tsx     | 16 +++--
 .../core/projects/components/ProjectsList.tsx      |  6 +-
 web/src/features/core/projects/schemas.ts          | 10 +--
 web/src/features/core/projects/types.ts            | 11 +---
 .../__tests__/ResourcesRatesDrawer.test.tsx        | 26 +++++---
 .../core/resources/__tests__/ResourcesTab.test.tsx | 12 ++--
 .../core/resources/__tests__/schemas.test.ts       | 10 ++-
 web/src/features/core/resources/api.ts             | 16 +++--
 .../resources/components/ResourcesRatesDrawer.tsx  | 11 +---
 .../core/resources/components/ResourcesTab.tsx     |  6 +-
 web/src/features/core/resources/schemas.ts         | 23 +++----
 web/src/features/core/roles/api.ts                 |  9 ++-
 web/src/features/core/roles/schemas.ts             | 17 +++---
 .../features/core/users/__tests__/queries.test.ts  |  2 +-
 web/src/features/core/users/api.ts                 | 28 ++++-----
 web/src/features/core/users/queries.ts             |  3 +-
 web/src/features/core/users/schemas.ts             | 14 -----
 web/src/features/core/users/types.ts               |  8 +--
 .../mocks/__tests__/fixtures-vs-schemas.test.ts    | 71 +++++++++++-----------
 web/src/mocks/handlers/allocations.ts              | 28 +++++----
 web/src/mocks/handlers/analytics.ts                |  4 +-
 web/src/mocks/handlers/identity.ts                 |  7 +--
 web/src/mocks/handlers/organizations.ts            |  6 +-
 web/src/mocks/handlers/projects.ts                 |  9 ++-
 web/src/mocks/handlers/resources.ts                |  6 +-
 web/src/mocks/handlers/roles.ts                    |  4 +-
 web/src/shared/api/domain.ts                       | 22 -------
 web/src/shared/ui/StatusBadge.tsx                  |  3 +-
 web/src/shared/users-admin/seed-users.ts           |  2 +-
 web/src/shared/users-admin/types.ts                |  2 +-
 109 files changed, 423 insertions(+), 622 deletions(-)
 delete mode 100644 web/src/features/core/clusters/schemas.ts
 delete mode 100644 web/src/shared/api/domain.ts