chore: remove practice and pulse prototype feeds#65
Conversation
These were placeholder feed producers that are no longer part of the product. Removes PulseProducer, PracticeProducer, PulseFeedConfig, PracticeFeedConfig, PulseThresholds types, and all associated config defaults, CLI rendering code, and test references. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis pull request removes Pulse and Practice feed support across the codebase, including configuration types, default settings, builtin producers, rendering logic, and related tests. The changes eliminate these feed sources from the CLI status-line display and configuration management system. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
internal/feeds/feeds_test.go (1)
352-365: 🧹 Nitpick | 🔵 TrivialUpdate stale comment in test function.
The comment on line 352 still says "Test 10: RegisterBuiltins registers all 8 producers" but the test now expects 6 producers. The comment should be updated for consistency.
📝 Proposed comment fix
// --------------------------------------------------------------------------- -// Test 10: RegisterBuiltins registers all 8 producers +// Test 10: RegisterBuiltins registers all 6 producers // --------------------------------------------------------------------------- func TestRegisterBuiltins_All8(t *testing.T) {Note: The function name
TestRegisterBuiltins_All8could also be renamed toTestRegisterBuiltins_All6for full consistency, though this is optional as Go test names don't affect functionality.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@internal/feeds/feeds_test.go` around lines 352 - 365, Update the stale comment and optionally the test name to match the current expected count: change the comment that reads "Test 10: RegisterBuiltins registers all 8 producers" to reflect 6 producers, and optionally rename the test function TestRegisterBuiltins_All8 to TestRegisterBuiltins_All6 for clarity; ensure the test still calls NewRegistry(), RegisterBuiltins(r) and asserts len(r.All()) == 6 and that expectedNames remain the same.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@internal/feeds/feeds_test.go`:
- Around line 352-365: Update the stale comment and optionally the test name to
match the current expected count: change the comment that reads "Test 10:
RegisterBuiltins registers all 8 producers" to reflect 6 producers, and
optionally rename the test function TestRegisterBuiltins_All8 to
TestRegisterBuiltins_All6 for clarity; ensure the test still calls
NewRegistry(), RegisterBuiltins(r) and asserts len(r.All()) == 6 and that
expectedNames remain the same.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 33f5d2fa-3018-44fc-aca7-4ee7ffc97363
📒 Files selected for processing (8)
cmd/hookwise/cli_test.gocmd/hookwise/main.gointernal/core/config.gointernal/core/config_test.gointernal/core/types.gointernal/feeds/builtin.gointernal/feeds/feeds_test.gointernal/feeds/polling.go
💤 Files with no reviewable changes (4)
- cmd/hookwise/main.go
- internal/core/types.go
- internal/core/config.go
- internal/feeds/polling.go
Accept Go-based content from main for CONTRIBUTING.md, SECURITY.md, and docs/cli.md (replacing stale TypeScript references). Accept deletion of src/cli/commands/init.tsx, src/core/tui-launcher.ts, and tests/core/tui-launcher.test.ts (removed by PR #65). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve conflicts after PR #65 removed practice and pulse feeds. - Remove pulse/practice cases from getFeedInterval switch - Keep custom feeds iteration and insights_ prefix logic from PR #64 - Update TestDoctorFeedHealthPlaceholder to use project feed instead of practice - Keep testify assert/require style from PR #64 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Remove
practiceandpulsefeed producers — these were prototypes that are no longer part of the product.PracticeFeedConfig,PulseFeedConfig,PulseThresholdsstructs from typesPracticeProducerandPulseProducerfrom builtin feeds (8 producers → 6)renderPulseSegment()and pulse case from status-line renderingNet result: -155 lines across 8 files.
Test plan
go build ./...compiles cleanlygo test -race ./...passes all 12 packagesmake install+hookwise doctorruns clean🤖 Generated with Claude Code
Summary by CodeRabbit