Repository navigation
fix(web): rename UserDetailTabs so the web app builds on macOS and Windows - #1802
Conversation
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe exported user detail tab component is now named ChangesUser detail tabs
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to No merge-blocking issue is evident in the supplied change context; the tab component binding and behavior remain consistent. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
UserDetailTabs.tsx and userDetailTabs.ts in the admin user detail folder differed only by case. On case-insensitive file systems (macOS default APFS, Windows) the "./admin-users/detail/UserDetailTabs" import resolved to userDetailTabs.ts, so tsc -b failed with TS2724/TS1149 and the web build broke for macOS and Windows contributors. Linux CI did not see it. Rename the tab strip component and its file to UserDetailTabBar so the two module names no longer collide. No behavior change. Closes Silo-Server#1798
a4b4e36 to
1aeb664
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Closes #1798
Related issue: N/A
Validation tasks: none
The web app no longer builds on macOS or Windows. #1710 added
UserDetailTabs.tsxnext to the existinguserDetailTabs.tsinweb/src/pages/admin-users/detail/. On a case-insensitive file system the import of./UserDetailTabsresolves to the.tsfile, andtsc -bfails with TS2724 and TS1149, somake buildandmake frontendstop for contributors on those systems. Linux CI and the Docker build are unaffected.This renames the tab-bar component to
UserDetailTabBarand updates its one caller.Approach
The component file was the one to rename:
userDetailTabs.tsholds the tab type and URL helpers that six other files import, while the component has a single caller. No other paths in the repository differ only by case.Validation
pnpm run buildpasses on macOS (case-insensitive APFS); it failed with TS2724/TS1149 before.AdminUserDetailtests, ESLint and Prettier pass on the touched files.make test-go. Its failures also occur on unmodifiedmainon this macOS host (hardware-acceleration probe tests whose fake ffmpeg is killed, andTestAdminResourceCapabilitiesAndScope); threejellycompattranscode-session tests that failed once under full-suite load pass in isolation on both. Linux CI is the authority for those.Risks
None identified. A later file pair that differs only by case would break the macOS build the same way; a CI check for that is a possible follow-up.
Checklist
AI Disclosure
mainfor correctness and searched the repository for other case-only path collisions. No findings.Note
Rename
UserDetailTabscomponent toUserDetailTabBarRenames the component and its file, and updates the import and JSX in AdminUserDetail.tsx. The web app failed to build on macOS and Windows. No props, tab behavior, or rendering logic changed.
Macroscope summarized 1aeb664.