Commit b98d43c
authored
Reorganize folders for clarity and maintainability (#21)
## ✅ What
- Reorganized `ui/` into three tiers: `elements/` (primitives like Link,
Image), `layout/` (site structure like Header, Footer), and `sections/`
(page-specific blocks like PostHeader, LikesRow)
- Created `seo/` folder consolidating metadata constants and JSON-LD
generation (was scattered across `utils/` and `app/`)
- Moved `app/page.tsx` → `app/(home)/page.tsx` using Next.js route
groups to reduce root clutter
- Moved `public/_redirects.test.ts` → `io/cloudflare/_redirects.test.ts`
(tests shouldn't be in published assets)
- Moved `io/retry` → `io/utils/retry` for better organization
- Deleted dead code: `io/tmdb/constants.ts` (never used),
`io/notion/getPage.ts` (unused helper)
- Deleted `ci/config.ts` and inlined all constants into their single-use
files (only `OUT_DIR` was used in 2 places, rest were single-use)
## 🤔 Why
- Three-tier `ui/` structure makes it immediately clear where to add new
components (reusable primitive? page-specific section? site-wide
layout?)
- Consolidating SEO code in one place makes metadata handling easier to
find and maintain
- Route groups reduce `app/` root clutter while maintaining Next.js
routing conventions
- Removing unnecessary abstractions (single-use config files, unused
code) reduces cognitive overhead when browsing the codebase1 parent 13e7cec commit b98d43c
99 files changed
Lines changed: 1833 additions & 1190 deletions
File tree
- .claude
- app
- (home)
- (prose)
- [slug]
- ui
- blog
- [slug]
- blog
- likes
- rss.xml
- ci
- lighthouse
- metadata
- io
- cloudflare
- cloudinary
- itunes
- notion
- ui
- tmdb
- utils
- seo
- fonts
- json-ld
- pages
- ui
- elements
- layout
- sections
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
| 17 | + | |
20 | 18 | | |
| 19 | + | |
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 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 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments