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

(airavata-custos) branch master updated (76146c8e5 -> 72517421c)

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

lahirujayathilake pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git


    from 76146c8e5 add onclick dismiss action to toast messages (#637)
     add 72517421c strict-type the web portal against the generated API (#630)

No new revisions were added by this update.

Summary of changes:
 web/biome.json                                     |   3 +-
 web/package.json                                   |   3 +-
 web/playwright.config.ts                           |   2 +-
 web/pnpm-lock.yaml                                 |  31 ++-
 web/scripts/gen-api.mts                            |  22 +-
 web/scripts/go-presence.mts                        | 252 +++++++++++++++++++++
 web/scripts/spec-supplement.mts                    | 242 ++++++++++++++++++++
 web/src/__tests__/middleware.test.ts               |   3 +-
 web/src/app/(portal)/admin/amie/AmieNav.tsx        |   2 +-
 .../organizations/OrganizationsListContainer.tsx   |   2 +-
 .../cluster-accounts/ClusterAccountsContainer.tsx  |  12 +-
 web/src/app/(portal)/admin/users/layout.tsx        |  25 +-
 .../admin/users/management/AddUserDialog.tsx       |   2 +-
 .../admin/users/management/IdentitiesCell.tsx      |   2 +-
 .../admin/users/management/PermissionsDrawer.tsx   |   8 +-
 .../admin/users/management/PrivilegeList.tsx       |   4 +-
 .../admin/users/management/RoleAssignMenu.tsx      |  13 +-
 .../(portal)/admin/users/management/RolesCell.tsx  |   2 +-
 .../(portal)/admin/users/management/UsersTable.tsx |   2 +-
 .../management/__tests__/AddUserDialog.test.tsx    |  23 +-
 .../__tests__/PermissionsDrawer.test.tsx           |  16 +-
 .../management/__tests__/RoleAssignMenu.test.tsx   |  19 +-
 .../users/management/__tests__/UsersTable.test.tsx |  26 ++-
 .../(portal)/admin/users/management/identities.ts  |   6 +-
 .../(portal)/admin/users/roles/RoleFormDialog.tsx  |  16 +-
 .../allocations/AllocationsListContainer.tsx       |   4 +-
 .../(portal)/projects/ProjectsListContainer.tsx    |   4 +-
 .../api/auth/end-session/__tests__/route.test.ts   |   6 +-
 web/src/app/api/auth/end-session/route.ts          |   7 +-
 .../app/api/v1/[...path]/__tests__/route.test.ts   |   4 +-
 web/src/app/api/v1/[...path]/route.ts              |   2 +-
 .../admin/amie/PermissionGate.tsx => env.d.ts}     |  24 +-
 .../features/connectors/amie/__tests__/api.test.ts |  24 +-
 web/src/features/connectors/amie/api.ts            |  23 +-
 .../connectors/amie/components/FailedQueue.tsx     |   2 +-
 .../amie/components/PacketDetailDrawer.tsx         |   4 +-
 .../amie/components/PacketInboxTable.tsx           |   4 +-
 .../connectors/amie/components/PacketRawJson.tsx   |   5 +-
 .../amie/components/PacketsTrendChart.tsx          |  17 +-
 .../amie/components/ReconciliationQueue.tsx        |   2 +-
 .../connectors/amie/components/ReplyTracker.tsx    |   5 +-
 web/src/features/connectors/amie/queries.ts        |   8 +-
 web/src/features/connectors/amie/schemas.ts        |  50 ++--
 web/src/features/connectors/amie/types.ts          | 119 ++--------
 .../core/allocations/__fixtures__/allocations.json |   4 +
 .../__tests__/AllocationHistoryTab.test.tsx        |  19 +-
 .../__tests__/AllocationMembersTab.test.tsx        |  19 +-
 .../__tests__/AllocationOverviewTab.test.tsx       |   5 +-
 .../__tests__/AllocationUsageTab.test.tsx          |   7 +-
 .../allocations/__tests__/AllocationsList.test.tsx |   7 +-
 .../core/allocations/__tests__/api.test.ts         |  20 +-
 .../core/allocations/__tests__/schemas.test.ts     |  63 +-----
 web/src/features/core/allocations/api.ts           |  80 +++----
 .../allocations/components/AddMemberDialog.tsx     |  22 +-
 .../components/AllocationChangeRequestsTab.tsx     |   5 +-
 .../allocations/components/AllocationDetail.tsx    |   2 +-
 .../components/AllocationDetailHeader.tsx          |   2 +-
 .../components/AllocationHistoryTab.tsx            |  10 +-
 .../components/AllocationMembersTab.tsx            |  46 ++--
 .../components/AllocationOverviewTab.tsx           |   6 +-
 .../allocations/components/AllocationUsageTab.tsx  |   4 +-
 .../allocations/components/AllocationsList.tsx     |   4 +-
 .../components/ChangeRequestApproverQueue.tsx      |  12 +-
 .../allocations/components/ChangeRequestDetail.tsx |   6 +-
 .../components/ChangeRequestSubmitDrawer.tsx       |  20 +-
 .../allocations/components/MemberEditDialog.tsx    |   2 +-
 web/src/features/core/allocations/queries.ts       |  37 +--
 web/src/features/core/allocations/schemas.ts       | 152 ++-----------
 web/src/features/core/allocations/types.ts         |  21 +-
 .../features/core/analytics/__tests__/lib.test.ts  |   2 +-
 web/src/features/core/analytics/api.ts             |  16 +-
 .../core/analytics/components/AnalyticsPage.tsx    |   8 +-
 .../core/analytics/components/ContextSwitcher.tsx  |   5 +-
 .../core/analytics/components/HeroTiles.tsx        |   4 +-
 .../core/analytics/components/JobsTable.tsx        |   4 +-
 .../core/analytics/components/MemberBreakdown.tsx  |   2 +-
 .../analytics/components/ResourceBreakdown.tsx     |   2 +-
 .../analytics/components/UsageOverTimeBars.tsx     |   2 +-
 .../components/__tests__/widgets.test.tsx          |  22 +-
 web/src/features/core/analytics/lib.ts             |   2 +-
 web/src/features/core/analytics/queries.ts         |   8 +-
 web/src/features/core/analytics/schemas.ts         |  96 +-------
 .../core/analytics/useAnalyticsSelection.ts        |   9 +-
 .../core/audit/__tests__/TraceRawTab.test.tsx      |   5 +-
 web/src/features/core/audit/__tests__/api.test.ts  |   4 +-
 .../features/core/audit/__tests__/schemas.test.ts  |  10 +-
 web/src/features/core/audit/api.ts                 |  11 +-
 .../core/audit/components/TraceDetailDrawer.tsx    |   2 +-
 .../core/audit/components/TraceFilterStrip.tsx     |   2 +-
 .../core/audit/components/TraceListContainer.tsx   |   2 +-
 .../features/core/audit/components/TraceTable.tsx  |   4 +-
 .../audit/components/primitives/StatusPill.tsx     |   2 +-
 .../core/audit/components/traceListUrlState.ts     |   6 +-
 web/src/features/core/audit/queries.ts             |   5 +-
 web/src/features/core/audit/schemas.ts             |  54 +----
 web/src/features/core/audit/types.ts               |   2 -
 web/src/features/core/audit/utils.ts               |  14 +-
 .../__tests__/ClusterAccountsTable.test.tsx        |  25 +-
 .../__tests__/ReviewClusterAccountDialog.test.tsx  |   5 +-
 .../core/cluster-accounts/__tests__/api.test.ts    |  15 +-
 web/src/features/core/cluster-accounts/api.ts      |  23 +-
 .../components/ClusterAccountsTable.tsx            |  12 +-
 .../components/ReviewClusterAccountDialog.tsx      |   4 +-
 web/src/features/core/cluster-accounts/schemas.ts  |  53 -----
 web/src/features/core/cluster-accounts/types.ts    |   7 +-
 .../core/clusters/__fixtures__/cluster-users.json  |  30 ++-
 .../core/clusters/__tests__/ClustersTab.test.tsx   |   5 +-
 .../features/core/clusters/__tests__/api.test.ts   |   7 +-
 .../core/clusters/__tests__/schemas.test.ts        |  50 ----
 web/src/features/core/clusters/api.ts              |  18 +-
 .../clusters/components/ClusterUsersDrawer.tsx     |   4 +-
 .../core/clusters/components/ClustersTab.tsx       |   4 +-
 web/src/features/core/clusters/queries.ts          |   8 +-
 web/src/features/core/clusters/schemas.ts          |  32 ---
 .../core/events/__fixtures__/deliveries.ts         |   3 +
 web/src/features/core/events/api.ts                |   5 +-
 .../events/components/DeliveryDetailDrawer.tsx     |   2 +-
 .../core/events/components/DeliveryTable.tsx       |   2 +-
 web/src/features/core/events/queries.ts            |  11 +-
 web/src/features/core/events/schemas.ts            |  71 +++---
 web/src/features/core/events/types.ts              |   2 -
 web/src/features/core/events/utils.ts              |  18 +-
 .../core/identity/__tests__/privileges.test.ts     |  34 ++-
 .../core/identity/__tests__/schemas.test.ts        |  45 ++--
 web/src/features/core/identity/api.ts              |  25 +-
 .../core/identity/components/AccessCard.tsx        |   5 +-
 .../core/identity/components/IdentitiesCard.tsx    |   6 +-
 .../core/identity/components/ProfileCard.tsx       |  20 +-
 .../components/__tests__/AccessCard.test.tsx       |  51 ++++-
 .../components/__tests__/IdentitiesCard.test.tsx   |  12 +-
 .../components/__tests__/ProfileCard.test.tsx      |   4 +-
 web/src/features/core/identity/privileges.ts       |   6 +-
 web/src/features/core/identity/queries.ts          |  62 +++--
 web/src/features/core/identity/schemas.ts          |  84 +++----
 .../__tests__/OrganizationsList.test.tsx           |   2 +-
 .../core/organizations/__tests__/api.test.ts       |   8 +-
 .../core/organizations/__tests__/schemas.test.ts   |  37 +--
 web/src/features/core/organizations/api.ts         |  17 +-
 .../organizations/components/OrganizationsList.tsx |   2 +-
 web/src/features/core/organizations/schemas.ts     |  25 +-
 web/src/features/core/organizations/types.ts       |   7 +-
 .../projects/__tests__/ProjectMembersTab.test.tsx  |   3 +-
 .../core/projects/__tests__/ProjectsList.test.tsx  |   6 +-
 .../features/core/projects/__tests__/api.test.ts   |  15 +-
 .../core/projects/__tests__/schemas.test.ts        |  44 +---
 web/src/features/core/projects/api.ts              |  36 +--
 .../projects/components/ProjectAllocationsTab.tsx  |   2 +-
 .../core/projects/components/ProjectDetail.tsx     |   2 +-
 .../projects/components/ProjectDetailHeader.tsx    |   4 +-
 .../core/projects/components/ProjectMembersTab.tsx |  19 +-
 .../projects/components/ProjectOverviewTab.tsx     |   4 +-
 .../core/projects/components/ProjectsList.tsx      |   8 +-
 web/src/features/core/projects/queries.ts          |  23 +-
 web/src/features/core/projects/schemas.ts          |  93 ++------
 web/src/features/core/projects/types.ts            |  11 +-
 .../__tests__/ResourcesRatesDrawer.test.tsx        |  53 ++---
 .../core/resources/__tests__/ResourcesTab.test.tsx |   5 +-
 .../features/core/resources/__tests__/api.test.ts  |   8 +-
 .../core/resources/__tests__/queries.test.tsx      |   3 +-
 .../core/resources/__tests__/schemas.test.ts       |  33 +--
 web/src/features/core/resources/api.ts             |  48 ++--
 .../resources/components/ResourcesRatesDrawer.tsx  |  11 +-
 .../core/resources/components/ResourcesTab.tsx     |   8 +-
 web/src/features/core/resources/queries.ts         |   8 +-
 web/src/features/core/resources/schemas.ts         |  47 +---
 web/src/features/core/roles/api.ts                 |  32 +--
 web/src/features/core/roles/queries.ts             |   7 +-
 web/src/features/core/roles/schemas.ts             |  30 +--
 web/src/features/core/users/__tests__/api.test.ts  |  30 ++-
 .../features/core/users/__tests__/queries.test.ts  |  14 +-
 .../features/core/users/__tests__/schemas.test.ts  |  55 -----
 web/src/features/core/users/api.ts                 |  42 ++--
 web/src/features/core/users/queries.ts             |  35 +--
 web/src/features/core/users/schemas.ts             |  65 +-----
 web/src/features/core/users/types.ts               |  10 +-
 .../mocks/__tests__/fixtures-vs-schemas.test.ts    | 119 +++++-----
 web/src/mocks/handlers/allocations.ts              | 120 ++++------
 web/src/mocks/handlers/amie.ts                     |  56 +++--
 web/src/mocks/handlers/analytics.ts                |  15 +-
 web/src/mocks/handlers/clusters.ts                 |  27 ++-
 web/src/mocks/handlers/events.ts                   |   8 +-
 web/src/mocks/handlers/identity.ts                 |  27 +--
 web/src/mocks/handlers/organizations.ts            |  12 +-
 web/src/mocks/handlers/privileges.ts               |   2 +-
 web/src/mocks/handlers/projects.ts                 |  54 +++--
 web/src/mocks/handlers/resources.ts                |  22 +-
 web/src/mocks/handlers/roles.ts                    |  61 +++--
 web/src/mocks/handlers/traces.ts                   |  27 ++-
 web/src/mocks/handlers/users.ts                    |  14 +-
 .../admin/users/page.tsx => react-css.d.ts}        |  10 +-
 web/src/shared/api/__tests__/client.test.ts        |  16 +-
 web/src/shared/api/client.ts                       |  10 +-
 web/src/shared/api/domain.ts                       |  22 --
 web/src/shared/auth/auth.ts                        |  43 ++--
 web/src/shared/auth/next-auth.d.ts                 |   9 +
 web/src/shared/auth/useAuthErrorHandler.ts         |   7 +-
 web/src/shared/casl/AbilityProvider.tsx            |   2 +-
 web/src/shared/charts/BurnDownBar.tsx              |   2 +-
 web/src/shared/charts/StackedAreaUsage.tsx         |  46 ++--
 .../shared/hooks/__tests__/useUrlGroupBy.test.tsx  |   6 +-
 .../shared/hooks/__tests__/useUrlRange.test.tsx    |  18 +-
 web/src/shared/hooks/useUrlRange.ts                |   2 +-
 web/src/shared/layout/Breadcrumbs.tsx              |   2 +-
 web/src/shared/layout/useNavHistory.ts             |   5 +-
 web/src/shared/ui/DataTable.tsx                    |   4 +-
 web/src/shared/ui/ErrorState.tsx                   |   4 +-
 web/src/shared/ui/KpiCard.tsx                      |  10 +-
 web/src/shared/ui/StatCard.tsx                     |   4 +-
 web/src/shared/ui/StatusBadge.tsx                  |   5 +-
 web/src/shared/ui/TabsRouter.tsx                   |   4 +-
 .../shared/ui/__tests__/DateRangePicker.test.tsx   |  20 +-
 web/src/shared/ui/__tests__/GroupByChip.test.tsx   |   5 +-
 web/src/shared/ui/__tests__/MetaRow.test.tsx       |   5 +-
 web/src/shared/ui/__tests__/StatusBadge.test.tsx   |   8 +-
 web/src/shared/ui/__tests__/TabsRouter.test.tsx    |   4 +-
 web/src/shared/ui/__tests__/UsageBar.test.tsx      |   4 +-
 web/src/shared/ui/sonner.tsx                       |  20 +-
 web/src/shared/users-admin/PermissionRW.tsx        |   2 +-
 web/src/shared/users-admin/UsersAdminContext.tsx   | 127 -----------
 web/src/shared/users-admin/permissions.ts          |   4 +-
 web/src/shared/users-admin/roles-catalog.ts        |  83 -------
 web/src/shared/users-admin/seed-users.ts           |  96 --------
 web/src/shared/users-admin/types.ts                |  31 ---
 web/tests/admin-amie-detail.e2e.ts                 |   2 +-
 web/tests/admin-amie-list.e2e.ts                   |   2 +-
 web/tests/admin-traces-detail.e2e.ts               |   4 +-
 web/tests/admin-traces-list.e2e.ts                 |   4 +-
 web/tests/analytics.e2e.ts                         |   4 +-
 web/tsconfig.json                                  |   3 +
 229 files changed, 2127 insertions(+), 2710 deletions(-)
 create mode 100644 web/scripts/go-presence.mts
 create mode 100644 web/scripts/spec-supplement.mts
 copy web/src/{app/(portal)/admin/amie/PermissionGate.tsx => env.d.ts} (63%)
 delete mode 100644 web/src/features/core/cluster-accounts/schemas.ts
 delete mode 100644 web/src/features/core/clusters/__tests__/schemas.test.ts
 delete mode 100644 web/src/features/core/clusters/schemas.ts
 delete mode 100644 web/src/features/core/users/__tests__/schemas.test.ts
 copy web/src/{app/(portal)/admin/users/page.tsx => react-css.d.ts} (78%)
 delete mode 100644 web/src/shared/api/domain.ts
 delete mode 100644 web/src/shared/users-admin/UsersAdminContext.tsx
 delete mode 100644 web/src/shared/users-admin/roles-catalog.ts
 delete mode 100644 web/src/shared/users-admin/seed-users.ts
 delete mode 100644 web/src/shared/users-admin/types.ts