Skip to content

fix: link to repo root instead of 404ing /stargazers page - #8756

Merged
nwparker merged 1 commit into
stablyai:mainfrom
katspaugh:fix/stargazers-404-link
Jul 24, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
katspaugh:fix/stargazers-404-link

Conversation

@katspaugh

@katspaugh katspaugh commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the "Star Orca on GitHub" web-fallback button, which sent users to a page that 404s for anyone without repo write access.

ELI5

The "star us on GitHub" button opened a page that showed an error for most people. Now it opens the normal Orca repo page, which works for everyone.

Root cause & fix

The web-fallback star handlers on the Landing screen and General settings linked to https://github.com/stablyai/orca/stargazers, a URL that returns a 404 for users without write access to the repo. The fix swaps the hardcoded constant ORCA_STARGAZERS_URL for ORCA_GITHUB_URL (https://github.com/stablyai/orca) in both Landing.tsx and GeneralSupportSection.tsx. Same button, label, and copy — only the destination URL changes, so the user still lands on a working page and can click Star themselves.

Evidence

Validated & rebased onto latest main during a bug-bash triage on 2026-07-23. Rebase onto origin/main was clean. This was validated by code inspection (no unit tests apply to a static string swap):

  • grep confirms no remaining stargazers URL references (only in explanatory comments).
  • Both the constant declaration and its single call site were updated consistently in each file.
  • Change is a static string constant swap through window.api.shell.openUrl — no logic or control-flow change, and platform-agnostic.
  • Author verified .../stargazers returns 404 and the repo root returns 200.

Lint clean:

npx oxlint src/renderer/src/components/Landing.tsx \
  src/renderer/src/components/settings/GeneralSupportSection.tsx
-> EXIT=0, no warnings/errors

Trade-offs

None — pure fix.

Regression risk

Effectively zero. The only change is the value of two destination-URL constants; no control flow, no other call sites, and non-affected paths are byte-identical. The open-URL mechanism is untouched, so no platform, SSH, or git-provider behavior is affected.

Credit to original author @katspaugh. Validated, rebased, and (where applicable) hardened via automated bug-bash review; original fix design preserved.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated GitHub star web-fallback handling in the landing and general support components. Both flows now replace the /stargazers destination with the repository’s root GitHub URL when opening the link through the shell API.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the fix but misses required template sections like Screenshots, Testing, AI Review Report, Security Audit, and Notes. Add the missing template sections and include the testing checklist, AI review details, security audit, and any platform-specific notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly states the main change: redirecting the GitHub fallback link from /stargazers to the repo root.

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.

GitHub's stargazers page returns 404 for users without repo write
access, so the web-fallback star flow in the landing screen and
General settings sent most users to a broken link. Point both at the
repo root instead.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@nwparker

Copy link
Copy Markdown
Contributor

thanks alot for this one! Yeah they rm'd that page

@nwparker
nwparker merged commit 462020d into stablyai:main Jul 24, 2026
@nwparker

Copy link
Copy Markdown
Contributor

Thanks so much for this, @katspaugh — link to repo root instead of 404ing /stargazers page. Reviewed, rebased on latest main, and merged. Really appreciate the contribution! 🙏

@katspaugh

Copy link
Copy Markdown
Contributor Author

Thank you too! Love Orca!

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.

3 participants