From c8d44b0355f89ff1d80c9a0c34352ccb4f6450f7 Mon Sep 17 00:00:00 2001 From: MaxKless <34165455+MaxKless@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:35:07 +0200 Subject: [PATCH] feat(graph): show partial project graph & errors in graph app (#22838) --- .../src/app/feature-projects/project-list.tsx | 2 +- graph/client/src/app/routes.tsx | 17 ++- graph/client/src/app/shell.tsx | 68 +++++++-- .../src/app/ui-components/error-boundary.tsx | 99 +++++++++++-- .../ui-components/project-details-modal.tsx | 16 +-- graph/project-details/src/index.ts | 1 + .../src/lib/project-details-page.tsx | 10 +- .../src/lib/project-details-wrapper.tsx | 23 ++- graph/shared/src/index.ts | 1 + graph/shared/src/lib/error-toast.tsx | 132 ++++++++++++++++++ .../mock-project-graph-service.ts | 1 + graph/ui-components/src/index.ts | 2 + .../ui-components/src/lib/error-renderer.tsx | 63 +++++++++ graph/ui-components/src/lib/modal.tsx | 108 ++++++++++++++ .../lib/project-details/project-details.tsx | 6 +- ...arget-configuration-details-group-list.tsx | 2 +- .../target-configuration-details-header.tsx | 4 +- .../target-configuration-details.tsx | 6 +- nx-dev/nx-dev/pages/tips.tsx | 4 +- .../src/lib/tags/call-to-action.component.tsx | 2 +- .../src/lib/tags/cards.component.tsx | 2 +- packages/nx/src/command-line/graph/graph.ts | 108 +++++++++++--- packages/nx/src/daemon/client/client.ts | 11 +- .../file-watching/file-watcher-sockets.ts | 1 - ...project-graph-incremental-recomputation.ts | 2 +- .../project-json/build-nodes/project-json.ts | 2 + .../nx/src/project-graph/project-graph.ts | 2 +- 27 files changed, 617 insertions(+), 78 deletions(-) create mode 100644 graph/shared/src/lib/error-toast.tsx create mode 100644 graph/ui-components/src/lib/error-renderer.tsx create mode 100644 graph/ui-components/src/lib/modal.tsx diff --git a/graph/client/src/app/feature-projects/project-list.tsx b/graph/client/src/app/feature-projects/project-list.tsx index fed918e0ed..4ee3bf2e00 100644 --- a/graph/client/src/app/feature-projects/project-list.tsx +++ b/graph/client/src/app/feature-projects/project-list.tsx @@ -219,7 +219,7 @@ function SubProjectList({ ) : null} -