feat(fileDto, folderDto): add is_favorite + is_shared

- provide is_shared and is_favorite information in DTO, information propagated as badge/buttons per items
      regarding performances I try to be minimalis on SQL to prevent any perf regression

    - remove old set of sharedids and favoriteids (was not functionnal anymore)
    - fix date picker (no past selection) in grant
    - fix contextmenu close on /files section
This commit is contained in:
Edouard Vanbelle
2026-07-22 00:36:14 +02:00
parent b7d5d41c90
commit d9987782c4
50 changed files with 1140 additions and 287 deletions
@@ -450,6 +450,10 @@ fn file_dto_from_search(fr: &crate::application::dtos::search_dto::SearchFileRes
// §14 provenance not selected by the search result DTO.
created_by: None,
updated_by: None,
// NextCloud search doesn't render the SPA badges; safe
// defaults, dropped by the WebDAV/NC XML property serializer.
is_favorite: false,
is_shared: false,
}
}
@@ -483,6 +487,10 @@ fn folder_dto_from_search(
// §14 provenance not selected by search results.
created_by: None,
updated_by: None,
// See file_dto_from_search: NC/DAV property serializer drops
// these; safe default.
is_favorite: false,
is_shared: false,
}
}
@@ -2122,6 +2122,10 @@ mod tests {
// §14 provenance not relevant to path-mapper tests.
created_by: None,
updated_by: None,
// Caller state flags not read by the WebDAV path mapper;
// Nextcloud DAV surfaces don't render the SPA badges.
is_favorite: false,
is_shared: false,
}
}