Compare commits

...

14 Commits

Author SHA1 Message Date
Chris Farhood 43722ae883 Add .mcp.json 2026-05-25 21:46:20 +00:00
Savannah Savings 1fc51f1603 Merge pull request 'Promote to Production: CAR-894 Gitea workflows migration' (#26) from uat into main 2026-05-24 18:51:39 +00:00
Savannah Savings 3d7b32a2ed Merge pull request 'chore: promote dev to uat (CAR-1009)' (#25) from dev into uat 2026-05-24 18:48:49 +00:00
Savannah Savings d442c79f34 {{.PullRequestTitle}} 2026-05-24 18:48:27 +00:00
Barcode Betty 43d3a0d235 ci: remove Docker Hub login, use REGISTRY_TOKEN for Gitea auth
Fixes CAR-1009.

- Remove Docker Hub login step (not needed)
- Rename 'Log in to GHCR' → 'Log in to Gitea Container Registry'
- Use REGISTRY_TOKEN instead of GITEA_TOKEN for Gitea auth

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-24 18:40:48 +00:00
Savannah Savings ca84de3e8a Merge pull request 'fix(ci): push Docker images to git.farh.net registry (CAR-964)' (#18) from barcode-betty/car-964-gitea-registry-v2 into dev 2026-05-24 18:08:53 +00:00
Savannah Savings 03c9f1e4be Merge pull request 'Delete stale .github/workflows/ci.yml from uat branch' (#22) from cs_betty/app:betty/delete-stale-ci-yml into uat
chore: remove stale .github/workflows from uat [CAR-934] (#22)
2026-05-23 22:00:17 +00:00
Flea Flicker 1e3fbeeddc Delete stale .github/workflows/ci.yml from uat branch
The CI workflow has been migrated to .github/workflows/ directory with proper
branch-specific configuration. The legacy ci.yml on uat is stale and no
longer needed.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 21:46:25 +00:00
Savannah Savings d6c3f307f2 Merge pull request 'Promote dev → uat: Disable lighthouse CI job [CAR-938]' (#21) from dev into uat
Merge PR #21: Promote dev → uat: Disable lighthouse CI job [CAR-938]
2026-05-23 21:27:34 +00:00
Savannah Savings 048c62ed4d Merge pull request 'Promote dev → uat: CI pipeline fix + cumulative dev changes [CAR-987]' (#10) from dev into uat
promote: dev → uat — CI pipeline fix + cumulative dev changes [CAR-987]

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 19:36:21 +00:00
Flea Flicker 0c02962b98 fix(ci): push Docker images to git.farh.net registry (CAR-964)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 16:07:50 +00:00
Savannah Savings ddc3a846bc Merge pull request 'Promote dev → uat: remove stale .github/workflows [CAR-934]' (#8) from dev into uat
Promote dev→uat: pin setup-node to SHA [CAR-935]
2026-05-21 19:36:15 +00:00
Savannah Savings 49413c31bf Merge pull request 'chore: promote workflow migration to UAT (CAR-896)' (#7) from dev into uat 2026-05-21 12:24:45 +00:00
savannah-savings-cto[bot] 67c2d27e74 promote: dev → uat (Register account-created success message) (#3)
* ci: add frontend-only CI workflow

* docs: update CLAUDE.md for standalone frontend repo

* fix(register): replace check-your-email success state with inline message (#2)

* fix(register): replace check-your-email success state with inline message

Ports PR #181 intent from cartsnitch/cartsnitch to cartsnitch/app.
Removes registrationComplete, resendLoading, resendMessage state and the
handleResendVerification function. After successful signUp.email, now
sets setError('Account created! Please sign in.') instead of showing
the separate "Check your email" page.

Refs: CAR-822, CAR-818

* fix(e2e): update registration test to match new inline success message

Renames 'can register a new account and see check your email screen' to
'shows success message after registration' and asserts .bg-red-50 contains
'Account created! Please sign in.' instead of checking for a heading.

Updates 'can sign in with credentials' test to first register a fresh account
and assert the success message, then proceed with login.

Refs: CAR-822, PR cartsnitch/cartsnitch#181

---------

Co-authored-by: Chris Farhood <chris@farhood.org>

---------

Co-authored-by: Test User <test@example.com>
Co-authored-by: savannah-savings-cto[bot] <269715008+savannah-savings-cto[bot]@users.noreply.github.com>
Co-authored-by: cartsnitch-engineer[bot] <269717931+cartsnitch-engineer[bot]@users.noreply.github.com>
Co-authored-by: Chris Farhood <chris@farhood.org>
2026-05-04 19:08:27 +00:00
4 changed files with 29 additions and 62 deletions
+5 -12
View File
@@ -16,7 +16,7 @@ permissions:
security-events: write security-events: write
env: env:
REGISTRY: ghcr.io REGISTRY: git.farh.net
IMAGE_NAME: cartsnitch/app IMAGE_NAME: cartsnitch/app
jobs: jobs:
@@ -99,20 +99,13 @@ jobs:
echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "CalVer tag: $VERSION" echo "CalVer tag: $VERSION"
- name: Log in to Docker Hub - name: Log in to Gitea Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GHCR
if: github.event_name == 'push' if: github.event_name == 'push'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata - name: Extract metadata
id: meta id: meta
@@ -173,7 +166,7 @@ jobs:
if: needs.build-and-push.result == 'success' if: needs.build-and-push.result == 'success'
run: | run: |
cd infra/apps/overlays/dev cd infra/apps/overlays/dev
kustomize edit set image ghcr.io/cartsnitch/app:${{ steps.frontend_tag.outputs.tag }} kustomize edit set image git.farh.net/cartsnitch/app:${{ steps.frontend_tag.outputs.tag }}
- name: Commit and push to infra - name: Commit and push to infra
run: | run: |
@@ -217,7 +210,7 @@ jobs:
if: needs.build-and-push.result == 'success' if: needs.build-and-push.result == 'success'
run: | run: |
cd infra/apps/overlays/uat cd infra/apps/overlays/uat
kustomize edit set image ghcr.io/cartsnitch/app:${{ steps.frontend_tag.outputs.tag }} kustomize edit set image git.farh.net/cartsnitch/app:${{ steps.frontend_tag.outputs.tag }}
- name: Commit and push to infra - name: Commit and push to infra
run: | run: |
+11
View File
@@ -0,0 +1,11 @@
{
"mcpServers": {
"gitea": {
"type": "http",
"url": "https://git-mcp.farh.net/mcp",
"headers": {
"Authorization": "Bearer ${GITEA_TOKEN}"
}
}
}
}
+12 -3
View File
@@ -4,7 +4,7 @@ import { mockAuthRoutes } from '../fixtures';
const uniqueEmail = () => `betty+e2e-${Date.now()}@cartsnitch.test`; const uniqueEmail = () => `betty+e2e-${Date.now()}@cartsnitch.test`;
test.describe('J1: Registration and Login', () => { test.describe('J1: Registration and Login', () => {
test('can register a new account and see check your email screen', async ({ page }) => { test('shows success message after registration', async ({ page }) => {
await mockAuthRoutes(page, false); await mockAuthRoutes(page, false);
await page.goto('/register'); await page.goto('/register');
await page.fill('[placeholder="Full Name"]', 'Betty Tester'); await page.fill('[placeholder="Full Name"]', 'Betty Tester');
@@ -12,7 +12,7 @@ test.describe('J1: Registration and Login', () => {
await page.fill('[placeholder="Password (min. 8 characters)"]', 'TestPass123!'); await page.fill('[placeholder="Password (min. 8 characters)"]', 'TestPass123!');
await page.click('button[type="submit"]'); await page.click('button[type="submit"]');
await expect(page.getByRole('heading', { name: /check your email/i })).toBeVisible(); await expect(page.locator('.bg-red-50')).toContainText('Account created! Please sign in.');
}); });
test('shows validation error when registration fields are empty', async ({ page }) => { test('shows validation error when registration fields are empty', async ({ page }) => {
@@ -31,9 +31,18 @@ test.describe('J1: Registration and Login', () => {
}); });
test('can sign in with credentials and land on dashboard', async ({ page }) => { test('can sign in with credentials and land on dashboard', async ({ page }) => {
await mockAuthRoutes(page, false);
const email = uniqueEmail();
await page.goto('/register');
await page.fill('[placeholder="Full Name"]', 'Betty Tester');
await page.fill('[placeholder="Email"]', email);
await page.fill('[placeholder="Password (min. 8 characters)"]', 'TestPass123!');
await page.click('button[type="submit"]');
await expect(page.locator('.bg-red-50')).toContainText('Account created! Please sign in.');
await mockAuthRoutes(page, true); await mockAuthRoutes(page, true);
await page.goto('/login'); await page.goto('/login');
await page.fill('[placeholder="Email"]', 'test@cartsnitch.test'); await page.fill('[placeholder="Email"]', email);
await page.fill('[placeholder="Password"]', 'TestPass123!'); await page.fill('[placeholder="Password"]', 'TestPass123!');
await page.click('button[type="submit"]'); await page.click('button[type="submit"]');
+1 -47
View File
@@ -8,9 +8,6 @@ export function Register() {
const [password, setPassword] = useState('') const [password, setPassword] = useState('')
const [error, setError] = useState('') const [error, setError] = useState('')
const [loading, setLoading] = useState(false) const [loading, setLoading] = useState(false)
const [registrationComplete, setRegistrationComplete] = useState(false)
const [resendLoading, setResendLoading] = useState(false)
const [resendMessage, setResendMessage] = useState('')
async function handleSubmit(e: React.FormEvent) { async function handleSubmit(e: React.FormEvent) {
e.preventDefault() e.preventDefault()
@@ -38,7 +35,7 @@ export function Register() {
throw new Error(authError.message ?? 'Registration failed') throw new Error(authError.message ?? 'Registration failed')
} }
setRegistrationComplete(true) setError('Account created! Please sign in.')
} catch { } catch {
setError('Registration failed. Please try again.') setError('Registration failed. Please try again.')
} finally { } finally {
@@ -46,49 +43,6 @@ export function Register() {
} }
} }
async function handleResendVerification() {
setResendLoading(true)
setResendMessage('')
try {
const { error } = await authClient.sendVerificationEmail({ email })
if (error) {
setResendMessage('Failed to resend. Please try again.')
} else {
setResendMessage('Verification email sent!')
}
} finally {
setResendLoading(false)
}
}
if (registrationComplete) {
return (
<div className="flex min-h-screen flex-col items-center justify-center px-4">
<h1 className="mb-2 text-3xl font-bold text-gray-900">Check your email</h1>
<p className="mb-8 text-sm text-gray-500">
We sent a verification link to {email}. Click it to activate your account.
</p>
<button
type="button"
onClick={handleResendVerification}
disabled={resendLoading}
className="min-h-12 rounded-xl bg-brand-blue px-6 py-3 text-base font-medium text-white active:bg-brand-blue/90 disabled:opacity-60"
>
{resendLoading ? 'Sending...' : 'Resend email'}
</button>
{resendMessage && (
<p className="mt-4 text-sm text-gray-500">{resendMessage}</p>
)}
<p className="mt-6 text-sm text-gray-500">
Already have an account?{' '}
<Link to="/login" className="text-brand-blue">
Sign in
</Link>
</p>
</div>
)
}
return ( return (
<div className="flex min-h-screen flex-col items-center justify-center px-4"> <div className="flex min-h-screen flex-col items-center justify-center px-4">
<h1 className="mb-2 text-3xl font-bold text-gray-900">Create Account</h1> <h1 className="mb-2 text-3xl font-bold text-gray-900">Create Account</h1>