mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
8acc035efa
The "All saved" view read every list in full at the same time, and every collections:* websocket event started that again right away. An agent saving places one by one over MCP sends one event per place, so an open collections tab stacked up full reads of every list on the server. The union now goes through the same batched loader the trip's saved-places picker uses (four lists at a time), reloads asked for while it runs fold into one more pass, and a list or union read that lands after the user switched to something else is dropped instead of painting its places over the new view. The page waits for a run of events to settle before it reloads and keeps the selection on "All saved" like it already did on a single list. Desktop and phone share useCollections, so both get it. Refs #2559
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"src": {
|
|
"@typescript-eslint/no-non-null-assertion": 406,
|
|
"@typescript-eslint/no-misused-promises": 876,
|
|
"no-console": 88,
|
|
"complexity": 231,
|
|
"@typescript-eslint/no-explicit-any": 148,
|
|
"trek/no-swallowed-catch": 134,
|
|
"max-params": 35,
|
|
"trek/store-without-selector": 69,
|
|
"react-hooks/refs": 561,
|
|
"react-hooks/set-state-in-effect": 197,
|
|
"@typescript-eslint/no-floating-promises": 167,
|
|
"react-hooks/exhaustive-deps": 121,
|
|
"@typescript-eslint/no-unused-vars": 155,
|
|
"react-hooks/immutability": 28,
|
|
"max-lines-per-function": 133,
|
|
"react-hooks/static-components": 78,
|
|
"react-hooks/preserve-manual-memoization": 15,
|
|
"no-useless-assignment": 7,
|
|
"no-empty": 19,
|
|
"trek/no-window-globals": 42,
|
|
"react-refresh/only-export-components": 46,
|
|
"unused-disable-directive": 6,
|
|
"max-depth": 21,
|
|
"react-hooks/void-use-memo": 1,
|
|
"@typescript-eslint/no-unused-expressions": 2,
|
|
"react-hooks/purity": 2,
|
|
"preserve-caught-error": 53,
|
|
"no-useless-escape": 1
|
|
},
|
|
"suppressed": {
|
|
"@typescript-eslint/no-explicit-any": 40,
|
|
"react-hooks/exhaustive-deps": 46
|
|
},
|
|
"tests": {
|
|
"@typescript-eslint/no-explicit-any": 491,
|
|
"@typescript-eslint/no-non-null-assertion": 1949,
|
|
"@typescript-eslint/no-misused-promises": 22,
|
|
"@typescript-eslint/no-unused-vars": 51,
|
|
"@typescript-eslint/no-floating-promises": 33,
|
|
"trek/no-window-globals": 332,
|
|
"trek/no-swallowed-catch": 14,
|
|
"react-hooks/globals": 5,
|
|
"react-hooks/refs": 22,
|
|
"@typescript-eslint/no-this-alias": 1,
|
|
"trek/store-without-selector": 3,
|
|
"@typescript-eslint/no-unsafe-function-type": 2,
|
|
"no-console": 2,
|
|
"react-refresh/only-export-components": 1
|
|
}
|
|
}
|