mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
d118423570
Uploading photos into a journey gallery on desktop gave no sign that anything was happening until the toast at the end; the Upload button stayed clickable the whole time. Up to v4.0.0 the button sat inside the gallery and showed a spinner with "Uploading done/total" while it was disabled. When the button moved up into the page header (onRegisterUpload) that indicator was dropped, and the count kept being tracked with no reader. useGalleryUpload now also returns the progress it tracks, the gallery hands it up through onUploadProgress into useJourneyDetail, and the page's Upload button is disabled and shows the spinner with journey.editor.uploadingProgress while the files go, as it did before. Red before the fix: src/pages/JourneyDetailPage.wiring.test.tsx FE-JRN-DETWIRE-043 failed with "expected undefined to be [Function Mock]": the gallery was never given an onUploadProgress callback and the button never showed a count. FE-JRN-GALLERY-021 and FE-JRN-GALLERYUPLOAD-007 cover the gallery and the hook. No existing assertions changed.
26 lines
757 B
JSON
26 lines
757 B
JSON
{
|
|
"src": {
|
|
"@typescript-eslint/no-explicit-any": 155,
|
|
"@typescript-eslint/no-unused-expressions": 2,
|
|
"@typescript-eslint/no-unused-vars": 158,
|
|
"no-empty": 19,
|
|
"no-useless-assignment": 7,
|
|
"no-useless-escape": 1,
|
|
"preserve-caught-error": 53,
|
|
"react-hooks/exhaustive-deps": 123,
|
|
"react-refresh/only-export-components": 47,
|
|
"unused-disable-directive": 6
|
|
},
|
|
"suppressed": {
|
|
"@typescript-eslint/no-explicit-any": 44,
|
|
"react-hooks/exhaustive-deps": 46
|
|
},
|
|
"tests": {
|
|
"@typescript-eslint/no-explicit-any": 492,
|
|
"@typescript-eslint/no-this-alias": 1,
|
|
"@typescript-eslint/no-unsafe-function-type": 2,
|
|
"@typescript-eslint/no-unused-vars": 53,
|
|
"react-refresh/only-export-components": 1
|
|
}
|
|
}
|