mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 06:56:35 +00:00
5daa2a0311
The server sends accommodation:created and accommodation:updated to the whole trip, the assistant's writes included, but the client listed both as ignored and reloaded stays only after a delete. A stay the assistant, a fellow traveller, a plugin or a booking import added therefore showed in the sidebar, on the map and in the day panel only after a reload. Both events now refresh the stays like the deletes do, in the planner (desktop and phone, which share its hook) and in the day panel. The refresh is bundled per burst, since one assistant step can apply many changes, a newer answer always wins over an older one, and a stay being edited in the day panel that was deleted or moved elsewhere closes its editor instead of letting the form overwrite another stay. A browser test books a stay from a second context and sees it appear in the open planner, on the desktop and on the phone.
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"src": {
|
|
"@typescript-eslint/no-non-null-assertion": 404,
|
|
"@typescript-eslint/no-misused-promises": 870,
|
|
"no-console": 88,
|
|
"complexity": 230,
|
|
"@typescript-eslint/no-explicit-any": 147,
|
|
"trek/no-swallowed-catch": 132,
|
|
"max-params": 35,
|
|
"trek/store-without-selector": 69,
|
|
"react-hooks/refs": 557,
|
|
"react-hooks/set-state-in-effect": 196,
|
|
"@typescript-eslint/no-floating-promises": 166,
|
|
"react-hooks/exhaustive-deps": 119,
|
|
"@typescript-eslint/no-unused-vars": 127,
|
|
"react-hooks/immutability": 28,
|
|
"max-lines-per-function": 133,
|
|
"react-hooks/static-components": 78,
|
|
"react-hooks/preserve-manual-memoization": 12,
|
|
"no-useless-assignment": 7,
|
|
"no-empty": 19,
|
|
"trek/no-window-globals": 41,
|
|
"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": 1945,
|
|
"@typescript-eslint/no-misused-promises": 22,
|
|
"@typescript-eslint/no-unused-vars": 51,
|
|
"@typescript-eslint/no-floating-promises": 33,
|
|
"trek/no-window-globals": 331,
|
|
"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
|
|
}
|
|
}
|