Skip to content

Optionally sort imported add-on files by category - #877

Open
Pachinko0 wants to merge 1 commit into
Doezer:mainfrom
Pachinko0:codex/pr-category-aware-import
Open

Optionally sort imported add-on files by category#877
Pachinko0 wants to merge 1 commit into
Doezer:mainfrom
Pachinko0:codex/pr-category-aware-import

Conversation

@Pachinko0

Copy link
Copy Markdown

Summary

  • add a per-user, default-off setting for sorting files within directory imports
  • place detected DLC, updates, and extras under dlc/, update/, and extra/
  • recompute categories on the server when a pending import is manually confirmed

Compatibility and safety

  • imports are unchanged while the setting is disabled
  • single-file imports keep the existing flat Platform/Game.ext layout even when enabled
  • existing category directories are preserved instead of duplicated (for example, no dlc/dlc/)
  • empty directories fall back to the existing whole-directory import behavior
  • migration and snapshot were generated with npm run db:generate

PR relationship

This is independently reviewable against main. Packs/Addons support from #876 will be integrated after merge ordering is known, avoiding a stacked diff here.

Validation

  • focused import strategy and ImportSettings tests: 21 passed
  • reviewed-import category placement test: 1 passed, 29 skipped
  • npm run check: passed
  • full test suite not run

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Pachinko0, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e59d2972-ff56-417f-914f-d60e02622d4b

📥 Commits

Reviewing files that changed from the base of the PR and between e0bea9e and e9f58cb.

📒 Files selected for processing (14)
  • client/__tests__/ImportSettings.test.tsx
  • client/src/components/ImportSettings.tsx
  • migrations/0026_chemical_nightmare.sql
  • migrations/meta/0026_snapshot.json
  • migrations/meta/_journal.json
  • server/__tests__/helpers/import-test-helpers.ts
  • server/__tests__/import_manager.test.ts
  • server/__tests__/import_strategies.test.ts
  • server/__tests__/storage.test.ts
  • server/routes/import.ts
  • server/services/ImportManager.ts
  • server/services/ImportStrategies.ts
  • server/storage.ts
  • shared/schema.ts

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.

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@Pachinko0
Pachinko0 marked this pull request as ready for review August 3, 2026 15:49
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

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.

1 participant