Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(iOS): elevator alert UI #702

Merged
merged 6 commits into from
Jan 31, 2025
Merged

feat(iOS): elevator alert UI #702

merged 6 commits into from
Jan 31, 2025

Conversation

boringcactus
Copy link
Member

Summary

Ticket:  | elevator alerts UI

This was not as straightforward as I had expected.

In alert details, the designs call for showing the elevator facility info, but we don't have that. The one currently available elevator closure alert has the facility info and cause in the description, though, so it seems like showing that may be close enough for now.

Some of the provisional translations of "N elevators closed" are the same as the old provisional translations of "N elevator closures" - I'm not sure if those languages really don't have that distinction or if our provisional translations are just not all that great.

iOS

  • If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • Add temporary machine translations, marked "Needs Review"

android

  • [ ] All user-facing strings added to strings resource in alphabetical order
  • [ ] Expensive calculations are run in withContext(Dispatchers.Default) where possible

Testing

Manually verified that things work in roughly the way they're supposed to. Added and updated unit tests.

@boringcactus boringcactus requested a review from a team as a code owner January 31, 2025 19:19
Copy link
Collaborator

@KaylaBrady KaylaBrady left a comment

Choose a reason for hiding this comment

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

LGTM! I realize the AC for this ticket included onboarding UI, but this PR very reasonably doesn't have that since the onboarding UX ticket isn't done.

}
alertDescription
if isElevatorClosure {
alertPeriod
Copy link
Collaborator

@KaylaBrady KaylaBrady Jan 31, 2025

Choose a reason for hiding this comment

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

The alert period is a bit squished. I see this also is an issue for other alerts. If minor, could you include the fix here?
IMG_0222

Copy link
Member Author

Choose a reason for hiding this comment

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

I did wonder when I implemented this on Android why the structure was the way that it was on iOS. This seems better:
Screenshot 2025-01-31 at 2 43 40 PM

@boringcactus boringcactus merged commit 30bd4f7 into main Jan 31, 2025
7 checks passed
@boringcactus boringcactus deleted the mth-ios-elevator-ui branch January 31, 2025 23:15
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.

2 participants