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
..

Gitgram Web

Web version of Gitgram built with Next.js 14, TypeScript, and Tailwind CSS.

Getting Started

  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser.

Features

  • Next.js 14 App Router
  • TypeScript
  • Tailwind CSS for styling
  • GitHub-inspired UI
  • Shared API client with mobile app
  • Authentication with JWT
  • Server-side rendering (SSR)
  • Static site generation (SSG)

Project Structure

web/
├── app/              # Next.js App Router pages
├── components/       # React components
├── services/         # API services
├── store/            # State management (Zustand)
└── lib/              # Utilities

Talent Graph proof route

/talent-network presents one API-backed route:

  1. Institution need from GET /v1/talent-graph/opportunities
  2. Evidence matches from GET /v1/talent-graph/opportunities/:id/matches
  3. Candidate-controlled Zen referral from GET /v1/talent-graph/referrals/mine
  4. Pilot delivery and audit history from GET /v1/talent-graph/pilots/mine
  5. Eligible public proof in the owner /collaborate dossier

Public pilot evidence requires a COMPLETED pilot, participant consent, and a public HTTP(S) deliverable. The client does not seed records. A zero count comes from the API; the screen renders request failures as an unavailable state with a retry action.

All Talent Graph writes now carry a retry-stable Idempotency-Key. Referral and pilot updates also send the revision read from the API, so concurrent decisions or edits fail with 409 instead of overwriting one another. Public profile and matching reads consume the dedicated TalentPublicProof projection rather than joining private opportunity/pilot records at request time. See the backend release runbook.

The owner dossier creates /collaborate?profile=<username> only when the account has a public username. Browser validation still needs two accounts for referral acceptance and institution completion, forced API failures for each resource, responsive anchor review, and public-link checks. The current hackathon cycle forbids build, test, lint, CI, migrations, and app-server runs.