From 749b671834fdb6aa7c9563788d06ad21290e5da4 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Sun, 28 Jun 2026 22:09:44 +0100 Subject: [PATCH] Quick Fix - Move Word Companion Suggestions to a Dedicated Scene Inspector Panel --- PlotLine/Views/Scenes/_SceneInspector.cshtml | 175 ++++++++++--------- 1 file changed, 91 insertions(+), 84 deletions(-) diff --git a/PlotLine/Views/Scenes/_SceneInspector.cshtml b/PlotLine/Views/Scenes/_SceneInspector.cshtml index 561b43f..6d6b8fa 100644 --- a/PlotLine/Views/Scenes/_SceneInspector.cshtml +++ b/PlotLine/Views/Scenes/_SceneInspector.cshtml @@ -69,10 +69,101 @@ } + @if (Model.CharacterSuggestions.Any() || Model.AssetSuggestions.Any()) + { +
+

Word Companion Suggestions

+ @if (TempData["SceneCharacterSuggestionError"] is string suggestionError) + { +

@suggestionError

+ } + @if (TempData["SceneAssetSuggestionError"] is string assetSuggestionError) + { +

@assetSuggestionError

+ } +
+
+ @if (Model.CharacterSuggestions.Any()) + { +

Characters

+ @foreach (var suggestion in Model.CharacterSuggestions) + { +
+
+ @suggestion.CharacterName + @suggestion.Confidence confidence + @if (!string.IsNullOrWhiteSpace(suggestion.Reason)) + { + @suggestion.Reason + } + Detected @suggestion.DetectedUtc.ToLocalTime().ToString("d MMM yyyy HH:mm") +
+
+
+ + + + + +
+
+ + + + + +
+
+
+ } + } + @if (Model.AssetSuggestions.Any()) + { +

Assets

+ @foreach (var suggestion in Model.AssetSuggestions) + { +
+
+ @suggestion.AssetName + @suggestion.Confidence confidence + @if (!string.IsNullOrWhiteSpace(suggestion.Reason)) + { + @suggestion.Reason + } + Detected @suggestion.DetectedUtc.ToLocalTime().ToString("d MMM yyyy HH:mm") +
+
+
+ + + + + +
+
+ + + + + +
+
+
+ } + } +
+
+
+ } +