Skip to content

Fix rendering custom columns in file lists#60134

Open
danxuliu wants to merge 3 commits intomasterfrom
fix-rendering-custom-columns-in-file-lists
Open

Fix rendering custom columns in file lists#60134
danxuliu wants to merge 3 commits intomasterfrom
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 added 2 commits May 4, 2026 11:27
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
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

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@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
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

2 participants