Commit Graph
12 Commits
Author SHA1 Message Date
AlexKucera f2972a5b83 Standardizes settings labels and improves UI consistency
Updates capitalization in command names and settings labels to enhance
UI consistency. Replaces element creation with a standardized heading
approach for setting sections, ensuring a cohesive design throughout
the plugin settings interface. Fixes element reference inconsistency.

Improves user experience by providing clear and uniform interface
elements.
2025-11-09 17:11:12 +01:00
AlexKucera 4cb2308bd6 Refines timed prompt notification duration logic
Adjusts notification duration calculation to improve timing precision for different delay intervals

Ensures consistent minimum notification display time while preventing potential overlap or flickering
2025-10-31 13:36:03 +01:00
AlexKucera 9b8ff3181a Refines notification timing for timed prompts
Adjusts notification display duration calculation for more predictable behavior

Improves timing logic for prompts with different delay intervals:
- Ensures notifications end 500ms before next tick for delays >1s
- Maintains minimum 300ms display time to prevent flickering
- Keeps existing logic for short delay intervals
2025-10-31 13:21:00 +01:00
AlexKucera d31cec0383 Improves prompt notification duration calculation
Enhances notification display logic to prevent flicker and ensure minimum visibility

- Adds floor of 0 for delay milliseconds to prevent negative values
- Ensures minimum notification duration of 300ms to improve user experience
- Maintains existing logic for longer delay times
2025-10-25 10:49:40 +02:00
AlexKucera ea14071d22 Improves notification duration calculation for timed prompts
Refines notification display timing logic to prevent flickering and ensure smoother user experience

Adjusts notification duration calculation for short delays, using a more nuanced approach that:
- Caps notification time at 900ms or delay-100ms for very short intervals
- Maintains existing behavior for longer delays
2025-10-24 16:51:35 +02:00
AlexKucera 893aae5bca Improves timed prompts command concurrency handling
Enhances execution flow to prevent race conditions during async prompt generation

Refines inProgress flag management to ensure reliable concurrent execution:
- Sets flag before async work begins
- Guarantees flag reset in finally block
- Prevents potential state inconsistencies during rapid command triggers

Clarifies code comments explaining concurrency protection mechanism
2025-10-24 13:48:25 +02:00
AlexKucera c698a19345 Improves timed prompt notification duration calculation
Refines notification display duration for timed prompts to handle both short and long delay intervals

Adjusts duration calculation to:
- Cap notifications at 500ms for very short delays
- Subtract 500ms from longer delays to prevent prompt overlap
- Ensures smoother user experience during prompt sequences
2025-10-24 13:36:26 +02:00
AlexKucera e96ef65200 Added DocStrings 2025-10-24 13:09:10 +02:00
AlexKucera 92e109e2e8 Fixes timed prompts generation race condition
Reorders initialization of in-progress flag to prevent potential race conditions during timed prompt generation

Ensures that the in-progress status is set before stopping existing sequences and generates prompts
2025-10-24 12:59:19 +02:00
AlexKucera 6875a7c06c Adds user notification for ongoing timed prompts
Prevents multiple simultaneous timed prompt generations by displaying a notice when an operation is already in progress

Improves user experience by providing clear feedback during concurrent prompt generation attempts
2025-10-24 11:18:29 +02:00
AlexKucera 9249897d27 Prevents race conditions in timed prompts
Adds a flag to prevent the timed prompt execution from running concurrently, avoiding potential race conditions and unexpected behavior.

Also, addresses edge case in the status check where the displayed current prompt number could be inaccurate.
2025-09-26 08:18:13 +02:00
Jarvis 4786e7647d refactor: rename "Staggered Prompts" to "Timed Prompts" for clarity
Renames command terminology throughout codebase to better reflect
regular interval delivery rather than irregular/staggered timing.

Changes:
- Rename staggeredPrompts.ts → timedPrompts.ts
- Update class StaggeredPromptsCommand → TimedPromptsCommand
- Update command IDs: staggered-prompts → timed-prompts
- Update user-facing labels in settings and README
- Update property names: staggeredCount → timedCount
- Update method names: generateStaggeredPrompts → generateTimedPrompts
- Update API constants and type annotations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 07:53:48 +02:00