Commit Graph
6 Commits
Author SHA1 Message Date
Xvvln bcaf637253 feat(config): add expandable input for long payload override values
- Add ExpandableInput component that toggles between single-line <input>
  and auto-resizing <textarea> for long content (>30 chars)
- Apply to all payload rule fields: model name (both layout branches),
  json_path, param value, filter model name, and string list items
- Strip newline characters in both input and textarea onChange handlers
  to prevent multi-line values from breaking YAML serialization
- Use useLayoutEffect for resize to avoid visual flicker
- Remove redundant autoResize call from click handler (handled by effect)
- Disable expand/collapse buttons when field is disabled, with proper
  cursor and opacity styles
- Localize button labels via i18n (en, zh-CN, ru)
- Use explicit .expandableInputExpanded class instead of CSS :has()
  for cross-browser compatibility
2026-03-22 18:52:32 +08:00
Supra4E8C 5469945019 refactor: enhance ConfigPage styling and structure
- Updated SCSS for ConfigPage to improve layout and visual hierarchy.
- Introduced new styles for page header, including background gradients and responsive design.
- Refined tab bar and status badge styles for better user experience.
- Adjusted search input and actions for improved accessibility and usability.
- Enhanced editor wrapper and floating actions to prevent overlap with content.
- Cleaned up code structure in ConfigPage component for better readability and maintainability.
2026-03-22 17:10:17 +08:00
Supra4E8C 34a6f44b85 feat(visual-config): add max retry credentials configuration and update validation messages 2026-03-22 16:14:46 +08:00
Supra4E8C e50e088409 feat(payload-rules): add support for raw JSON rules in payload configuration 2026-03-22 15:55:17 +08:00
Supra4E8C dd08c469f4 fix(config): label payload editor row inputs 2026-03-07 14:51:53 +08:00
Supra4E8C f37e6dac93 refactor(config): extract visual editor blocks 2026-03-07 14:50:07 +08:00