Skip to content

copy: rename expanded-notification "Now" label to "Live" (#196)#197

Closed
almothafar wants to merge 2 commits into
masterfrom
196-notification-now-to-live
Closed

copy: rename expanded-notification "Now" label to "Live" (#196)#197
almothafar wants to merge 2 commits into
masterfrom
196-notification-now-to-live

Conversation

@almothafar

Copy link
Copy Markdown
Owner

Closes #196.

The expanded status notification labels the live-current line "Now", paired with "Average" below it. "Live" is a clearer contrast with "Average".

  • English: "Now" → "Live"
  • Arabic: "الآن" → "مباشر" (live, pairs with المتوسط)

"Current" was rejected — the value is the electrical current in mA, so "Current: −250 mA" would read as a mistake.

Only the string values change; the resource name notification_label_now and its usages (NotificationService.statusDetailExpanded, NotificationServiceTest) are untouched, so tests are unaffected.

Verification

./gradlew :app:lintDebugBUILD SUCCESSFUL, no MissingTranslation (Arabic parity intact).

🤖 Generated with Claude Code

almothafar and others added 2 commits July 19, 2026 05:29
…194)

Follow-up to #192. The ongoing status notification becomes a BigTextStyle
two-state notification:

- Collapsed: the volatile numbers on one line — rate/power · current · time,
  e.g. "9%/h · −250 mA · ~9h 27m remaining" / "~18 W · +2000 mA · ~1h 0m to
  full". Temperature moves to the expanded view; "left" → "remaining".
- Expanded: a labelled breakdown — Now (instant current, + wattage while
  charging), Average (windowed-average current, carrying the smoothed %/h while
  discharging), Time remaining / Time to full, and Temperature. Each line is
  dropped when its data is absent; expansion is only offered when the breakdown
  is genuinely multi-line.

The app has a single smoothed rate (itself an average), so there is no separate
instantaneous %/h — the %/h rides the Average line rather than being faked onto
a "Now" line.

RTL: the Latin values (mA, %/h, watts, durations) are wrapped with
BidiFormatter so they don't reorder inside an Arabic line (the garbling seen
before). No-op in LTR. New labels reuse the details table's strings (Time
remaining / Time to full / Temperature / Drain rate); new: Now, Average, and the
"label: value" line format. All EN + AR (Arabic drafted, pending review).

Tests: OngoingStatusLines reworked to 10 — collapsed (discharge/charge/no-current),
expanded (discharge/charge/drain-rate-fallback), the built notification's BigText,
temperature-only-and-not-expandable when the toggle is off, and null-snapshot.

Closes #194

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The expanded status notification labels the live current line "Now",
paired with "Average" below it. "Live" is a clearer contrast with
"Average". Arabic "الآن" → "مباشر" (live, pairs with المتوسط).

Only the string values change; the resource name notification_label_now
and its usages are untouched, so tests are unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@almothafar

Copy link
Copy Markdown
Owner Author

Closing this — it should never have been opened. It was branched off a stale local master that still carried the unmerged #194 commit, so it duplicated the entire open PR #195 (+266/−96) just to change one label word. The "Now" → "Live" wording belongs inside #195, not in a separate PR. Sorry for the noise.

@almothafar almothafar closed this Jul 19, 2026
@almothafar
almothafar deleted the 196-notification-now-to-live branch July 19, 2026 09:00
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.

copy: rename expanded-notification "Now" label to "Live" (clearer vs "Average")

1 participant