Skip to content
Open
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
1 change: 1 addition & 0 deletions app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ export default [
route("api/logout", "routes/api.logout.ts"),
route("api/video-tracking", "routes/api.video-tracking.ts"),
route("api/set-dev-country", "routes/api.set-dev-country.ts"),
route("hello", "routes/hello.tsx"),
] satisfies RouteConfig;
3 changes: 3 additions & 0 deletions app/routes/hello.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Hello() {
return <h1>Hello from Ralph!</h1>;
}
19 changes: 19 additions & 0 deletions ralph/test-prd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# PRD: Add a hello route

## Context
Testing the Ralph AFK loop on a minimal task.

## Task
Add a new file `app/routes/hello.tsx` that renders a React component saying "Hello from Ralph!".

Wire it into `app/routes.ts` (React Router v7 file-based routing) so that visiting `/hello` renders the component.

## Success criteria
- [ ] `app/routes/hello.tsx` exists and exports a default React component
- [ ] Route is registered in `app/routes.ts`
- [ ] `pnpm typecheck` passes
- [ ] `pnpm test` passes (or no test is required if none exist for this route)

## Out of scope
- Styling beyond a simple `<h1>` tag
- Tests for the new route (keep it minimal)