Skip to content

feat: phrase 67 (lol) - #4

Merged
abdelkabirouadoukou merged 1 commit into
mainfrom
build-phrase-6-7
Jul 26, 2026
Merged

abdelkabirouadoukou merged 1 commit into
mainfrom
build-phrase-6-7

Conversation

@abdelkabirouadoukou

@abdelkabirouadoukou abdelkabirouadoukou commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added SQLite and Postgres database connection helpers with migration support.
    • Added session-based login, logout, protected dashboard access, and server-backed greetings.
    • Added a blog listing page and typed route URL generation.
    • Added benchmarking for startup, build performance, and page response times.
  • Documentation
    • Updated project progress documentation to reflect completed data-layer, authentication, application, and benchmark work.
  • Bug Fixes
    • Improved generated route typing for routes without dynamic parameters.

@coderabbitai

coderabbitai Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ec433aa4-e1ae-44a7-8202-7d8ebb07a387

📥 Commits

Reviewing files that changed from the base of the PR and between e776129 and 6eae1fc.

📒 Files selected for processing (20)
  • TASKS.md
  • bench.sh
  • examples/basic/data/migrations/001_create_sessions.sql
  • examples/basic/src/data/auth.ts
  • examples/basic/src/routes/api/auth/login.ts
  • examples/basic/src/routes/api/auth/logout.ts
  • examples/basic/src/routes/blog.tsx
  • examples/basic/src/routes/dashboard/_middleware.ts
  • examples/basic/src/routes/dashboard/greet.ts
  • examples/basic/src/routes/dashboard/index.tsx
  • examples/basic/src/routes/index.tsx
  • examples/basic/src/routes/login.tsx
  • examples/basic/src/x-routes.ts
  • packages/core/src/data/index.ts
  • packages/core/src/data/migrate.ts
  • packages/core/src/data/postgres.ts
  • packages/core/src/data/sqlite.ts
  • packages/core/src/index.ts
  • packages/core/src/router.test.ts
  • packages/core/src/router.ts

📝 Walkthrough

Walkthrough

Adds reusable SQLite/Postgres data helpers and migrations, session authentication, protected dashboard and blog routes, typed route generation updates, and benchmark coverage for the basic example.

Changes

Application stack

Layer / File(s) Summary
Database helpers and migrations
packages/core/src/data/*, packages/core/src/index.ts, examples/basic/data/migrations/*, TASKS.md
Adds SQLite/Postgres connection APIs, migration runners with tracking, public exports, and a sessions migration.
Generated route typing
packages/core/src/router.ts, packages/core/src/router.test.ts, examples/basic/src/x-routes.ts
Uses Record<string, never> for parameterless routes and adds typed URL construction.
Authentication and example routes
examples/basic/src/data/*, examples/basic/src/routes/api/auth/*, examples/basic/src/routes/dashboard/*, examples/basic/src/routes/login.tsx, examples/basic/src/routes/blog.tsx, examples/basic/src/routes/index.tsx
Adds session cookies, login/logout handlers, protected dashboard access, a server greeting action, blog listing, login UI, and reorganized navigation.
Benchmark workflow and task records
bench.sh, TASKS.md
Adds cold-start, build, and static/SSR TTFB measurements and documents completed Phase 6 and Phase 7 work.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant LoginAPI
  participant SessionLayer
  participant SQLite
  participant Dashboard
  Browser->>LoginAPI: Submit username and password
  LoginAPI->>SessionLayer: Create session
  SessionLayer->>SQLite: Store session
  LoginAPI-->>Browser: Return session cookie
  Browser->>Dashboard: Request with session cookie
  Dashboard->>SessionLayer: Resolve session
  SessionLayer->>SQLite: Read session
  Dashboard-->>Browser: Render dashboard or redirect
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build-phrase-6-7

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@abdelkabirouadoukou
abdelkabirouadoukou merged commit df5fddb into main Jul 26, 2026
1 of 2 checks passed
@abdelkabirouadoukou
abdelkabirouadoukou deleted the build-phrase-6-7 branch August 1, 2026 04:37
@coderabbitai coderabbitai Bot mentioned this pull request Aug 8, 2026
8 of 11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant