From 0febfaf142e77cee72676f2dce108c725182bf19 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 30 Jun 2025 16:39:57 -0700 Subject: [PATCH] Make the node graph unrenderable message less scary --- .../src/messages/portfolio/portfolio_message_handler.rs | 8 ++++---- frontend/src/components/Editor.svelte | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/editor/src/messages/portfolio/portfolio_message_handler.rs b/editor/src/messages/portfolio/portfolio_message_handler.rs index 5abb0918b..7dac84d34 100644 --- a/editor/src/messages/portfolio/portfolio_message_handler.rs +++ b/editor/src/messages/portfolio/portfolio_message_handler.rs @@ -924,11 +924,11 @@ impl PortfolioMessageHandler { let result = self.executor.poll_node_graph_evaluation(active_document, responses); if result.is_err() { let error = r#" - + - The document cannot be rendered in its current state. - Check for error details in the node graph, which can be - opened with the viewport's top right Node Graph button. + The document cannot render in its current state. + Undo to go back, if available, or check for error details + by clicking the Node Graph button up at the top right. /text>"# // It's a mystery why the `/text>` tag above needs to be missing its `<`, but when it exists it prints the `<` character in the text. However this works with it removed. .to_string(); diff --git a/frontend/src/components/Editor.svelte b/frontend/src/components/Editor.svelte index 9b062f097..148cd8e4b 100644 --- a/frontend/src/components/Editor.svelte +++ b/frontend/src/components/Editor.svelte @@ -104,6 +104,8 @@ --color-f-white-rgb: 255, 255, 255; --color-error-red: #d6536e; --color-error-red-rgb: 214, 83, 110; + --color-warning-yellow: #d5aa43; + --color-warning-yellow-rgb: 213, 170, 67; --color-data-general: #cfcfcf; --color-data-general-dim: #8a8a8a;