Skip to content

refactor: move code into features, components and types - #27

Merged
helderberto merged 1 commit into
mainfrom
refactor/structure-1-folders
Oct 24, 2026
Merged

helderberto merged 1 commit into
mainfrom
refactor/structure-1-folders

Conversation

@helderberto

Copy link
Copy Markdown
Owner

Context

Part 1 of 7 of a stack that brings src/ to the project-structure rules (helderberto/dotfiles#13): @ alias, components barrel, deep feature modules, views/, shared hooks/, types/, lib/ wrappers, kebab-case files, named exports, sibling tests. Each PR is based on the one below it. No behaviour or visual change in any of them.

Summary

  • Files renamed to kebab-case and moved: shared UI stays in src/components behind index.ts; posts, markdown, resume, theme and command-palette become src/features/*, each entered through its index.ts.
  • Post, Heading and resume types move to src/types.
  • Header, PostCard and SearchPosts switch from default to named exports.
  • Imports rewritten by script; most of the diff is renames.

Evidence

  • Before: 37 test files, 172 tests pass.
  • After: 37 test files, 172 tests pass; tsc and ESLint clean. vi.spyOn on a feature's barrel (@/features/posts) still stubs the page's calls.
  • Built output for the whole stack is compared with main in part 7.

Merge danger

Door: two-way

Blast radius: site-wide


Generated by Claude Code

Kebab-case file names, a components barrel, one index.ts per feature
(posts, markdown, resume, theme, command-palette), domain types in
src/types, and named exports for Header, PostCard and SearchPosts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DZqAJbwwPeQSQFaPLDDSfr
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Oct 24, 2026 10:46am UTC

@helderberto
helderberto merged commit eace9d1 into main Oct 24, 2026
2 checks passed
@helderberto
helderberto deleted the refactor/structure-1-folders branch October 24, 2026 10:54

This branch was successfully deployed

1 active deployment
Preview — 969c3334 Deployed Oct 24, 2026 by vercel[bot]
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.

2 participants