Skip to content

Conversation

@GoBeromsu
Copy link
Owner

Summary

  • Fix settings migration bug where count could be undefined for old settings
  • Improve count UX by replacing min/max range input with single slider

Bug Fix

Old settings saved without count property caused "undefined-undefined" display. Added migration logic in loadSettings() to ensure all frontmatter items have proper defaults.

UX Improvement

Before:

Count Range: [1] ~ [5]

After:

Maximum Count: [====slider====] 5
  • Slider range: 1-10
  • Dynamic tooltip shows current value
  • min is always 1, only max is configurable
  • Display simplified to "Max: N"

Test plan

  • Load plugin with old settings (no count property) - should not show undefined
  • Open frontmatter editor - slider should work smoothly
  • Change slider value and verify it saves correctly
  • Verify classification respects the max count setting

🤖 Generated with Claude Code

- Add model selection dropdown at top of Models section
- Remove toggle from model list, keep management buttons only
- Show checkmark (✓) next to currently selected model
- Add empty state message when no models configured
- Dropdown shows model name with provider: "GPT-4o (OpenAI)"

This improves UX by using the correct UI pattern for single selection
(dropdown) instead of toggles which are meant for on/off states.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GoBeromsu GoBeromsu force-pushed the fix/count-undefined-and-slider-ux branch 12 times, most recently from c59ff32 to 7c77b96 Compare December 28, 2025 09:57
Bug fix:
- Add settings migration in loadSettings() to ensure frontmatter items
  have proper defaults for count property
- Prevents "undefined-undefined" display for old settings

UX improvement:
- Replace min/max range input with single slider (1-10)
- Show current value next to slider instead of description
- Add separator line between Maximum Count and Available Options
- Display changed from "Count: 1-5" to "Max: 5"

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GoBeromsu GoBeromsu force-pushed the fix/count-undefined-and-slider-ux branch from 7c77b96 to d21e16e Compare December 28, 2025 09:58
GoBeromsu and others added 3 commits December 28, 2025 19:03
Chain textareas to their parent Settings instead of creating separate
Setting elements, maintaining proper visual hierarchy.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Wrap label Setting and TextArea in a shared setting-item container
for proper visual grouping with generous textarea space.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove setting-item wrapper and add textarea directly to container
with width: 100% for proper vertical layout.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GoBeromsu GoBeromsu merged commit 09c49b0 into master Dec 28, 2025
1 check passed
@GoBeromsu GoBeromsu deleted the fix/count-undefined-and-slider-ux branch December 28, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants