R38.4 — AdvancedPicker's expand gate, and the suggestion chips that render outside it #60
Closed
opened 2026-08-23 23:06:58 +00:00 by JMR-dev
·
0 comments
No Branch/Tag Specified
main
fix/102-picker-back-press-overshoot
fix/268-saf-picker-determinism
feat/ogg-vorbis-libvorbis
feat/expedited-conversion-work
fix/gate-cache-in-worktrees
chore/gate-runs-shellcheck
test/publish-delete-arm-real-provider
docs/e8-instrumented-coverage
docs/api37-carrier-count-drift
docs/e7-second-constraint
test/publish-to-a-real-saf-destination
fix/api37-report-match-line
fix/api37-task-snapshot-crash
test/join-failure-message-on-device
docs/e2e-read-findings-e7
test/cancelling-a-running-export
test/reattach-to-a-running-job
test/content-uri-reaches-ffmpeg
fix/launcher-wiring-waits-for-the-pick
fix/cancel-tests-need-a-slower-encode
test/cancelling-a-running-join
test/cancelling-a-running-session
test/notification-cancel-action
test/ffmpeg-progress-is-observed
test/fallback-asserts-the-path
test/flac-and-opus-assert-their-format
docs/e2e-read-findings
docs/wave4-coverage-numbers
fix/injectable-startup-sweep-scope
test/session-outcome-seam
test/launcher-callback-identity
test/theme-follows-system-dark
test/audio-drop-arm
fix/rotation-waits-for-recreation
fix/convert-guards-on-ready
test/retry-save-mime
test/hardware-progress-reaches-workmanager
test/ffprobe-mapping-seam
test/device-codec-enumeration-seam
test/unknown-container-row
test/null-message-fallbacks
test/cancel-reaches-workmanager
docs/coverage-wave3-recovery
test/concat-engine-seam
docs/coverage-wave3
test/mediaprobe-merge-seam
test/adaptive-shell-wiring
test/aac-audio-args
test/notification-progress-text
test/media3-muxer-guard
test/hardware-fallback-and-cancellation
test/unprobeable-join-clip
test/one-branch-outcomes
test/foreground-type-regimes
fix/bound-wedge-diagnostics
docs/coverage-wave2
test/screen-wiring
test/viewmodel-setters
test/join-state-mapping
test/conversion-state-mapping
test/dedupe-user-messages
fix/restore-stack-merges
test/refused-jobs
test/concatworker-failure-arms
test/container-capabilities-audio
test/readspec-enum-fallbacks
test/outputpublisher-seams
test/mediaprobe-track-seam
test/outputpublisher-partial-branches
test/fake-provider-scaffolding
docs/coverage-read-findings
chore/gitignore-kotlin
test/bound-the-hangs
docs/coverage-remeasure
ci/baseline-counter-precision
fix/invalid-suggestion-chip
ci/wedged-leg-report
fix/reattachment-overwrites-pick
test/theme-live-branches
fix/failed-save-retry
fix/empty-composition-crash
ci/advisory-failure-report
docs/seven-run-counts
test/release-permission-guard
ci/build-workflow-permissions
docs/api37-point-release
docs/benchmark-populate-path
fix/dead-assertion-probe-test
ci/actionlint
test/device-codecs-encode-consequence
fix/sdkmanager-pipefail
docs/readme-restart-claim
fix/saf-picker-root-discovery
fix/probe-dispatcher-seam
test/media3engine-mime-tables
test/mediaprobe-pure-helpers
fix/codec-vocabulary-drift
docs/robolectric-rationale-correction
docs/api37-advisory-counts
test/r38-8-saf-e2e
test/r38-7-join-states
test/r38-6-conversion-states
test/r38-5-state-seam
fix/jacoco-robolectric-coverage
docs/instrumented-tests-correction
test/r38-2-filecard
test/r38-4-advanced-picker
test/r38-3-pickers
tools/file-issue-script
tools/api-37-emulator
fix/review-app-gaps
docs/review-corrections
No results found.
Labels
Clear labels
above-cut
accessibility
backlog
bug
confirmed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
plausible
question
sev:high
sev:low
sev:medium
wontfix
Worked autonomously overnight: local, JVM-verifiable, no product decision
Barrier affecting people with disabilities
Held for manual review: product/UX call, CI/workflow, hardware, or unverifiable here
Something isn't working
Reviewer demonstrated the defect
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Reviewer could not fully demonstrate it; treat as unproven
Further information is requested
High severity
Low severity
Medium severity
This will not be worked on
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JMR-dev/LibreMediaConverter#60
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Child 4 of 8 decomposing #52. Depends on R38.1. The subtlest of the leaf children.
Scope
AdvancedPickeris not stateless. It holdsvar expanded by rememberSaveable { mutableStateOf(false) }at
:278, and the Container/Video/Audio chip rows sit insideAnimatedVisibility(visible = expanded)at
:284. A test must click"Advanced"before any of those chips is findable — this is thething that will waste an afternoon if it is not written down.
ValidationErrorrenders even while the section is collapsed. It is invoked at:327-329,outside the
AnimatedVisibilityblock. So the suggestion chips — which #52 calls "the only routeto an invalid spec" — are reachable without expanding anything. That is deliberate and load-bearing:
it is how a user with an invalid spec is offered a way out without first discovering the Advanced
section. Completely untested today.
Cover:
Validation.Invalidrenders its message and its suggestion chips while collapsedOutputSpecthroughonSuggestionContainerCapabilities.validate— e.g."MP4 cannot hold VP9 video.","This would produce an empty file — keep at least one track.". Build them throughvalidaterather than constructing
Validation.Invalidby hand where practical, so the test bites on thereal pairing.
This child owns the
StateRestorationTestercaveat#52 records the limit as a general note, which is how notes get skipped. It is assigned here,
because
expandedat:278is the onlyrememberSaveableany of these eight children touch.StateRestorationTestersaves into an in-memory map, not aBundle. It discriminatesrememberfrom
rememberSaveable— that is the bite — but would pass equally with an ordinal orautoSaver.Follow the split
DestinationSaverTestestablished: pin the saved representation in a separatepure JVM test, rather than assuming the restoration test covers it.
Acceptance — the mutation
Move the
ValidationErrorcall at:327inside theAnimatedVisibilityblock -> the"suggestions are reachable while collapsed" test goes red.
Second bite:
rememberSaveable->rememberat:278-> the restoration test goes red.Size
~170 lines across two files. Independent of R38.2 and R38.3.
Traps (shared across the R38 children)
androidx.compose.ui.test.junit4.v2.createComposeRule(v2) butandroidx.compose.ui.test.junit4.StateRestorationTester(non-v2). Every tutorial shows thenon-v2 rule. Copy both lines from
AppRootRestorationTest.@UnstableApipropagates. Both screens carry it, so a test class touching them needs it or thebuild fails on
UnsafeOptInUsageError.@RunWith(RobolectricTestRunner::class)and nothing else. There is no@Configin this repo;sdk=36is set once inapp/src/test/resources/robolectric.propertiesbecause Robolectric 4.16.1has no
android-alljar for API 37.DetailRowrenders"$label: $value"as one node (ConverterScreen.kt:486).onNodeWithText("Container")will not match — use the full string orsubstring = true.…U+2026,—U+2014,×U+00D7,·U+00B7. Copy them out of the source.org.junit.Assert.*, statically imported one per symbol. Nokotlin.test, noTruth, no mockk — test doubles are hand-written subclasses.
the mutation check reviewable by someone else.
Done means
./gradlew :app:assembleDebug :app:testDebugUnitTest :app:compileDebugAndroidTestKotlin :app:ktlintCheck :app:detekt :app:lintDebug --continuethen the mutation above: revert the named line, watch the named test go red, restore, and quote what
the failure said. Per
CLAUDE.md, own branch, own PR, never onmain.Parent: #52