Update item fields queried & expand usage of primary aspect ratio (#1852)

## Description
Slight optimization to remove "child count" for grid pages. Adds back
"primary image aspect ratio" for several queries where its necessary.

Also updates extras cards to use the "primary image aspect ratio"
instead of a hard coded value.

Dev note: some light refactoring is also in this PR including renaming
the item fields lists to better reflect the intended usage in code

### Related issues
Fixes #1843

### Testing
Emulator, I tested many pages and views, but probably need to do "real
world" testing to see if I missed anything

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-08-17 22:54:15 -04:00 • committed by GitHub
parent c4264a3263
commit b064af7c4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 105 additions and 83 deletions

View file

@ -131,6 +131,19 @@ sealed interface RequestHandler<T> {
api: ApiClient,
request: T,
): Response<BaseItemDtoQueryResult>
/**
* Count the total number of possible results for the request.
*
* [request] should be efficient and use `limit = 0` and `enableTotalRecordCount = true`
*/
suspend fun countMatching(
api: ApiClient,
request: T,
): Int {
val result by execute(api, request)
return result.totalRecordCount
}
}
@Serializable