Commit 4820988
authored
Refactor: Align with Next.js 16 Component Architecture (#1505)
feat: refactor layout for Next.js 16 client/server boundaries
Refactors the root layout to align with Next.js 16's stricter client/server component architecture.
- Creates a new `app/main.tsx` client component to consolidate all client-side providers.
- Simplifies `app/layout.tsx` to a pure server component, responsible only for the root HTML structure and metadata.
- Updates `components/Providers.tsx` to remove redundant theme providers.
This change resolves build failures related to metadata exports from client components and establishes a clear, maintainable pattern for the application's provider hierarchy.
chore: update visual regression snapshots
Updates the Playwright visual regression snapshots to reflect the changes introduced by the architectural refactor.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent fbe34bd commit 4820988
8 files changed
Lines changed: 34 additions & 34 deletions
File tree
- app
- components
- tests/playwright/visual-regression.spec.ts-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 3 | + | |
13 | 4 | | |
14 | 5 | | |
15 | 6 | | |
| |||
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 40 | + | |
64 | 41 | | |
65 | 42 | | |
66 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 9 | + | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
0 commit comments