Skip to content

fix(web): rename UserDetailTabs so the web app builds on macOS and Windows - #1802

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/web-case-insensitive-build
Oct 3, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/web-case-insensitive-build

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1798
Related issue: N/A
Validation tasks: none

The web app no longer builds on macOS or Windows. #1710 added UserDetailTabs.tsx next to the existing userDetailTabs.ts in web/src/pages/admin-users/detail/. On a case-insensitive file system the import of ./UserDetailTabs resolves to the .ts file, and tsc -b fails with TS2724 and TS1149, so make build and make frontend stop for contributors on those systems. Linux CI and the Docker build are unaffected.

This renames the tab-bar component to UserDetailTabBar and updates its one caller.

Approach

The component file was the one to rename: userDetailTabs.ts holds 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 build passes on macOS (case-insensitive APFS); it failed with TS2724/TS1149 before.
  • AdminUserDetail tests, ESLint and Prettier pass on the touched files.
  • The full gate from CONTRIBUTING.md ran on a branch combining all nine Series — Web #1252 fixes: every step passes except make test-go. Its failures also occur on unmodified main on this macOS host (hardware-acceleration probe tests whose fake ffmpeg is killed, and TestAdminResourceCapabilitiesAndScope); three jellycompat transcode-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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (running in T3 Code)
  • Tool(s): Claude Code (Bash, Read, Edit, Write, sub-agents, browser automation through the T3 Code preview), GitHub CLI, Docker, FFmpeg
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: An independent Claude Code review agent (claude-opus-5-5) checked the diff against main for correctness and searched the repository for other case-only path collisions. No findings.

Note

Rename UserDetailTabs component to UserDetailTabBar

Renames 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.

@silo-kody

silo-kody Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d28a50f3-05e0-4065-99f1-ad8c5e6a52b7

📥 Commits

Reviewing files that changed from the base of the PR and between a4b4e36 and 1aeb664.

📒 Files selected for processing (1)
  • web/src/pages/AdminUserDetail.tsx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The exported user detail tab component is now named UserDetailTabBar. AdminUserDetail imports and renders it with the same user and active-tab props.

Changes

User detail tabs

Layer / File(s) Summary
Rename and wire the tab component
web/src/pages/admin-users/detail/UserDetailTabBar.tsx, web/src/pages/AdminUserDetail.tsx
The exported component and its page import and render references use UserDetailTabBar. The props and rendered tab behavior remain unchanged.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: quick104

Merge Risk: ⚪ Minimal · up to 1aeb6

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the case-sensitive filename collision, the component rename, the affected platforms, and the validation results. It directly matches the changeset and objectives.
Title check ✅ Passed The title clearly and concisely identifies the component rename and its purpose: restoring web builds on macOS and Windows.
Linked Issues check ✅ Passed The PR satisfies the coding requirement in issue #1798. It renames the colliding component module to UserDetailTabBar.tsx, renames the exported component, and updates AdminUserDetail to use it. Th…
Out of Scope Changes check ✅ Passed The reported changes are limited to the module rename, the component export rename, and the single caller update. Props, tab state, selection handling, and rendered behavior remain unchanged. These ch…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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
@Rhainland
Rhainland force-pushed the fix/web-case-insensitive-build branch from a4b4e36 to 1aeb664 Compare October 2, 2026 20:20
@silo-kody

silo-kody Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

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.

[bug] Web build fails on case-insensitive file systems (macOS, Windows)

2 participants