-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
MessagesAction Update to also handle non-actionable messages without failing #168
Conversation
I would like to discuss this further before merging, since there seem to be quite a few UI differences between messages on iOS and Android and I would rather discuss them before throwing out existing functionality here. Examples:
|
app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/data/mapper/MessageActionMapper.kt
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/messages/MessagesHandler.kt
Outdated
Show resolved
Hide resolved
@pauljohanneskraft Thank you for looking into this and thanks for the first feedback @eldcn! Would be great to reduce the disparities between the different platforms.
I think it could be fine to never collapse a message. We might still want to add a truncation mark after e.g. 10 lines to ensure that a long text or a bug doesn't break the UI?
I like the way iOS is currently handling this. An X for any dismissible actions and a action button that is bound to the message type & let's you perform a message.
Agree, we can remove that.
Good point. @eldcn & @pauljohanneskraft let me know if you need any additional context; happy to also sync on this on Tuesday if there are more open questions. |
…when a new message comes in
app/src/main/kotlin/edu/stanford/bdh/engagehf/messages/MessageAction.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/data/models/UiState.kt
Outdated
Show resolved
Hide resolved
@pauljohanneskraft Double-check that this resolves #157 & #159 |
MessagesAction Update to also handle non-actionable messages without failing
♻️ Current situation & Problem
Previously, the app would handle a non-existing action as a failure, whereas it can simply be ignored and a message should then either be dismissible or will be dismissed automatically based on other user input.
⚙️ Release Notes
Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.
Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.
📚 Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
✅ Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: