Skip to content

feat(recent-files): add recent_files_limit config on files settings#58761

Draft
cristianscheid wants to merge 2 commits intomasterfrom
feat/1700/limit-recent-files
Draft

feat(recent-files): add recent_files_limit config on files settings#58761
cristianscheid wants to merge 2 commits intomasterfrom
feat/1700/limit-recent-files

Conversation

@cristianscheid
Copy link
Contributor

@cristianscheid cristianscheid commented Mar 6, 2026

  • Resolves: #

Summary

  • Adds recent_files_limit option to the Files settings menu, persisted in the oc_preferences table.

  • Allows users to dynamically configure the maximum number of items displayed in the Recent tab of the Files app.

  • The limit is passed as a parameter to getRecentSearchCustom() method from the library counterpart at nextcloud-libraries/nextcloud-files.

  • Adds <nc:last_activity> DAV property (selectable and sortable)

    • <nc:last_activity> resolves to max(mtime, upload_time) for a given file/folder, ensuring recently uploaded files with an older mtime are correctly ranked in the Recent section

Visuals

Screencast.from.06-03-2026.18.53.02.webm

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
@cristianscheid cristianscheid force-pushed the feat/1700/limit-recent-files branch 3 times, most recently from 654547e to 0ee97af Compare March 18, 2026 13:07
@cristianscheid cristianscheid self-assigned this Mar 18, 2026
@cristianscheid
Copy link
Contributor Author

/compile

… max between upload_time and mtime

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the feat/1700/limit-recent-files branch from 0ee97af to a999f0e Compare March 18, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant