From 305ee4e757a1aa9396851b1c71e1995e60f954f3 Mon Sep 17 00:00:00 2001 From: Christopher Hight Date: Tue, 9 Jun 2026 14:06:01 -0700 Subject: [PATCH] Refactor updating how widgets work and removed prop drilling --- .idea/workspace.xml | 136 ++++++++++++++++ client/package-lock.json | 34 +++- client/package.json | 3 +- client/src/App.jsx | 8 +- .../CanvasComponents/FirstWidgetButton.jsx | 2 +- .../CanvasComponents/SettingsButton.jsx | 28 ---- .../Canvas/CanvasComponents/WidgetMenu.jsx | 2 +- client/src/components/Canvas/views/Admin.jsx | 2 +- client/src/components/Canvas/views/Home.jsx | 4 +- .../Canvas/views/HomeTabs/MyDashboard.jsx | 130 ++++++++------- .../src/components/Canvas/views/Volcano.jsx | 2 +- client/src/components/SettingsButton.jsx | 148 ++++++++++++++++++ .../AlertLevelWidget.jsx | 2 +- .../CanvasComponents => Widgets}/Widget.jsx | 0 client/src/constants/widgetRegistry.jsx | 5 + client/src/store/useDashboardStore.jsx | 78 +++++++++ 16 files changed, 474 insertions(+), 110 deletions(-) create mode 100644 .idea/workspace.xml delete mode 100644 client/src/components/Canvas/CanvasComponents/SettingsButton.jsx create mode 100644 client/src/components/SettingsButton.jsx rename client/src/components/{Canvas/CanvasComponents => Widgets}/AlertLevelWidget.jsx (98%) rename client/src/components/{Canvas/CanvasComponents => Widgets}/Widget.jsx (100%) create mode 100644 client/src/store/useDashboardStore.jsx diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..9bc42d2 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 7, + "fromUser": false +} + + + + { + "keyToString": { + "ModuleVcsDetector.initialDetectionPerformed": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "RunOnceActivity.typescript.service.memoryLimit.init": "true", + "codeWithMe.voiceChat.enabledByDefault": "false", + "git-widget-placeholder": "20260605__1123__Hight__updates", + "javascript.preferred.runtime.type.id": "node", + "last_opened_file_path": "/Users/chight/Documents/Development/website-framework", + "node.js.detected.package.eslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "npm.build.executor": "Run", + "npm.dev.executor": "Run", + "ts.external.directory.path": "/Users/chight/Applications/WebStorm.app/Contents/plugins/javascript-plugin/jsLanguageServicesImpl/external", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + +