Skip to content

pref: change the repeater to use an array#646

Merged
LIlGG merged 4 commits into
mainfrom
pref/adapt-halo-2.22
Jan 6, 2026
Merged

pref: change the repeater to use an array#646
LIlGG merged 4 commits into
mainfrom
pref/adapt-halo-2.22

Conversation

@LIlGG

@LIlGG LIlGG commented Dec 15, 2025

Copy link
Copy Markdown
Owner

What type of PR is this?

/kind improvement

What this PR does / why we need it:

适配 Halo 2.22

  1. repeater 改为使用 array
  2. 使用 iconify 代替原有的图标字符串设置。
  3. 使用 switch 代替原有的 checkbox。

注:升级后需要重载主题配置

Does this PR introduce a user-facing change?

适配 Halo 2.22 对设置表单项进行优化

Added the 'valueOnly: true' property to several icon-related fields in settings.yaml to ensure only the icon value is stored. This change improves data consistency and handling for icon selection components.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adapts the Sakura theme for Halo 2.22 by updating form components to use newer form kit types and improving the theme configuration structure.

Key Changes:

  • Migrated all checkbox form fields to switch components (38 instances)
  • Converted repeater fields to array fields with itemLabels configuration for better UX (5 instances)
  • Replaced text-based icon fields with iconify components for better icon selection (3 instances)
  • Updated minimum Halo version requirement from 2.19.0 to 2.22

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
theme.yaml Updated minimum required Halo version to 2.22 to match the new form component requirements
settings.yaml Comprehensive migration of form components: checkbox→switch, repeater→array with itemLabels, text→iconify for icons, and text→attachment for image fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread theme.yaml Outdated
Comment thread settings.yaml
Comment thread settings.yaml
@LIlGG LIlGG merged commit 4562bc1 into main Jan 6, 2026
1 check passed
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