Skip to content

[PB-5921]: File Provider item resolution + re-auth signaling#493

Open
terrerox wants to merge 3 commits into
feature/pb-5920-file-provider-folder-browsingfrom
feature/pb-5920-file-provider-folder-browsing-v2
Open

[PB-5921]: File Provider item resolution + re-auth signaling#493
terrerox wants to merge 3 commits into
feature/pb-5920-file-provider-folder-browsingfrom
feature/pb-5920-file-provider-folder-browsing-v2

Conversation

@terrerox

@terrerox terrerox commented Jun 12, 2026

Copy link
Copy Markdown

What this fixes

  • item(for:) real lookup — the extension's single-item resolver was an unimplemented stub that returned every identifier as a non-downloaded file, so tapped folders showed greyed/empty. Now resolves f:/d: identifiers via getFolderMetaByUuid / getFileMetaByUuid and returns correct folder/file items (right kind, capabilities, materialization).
  • Clears stuck "Authentication Required" after relogin — on login the host app now calls NSFileProviderManager.signalEnumerator(.workingSet) after registering the domain, so the system re-enumerates with the fresh credentials instead of staying latched in the needs-auth state.
  • driveBaseUrl handoff — forwarded into the shared keychain on credential write so the extension can build its Drive client after login.

terrerox added 3 commits June 11, 2026 22:07
Implement item(for:) so the system can resolve any identifier to a
FileProviderItem: return the root container item, decode folder/file
identifiers and fetch their metadata from the Drive API, and map 401
responses to NSFileProviderError.notAuthenticated so the system can
re-request credentials.
Persist the Drive API base URL in the App Group keychain when
credentials are written, so the File Provider extension can build
authenticated Drive requests. Add a wrapper test asserting the native
module receives driveBaseUrl.
Add FileProviderDomainManager.signalEnumeration to notify the working
set enumerator, and call it once the File Provider domain is registered
so the Files app refreshes Drive contents right after credentials
change. Signal failures are logged and ignored to avoid blocking login.
@terrerox terrerox force-pushed the feature/pb-5920-file-provider-folder-browsing branch from 4fcdcfd to f222339 Compare June 12, 2026 02:40
@terrerox terrerox force-pushed the feature/pb-5920-file-provider-folder-browsing-v2 branch from 5b85782 to 5bfc79f Compare June 12, 2026 02:40
@sonarqubecloud

Copy link
Copy Markdown

@terrerox terrerox changed the title Feature/pb 5920 file provider folder browsing v2 [PB-5921]: File Provider item resolution + re-auth signaling Jun 12, 2026
@terrerox terrerox self-assigned this Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants