Skip to content

Commit cd2874e

Browse files
committed
Remove home page and redirect root to dashboard
1 parent 0949f7e commit cd2874e

4 files changed

Lines changed: 5 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Add seeded auth Playwright E2E flows for logged-in routes and logout.
88
- Switch Playwright E2E coverage to click-based navigation flows with member role checks.
99
- Add Tasks and Reports placeholder pages with sidebar navigation coverage.
10+
- Remove the public home page and redirect `/` to `/dashboard`.
1011
- Add config bootstrap, env loading, and secure session defaults.
1112
- Add custom router, middleware stubs, and view renderer.
1213
- Add PDO DB helper, migrations runner, and seed data scripts.

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
$router
5555
->get('/', static function (Request $request) use ($config) {
56-
return View::render('home', ['title' => $config['app']['name'] ?? 'ThriftStack']);
56+
return Response::redirect('/dashboard');
5757
})
5858
->setName('home');
5959

tests/e2e/public-pages.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { test, expect } = require('@playwright/test');
22

3-
test('home page renders', async ({ page }) => {
3+
test('root redirects to login for signed-out users', async ({ page }) => {
44
await page.goto('/');
55

6-
await expect(page.getByRole('heading', { level: 1 })).toContainText('Welcome to');
6+
await expect(page.getByRole('heading', { level: 1 })).toHaveText('Login');
77
});
88

9-
test('support page is reachable from the footer', async ({ page }) => {
9+
test('support page is reachable from the footer when signed out', async ({ page }) => {
1010
await page.goto('/');
1111
await page.getByRole('link', { name: 'Support' }).click();
1212

views/home.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)