summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-19 23:55:31 +0300
committerPaul Buetow <paul@buetow.org>2025-07-19 23:55:31 +0300
commit1e24f5dfd387b8800822c62bf06d17f5ec2787d6 (patch)
tree6854db2cbe02efb05ec817aa94d8cfa647044d18
parentc8a22dc45bb880a0fbf0ac4f0ecd9fe13f8a215d (diff)
delete test files
-rw-r--r--test_gui_improvements.md46
-rw-r--r--test_prompt.md49
2 files changed, 0 insertions, 95 deletions
diff --git a/test_gui_improvements.md b/test_gui_improvements.md
deleted file mode 100644
index 0dbd878..0000000
--- a/test_gui_improvements.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# GUI Improvements - Tooltip Implementation
-
-## Summary
-
-Successfully added hover tooltips to all icon buttons in the TotalRecall GUI using the `github.com/dweymouth/fyne-tooltip` library.
-
-## Changes Made
-
-1. **Added Dependency**: `github.com/dweymouth/fyne-tooltip v0.3.3`
-
-2. **Updated Button Types**: Changed all navigation and action buttons from `*widget.Button` to `*ttwidget.Button` to support tooltips.
-
-3. **Added Tooltips to All Icon Buttons**:
- - Submit button: "Generate word (G)"
- - Previous word: "Previous word (←)"
- - Next word: "Next word (→)"
- - Keep button: "Keep card and new word (N)"
- - Regenerate image: "Regenerate image (I)"
- - Random image: "Random image (M)"
- - Regenerate audio: "Regenerate audio (A)"
- - Regenerate all: "Regenerate all (R)"
- - Delete button: "Delete word (D)"
-
-4. **Enabled Tooltip Layer**: Added `fynetooltip.AddWindowToolTipLayer()` to the window content to enable tooltip rendering.
-
-## Implementation Details
-
-The tooltips now appear when users hover over any icon button, showing:
-- The action name
-- The keyboard shortcut in parentheses
-
-This improves the user experience by making the interface more discoverable without cluttering the UI with text labels.
-
-## Testing
-
-To test the tooltips:
-1. Run the application: `go run ./cmd/totalrecall`
-2. Hover over any icon button
-3. After a short delay, the tooltip should appear
-4. Moving the mouse away hides the tooltip
-
-## Notes
-
-- The `fyne-tooltip` library is designed to be easy to remove when Fyne adds native tooltip support
-- Tooltips work on all platforms supported by Fyne
-- The library provides consistent styling with the Fyne theme \ No newline at end of file
diff --git a/test_prompt.md b/test_prompt.md
deleted file mode 100644
index 0734d9a..0000000
--- a/test_prompt.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Custom Image Prompt Feature Test
-
-## Summary
-Successfully implemented the custom image prompt feature for the TotalRecall GUI application. The feature allows users to:
-
-1. **Enter custom prompts**: A text area is displayed next to the image where users can specify their own prompt for image generation
-2. **Auto-populate prompts**: When left empty, the app automatically generates an educational prompt
-3. **Display used prompts**: After image generation, the actual prompt used is displayed in the text area
-4. **Preserve prompts on navigation**: When navigating to existing cards, the prompt is loaded from attribution files
-
-## Implementation Details
-
-### Files Modified:
-1. **internal/gui/app.go**:
- - Added `imagePromptEntry` field to Application struct
- - Updated UI layout to include the prompt text area
- - Modified image generation calls to use custom prompts
-
-2. **internal/gui/generator.go**:
- - Split `generateImages` into two functions
- - Added `generateImagesWithPrompt` to handle custom prompts
- - Updated to display used prompts in the UI after generation
-
-3. **internal/image/search.go**:
- - Added `CustomPrompt` field to `SearchOptions` struct
-
-4. **internal/image/openai.go**:
- - Modified to use custom prompts when provided
- - Added `GetLastPrompt()` method to retrieve the used prompt
-
-5. **internal/image/download.go**:
- - Added `DownloadBestMatchWithOptions` and `DownloadMultipleWithOptions` methods
-
-6. **internal/gui/navigation.go**:
- - Added logic to load prompts from attribution files when navigating
-
-### How It Works:
-1. User can enter a custom prompt in the text area next to the image
-2. When generating/regenerating images, the custom prompt is used if provided
-3. If no custom prompt is entered, the app generates an educational prompt automatically
-4. The actual prompt used is displayed in the text area after generation
-5. Prompts are saved in attribution files and loaded when navigating to existing cards
-
-## Testing
-To test the feature:
-1. Run the GUI: `./totalrecall gui`
-2. Enter a Bulgarian word
-3. Try generating with and without custom prompts
-4. Navigate between cards to verify prompt loading \ No newline at end of file