fix(schedule): filter disabled schedules and resolve name display on logs#361
Merged
fix(schedule): filter disabled schedules and resolve name display on logs#361
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
enabled=1のスケジュールのみ表示(Name変更で無効化された旧エントリを非表示)LEFT JOINでスケジュール名を付与(旧スケジュール名も正しく表示)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_executionsでschedule_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