[PR #1379] [MERGED] fix(slurp2): 0.3.39 — full file browser for post pictures on Android #1425

Closed
opened 2026-10-21 05:11:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1379
Author: @Gunterlie
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/slurp-android-image-browse


📝 Commits (2)

  • 4413134 fix(slurp2): 0.3.39 — full file browser for post pictures on Android (#1378)
  • 66334e3 test(slurp2): make Android picker accept assertion independent of attribute order

📊 Changes

16 files changed (+174 additions, -117 deletions)

View changed files

➕ artifacts/slurp2-0.3.39.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+71 -71)
📝 packages/slurp2/manifest.json (+3 -3)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenComposer.tsx (+8 -1)
➕ packages/slurp2/src/engine/packages/client/src/slp/base/media/slp-media-accept.ts (+9 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+7 -4)
📝 packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostImageEditControls.tsx (+2 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/slurp2-android-image-picker.regression.ts (+33 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1378

Why this change

  • On Android, Chrome answers a file input whose accept lists only image types with the system photo picker. Its Albums tab shows only a few albums (Camera, Screenshots, Downloads), so Android users cannot reach pictures in other folders when they attach a picture to a Slurp post.

What changed

  • New helper slpImageFileAccept() in packages/slurp2/src/engine/packages/client/src/slp/base/media/slp-media-accept.ts: returns undefined on an Android user agent (no accept, so Chrome offers its full chooser with the Files / document picker) and "image/*" everywhere else.
  • Used by the two post-picture inputs: the post/story composer (SlpScreenComposer.tsx) and the post edit "Replace" input (SlpPostImageEditControls.tsx). Both change handlers already reject a non-image file with "Choose an image file.".
  • Slurp2 0.3.38 → 0.3.39 (patch): CHANGELOG entry and splash note. The 0.3.38 splash note is now one line so slp-release.ts stays at the 800-line architecture cap.
  • New regression tests/slurp2-android-image-picker.regression.ts (helper per user agent + both call sites + the non-image guard).
  • Generated: packages/slurp2/client.js, packages/slurp2/manifest.json, artifacts/slurp2-0.3.39.zip, catalog/catalog.json, catalog/v2/catalog.json, catalog/v3/catalog.json and the matching notes.json files, rebuilt with node scripts/build-feature-packages.mjs slurp2 against a clean origin/staging Engine worktree.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none; engine range unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: normal package update only; no storage or data change.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Agent-run checks on 44131341c, all green: node scripts/run-slurp-regressions.mjs (290/290 pass), npm run check, node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, tests/slurp2-architecture.regression.ts, node scripts/typecheck-packages.mjs slurp2, and the new regression.
  • Sideloaded slurp2-0.3.39.zip on a dev Engine (Docker) and drove the composer with Playwright (see Proof below).
  • Not verified: a real Android device opening the system chooser (the Android behaviour comes from how Chrome picks its picker, not from a device test), and the post edit "Replace" input in a live instance (covered by the source regression only).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

No visual change: the button, sheet and layout are the same. Only the hidden file input's accept attribute changes on Android.

Proof

Playwright against a dev Engine with Slurp 0.3.39 sideloaded, composer opened from the Creator profile:

Viewport User agent Composer <input type="file"> accept
390 px Android 14 Chrome null (attribute absent)
390 px default headless Chrome "image/*"
768 px desktop Chrome "image/*"
1440 px desktop Chrome "image/*"

On the Android user agent: setting a .txt file showed "Choose an image file."; setting a PNG then attached it (preview with Crop / Replace / Remove) and cleared the error. Screenshots at 390, 768 and 1440 px showed the composer unchanged.

Summary by CodeRabbit

  • New Features
    • Slurp 0.3.39 lets Android users choose or replace a post picture using the full file browser. Non-image files are rejected with a prompt to choose an image.
  • Compatibility
    • On other platforms, picture selection continues to use the picture-only file dialog.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1379 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp-android-image-browse` --- ### 📝 Commits (2) - [`4413134`](https://github.com/Pasta-Devs/Marinara-Agents/commit/44131341cdd086de064af7b942ee010b449f0896) fix(slurp2): 0.3.39 — full file browser for post pictures on Android (#1378) - [`66334e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/66334e3dcca9e942c8217c5aa9f1ad94b603a9ac) test(slurp2): make Android picker accept assertion independent of attribute order ### 📊 Changes **16 files changed** (+174 additions, -117 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.39.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+71 -71) 📝 `packages/slurp2/manifest.json` (+3 -3) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenComposer.tsx` (+8 -1) ➕ `packages/slurp2/src/engine/packages/client/src/slp/base/media/slp-media-accept.ts` (+9 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+7 -4) 📝 `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostImageEditControls.tsx` (+2 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/slurp2-android-image-picker.regression.ts` (+33 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1378 ## Why this change - On Android, Chrome answers a file input whose `accept` lists only image types with the system photo picker. Its Albums tab shows only a few albums (Camera, Screenshots, Downloads), so Android users cannot reach pictures in other folders when they attach a picture to a Slurp post. ## What changed - New helper `slpImageFileAccept()` in `packages/slurp2/src/engine/packages/client/src/slp/base/media/slp-media-accept.ts`: returns `undefined` on an Android user agent (no `accept`, so Chrome offers its full chooser with the Files / document picker) and `"image/*"` everywhere else. - Used by the two post-picture inputs: the post/story composer (`SlpScreenComposer.tsx`) and the post edit "Replace" input (`SlpPostImageEditControls.tsx`). Both change handlers already reject a non-image file with "Choose an image file.". - Slurp2 `0.3.38` → `0.3.39` (patch): CHANGELOG entry and splash note. The 0.3.38 splash note is now one line so `slp-release.ts` stays at the 800-line architecture cap. - New regression `tests/slurp2-android-image-picker.regression.ts` (helper per user agent + both call sites + the non-image guard). - Generated: `packages/slurp2/client.js`, `packages/slurp2/manifest.json`, `artifacts/slurp2-0.3.39.zip`, `catalog/catalog.json`, `catalog/v2/catalog.json`, `catalog/v3/catalog.json` and the matching `notes.json` files, rebuilt with `node scripts/build-feature-packages.mjs slurp2` against a clean `origin/staging` Engine worktree. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none; engine range unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: normal package update only; no storage or data change. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Agent-run checks on `44131341c`, all green: `node scripts/run-slurp-regressions.mjs` (290/290 pass), `npm run check`, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, `tests/slurp2-architecture.regression.ts`, `node scripts/typecheck-packages.mjs slurp2`, and the new regression. - Sideloaded `slurp2-0.3.39.zip` on a dev Engine (Docker) and drove the composer with Playwright (see Proof below). - Not verified: a real Android device opening the system chooser (the Android behaviour comes from how Chrome picks its picker, not from a device test), and the post edit "Replace" input in a live instance (covered by the source regression only). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No visual change: the button, sheet and layout are the same. Only the hidden file input's `accept` attribute changes on Android. ## Proof Playwright against a dev Engine with Slurp 0.3.39 sideloaded, composer opened from the Creator profile: | Viewport | User agent | Composer `<input type="file">` `accept` | |---|---|---| | 390 px | Android 14 Chrome | `null` (attribute absent) | | 390 px | default headless Chrome | `"image/*"` | | 768 px | desktop Chrome | `"image/*"` | | 1440 px | desktop Chrome | `"image/*"` | On the Android user agent: setting a `.txt` file showed "Choose an image file."; setting a PNG then attached it (preview with Crop / Replace / Remove) and cleared the error. Screenshots at 390, 768 and 1440 px showed the composer unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Slurp 0.3.39 lets Android users choose or replace a post picture using the full file browser. Non-image files are rejected with a prompt to choose an image. * **Compatibility** * On other platforms, picture selection continues to use the picture-only file dialog. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:18 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1425
No description provided.