diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 19fc120..fb7cf58 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -60,5 +60,6 @@ It is not explicitly required to gather feedback, but it certainly helps your PR - [ ] AI was used (please describe below) **If AI was used:** + - Tools used: - How extensively: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4785d6d..e5342ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -227,6 +227,7 @@ Community feedback is essential to keeping Handy the best it can be for everyone **AI-assisted PRs are welcome!** Use whatever tools help you contribute, just be upfront about it. In your PR description, please include: + - Whether AI was used (yes/no) - Which tools were used (e.g., "Claude Code", "GitHub Copilot", "ChatGPT") - How extensively it was used (e.g., "generated boilerplate", "helped debug", "wrote most of the code") diff --git a/src/App.tsx b/src/App.tsx index 29579b1..7b637b6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -74,7 +74,7 @@ function App() { } return ( -
+
{/* Main content area that takes remaining space */}
diff --git a/src/components/settings/AppDataDirectory.tsx b/src/components/settings/AppDataDirectory.tsx index a08e030..106cfcb 100644 --- a/src/components/settings/AppDataDirectory.tsx +++ b/src/components/settings/AppDataDirectory.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { commands } from "@/bindings"; import { SettingContainer } from "../ui/SettingContainer"; -import { Button } from "../ui/Button"; +import { PathDisplay } from "../ui/PathDisplay"; interface AppDataDirectoryProps { descriptionMode?: "tooltip" | "inline"; @@ -75,20 +75,11 @@ export const AppDataDirectory: React.FC = ({ grouped={grouped} layout="stacked" > -
-
- {appDirPath} -
- -
+ ); }; diff --git a/src/components/settings/debug/DebugPaths.tsx b/src/components/settings/debug/DebugPaths.tsx index ad79e75..82f4dec 100644 --- a/src/components/settings/debug/DebugPaths.tsx +++ b/src/components/settings/debug/DebugPaths.tsx @@ -26,21 +26,23 @@ export const DebugPaths: React.FC = ({ {t("settings.debug.paths.appData")} {" "} {/* eslint-disable-next-line i18next/no-literal-string */} - %APPDATA%/handy + %APPDATA%/handy
{t("settings.debug.paths.models")} {" "} {/* eslint-disable-next-line i18next/no-literal-string */} - %APPDATA%/handy/models + + %APPDATA%/handy/models +
{t("settings.debug.paths.settings")} {" "} {/* eslint-disable-next-line i18next/no-literal-string */} - + %APPDATA%/handy/settings_store.json
diff --git a/src/components/settings/debug/LogDirectory.tsx b/src/components/settings/debug/LogDirectory.tsx index c2ccd8e..1facfc1 100644 --- a/src/components/settings/debug/LogDirectory.tsx +++ b/src/components/settings/debug/LogDirectory.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { commands } from "@/bindings"; import { SettingContainer } from "../../ui/SettingContainer"; -import { Button } from "../../ui/Button"; +import { PathDisplay } from "../../ui/PathDisplay"; interface LogDirectoryProps { descriptionMode?: "tooltip" | "inline"; @@ -67,20 +67,7 @@ export const LogDirectory: React.FC = ({ {t("errors.loadDirectory", { error })}
) : ( -
-
- {logDir} -
- -
+ )} ); diff --git a/src/components/settings/history/HistorySettings.tsx b/src/components/settings/history/HistorySettings.tsx index e1d9c3c..50686dc 100644 --- a/src/components/settings/history/HistorySettings.tsx +++ b/src/components/settings/history/HistorySettings.tsx @@ -290,7 +290,7 @@ const HistoryEntryComponent: React.FC = ({
-

+

{entry.transcription_text}

{audioUrl && } diff --git a/src/components/ui/PathDisplay.tsx b/src/components/ui/PathDisplay.tsx new file mode 100644 index 0000000..f30f17c --- /dev/null +++ b/src/components/ui/PathDisplay.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { useTranslation } from "react-i18next"; +import { Button } from "./Button"; + +interface PathDisplayProps { + path: string; + onOpen: () => void; + disabled?: boolean; +} + +export const PathDisplay: React.FC = ({ + path, + onOpen, + disabled = false, +}) => { + const { t } = useTranslation(); + + return ( +
+
+ {path} +
+ +
+ ); +};