From 60195aefddd09553a5ce56408c7aa1add6ae0399 Mon Sep 17 00:00:00 2001 From: James Manuel Date: Wed, 20 May 2026 16:47:49 +0200 Subject: [PATCH 1/2] feat(overview): add All / Mine / Shared with me filter chips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add owner-based filtering to the files section: - 'Mine' (default): files owned by the current user that are not on a shared or group mount (mirrors apps/files PersonalFiles filter) - 'Shared with me': files where nc:mount-type === 'shared' - 'All': no filter applied Both properties (oc:owner-id → node.owner, nc:mount-type) are already returned by getDavProperties() so no extra API call is needed. Three NcButton chips (size=small, aria-pressed) in a role=group below the section title give keyboard-accessible toggle behaviour. The empty state is moved inside the section so the chips remain visible when a filter yields no results, allowing the user to switch back. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: James Manuel --- src/views/OfficeOverview.vue | 70 ++++++++++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 11 deletions(-) diff --git a/src/views/OfficeOverview.vue b/src/views/OfficeOverview.vue index c41dea6819..9cf5d7a702 100644 --- a/src/views/OfficeOverview.vue +++ b/src/views/OfficeOverview.vue @@ -44,13 +44,6 @@ - - - -

@@ -66,7 +59,37 @@

-
+
+ + {{ t('richdocuments', 'All') }} + + + {{ t('richdocuments', 'Mine') }} + + + {{ t('richdocuments', 'Shared with me') }} + +
+ + + + + +
@@ -135,6 +158,7 @@