Repository navigation
Description
Shortcuts feature will take advantage of the Shares tab in the bottom bar:
Current behaviour
Shares tab is active and shows the list of Shared with me items. Folders in the list are browseable and files are downloadable. Both files and folders can be set as av. offline.
Expected behaviour
Shares view should the list of items that are shared with me, including info like sync/no sync, or the user who shared. Also, the items in the list should respect the permission the were shared.
Documents provider should handle the Shares folder as a space, like now.
How to get the info:
GET https://<url>/graph/v1beta1/me/drive/sharedWithMe
Response's body will be a json object, that includes a value, an array with the items like:
{
"value" : [
{
"@UI.Hidden" : false,
"@client.synchronize" : true,
"createdBy" : {
"user" : {
"@libre.graph.userType" : "Member",
"displayName" : "Mark Phillips",
"id" : "d68863e7-f2ea-4be6-92c7-02c5b7d7fd35"
}
},
"eTag" : "\"ba0e6781b2b0968c394dfba58872db1a\"",
"file" : {
"mimeType" : "image/jpeg"
},
"id" : "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!7f3fe702-9218-4dd5-b808-6ec8415f8690:d68863e7-f2ea-4be6-92c7-02c5b7d7fd35:3f6fae85-9b13-4a12-b3e6-15cfd758d35c",
"lastModifiedDateTime" : "2015-12-31T09:20:46Z",
"name" : "600_0985.JPG",
"parentReference" : {
"driveId" : "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
"driveType" : "virtual",
"id" : "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!a0ca6a90-a365-4782-871e-d44447bbc668"
},
"remoteItem" : {
"createdBy" : {
"user" : {
"@libre.graph.userType" : "Member",
"displayName" : "Mark Phillips",
"id" : "d68863e7-f2ea-4be6-92c7-02c5b7d7fd35"
}
},
"eTag" : "\"ba0e6781b2b0968c394dfba58872db1a\"",
"file" : {
"mimeType" : "image/jpeg"
},
"id" : "7f3fe702-9218-4dd5-b808-6ec8415f8690$d68863e7-f2ea-4be6-92c7-02c5b7d7fd35!b0f37f7d-1f6c-4dc8-8fb6-dabe7834f2ec",
"lastModifiedDateTime" : "2015-12-31T09:20:46Z",
"name" : "600_0985.JPG",
"parentReference" : {
"driveId" : "7f3fe702-9218-4dd5-b808-6ec8415f8690$d68863e7-f2ea-4be6-92c7-02c5b7d7fd35!d68863e7-f2ea-4be6-92c7-02c5b7d7fd35",
"driveType" : "personal"
},
"permissions" : [
{
"createdDateTime" : "2026-10-16T08:19:33.256651171Z",
"grantedToV2" : {
"user" : {
"@libre.graph.userType" : "Member",
"displayName" : "John Smith",
"id" : "1f32db6f-69cd-4708-8d5b-07173af208ac"
}
},
"id" : "7f3fe702-9218-4dd5-b808-6ec8415f8690:d68863e7-f2ea-4be6-92c7-02c5b7d7fd35:3f6fae85-9b13-4a12-b3e6-15cfd758d35c",
"invitation" : {
"invitedBy" : {
"user" : {
"@libre.graph.userType" : "Member",
"displayName" : "Mark Phillips",
"id" : "d68863e7-f2ea-4be6-92c7-02c5b7d7fd35"
}
}
},
"roles" : [
"2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
]
}
],
"size" : 3564157,
"spaceId" : "7f3fe702-9218-4dd5-b808-6ec8415f8690$d68863e7-f2ea-4be6-92c7-02c5b7d7fd35"
},
"size" : 3564157
},
{
...
},
{
...
}
]
}
endpoint contains much info.
Only to list those shares which "@UI.Hidden" property is false
The boolean field "@client.synchronize" could be reflected. That field points to let clients to get the files, but. On the left side of the item size, together with the sharing badge, another icon could be placed to show if the sync is enabled or disabled. Just as a extra info.
Other relevant fields: sharing permission, and the sharee, in case it could be displayed somehow, so that the user knows who shared.
Operations available: same as current behaviour: av offline, send/open with for files, browsing for folders. Share option available because the permalink reachability. But, inside the Share panel, sections Share with people and public links must be hidden. Just the permalink visible. This behaviour only affects the Shared with me . Shared with others and Shared via link should show such sections.
In case of folder browsing: if the sharee has edit permissions, the FAB button should be displayed to add new content inside. Web client also allows renaming and copying for items inside of a folder, but the copy is via clipboard, not available in Android app. Not a must.
Other considerations
If there is no shares to show in the tab, there is a placeholder view No shares. This is the example based in web client:
Pending tasks
- Grid mode / sort option
TASKS
- Research (if needed)
- Create branch feature/shared_with_me_shortcut
- Development tasks
- Implement the new logic and network operation
- Display the shares screen with all the info(size, name, sharer...)
- Display the synchronized badge
- Hide the Shares and Public links section from Share screen
- ...
- Implement unit tests (if needed)
- Code review and apply changes requested
- Design test plan
- QA
- Merge branch feature/feature_name into master
Activity
[-][WIP] [FEATURE REQUEST] Sharing shortcuts[/-][+][WIP] [FEATURE REQUEST] Sharing NG: shortcuts[/+][-][WIP] [FEATURE REQUEST] Sharing NG: shortcuts[/-][+][FEATURE REQUEST] Sharing shortcuts[/+][-][FEATURE REQUEST] Sharing shortcuts[/-][+][FEATURE REQUEST] Sharing NG: Sharing shortcuts[/+]joragua commentedon Nov 18, 2026
Shared with me
Problem
The
Sharestab does not use the GraphsharedWithMeendpoint. For a spaces-enabled account,FileDisplayActivity.navigateTo(FileListOption.SHARED_BY_LINK)either mounts aMainFileListFragmentrooted atstorageManager.getRootSharesFolder()— a plain WebDAV listing of the Shares jail — or, when that root folder has not been cached yet, falls back toSharesFragment, a placeholder that renders theNo sharesempty-dataset view and never queries the server at all. Either way the list carries no sharing context:OCFilehas no field for who shared the resource, so the user sees a bare file list and has to open the web app to find out who shared an item. The client also has no notion of the@UI.Hiddenflag, so shares the user has hidden cannot be honoured.The same Shares jail is exposed to other apps through the Documents Provider, where it is listed at the account root as a space row whose document id is the Shares jail root
OCFile.idand whose children come from a WebDAV sync of that folder. Moving the in-app list to the Graph endpoint without touching the provider would leave the two surfaces showing different things, and would risk breaking the provider's folder altogether if the in-app flow stops being what keeps the Shares space row and the jail rootOCFilepopulated.Desired behavior
The
Shared with melist in theSharestab is populated fromGET /graph/v1beta1/me/drive/sharedWithMeinstead of the WebDAV Shares jail listing. Only shares whose@UI.Hiddenisfalseare listed. Each entry shows the resource name and size as today, plus who shared it. Folders stay browseable, files stay downloadable, and both can still be set as available offline. TheShareoption stays available so the permalink remains reachable, but inside the share panel theShare with peopleandPublic linkssections are hidden — only the permalink button is left.Entries the server marks as synchronized (
@client.synchronizeset totrue) carry a sync badge, shown next to the sharing badge and to the left of the item size, mirroring the badge the web client shows, so the user can tell at a glance whether a resource is synchronized.The
Sharesfolder exposed by the Documents Provider is adapted so it keeps showing the same set of resources as the in-appShared with melist, and keeps opening and listing correctly regardless of whether the in-app list still relies on the Shares jail root folder being cached.User stories
Shared with melist to come from the server's own list of shares, so it matches what the web app shows me.Sharesfolder to show the same resources as the app'sShared with melist, so both surfaces agree.Constraints
Shared with melist is covered here. The upper tab bar hosting the three lists (With me/With others/Via link) is introduced by the issue that adds the second list; until then theSharestab keeps showing theShared with melist full screen.@client.synchronizeflag as read-only information. It is not a control: tapping it does nothing and it is unrelated to the app's available-offline state, which keeps using its own indicator.Sharesfolder is touched; no new folders are added for the other two lists.Acceptance criteria
Sharestab issuesGET /graph/v1beta1/me/drive/sharedWithMefor the current account.@UI.Hiddenisfalseare listed.@client.synchronizeistrueshows the sync badge next to the sharing badge, to the left of the item size.@client.synchronizeisfalseor absent shows no sync badge.No shares/You are not collaborating on other people's resources.) is shown only when the endpoint returns no visible shares.Share with peopleand thePublic linkssections.Sharesfolder still appears at the account root in the Documents Provider and opens without errors, with or without a prior visit to theSharestab.@UI.Hiddenset totruedo not appear there either.Sharesfolder keeps working as it does today, and create/rename/delete stay gated by the permissions of the item as before.Sharestab and Documents Provider behaviour untouched.Out of scope
Shared with otherslist (sharedByMe), both in the app and in the Documents Provider.Shared via linklist (sharedByMe, link permissions), both in the app and in the Documents Provider.Assumptions
GET /graph/v1beta1/me/drive/sharedWithMetakes no query parameters and returns the full list invalue; no pagination handling is needed.remoteItemcarries the real resource (id,name,size,file.mimeType,spaceId,parentReference.driveId), while the entry's ownparentReference.driveIdis the virtual Shares drive — already known in the codebase asOCSpace.SPACE_ID_SHARES.@client.synchronizelives on the entry itself (not insideremoteItem) and is a plain boolean, so a missing value is treated asfalse.OCFilerows — the Graph response drives and enriches the list, it does not replace file storage.Sharesfolder through the Shares space row (SPACE_ID_SHARES) plus the jail rootOCFile, so both rows must keep being populated and refreshed no matter what the in-app list does.ShareActivity.setupFileHeader()→permanentLinkButton), outsideGraphShareFragment, so hiding the fragment's two sections leaves the permalink visible with no header change.Implementation notes
The
Sharestab, its navigation entry, its empty state and its Documents Provider folder already exist; what is missing is the Graph data source behind them and the enriched list on top.Already present (no changes expected, verify only):
bottom_navbar_menu.xmlitemnav_shared_by_link_files, retitled toR.string.bottom_nav_shareswith theic_ocis_sharesicon for spaces-enabled accounts inDrawerActivity.setSpacesVisibilityBottomBar().FileDisplayActivity.navigateTo(),FileListOption.SHARED_BY_LINKbranch (FileDisplayActivity.kt:1833-1848) plusinitAndShowListOfShares().SharesFragment(owncloudApp/.../presentation/shares/SharesFragment.kt),shares_fragment.xml, theitem_empty_datasetinclude and theshares_list_empty_title/shares_list_empty_subtitlestrings.OCSpace.SPACE_ID_SHARES.DocumentsStorageProvider.queryChildDocuments()already adds the Shares folder at the account root viaGetSpaceByIdForAccountUseCase(accountName, SPACE_ID_SHARES)+GetFileByRemotePathUseCase(ROOT_PATH, SPACE_ID_SHARES)→SpaceCursor.addSpace(...)(DocumentsStorageProvider.kt:229-244); its children fall through to the regularFileCursorbranch backed bySynchronizeFolderUseCase(REFRESH_FOLDER), and the space row itself is kept fresh bysyncSpacesWithServer()→RefreshSpacesFromServerAsyncUseCase.SpaceCursor.addSpace()derives the row display name fromspace.name, the icon fromic_spacesandFLAG_DIR_SUPPORTS_CREATEfrom the root folder permissions.GETpattern to copy:GetRemoteGraphSharesForFileOperation(GetMethod+ Moshi +RemoteOperationResult), exposed throughShareService.getGraphShares(spaceId, itemId).permissionsarray:MemberPermissionResponse,GrantedToV2Response,UserResponse,FileResponseinlib/resources/spaces/responses/SpacesResponse.kt.item_file_list.xmlhas ashare_icons_layoutLinearLayoutanchored to the start offile_list_size, holding 15dpImageViews (shared_via_users_icon,shared_by_link_icon) tinted with@color/list_item_lastmod_and_filesize_text;FileListAdaptertoggles the row and each icon (FileListAdapter.kt:200-204).grid_item.xmlcarries the same row.FileListAdapteralready shows it forfile.isSharedWithMe(FileListAdapter.kt:201).ShareActivity.setupFileHeader()→binding.permanentLinkButton, independent ofGraphShareFragment.Missing (the work for this issue):
owncloudComLibrary: newGetRemoteSharedWithMeOperationunderlib/resources/shares/targetinggraph/v1beta1/me/drive/sharedWithMe, plus response models for the drive-item payload (value[],@UI.Hidden,@client.synchronize,createdBy,remoteItem,parentReference), reusingMemberPermissionResponse& co. forpermissions.owncloudComLibrary: expose it onShareServiceand its implementation (getSharedWithMe()), next togetGraphShares.owncloudData: remote datasource + mapper + repository method, followingOCRemoteShareDataSource/OCShareRepository, or a dedicated datasource if the payload does not map cleanly ontoOCShare.owncloudDomain: model for a shared-with-me entry (resource + sharer + hidden flag + synchronized flag, the latter feeding the badge) andGetSharedWithMeAsyncUseCase.owncloudApp: aSharesViewModelbackingSharesFragment, exposing the list as aFlowofUIResultplus a refresh action.owncloudApp: turnSharesFragmentfrom a placeholder into the real list — RecyclerView + adapter rendering name, size, sharer and the sync badge, swipe to refresh, empty-dataset view only when the server returns no visible share, errors in a snackbar — keeping folder browsing, file download and available offline wired to the existing file actions.owncloudApp: new vector drawable for the sync badge plus its content-description string. No existing asset fits —ic_available_offlineandsync_pinalready mean the app's own available-offline / local sync state and reusing either would read as that instead of the server's synchronize flag.owncloudApp: add the sync badgeImageViewto the shares list item layout inside the same badge row as the sharing icon, following the 15dp size and@color/list_item_lastmod_and_filesize_texttint ofshare_icons_layout, and toggle it from the entry's synchronized flag in the shares adapter.owncloudApp: route theSharestab toSharesFragmentfor spaces-enabled accounts instead of the current "is the Shares jail root cached?" fork innavigateTo(FileListOption.SHARED_BY_LINK).owncloudApp: hidemembers_sectionandpublic_links_sectioninGraphShareFragmentwhen the file is shared with me, leaving the header permalink as the only sharing affordance.Sharesfolder agree with the new list — apply the same@UI.Hiddenexclusion to what is listed under the Shares jail root, unless the WebDAV jail listing is confirmed to exclude those shares already (see below).OCFile.queryChildDocuments()resolves both by id/path, so ifSharesFragmentno longer depends ongetRootSharesFolder(), the spaces + jail-root refresh must stay wired (the provider already triggerssyncSpacesWithServer()on its own, so the gap, if any, is the jail rootOCFile).RemoteDataSourceModule,RepositoryModule,UseCaseModuleandViewModelModule.OCRemoteShareDataSourceTestandOCShareRepositoryTest, with factories added toowncloudTestUtil. The remote operation, the use case and the presentation layer are not covered by tests in this issue.Verify before implementing:
remoteItem.permissions[].invitation.invitedBy.useror fromcreatedBy.user. Both are present in the sample payload and hold the same user; pick one and keep it consistent.grid_item.xmlhas the same badge row, so it is cheap, but the shares list only ships in list mode in this issue.@UI.Hiddenshares server-side. If it does, the Documents Provider needs no filtering change and only the no-regression check applies; if it does not, the same exclusion has to be applied there too.Sharesrow in the Documents Provider should keepspace.name+ic_spacesor be aligned with the tab (bottom_nav_shares+ic_ocis_shares) — cosmetic only, worth agreeing with design before changing it.FLAG_DIR_SUPPORTS_CREATEis correct on theSharesrow, given it is a jail root rather than a writable folder.FileListOptionhas noSHARED_WITH_MEvalue — the tab still reusesSHARED_BY_LINK, which also feedsgetMenuItemForFileListOption(), the toolbar title inupdateToolbar()andMainFileListViewModel.onlySharedByLinkFiles. Decide whether a new enum value is needed now or whether reusing the existing one is acceptable until the other two lists land.OCFileand a WebDAV path, given the Graph response identifies the item byremoteItem.id+spaceIdwhile the current list is rooted at the Shares jail.GraphShareFragmentcan decide "shared with me" fromOCFile.isSharedWithMe(which reads the OCS-stylepermissionsstring) on spaces-enabled accounts, or whether the flag has to be passed in from the list.Reference implementation to follow: the spaces list chain —
GetRemoteSpacesOperation→OCSpacesService.getSpaces()→OCRemoteSpacesDataSource→OCSpacesRepository→GetPersonalAndProjectSpacesForAccountUseCase→SpacesListViewModel→SpacesListFragment— is the closest parallel for a Graph-sourced list rendered in its own fragment.[-][FEATURE REQUEST] Sharing NG: Sharing shortcuts[/-][+][FEATURE REQUEST] Sharing NG: Shared with me [/+]