@@ -289,8 +317,6 @@ export function TreeNavigationPage() {
)
}
- const currentNode = findNode(currentNodeId)
-
if (!currentNode) {
return (
@@ -357,16 +383,22 @@ export function TreeNavigationPage() {
{currentNode.help_text}
)}
- {currentNode.options?.map((option) => (
+ {currentNode.options?.map((option, index) => (
))}
@@ -476,6 +508,18 @@ export function TreeNavigationPage() {
← Go back
)}
+
+ {/* Keyboard Shortcuts Hint */}
+
+ Keyboard:{' '}
+ {currentNode.type === 'decision' && currentOptions.length > 0 && (
+ 1-{Math.min(currentOptions.length, 9)} select option
+ )}
+ {pathTaken.length > 1 && , Esc go back}
+ {(currentNode.type === 'action' || currentNode.type === 'solution') && (
+ , Enter {currentNode.type === 'solution' ? 'complete' : 'continue'}
+ )}
+