Skip to content

Fix rendering custom columns in file lists#60134

Merged
danxuliu merged 3 commits into
masterfrom
fix-rendering-custom-columns-in-file-lists
May 19, 2026
Merged

Fix rendering custom columns in file lists#60134
danxuliu merged 3 commits into
masterfrom
fix-rendering-custom-columns-in-file-lists

Conversation

@danxuliu
Copy link
Copy Markdown
Member

@danxuliu danxuliu commented May 4, 2026

Fixes #58233 , which is a regression introduced in #56743

CustomElementRender is used to render both IFileActions and IColumns. In the past both expected the same arguments, but in @nextcloud/files 4 the arguments expected by IFileAction changed (with a further adjustment in another beta). Therefore, now the API to render both of them is different, and currently CustomElementRender passes the arguments expected by IFileAction. Fortunately those arguments are a superset of those expected by IColumn, so they can be adapted when a CustomElementRender is used to render an IColumn.

Note that only E2E tests for the trashbin are included. Tests for the external storage file list were not added.

How to test (trashbin)

  • Open the Files app
  • Upload a file
  • Delete it
  • Open the trash bin

Result with this pull request

The original location is All files, deleted by is You and deletion date is few seconds ago

Result without this pull request

The original location and deleted by are Unknown, and deleted is A long time ago (in a galaxy f... sorry, today I had to :-P )

How to test (external storages)

  • Log in as an admin
  • Enable external storages
  • Open the External storages section in the Administration settings
  • Add an external storage
  • Open the Files app
  • Open the External storage section in the navigation bar

Result with this pull request

The storage type is the right type and the scope is System

Result without this pull request

The storage type is Unknown and the scope is Personal

@danxuliu
Copy link
Copy Markdown
Member Author

danxuliu commented May 4, 2026

/compile /

@danxuliu
Copy link
Copy Markdown
Member Author

danxuliu commented May 4, 2026

/backport to stable33

@danxuliu danxuliu added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 4, 2026
@danxuliu danxuliu marked this pull request as ready for review May 4, 2026 13:28
@danxuliu danxuliu requested review from a team and skjnldsv as code owners May 4, 2026 13:28
@danxuliu danxuliu requested review from sorbaugh and susnux and removed request for a team May 4, 2026 13:28
danxuliu added 2 commits May 18, 2026 00:33
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
CustomElementRender is used to render both IFileActions and IColumns.
However, the API to render both of them is different, and currently
CustomElementRender passes the arguments expected by IFileAction.
Fortunately those arguments are a superset of those expected by IColumn,
so they can be adapted when a CustomElementRender is used to render an
IColumn.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the fix-rendering-custom-columns-in-file-lists branch from 619922a to 7acdc00 Compare May 17, 2026 22:33
@danxuliu
Copy link
Copy Markdown
Member Author

/backport to stable34 please

@danxuliu
Copy link
Copy Markdown
Member Author

/compile /

@danxuliu danxuliu modified the milestones: Nextcloud 34, Nextcloud 35 May 17, 2026
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@danxuliu
Copy link
Copy Markdown
Member Author

danxuliu commented May 18, 2026

Cypress test keeps failing after several restarts, but it should be unrelated (and it is also failing in other pull requests). Passed after even more restarts 🙈

@danxuliu danxuliu merged commit 8c6b7f4 into master May 19, 2026
194 of 209 checks passed
@danxuliu danxuliu deleted the fix-rendering-custom-columns-in-file-lists branch May 19, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: NC 33 Delete Files – Columns Showing Missing or Unknown Data

4 participants