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

NT-2003:UX – Show pending comment dialog #1329

Merged
merged 13 commits into from
Jul 19, 2021

Conversation

hadia
Copy link
Contributor

@hadia hadia commented Jul 19, 2021

πŸ“² What

Show pending comment dialog

πŸ€” Why

Add confirmation dialog when users have a failed post or something written in the comment composer and try to

  • Go back to project page
  • Pull to refresh

πŸ›  How

Create alert Dialog
image
Check if have pending comments in case of back and pull to refresh
image

πŸ‘€ See

device-2021-07-19-202828.mp4

πŸ“‹ QA

  1. Open-backed project Comments
  2. add pending comment "offline mode comment"
  3. try press back and pull to refresh
  4. submit a comment
  5. try press back and pull to refresh

Story πŸ“–

https://kickstarter.atlassian.net/browse/NT-2003

@@ -18,3 +19,41 @@ fun Context.registerActivityLifecycleCallbacks(callbacks: Application.ActivityLi
this.registerActivityLifecycleCallbacks(callbacks)
}
}

fun Context.showAlertDialog(
Copy link
Contributor

Choose a reason for hiding this comment

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

❀️

@hadia hadia requested a review from leighdouglas July 19, 2021 18:43
Copy link
Contributor

@Arkariang Arkariang left a comment

Choose a reason for hiding this comment

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

πŸ‘ great work @hadia

@codecov
Copy link

codecov bot commented Jul 19, 2021

Codecov Report

Merging #1329 (fcb1c8a) into master (68094ac) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1329   +/-   ##
=========================================
  Coverage     74.12%   74.12%           
  Complexity      739      739           
=========================================
  Files           221      221           
  Lines          6666     6666           
  Branches        406      406           
=========================================
  Hits           4941     4941           
  Misses         1589     1589           
  Partials        136      136           

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 68094ac...fcb1c8a. Read the comment docs.

@hadia hadia merged commit 644a907 into master Jul 19, 2021
@hadia hadia deleted the hadia/Show_pending_comment_dialog branch July 19, 2021 19:25
Arkariang added a commit that referenced this pull request Jul 19, 2021
…tin/NT-2125-first-test

* 'master' of github.com:kickstarter/android-oss:
  - Removed sharedUserId property
  NT-2003:UX – Show pending comment dialog (#1329)
  NT-1996 :UI/UX – Error loading thread (#1328)
  NT-2093: Skip first emitted value from paginated data to avoid initially showing empty state showing on root comments screen (#1323)
  NT-2124: Shot 5.11.0 library integration (#1324)

# Conflicts:
#	app/build.gradle
#	app/src/androidTest/java/com/kickstarter/screenshoot/testing/di/AndroidTestApplicationModule.kt
#	app/src/androidTest/java/com/kickstarter/screenshoot/testing/ui/components/CommentCardShotTest.kt
#	app/src/internalDebug/AndroidManifest.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants