caelum0x 6801c08af9
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
feat(RIT-OPS,RIT-BRD): rename gitea -> rit everywhere we control, deployed + live-verified
apps/gitea -> apps/rithub-server; compose services/containers renamed
(rithub-server-app/postgres/act-runner) with explicit project name and
volume names pinned to the exact existing Docker volumes (no data loss);
our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper
on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs ->
ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter
+ giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram
(tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go
internal/giteaclient -> internal/ritclient in rithub-async-import (go
build/test clean); new /auth/rit + /forges/rit/connect routes with
/gitea back-compat aliases; locale/swagger/footer/captcha template text
scrubbed of remaining "Gitea" strings.

Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea
renamed to /srv/rithub-server with a symlink kept, docker compose up -d from
the new path, act_runner network-alias fix for its persisted instance URL.
Live-verified: docker compose config diff showed zero unintended value
changes, DB row counts unchanged (19 users, 635 repos), full route
regression 200/expected, 0 "gitea" in headers/bodies on every checked page,
real git clone+push over HTTPS and SSH with a disposable account (deleted
after). Deferred on purpose (documented in plans/railyard.md): the forge
discriminator / DB column names / Postgres role+volume names (data
migrations, not a naming change) and the upstream GITEA__ env-to-ini keys
and X-Gitea-* wire headers (hardcoded in the vendored engine binary).

See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and
live evidence.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-12-01 16:34:39 +03:00

112 lines
4.8 KiB
Cheetah

<!--
Rithub signup form -- override of upstream templates/user/auth/
signup_inner.tmpl (go-gitea/gitea v1.23.8). Kept the same form
action/CSRF/field names so backend form binding (form.RegisterForm:
user_name, email, password, retype, Err_UserName/Err_Email/
Err_Password/Err_Captcha) and the oauth2/captcha partials are
unaffected -- no Go fork, config-only intent, same spirit as every
prior override in this file's history below.
2026-11-18 (rithub-signup-page-friction fix): value prop note under
the header + password mirrored into retype as the user types.
2026-11-19 (funnel fix #2): moved oauth_container + divider above the
manual fields so the one-click path renders first.
2026-11-30 (RIT-AUTH, owner: "auth signin signup pages are disaster"):
same card as the newly-matching sign-in page. Fixes this pass:
1. Title "Create your account" (sentence case; was "sign_up" key's
Title-Case "Register").
2. oauth_container now says "Continue with Google" (shared partial
override, see oauth_container.tmpl) -- was "Sign in with Google"
on this page while sign-in said the same thing, just in the
opposite position; now both pages: same label, same position.
3. Dropped the visible Confirm Password field entirely -- kept a
hidden `retype` input synced from the one visible password field
via the same oninput mirror already used here since 11-18, so
`form.RegisterForm`'s existing retype-must-match-password
validation still runs server-side on the real submitted value.
Added the same show/hide eye toggle as the sign-in page's
password field.
4. Dropped the red-asterisk "required" CSS class from all three
visible fields (inputs stay `required`, native validation
unchanged).
5. Footer line changed from "Already have an account? Sign in
now!" to "Have an account? Sign in" (sentence case, no
exclamation mark).
-->
<div class="ui container fluid{{if .LinkAccountMode}} icon{{end}}">
<h4 class="ui top attached header center">
{{if .LinkAccountMode}}
{{ctx.Locale.Tr "auth.oauth_signup_title"}}
{{else}}
Create your account
{{end}}
</h4>
{{if not .LinkAccountMode}}
<p class="rithub-signup-note">Free, no card required. Import your GitHub repos in one click right after signup.</p>
{{end}}
<div class="ui attached segment">
{{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister)}}
{{template "base/alert" .}}
{{end}}
{{/* "oauth_container" contains not only "oauth2" methods, but also "OIDC" and "SSPI" methods */}}
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
{{if $showOAuth2Methods}}
{{template "user/auth/oauth_container" .}}
<div class="divider divider-text">or</div>
{{end}}
{{if .DisableRegistration}}
<p>{{ctx.Locale.Tr "auth.disable_register_prompt"}}</p>
{{else}}
<form class="ui form" action="{{.SignUpLink}}" method="post">
{{.CsrfTokenHtml}}
<div class="field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="user_name">{{ctx.Locale.Tr "username"}}</label>
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
</div>
<div class="field {{if .Err_Email}}error{{end}}">
<label for="email">{{ctx.Locale.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
{{if not .DisablePassword}}
<div class="field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}} rithub-pw-field">
<label for="password">{{ctx.Locale.Tr "password"}}</label>
<div class="rithub-pw-input-wrap">
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="new-password" required oninput="var r=document.getElementById('retype'); if (r) { r.value = this.value; }">
<button type="button" class="rithub-pw-toggle" aria-label="Show password" data-target="password">
{{svg "octicon-eye" 18 "rithub-pw-icon-eye"}}
{{svg "octicon-eye-closed" 18 "rithub-pw-icon-eye-closed"}}
</button>
</div>
<input id="retype" name="retype" type="hidden" value="{{.password}}">
</div>
{{end}}
{{template "user/auth/captcha" .}}
<div class="inline field">
<button class="ui primary button tw-w-full">
{{if .LinkAccountMode}}
{{ctx.Locale.Tr "auth.oauth_signup_submit"}}
{{else}}
Create account
{{end}}
</button>
</div>
</form>
{{end}}
</div>
</div>
<div class="ui container fluid">
{{if not .LinkAccountMode}}
<div class="ui attached segment header top tw-flex tw-flex-col tw-items-center">
<div class="field">
<span>Have an account?</span>
<a href="{{AppSubUrl}}/user/login">Sign in</a>
</div>
</div>
{{end}}
</div>