mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Adopt master's ROM schema design (sibling_roms + files, batched
get_files_for_roms / get_siblings_for_roms) while preserving the v2-branch
features master lacks: per-user is_main_sibling on siblings and audio_meta
on rom files.
Conflict resolution:
- responses/rom.py: keep master's sibling_roms/files fields; re-graft
is_main_sibling via SiblingRomSchema.from_rom(rom, is_main_sibling=...);
restore the eager-relationship fallback in
SimpleRomSchema.from_orm_with_request (None sentinel) so the v2
/{id}/simple endpoint still returns siblings/files.
- roms_handler.py: get_siblings_for_roms now left-joins RomUser and returns
(Rom, is_main_sibling) tuples; keep both branch and master file helpers.
- drop the redundant branch-only sibling_ids field and
get_sibling_data_for_roms.
- generated types resolved to match (sibling_roms + files; RomFileSchema
keeps audio_meta and gains archive_members).
- update v2 components and the RelatedGameCard mock to read sibling_roms.
- fix stale exclude={"siblings"} -> "sibling_roms" in scan emit payloads.
- re-chain the audio_meta migration as 0083 (after master's 0082) to keep a
single Alembic head.
- package.json: union of branch tooling + master dependency bumps; lock
regenerated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
573 B
JSON
22 lines
573 B
JSON
{
|
|
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
"include": ["src/**/*.ts", "src/**/*.vue", "src/**/*.d.ts"],
|
|
"exclude": ["node_modules"],
|
|
"types": ["node", "lodash", "js-cookie", "vue-router", "vue"],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"lib": ["dom", "esnext"],
|
|
"noImplicitAny": true,
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@v2/*": ["./src/v2/*"]
|
|
},
|
|
"types": [
|
|
"./src/plugins/pinia.d.ts",
|
|
"./src/types/main.d.ts",
|
|
"vite/client"
|
|
]
|
|
}
|
|
}
|