[PR #3987] [MERGED] Add an optional Android status bar setting #6187

Closed
opened 2026-10-23 04:07:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3987
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3985-android-status-bar


📝 Commits (4)

  • dff4bac Add Android status bar setting
  • 536f960 Test Android status bar bridge setting
  • 7f2f8d1 Merge staging and localize Android status bar setting
  • e7277b5 Merge branch 'staging' into fix/3985-android-status-bar

📊 Changes

19 files changed (+223 additions, -5 deletions)

View changed files

📝 .github/agents/chai-workflow.md (+4 -0)
📝 AGENTS.md (+1 -0)
📝 CHANGELOG.md (+1 -0)
📝 android/README.md (+4 -1)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+38 -4)
📝 e2e/core-flows.e2e.ts (+50 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+65 -0)
📝 packages/client/src/localization/locales/ar.json (+5 -0)
📝 packages/client/src/localization/locales/de.json (+5 -0)
📝 packages/client/src/localization/locales/en.json (+5 -0)
📝 packages/client/src/localization/locales/es.json (+5 -0)
📝 packages/client/src/localization/locales/fr.json (+5 -0)
📝 packages/client/src/localization/locales/hi.json (+5 -0)
📝 packages/client/src/localization/locales/ja.json (+5 -0)
📝 packages/client/src/localization/locales/ko.json (+5 -0)
📝 packages/client/src/localization/locales/pl.json (+5 -0)
📝 packages/client/src/localization/locales/pt-BR.json (+5 -0)
📝 packages/client/src/localization/locales/ru.json (+5 -0)
📝 packages/client/src/localization/locales/zh-Hans.json (+5 -0)

📄 Description

Linked issue

Closes #3985

Why this change

Android app users sometimes need to see the time, battery level, and notification icons without leaving Marinara, while other users prefer the existing distraction-free fullscreen shell.

What changed

  • Added a native Android preference and JavaScript bridge for showing or hiding the status bar immediately.
  • Restored the saved preference when the Android activity starts or resumes, with fullscreen remaining the default.
  • Added Show Android status bar under Settings > General > App Behavior using the existing responsive toggle UI.
  • Kept browser, desktop, and older Android APK behavior safe by disabling the native-only control with contextual guidance when the bridge is unavailable.
  • Localized the label, guidance, fallback, update warning, and error in every bundled locale.
  • Added desktop/mobile bridge coverage, including a live switch to the Polish label.
  • Added an agent-workflow rule requiring every new or changed user-facing string to update English and all bundled locales and pass the localization guard.
  • Documented the setting in the Android guide and CHANGELOG.md.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated verification completed on the current merged head:

  • pnpm check
  • pnpm localization:check (12 bundled locales, 23/23 keys each)
  • pnpm version:check
  • gradle :app:compileDebugJavaWithJavac --no-daemon
  • pnpm smoke:ui (92 passed, 52 skipped by project applicability)
  • Focused Android bridge/localization Playwright regression (2 passed: desktop and mobile Chromium)

Manual on-device verification remains: install a current APK, toggle the setting in both directions, relaunch the app, and confirm Android restores the selected state without covering Marinara controls.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

A current Android APK is required to capture the native status-bar transition.

Summary by CodeRabbit

  • New Features

    • Added an Android setting to show or hide the status bar from Settings > General > App Behavior.
    • Status bar visibility is remembered and restored across app restarts.
    • Added guidance for unavailable or outdated Android app versions.
  • Localization

    • Added translated labels and help text for the new setting across supported languages.
  • Documentation

    • Updated Android usage guidance and the unreleased changelog.
  • Tests

    • Added end-to-end coverage for toggling the setting and localized labels.

🔄 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-Engine/pull/3987 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3985-android-status-bar` --- ### 📝 Commits (4) - [`dff4bac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dff4bac4a02994e0ef58a6bb4f5229dd3326f8ef) Add Android status bar setting - [`536f960`](https://github.com/Pasta-Devs/Marinara-Engine/commit/536f96068cd4ba1b66a1630bfa8c1ff6d966c59f) Test Android status bar bridge setting - [`7f2f8d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f2f8d1b74315a33e4a277fb4d51fac5804b6b1c) Merge staging and localize Android status bar setting - [`e7277b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e7277b524b96f9c9dbd1a45addd4c3d1305d6611) Merge branch 'staging' into fix/3985-android-status-bar ### 📊 Changes **19 files changed** (+223 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/agents/chai-workflow.md` (+4 -0) 📝 `AGENTS.md` (+1 -0) 📝 `CHANGELOG.md` (+1 -0) 📝 `android/README.md` (+4 -1) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+38 -4) 📝 `e2e/core-flows.e2e.ts` (+50 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+65 -0) 📝 `packages/client/src/localization/locales/ar.json` (+5 -0) 📝 `packages/client/src/localization/locales/de.json` (+5 -0) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) 📝 `packages/client/src/localization/locales/es.json` (+5 -0) 📝 `packages/client/src/localization/locales/fr.json` (+5 -0) 📝 `packages/client/src/localization/locales/hi.json` (+5 -0) 📝 `packages/client/src/localization/locales/ja.json` (+5 -0) 📝 `packages/client/src/localization/locales/ko.json` (+5 -0) 📝 `packages/client/src/localization/locales/pl.json` (+5 -0) 📝 `packages/client/src/localization/locales/pt-BR.json` (+5 -0) 📝 `packages/client/src/localization/locales/ru.json` (+5 -0) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+5 -0) </details> ### 📄 Description ## Linked issue Closes #3985 ## Why this change Android app users sometimes need to see the time, battery level, and notification icons without leaving Marinara, while other users prefer the existing distraction-free fullscreen shell. ## What changed - Added a native Android preference and JavaScript bridge for showing or hiding the status bar immediately. - Restored the saved preference when the Android activity starts or resumes, with fullscreen remaining the default. - Added **Show Android status bar** under **Settings > General > App Behavior** using the existing responsive toggle UI. - Kept browser, desktop, and older Android APK behavior safe by disabling the native-only control with contextual guidance when the bridge is unavailable. - Localized the label, guidance, fallback, update warning, and error in every bundled locale. - Added desktop/mobile bridge coverage, including a live switch to the Polish label. - Added an agent-workflow rule requiring every new or changed user-facing string to update English and all bundled locales and pass the localization guard. - Documented the setting in the Android guide and `CHANGELOG.md`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated verification completed on the current merged head: - `pnpm check` - `pnpm localization:check` (12 bundled locales, 23/23 keys each) - `pnpm version:check` - `gradle :app:compileDebugJavaWithJavac --no-daemon` - `pnpm smoke:ui` (92 passed, 52 skipped by project applicability) - Focused Android bridge/localization Playwright regression (2 passed: desktop and mobile Chromium) Manual on-device verification remains: install a current APK, toggle the setting in both directions, relaunch the app, and confirm Android restores the selected state without covering Marinara controls. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) A current Android APK is required to capture the native status-bar transition. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an Android setting to show or hide the status bar from **Settings > General > App Behavior**. * Status bar visibility is remembered and restored across app restarts. * Added guidance for unavailable or outdated Android app versions. * **Localization** * Added translated labels and help text for the new setting across supported languages. * **Documentation** * Updated Android usage guidance and the unreleased changelog. * **Tests** * Added end-to-end coverage for toggling the setting and localized labels. <!-- 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-23 04:07:56 +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-Engine#6187
No description provided.