Skip to content
Merged
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
12 changes: 7 additions & 5 deletions docs/design/artboards/d215/index.html

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ import { V2PrivacyPage, V2TermsPage } from './v2/legal/V2LegalPage';
// covered by the single Suspense boundary in App() below. Canonical public
// landing, comparison and use-case routes stay reachable by URL exactly as
// before — only the moment their code arrives changed.
const Register = React.lazy(() => import('./components/Register'));
const RegistrationInviteRequired = React.lazy(() => import('./components/RegistrationInviteRequired'));
const GuidePage = React.lazy(() => import('./components/landing/GuidePage'));
const GuidesIndexPage = React.lazy(() => import('./components/landing/GuidesIndexPage'));
const UseCasePage = React.lazy(() => import('./components/landing/UseCasePage'));
const VerifyEmail = React.lazy(() => import('./components/VerifyEmail'));
const DiscordCallback = React.lazy(() => import('./components/DiscordCallback'));
const V2App = React.lazy(() => import('./v2/V2App'));
const V2LandingPage = React.lazy(() => import('./v2/landing/V2LandingPage'));
Expand Down Expand Up @@ -304,11 +301,11 @@ function App(): React.ReactElement {
<Route path="/use-cases/:useCaseId" element={<UseCasePage />} />
<Route path="/privacy" element={<V2PrivacyPage />} />
<Route path="/terms" element={<V2TermsPage />} />
{/* /login has no page of its own: it goes to /v2/login with its query. */}
{/* The old auth paths have no pages of their own: each goes to its v2 page with its query. */}
<Route path="/login" element={<LegacyAuthRedirect to="/v2/login" />} />
<Route path="/register" element={<Register />} />
<Route path="/register/invite-required" element={<RegistrationInviteRequired />} />
<Route path="/verify-email" element={<VerifyEmail />} />
<Route path="/register" element={<LegacyAuthRedirect to="/v2/register" />} />
<Route path="/register/invite-required" element={<LegacyAuthRedirect to="/v2/register/invite-required" />} />
<Route path="/verify-email" element={<LegacyAuthRedirect to="/v2/verify-email" />} />
{/* Device-code sign-in (#1405): the backend's /api/auth/device/start
answers with `verifyUrl: <origin>/cli/authorize`. Deleting this
route 404'd every `commonly login` (#1534, 2026-09-04 → 09-08). */}
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/components/Pages.smoke.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import TestUtils from 'react-dom/test-utils';
import { act } from 'react-dom/test-utils';
import Register from './Register';
import VerifyEmail from './VerifyEmail';
import UserProfile from './UserProfile';
import { useAuth } from '../context/AuthContext';
import { useAppContext } from '../context/AppContext';
Expand Down Expand Up @@ -84,22 +82,6 @@ function render(comp) {
return container.textContent;
}

test('Register renders and submits', async () => {
axios.get.mockResolvedValueOnce({ data: { inviteOnly: false } });
axios.post.mockResolvedValue({ data: { message: 'ok' } });
await TestUtils.act(async () => { root.render(<Register />); });
const form = container.querySelector('form');
await TestUtils.act(async () => { TestUtils.Simulate.submit(form); });
expect(axios.post).toHaveBeenCalled();
});

test('VerifyEmail fetches token', async () => {
axios.get.mockResolvedValue({ data: { message: 'verified' } });
await TestUtils.act(async () => { root.render(<VerifyEmail />); });
await TestUtils.act(async () => Promise.resolve());
expect(container.textContent).toContain('verified');
});

test('UserProfile renders', async () => {
axios.get.mockResolvedValueOnce({ data: { username: 'u' } });
await TestUtils.act(async () => { root.render(<UserProfile />); });
Expand Down
70 changes: 0 additions & 70 deletions frontend/src/components/Register.test.tsx

This file was deleted.

259 changes: 0 additions & 259 deletions frontend/src/components/Register.tsx

This file was deleted.

Loading
Loading