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: grouping message dates (WPB-1733) #2964

Merged
merged 12 commits into from
May 6, 2024

Conversation

alexandreferris
Copy link
Contributor

@alexandreferris alexandreferris commented May 3, 2024

StoryWPB-1733 Timestamps – grouping functionality for dates


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Previous implementation of grouping message dates had a different design than expected

Solutions

  • Rework with new design
  • Create a better sealed class for message date groups

Needs releases with:

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

  • Open App
  • Open Any conversation with messages from:
    - Now (just send/receive a message)
    - Within 30 Minutes (let a sent/received message pass at least 1min)
    - Today (30 min < message < Yesterday)
    - Yesterday (Before Yesterday < message < Today)
    - Within Week (7 days ago < message < Yesterday)
    - Not Within Week but Same Year (01.01.this_year < message < 7 days ago)
    - Other (any message that is not from this year)

Attachments (Optional)

Light Mode Dark Mode
light_mode dark_mode

References

https://developer.android.com/reference/android/icu/text/RelativeDateTimeFormatter
https://android.googlesource.com/platform/prebuilts/fullsdk/sources/android-31/+/refs/heads/androidx-core-core-google-shortcuts-release/android/text/format/RelativeDateTimeFormatter.java
https://developer.android.com/reference/android/text/format/DateUtils

Copy link
Contributor

github-actions bot commented May 3, 2024

Test Results

923 tests   923 ✅  12m 45s ⏱️
123 suites    0 💤
123 files      0 ❌

Results for commit d060f5c.

Copy link
Contributor

github-actions bot commented May 3, 2024

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 4585 succeeded.

The build produced the following APK's:

@alexandreferris alexandreferris requested review from a team, yamilmedina, MohamadJaara, Garzas, ohassine, saleniuk, vitorhugods and mchenani and removed request for a team May 3, 2024 11:54
Copy link
Contributor

@Garzas Garzas left a comment

Choose a reason for hiding this comment

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

Looking good 🚀 Just one small comment

@Garzas Garzas self-requested a review May 6, 2024 09:48
@alexandreferris alexandreferris enabled auto-merge (squash) May 6, 2024 09:58
@alexandreferris alexandreferris merged commit 8e17489 into release/candidate May 6, 2024
10 of 11 checks passed
@alexandreferris alexandreferris deleted the feat/grouping_message_dates branch May 6, 2024 10:21
github-actions bot pushed a commit that referenced this pull request May 6, 2024
Copy link
Contributor

github-actions bot commented May 6, 2024

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 4613 succeeded.

The build produced the following APK's:

@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants