Skip to content

fix(schedule): filter disabled schedules and resolve name display on logs#361

Merged
Kewton merged 1 commit intodevelopfrom
feature/294-worktree
Feb 24, 2026
Merged

fix(schedule): filter disabled schedules and resolve name display on logs#361
Kewton merged 1 commit intodevelopfrom
feature/294-worktree

Conversation

@Kewton
Copy link
Owner

@Kewton Kewton commented Feb 24, 2026

Summary

  • Schedules一覧: enabled=1のスケジュールのみ表示(Name変更で無効化された旧エントリを非表示)
  • Execution Logs一覧: 全ログを表示しつつ、LEFT JOINでスケジュール名を付与(旧スケジュール名も正しく表示)
  • ExecutionLogPaneのクライアント側scheduleNameMapを削除し、APIのschedule_nameを直接使用

Changes

  • src/app/api/worktrees/[id]/schedules/route.ts: WHERE enabled = 1追加
  • src/app/api/worktrees/[id]/execution-logs/route.ts: LEFT JOIN scheduled_executionsschedule_nameを付与
  • src/components/worktree/ExecutionLogPane.tsx: useMemo/scheduleNameMap削除、log.schedule_nameを直接参照

Test plan

  • npx tsc --noEmit — 型チェックパス
  • npx vitest run tests/unit/components/worktree — 全18ファイル387テストパス
  • npm run lint — エラー・警告なし

🤖 Generated with Claude Code

…gs via LEFT JOIN

Schedules API now returns only enabled schedules (enabled=1) so renamed/
removed entries no longer appear. Execution logs API uses LEFT JOIN to
include schedule_name for all logs, preserving history from old schedules.
ExecutionLogPane uses the API-provided schedule_name directly instead of
a client-side Map lookup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Kewton Kewton merged commit fd9d2f0 into develop Feb 24, 2026
5 checks 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.

1 participant