feat(themes): add per-hook enabled settings per the hook-enablement convention

Đang mở
#19,302 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
shell, typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Read plugins/themes/hooks/hooks.json, register.tsx, and the shared helper introduced by blocker #19284; then inspect the naming contract and themes repository-layer schema. Trace how plugin defaults, user settings, and docs/conventions/themes.yaml are combined, and add coverage for the three stated precedence cases. Done when the module follows those cases, its option is documented in both references, and the count script omits themes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Context

plugins/themes/hooks/hooks.json ships one module, ./register.tsx, which registers each theme (the bedroom theme registers /bedroom, draws its backdrop and shader on ui.render, answers clicks on ui.pointer). plugin.json declares feature booleans (sound, signal, hall, shader) and other options, but no <name>_enabled option for the module as a whole. (Whether a modules entry counts as a "hook" is open; the issue's count of 11 includes this plugin.)

Proposed work

Declare the plugin's per-hook settings and route each hook through the shared helper.

Acceptance criteria

  • plugin.json userConfig declares one boolean <name>_enabled for the module (proposed themes_enabled; the PR confirms the name), titled per docs/contracts/plugin-option-naming/README.md#titles. The existing feature booleans keep their meaning and are not renamed.
  • The default follows the convention's "Default" bullet; the PR states it.
  • register.tsx resolves plugin default, user layer and repository layer (docs/conventions/themes.yaml) through the shared helper before it registers or draws anything, and does nothing when the result is off.
  • With the user layer false, the module does nothing whatever docs/conventions/themes.yaml says; with the user layer unset and false there, it does nothing; with the user layer unset and true there, it runs.
  • A test covers those three cases (hooks/bedroom/register.test.tsx or a sibling).
  • The key is documented in the plugin's config reference and repository-layer schema.
  • The count script lists no themes entry.

Blocked by: #19284
Parent: #18921

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
2 giờ 1 phút
Pull request đã merge (30 ngày)
972

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.