Skip to content

feat(web): add preset management system for SVGO configurations#13

Draft
hehehai wants to merge 1 commit into
mainfrom
feat/preset-management-system
Draft

feat(web): add preset management system for SVGO configurations#13
hehehai wants to merge 1 commit into
mainfrom
feat/preset-management-system

Conversation

@hehehai
Copy link
Copy Markdown
Owner

@hehehai hehehai commented Dec 28, 2025

Summary

  • Implements a preset management system for SVGO optimization configurations
  • Adds preset storage with localStorage persistence and import/export capabilities
  • Creates preset management UI components (list, editor, delete dialogs)
  • Refactors config panel to use preset-based workflow instead of manual plugin toggles
  • Moves SVGO settings (multipass, precision) from global settings into presets
  • Includes built-in presets (Default, Aggressive, Minimal) and custom preset support

Test plan

  • Verify built-in presets (Default, Aggressive, Minimal) can be selected and applied
  • Test creating, editing, and deleting custom presets
  • Confirm preset changes are persisted in localStorage across browser sessions
  • Test preset import/export functionality
  • Verify SVGO optimization works correctly with different preset configurations
  • Check internationalization for all preset-related UI elements
  • Ensure config panel UI renders correctly with new preset components
  • Test that multipass and precision settings are properly applied from presets

🤖 Generated with Claude Code

Implement a comprehensive preset management system that allows users to save, load, and manage custom SVGO optimization configurations:

- Add preset storage layer with localStorage persistence and import/export functionality
- Create preset management UI components (preset list, editor dialog, delete dialog)
- Add preset store with Zustand for state management
- Integrate preset system into config panel, replacing direct plugin configuration
- Add internationalization support for preset-related UI text
- Refactor config panel to use preset-based workflow instead of manual plugin toggles
- Move SVGO settings (multipass, precision) from global settings to presets

The preset system includes built-in presets (Default, Aggressive, Minimal) and supports custom user presets with full CRUD operations.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
tiny-svg-web Ready Ready Preview, Comment Dec 28, 2025 2:23am

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.

1 participant