-
Notifications
You must be signed in to change notification settings - Fork 392
Add intro modals for Inbox and Combined Feed #2045
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
base: main
Are you sure you want to change the base?
Conversation
|
See the project's README: Before we can review this PR, it will need tests. |
515d93e to
14cb420
Compare
|
now I have added test and also added test detection code in dialog.dart but when I added test detection it solved |
|
See the project's README: Before we can review this PR, it will need to be organized into clear and coherent commits, following Zulip's commit style guide. |
9a9c7e3 to
b319244
Compare
|
@gnprice @chrisbobbe now could you please review it ? |
|
This still makes a number of irrelevant changes to other parts of the code. @khanak0509 Before you ask others to spend time reviewing your work, you need to take the time to review it carefully yourself. See the discussion in our README (linked twice above) and in the Zulip contributing guide linked from there. |
a88c411 to
c06af13
Compare
|
OK, that's clean enough to be reviewed. This still needs tests, though. The tests need to check that the app satisfies the main point of the issue: when the user first visits the inbox or combined feed, they get the intro modal, and when they visit again, they don't. The current version adds some test cases in I gave a talk last year at Fluttercon USA about how to write good tests, including more details and examples about this point. I recommend watching that talk. |
|
Thanks for sharing this. I watched it and understood the difference between unit tests and integration tests. |
|
Great, glad that was helpful. This revision is closer: it effectively tests most of the behavior of From the user's perspective, though, they don't call a function In particular, this version would still pass if the call to The other remaining piece for making these into end-to-end, user-oriented tests is that the tests should check the titles on the dialogs. As is, the tests would still pass if the dialogs accidentally had their titles swapped. |
|
OK, now I understood! . In the inbox test, I should navigate to HomePage() instead of calling showInboxIntroModal() directly, and same for combined feed navigate to MsgListPage() instead of calling the function. Based on this, I've made the changes. now is it fine ? |

Fixes: #1856
Adds one-time intro modals for inbox and combined feed screens to help new users understand what each view shows.
screenshots -


as mentioned in issue description and CZO discussion: #mobile > Intro video? intro is showing once per install of the app even if they login again . and if they reinstall the add it will visible again .
Tested on iOS emulator:
(1) Fresh install shows both modals on first visit
(2)Modals don't reappear after tapping "Got it"
(3) Modals stay dismissed across app restarts
(4) Reinstalling app shows modals again
video of testing
https://drive.google.com/file/d/1vg3yrCxwh44TSUv6730K7Lr-CPrxI1cm/view?usp=sharing
all tests passed
