caelum0x 0f8542d63a fix(rithub,ritgram): real-journey fixes — Actions "Gitea" text, Rithub OAuth scope, repo linker GitHub-only
Found during a full new-user walkthrough (signup -> import -> clone -> push
-> PR -> merge -> issue -> CI -> Ritgram connect -> link repo -> post):

- apps/gitea/custom/options/locale/locale_en-US.ini: the Actions tab's
  empty-state ("There are no workflows yet") said "Gitea Actions" twice,
  user-facing on every repo with no workflow yet. Now says "Rithub Actions".

- Ritgram's "Continue with Rithub" OAuth login/register buttons requested
  scope=read:user only, so GET /forges/gitea/repos 500'd for every connected
  user ("token does not have at least one of required scope(s),
  required=[read:repository]"). Added read:repository to the authorize URL
  in both login/page.tsx and register/page.tsx.

- RepoLinker's "My Repos" tab called githubService.getProjects() only, so a
  Rithub-only user's own repos never appeared (My Repos (0) even with a real
  repo). Now reads forgeService.list()'s connected forges and merges
  forgeService.myRepos() (the existing GET /forges/:forge/repos endpoint,
  already implemented backend-side but never called from the web app) with
  the GitHub path.

- repositoryRouting.ts's parseRepositoryInput only recognized github.com
  URLs, so pasting a real rithub.dev repo URL into the repo picker fell
  through to "No repositories match your search." Now recognizes rithub.dev
  (and git@rithub.dev: SSH) the same way as github.com.

- repositoryService.ts's searchRepositories() merged the cached DB with a
  live GitHub search only; a brand-new, never-cached Rithub repo was
  unsearchable by name. Wired in the Gitea adapter's already-built
  searchRepos() as a third live source, same pattern as the GitHub one.

Verified live: Actions empty-state now says "Rithub Actions" (0 "Gitea"
text) on a fresh repo; backend tsc --noEmit and web tsc --noEmit both clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-18 22:30:52 +03:00
..