Skip to content

feat(settings): test device alerts and keep the screen on - #148

Merged
devswha merged 1 commit into
mainfrom
feat/device-settings
Sep 29, 2026
Merged

devswha merged 1 commit into
mainfrom
feat/device-settings

Conversation

@devswha

@devswha devswha commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Change

Settings → Alerts now has Send test for this device's existing push subscription. It distinguishes sent, missing subscription and failed delivery, and offers explicit re-enabling when the subscription is missing. Testing does not silently repair a stale subscription or enable alerts that were switched off.

Settings → Phone adds Keep screen on, off by default. It requests a screen wake lock while a terminal or chat pane is open, releases it on hiding/sign-out/no pane, and reacquires it when the page returns. Late requests are released after cleanup; unsupported browsers and browser refusal leave the app usable.

Closes #138. Closes #137.

Depends on #147: this PR is based on feat/i18n-ja-zh and includes Korean, Japanese and Simplified Chinese translations for the new controls. The Screen Wake Lock lifecycle follows the W3C API.

Validation

  • bun run generate:types --check, bun run typecheck, bun run build — pass.
  • bun run test:unit — 431 pass.
  • bun run test:integration — 121 pass, isolated herdr session.
  • bun scripts/ui-regression.ts — pass, including push success/404/502/local-missing/recovery/off and wake-lock opt-in/hide/return/persistence/refusal/unsupported/no-pane checks.
  • bun scripts/file-viewer-regression.ts — pass.
  • Push service and wake-lock browser APIs are controlled stand-ins in the new browser scenarios; real API contracts remain covered by integration tests. No HTTP/WS contract changes.
  • The prerequisite feat: add Japanese and Simplified Chinese UI languages #147 was also checked at 1280, 390 and 320 px for Japanese/Chinese/Korean/English switching, persistence and horizontal overflow. Its screenshots are included alongside the device-settings evidence.

Screenshots from isolated test sessions:

Desktop test notification

Mobile push failure Keep screen on
Mobile push failure Keep screen on

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f382ddbc-93a2-42be-802b-3698325f9068

📥 Commits

Reviewing files that changed from the base of the PR and between cd46b9f and 49d7a29.

⛔ Files ignored due to path filters (5)
  • docs/screenshots/device-settings/keep-screen-on-mobile.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/device-settings/push-test-desktop.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/device-settings/push-test-mobile.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/i18n/chinese-narrow.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/i18n/japanese-mobile.png is excluded by !**/*.png, !docs/screenshots/**
📒 Files selected for processing (17)
  • CHANGELOG.md
  • docs/guide.md
  • scripts/push-settings-regression.ts
  • scripts/ui-regression.ts
  • scripts/wake-lock-regression.ts
  • src/App.tsx
  • src/components/PushTestControls.tsx
  • src/components/SettingsDialog.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.zh.ts
  • src/lib/push.test.ts
  • src/lib/push.ts
  • src/lib/settings.test.ts
  • src/lib/settings.ts
  • src/lib/wakeLock.test.ts
  • src/lib/wakeLock.ts
 __________________________________________________________________
< Engage! Making your code boldly go where no one has gone before. >
 ------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat/i18n-ja-zh to main September 29, 2026 06:27
@devswha
devswha force-pushed the feat/device-settings branch from eee87d0 to 49d7a29 Compare September 29, 2026 06:27
@devswha
devswha merged commit d776654 into main Sep 29, 2026
2 of 5 checks passed
@devswha
devswha deleted the feat/device-settings branch September 29, 2026 06:30
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.

No way to send another test notification once alerts are on Screen turns off while watching a long agent run on the phone

1 participant