Skip to content

Refactor/rename files and merge utils - #415

Merged
sajjadmrx merged 5 commits into
mainfrom
refactor/rename-files-and-merge-utils
Aug 13, 2026
Merged

Refactor/rename files and merge utils#415
sajjadmrx merged 5 commits into
mainfrom
refactor/rename-files-and-merge-utils

Conversation

@shakurt

@shakurt shakurt commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Fixed a typo'd filename: explorer.pge.tsx → explorer.page.tsx.

Merged src/utils into src/common/utils (two files: translate-error.ts, validators.ts), removing the redundant @/utils alias.

Renamed the remaining PascalCase component files to kebab-case (AuthRequiredModal.tsx, UpdateReleaseNotesModal.tsx, ReferralCodeSection.tsx).

Extended kebab-case to every remaining camelCase file and directory: hooks (useDebouncedValue.tsx → use-debounced-value.tsx), service hooks (getBookmarks.hook.ts → get-bookmarks.hook.ts), and directories (wigiArz → wigi-arz, wigiPad → wigi-pad, moodLog → mood-log, topUsers → top-users, comboWidget → combo-widget, marketWallpaper → market-wallpaper, allFriends → all-friends). 97 files renamed, all import paths (relative, @/ alias, and CSS) updated to match.

Runtime identifiers — enum values, object keys, event names (e.g. WidgetKeys.wigiPad) — are untouched; this is filenames only.

shakurt and others added 5 commits August 11, 2026 16:09
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extend the kebab-case convention to the files and directories the
original PascalCase-component pass didn't cover: hooks (useXxx.tsx),
service hooks (getXxx.hook.ts, xxxService.hook.ts), a few components
and utils, and the wigiArz/wigiPad/comboWidget/moodLog/topUsers/
allFriends/marketWallpaper directories. 97 files renamed; all import
paths (relative and @/ alias, including CSS) updated to match. Runtime
identifiers, enum values, and object keys (e.g. WidgetKeys.wigiPad)
are untouched — only filenames changed.
…urces

tsconfig.json only got noEmit via extending .wxt/tsconfig.json, which
is gitignored and generated by `wxt prepare` (run through postinstall).
Anyone who ran tsc directly — before install finished, or via an
editor's own compile action instead of `bun run compile` — hit a
missing-extends error and fell back to bare tsc defaults: no noEmit,
no outDir, emitting a .js file beside every .ts/.tsx it touched.

Setting noEmit in tsconfig.json's own compilerOptions closes that gap
regardless of whether the extended config resolves. Verified by
removing .wxt/ and running bare tsc: previously produced ~450 stray
.js files across src/, background/, and entrypoints/; with this fix,
zero.
@sajjadmrx
sajjadmrx merged commit bf20bf4 into main Aug 13, 2026
2 checks passed
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