From 5b8a16b8bbe91f5e951c1bbfd8474e017856b15d Mon Sep 17 00:00:00 2001 From: luckmer Date: Sat, 7 Mar 2026 17:57:51 +0100 Subject: [PATCH] Update workflow based on feedback --- src-tauri/src/lib.rs | 1 + src/App.tsx | 1 - src/components/Cards/Card/index.tsx | 51 +++++++++++-------- .../FlashWizard/SelectPortWizard/index.tsx | 2 +- .../FlashWizard/SetupWizard/index.tsx | 28 +++++----- .../FlashWizard/WiredWizard/index.tsx | 2 +- .../actions/animation/verifyPortConnection.ts | 7 +++ .../actions/notifications/addNotification.ts | 7 ++- src/styles/index.css | 4 ++ src/types/animation/enums.ts | 3 +- 10 files changed, 68 insertions(+), 38 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index de36269d..b987f3af 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -57,6 +57,7 @@ pub fn run() { })) // Persistent storage with file system .plugin(tauri_plugin_store::Builder::new().build()) + .plugin(tauri_plugin_notification::init()) .plugin(tauri_plugin_upload::init()) // LocalHost REST Client (in v2, use http plugin instead of request_client) .plugin(tauri_plugin_http::init()) diff --git a/src/App.tsx b/src/App.tsx index ca31214c..80817169 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -18,7 +18,6 @@ const App = () => { onMount(() => { get('settings').then((settings) => { - console.log('got settings', settings) if (settings) { debug('loading settings') setEnableNotifications(settings.enableNotifications) diff --git a/src/components/Cards/Card/index.tsx b/src/components/Cards/Card/index.tsx index f0a40d0d..f299d696 100644 --- a/src/components/Cards/Card/index.tsx +++ b/src/components/Cards/Card/index.tsx @@ -2,11 +2,11 @@ import Button from '@components/Buttons/Button' import DefaultButton from '@components/Buttons/DefaultButton' import PrimaryButton from '@components/Buttons/PrimaryButton' import Typography from '@components/Typography' +import { classNames } from '@src/utils' import { IconTypes } from 'solid-icons' import { IoChevronBackSharp } from 'solid-icons/io' -import { ParentComponent, Show } from 'solid-js' import { VsSettings } from 'solid-icons/vs' -import { classNames } from '@src/utils' +import { ParentComponent, Show } from 'solid-js' export interface IProps { onClickSettings?: () => void @@ -14,6 +14,8 @@ export interface IProps { onClickSecondary?: () => void onClickPrimary?: () => void onClickOption?: () => void + onClickAdvanced?: () => void + advancedButtonLabel?: string onClickOptionLabel?: string label: string icon: IconTypes @@ -96,25 +98,34 @@ const Card: ParentComponent = (props) => { {props.children} -
- -
+