Repository navigation
Pendant app shell: folder access probe and docs - #12
Merged
Merged
Conversation
The probe's shape for G3, parked while the G2 runs finish: - platform/folders.rs: FolderReport, a host-tested counter for the fixture (25 top-level .md, 30 in all, 3 other files, one folder), and pick() / remembered() per platform. - folders_ios.rs: UIDocumentPickerViewController for a folder, counted inside the URL's security scope through its POSIX path, with a bookmark kept for after a restart. - folders_android.rs and android/PendantFolders.java: the tree picker through a headless Fragment, a persisted read permission, and a count through DocumentsContract (a content:// tree has no POSIX path). - keystore.rs: one embedded-dex class loader shared by both Java classes; build.rs compiles every Java file under android/ (Android only). Not yet mounted in lib.rs, and the iOS UIKit dependencies are not added, so it does not build yet. No Lapis link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the merged G2 shell into the D1 branch.
- A D1 probe page (platform/d1.rs), reached by pendant://d1 or PENDANT_START=d1: Pick a folder runs the phone's own folder picker and shows what the app can count; on open, and on Check kept access, it reports the access kept from an earlier pick, which after a restart is the persistence check. Each result is also a "d1:" trace line. - folders is mounted for every target; the host keeps its stub. - iOS: objc2-ui-kit and uniform-type-identifiers for the picker; the off-thread wait helper is crate-visible for it. - tools/d1-fixture.sh writes the made-up fixture: 25 top-level notes, 3 other files, one nested folder with 5 notes, one hidden note. No Lapis link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- folders_ios: the bookmark file is resolved before the picker opens. The delegate runs on UIKit's main thread, where nsh's data_dir panics, and the first pick aborted the app. - README: a "Phone app" section covering the toolchain, build, the Android USE_BIOMETRIC step, install, pairing, and the D1 probe. - THIRD_PARTY_NOTICES.md: nsh 0.5.0 under Apache-2.0, with its license text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bridge gained a tracing-subscriber dev-dependency without the root lock being written, so cargo test --workspace --locked refused to run. Regenerated without upgrading anything: the only change is that one dependency line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pendant app shell, folder access probe and docs (pack 2a, G3). The probe records what folder access each phone platform gives, to inform the notes-vault decision. It has no Lapis link.
app/src/platform/folders.rs,folders_ios.rs,folders_android.rs,d1.rs.app/android/PendantFolders.java, compiled to dex bybuild.rsonly for Android..mdfiles at the top level and recursively.app/tools/d1-fixture.shwrites a made-up folder of 25 top-level.mdfiles, 3 other files and a nested folder with 5 more.mdfiles.THIRD_PARTY_NOTICES.mdlists nsh 0.5.0 under Apache-2.0 with its license text.Cargo.lockgains the one missingtracing-subscriberentry for the bridge test dependency, socargo test --workspace --lockedpasses.Not changed
app/src.Test plan
cargo test --workspace --locked.mdfiles, and access is restored after a relaunch🤖 Generated with Claude Code