Review 12.4 Merged

86349[BUGFIX] Show/hide upload progress and info container in empty folder

Sébastien Delcroix CR +2 V +2 Easy +4 −4 updated 10/02/24, 23:01

Commit message

Since introduction of "tile view" mode for filelist module in v12, the
progress bars were non longer visible when uploading files in an empty
folder, because the visibility of the empty parent (filelist) table
no longer toggles.

For v12, it was due to a wrong class selector
(`.t3-filelist-table-container` has been renamed to
`.t3-filelist-container`).

For main, in addition to this change, jQuery has been removed and during
this, the behaviour of the uploading files progress has changed.
Now the table that will contain the uploading files progress is created
"on the fly" and then set to hidden until upload starts.
It works fine for "tile view" but not for "list view" because this
table exists even if the folder is empty and does not have a "hidden"
attribute that serves visibility toggling.

This patch fixes these two cases separately regarding the branch :

* for v12 : just adapts the class selector
* for main : only render the table if folder is not empty

Consequently, the uploading files progress in empty folder is now
displayed in the same container for both "view" modes.
And in "list view" in a folder containing items, the progress is
displayed in the existing filelist.

This patch also fixes the hiding of the info container when the upload
starts.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 68

  1. Sébastien Delcroix uploaded patch set 1 09/26/24, 17:04

  2. core-ci voted on patch set 1 V +1 09/26/24, 17:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/66679

  3. Sébastien Delcroix commented on patch set 1 09/27/24, 12:21

    While working on this, I've noticed that the div.t3-filelist-info-container is still visible after upload. I may fix this within this patch too.
  4. Sébastien Delcroix uploaded patch set 2 V +1 09/27/24, 19:10

  5. Sébastien Delcroix commented on patch set 2 09/27/24, 19:10

    Reply

    Done
  6. core-ci voted on patch set 2 V +1 09/27/24, 19:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/66759

  7. Garvin Hicking voted on patch set 2 CR +2 V +2 10/02/24, 23:01

  8. Garvin Hicking merged patch set 3 10/02/24, 23:01