From ede122ae83ff18e7c15346a08c2fe8ea5cf484a5 Mon Sep 17 00:00:00 2001 From: jerlendds Date: Tue, 19 Dec 2023 16:24:32 -0700 Subject: [PATCH] Add textarea element for plugin entities node.py, osintbuddy-plugins, BaseNode.tsx, and index.tsx --- backend/app/app/api/api_v1/endpoints/node.py | 2 +- backend/osintbuddy-plugins | 2 +- .../graph-inquiry/_components/BaseNode.tsx | 72 +++++++++++++++++-- frontend/src/routes/graph-inquiry/index.tsx | 1 + 4 files changed, 70 insertions(+), 7 deletions(-) diff --git a/backend/app/app/api/api_v1/endpoints/node.py b/backend/app/app/api/api_v1/endpoints/node.py index 128ebcf..112544a 100755 --- a/backend/app/app/api/api_v1/endpoints/node.py +++ b/backend/app/app/api/api_v1/endpoints/node.py @@ -187,7 +187,7 @@ async def read_graph(action_type, send_json, project_uuid): nodes.append(ui_entity) else: # TODO detect invalid/renamed entities/plugins on any plugin label updates and fix graph - print('Error/TODO Invalid Plugin') + print(f'Error/TODO Invalid Plugin: {entity_type}') if len(edges[0]) > 0: [edges_data.append({ 'id': f"{i}", diff --git a/backend/osintbuddy-plugins b/backend/osintbuddy-plugins index e1511ec..9149d9d 160000 --- a/backend/osintbuddy-plugins +++ b/backend/osintbuddy-plugins @@ -1 +1 @@ -Subproject commit e1511ec9464d1b5ce5ec7b5ad7a206c34e790079 +Subproject commit 9149d9d23932ccb7a246149d9f77735ea53328cc diff --git a/frontend/src/routes/graph-inquiry/_components/BaseNode.tsx b/frontend/src/routes/graph-inquiry/_components/BaseNode.tsx index f1af4ee..d96b5d8 100755 --- a/frontend/src/routes/graph-inquiry/_components/BaseNode.tsx +++ b/frontend/src/routes/graph-inquiry/_components/BaseNode.tsx @@ -93,11 +93,36 @@ export default function BaseNode({ ctx, sendJsonMessage, closeRef }: JSONObject) case 'section': return ( - + + ); + case 'textarea': + return ( +