Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Nov 18 build fixes #554

Merged
merged 12 commits into from
Nov 19, 2021
Merged

Nov 18 build fixes #554

merged 12 commits into from
Nov 19, 2021

Conversation

cosmicespresso
Copy link

@cosmicespresso cosmicespresso commented Nov 18, 2021

  • closes getlantern/engineering#782
  • closes getlantern/engineering#982
  • fixes Call UI title overflow
  • handles translations for humanizeSeconds()
  • closes getlantern/engineering#792

if (this < 60) {
return toString() + (longForm ? ' seconds' : 's'); // TODO: add i18n
return longForm
? 'longform_seconds'.i18n.fill([toString()])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of localization!

/// Based on https://www.flutterclutter.dev/flutter/tutorials/date-format-dynamic-string-depending-on-how-long-ago/2020/229/
extension Humanize on int {
String humanizeSeconds({bool longForm = false}) {
//seconds
var result;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is one of the few that actually has a working unit test. Can you please update the unit test to match your changes?

@oxtoacart
Copy link

LGTM! The only things I found (and fixed) were:

  1. Use sentence capitalization in message bar
  2. Drive-by, made recovery key input smaller and auto-formatted into 4 character groups to match the recovery key screen and make it easier for people manually entering recovery keys

image

@oxtoacart
Copy link

Oh, and of course the unit test still needs to be updated, but then this can be merged.

@oxtoacart
Copy link

Test passes, LGTM!

@oxtoacart oxtoacart merged commit 71c9808 into ox/messaging Nov 19, 2021
@oxtoacart oxtoacart deleted the kr/issue540_542 branch November 19, 2021 18:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants