Skip to content

Remove unused RFA_GITHUB_REPO config entry#89

Open
fgilio wants to merge 3 commits intomainfrom
claude/fix-maintainability-debt-xn8Yx
Open

Remove unused RFA_GITHUB_REPO config entry#89
fgilio wants to merge 3 commits intomainfrom
claude/fix-maintainability-debt-xn8Yx

Conversation

@fgilio
Copy link
Copy Markdown
Owner

@fgilio fgilio commented May 7, 2026

config('rfa.github_repo') is never read anywhere in the codebase. The
real GitHub repo for the auto-updater is configured in
config/nativephp.php under a different env var (GITHUB_REPO), as noted
in .github/CLAUDE.md. Leaving this entry around suggested the variable
controlled the updater and made it harder to reason about release
configuration.

Summary by CodeRabbit

  • Documentation

    • Updated minimum PHP requirement to 8.4+ and Laravel framework to version 13.
  • Refactor

    • Standardized cache key usage for consistent project-state handling across pages.
  • Chores

    • Removed the github_repo configuration option.

claude added 2 commits May 7, 2026 23:18
config('rfa.github_repo') is never read anywhere in the codebase. The
real GitHub repo for the auto-updater is configured in
config/nativephp.php under a different env var (GITHUB_REPO), as noted
in .github/CLAUDE.md. Leaving this entry around suggested the variable
controlled the updater and made it harder to reason about release
configuration.
composer.json requires php ^8.4 and laravel/framework ^13.0 (lock at
13.4.0), but README still listed PHP 8.3+ and Laravel 12. A
contributor following the README on PHP 8.3 would hit a confusing
platform error on composer install.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9cd89f13-01bd-48c8-ac3a-9d4220b7a846

📥 Commits

Reviewing files that changed from the base of the PR and between e86b87b and b841a95.

📒 Files selected for processing (4)
  • app/Listeners/HandleMenuItemClicked.php
  • resources/views/pages/⚡context-page.blade.php
  • resources/views/pages/⚡review-page.blade.php
  • resources/views/pages/⚡select-repo-page.blade.php
🚧 Files skipped from review as they are similar to previous changes (4)
  • resources/views/pages/⚡review-page.blade.php
  • resources/views/pages/⚡context-page.blade.php
  • resources/views/pages/⚡select-repo-page.blade.php
  • app/Listeners/HandleMenuItemClicked.php

📝 Walkthrough

Walkthrough

The PR extracts the hardcoded active-project cache key into a public constant on HandleMenuItemClicked, updates all cache access patterns across page components to use the constant, removes an unused github_repo configuration entry, and bumps PHP to 8.4+ and Laravel to version 13 in documentation.

Changes

Active Project Cache Key Refactoring

Layer / File(s) Summary
Cache Key Contract
app/Listeners/HandleMenuItemClicked.php
Public constant ACTIVE_PROJECT_CACHE_KEY defined as 'rfa.active-project-id' to centralize the cache key used for active-project resolution.
Cache Key Usage
app/Listeners/HandleMenuItemClicked.php, resources/views/pages/⚡context-page.blade.php, resources/views/pages/⚡review-page.blade.php, resources/views/pages/⚡select-repo-page.blade.php
Listener and page components now use HandleMenuItemClicked::ACTIVE_PROJECT_CACHE_KEY for cache read/write/forget operations instead of hardcoded string.
Configuration Cleanup
config/rfa.php
Removed github_repo configuration key; diff_max_bytes, cache_ttl_hours, and context_scan_skip_dirs remain.
Dependencies & Documentation
README.md
PHP minimum version updated to 8.4+; Laravel version updated to 13 in Tech Stack section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A constant named ACTIVE_PROJECT_CACHE_KEY
Set loose to guide caches far and near
Pages and listener now all sing the same key
One source of truth replaces scattered cheer
Docs rise to 8.4 and Laravel 13 — clear ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main change: removing the unused RFA_GITHUB_REPO config entry, which aligns with the primary objective stated in the PR description.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Screenshots

Updated for b841a95.

copy-paths-bulk-default copy-paths-bulk-default
copy-paths-bulk-menu-open copy-paths-bulk-menu-open
copy-paths-single-menu-open copy-paths-single-menu-open

github-actions Bot added a commit that referenced this pull request May 7, 2026
The 'rfa.active-project-id' literal was hand-copied across four files:
HandleMenuItemClicked reads it, and three Blade pages
(⚡review-page, ⚡context-page, ⚡select-repo-page) write or clear it.
A typo in any writer would silently break the native menu's "Show
Context" entry with no diagnosable trail. Hoisting the key onto
HandleMenuItemClicked::ACTIVE_PROJECT_CACHE_KEY makes the
renderer→main-process channel discoverable from one grep and
typo-resistant.
@fgilio fgilio force-pushed the claude/fix-maintainability-debt-xn8Yx branch from e86b87b to b841a95 Compare May 8, 2026 05:52
github-actions Bot added a commit that referenced this pull request May 8, 2026
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