Skip to content

Conversation

@Ayyanchira
Copy link
Member

@Ayyanchira Ayyanchira commented Feb 25, 2021

🔹 Jira Ticket(s) if any

https://iterable.atlassian.net/browse/MOB-2585

✏️ Description

  1. When passed with title and text in bundle, IterableInboxFragment can take that text and override default title and message text
  2. Visibility are toggled based on inbox count on every update
  3. Inbox Fragment XML now has two text views kept inside RelativeLayout beside recyclerView instead of just having RecyclerView
  4. If inbox is displayed using IterableInboxAcitivity instead of IterableInboxFragment, we still relay the bundle arguments to IterableInboxFragment internally. So bundle passed to IterableInboxActivity will still work.
  5. Added test method to see if passed texts are actually displayed on inbox screen.

1. When passed with title and text in bundle, IterableInboxFragment can take that text and override default title and message text
2. Visibility are toggled based on inbox count on every update
3. Inbox Fragment XML now has two text views kept inside RelativeLayout beside recyclerView instead of just having RecyclerView
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from 18edd70 to 439f391 Compare February 25, 2021 01:03
Added suggested changes.
Updating the default strings to be empty strings.
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from 4ac44db to 6d933f9 Compare February 25, 2021 22:47
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from 6d933f9 to e939ecd Compare February 26, 2021 00:58
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from e939ecd to 08f3560 Compare February 26, 2021 01:07
@codecov
Copy link

codecov bot commented Feb 26, 2021

Codecov Report

Merging #321 (741ee73) into master (423b507) will increase coverage by 0.36%.
The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
+ Coverage   70.35%   70.72%   +0.36%     
==========================================
  Files          60       60              
  Lines        3701     3727      +26     
  Branches      430      433       +3     
==========================================
+ Hits         2604     2636      +32     
+ Misses        832      828       -4     
+ Partials      265      263       -2     
Impacted Files Coverage Δ
...va/com/iterable/iterableapi/IterableConstants.java 0.00% <ø> (ø)
...le/iterableapi/ui/inbox/IterableInboxFragment.java 83.87% <96.15%> (+1.34%) ⬆️
...le/iterableapi/ui/inbox/IterableInboxActivity.java 81.48% <100.00%> (+5.29%) ⬆️
...java/com/iterable/iterableapi/ui/BitmapLoader.java 61.90% <0.00%> (-2.39%) ⬇️
...ain/java/com/iterable/iterableapi/IterableApi.java 65.77% <0.00%> (+0.24%) ⬆️
...va/com/iterable/iterableapi/IterableApiClient.java 75.15% <0.00%> (+0.31%) ⬆️
...com/iterable/iterableapi/IterableInAppManager.java 88.50% <0.00%> (+0.50%) ⬆️
...in/java/com/iterable/iterableapi/IterableUtil.java 70.53% <0.00%> (+2.67%) ⬆️
.../iterable/iterableapi/IterableActivityMonitor.java 96.72% <0.00%> (+3.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 423b507...3efbaef. Read the comment docs.

1. Added test to verify if the text passed is visible on empty inbox screen
2. Passing the arguments to IterableInboxFragment in in-case customer just initializes IterableInboxActivity instead of IterableInboxFragment
3. Modified basic test method as it tries to click on empty list which we now hide if its empty
4. Parsing and assinging the strings in onCreate instead of onStart of fragment
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from 08f3560 to 5a24d19 Compare February 26, 2021 15:41
@Ayyanchira Ayyanchira requested a review from vbabenkoru March 1, 2021 20:21
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from c2720b7 to 09f0a2f Compare March 1, 2021 21:55
@Ayyanchira Ayyanchira requested a review from vbabenkoru March 2, 2021 08:04
Added recommended changes
1. Added constructor to IterableInboxFragment. Now setArguments wont overwrite arguments set by newInstance method.
2. Removed `this` while referencing global variable
3. Updated message TextView in XML to have layout below Title textView. No more hardcoded placement of views.
4. Added nullable notations
@Ayyanchira Ayyanchira force-pushed the MOB-2585-No-Message-View-for-Inbox branch from 09f0a2f to 023521d Compare March 2, 2021 23:01
Co-authored-by: Victor Babenko <victor@iterable.com>
@Ayyanchira Ayyanchira merged commit 7bdd227 into master Mar 3, 2021
@Ayyanchira Ayyanchira deleted the MOB-2585-No-Message-View-for-Inbox branch March 3, 2021 16:00
Ayyanchira added a commit that referenced this pull request Mar 30, 2021
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.

3 participants