Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/renderer/src/components/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ type ShortcutItem = {
action: string
}

const ORCA_STARGAZERS_URL = 'https://github.com/stablyai/orca/stargazers'
// Do not deep-link to /stargazers: GitHub 404s that page for users without repo write access.
const ORCA_GITHUB_URL = 'https://github.com/stablyai/orca'

type StarState = 'loading' | 'starred' | 'not-starred' | 'web-fallback' | 'hidden'

Expand Down Expand Up @@ -72,7 +73,7 @@ function GitHubStarButton({ hasRepos }: { hasRepos: boolean }): React.JSX.Elemen
return
}
if (state === 'web-fallback') {
await window.api.shell.openUrl(ORCA_STARGAZERS_URL)
await window.api.shell.openUrl(ORCA_GITHUB_URL)
return
}
if (state !== 'not-starred') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { SearchableSetting } from './SearchableSetting'
import { SettingsSubsectionHeader } from './SettingsFormControls'
import { translate } from '@/i18n/i18n'

const ORCA_STARGAZERS_URL = 'https://github.com/stablyai/orca/stargazers'
// Do not deep-link to /stargazers: GitHub 404s that page for users without repo write access.
const ORCA_GITHUB_URL = 'https://github.com/stablyai/orca'

type SupportState =
| 'loading'
Expand Down Expand Up @@ -58,7 +59,7 @@ export function GeneralSupportSection({
const handleStarClick = async (): Promise<void> => {
if (starState === 'web-fallback') {
setStarState('opening-github')
await window.api.shell.openUrl(ORCA_STARGAZERS_URL)
await window.api.shell.openUrl(ORCA_GITHUB_URL)
if (mountedRef.current) {
setStarState('web-fallback')
}
Expand Down
Loading