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

ShowCaseView on Interactive Book #170

Merged
merged 14 commits into from
Dec 22, 2021

Conversation

aman-singh7
Copy link
Member

@aman-singh7 aman-singh7 commented Nov 20, 2021

Fixes #105

Describe the changes you have made in this PR -
I have added the ShowCaseView package to showcase the button and toggles on the Interactive book and model for storing the state of the button pressed.

Screenshots of the changes (If any) -

Screenrecorder-2021-11-21-17-17-24-212.mp4

Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

@aman-singh7
Copy link
Member Author

@manjotsidhu Implementation of showcase widget is done from side. I am currently working on the issues of the widget test. Please lemme know if there are any changes required.

@manjotsidhu manjotsidhu marked this pull request as ready for review November 21, 2021 12:46
@manjotsidhu
Copy link
Member

Thank you for your contributions @aman-singh7, Initial impressions of the code looks good. I will review and test it very soon.

@aman-singh7
Copy link
Member Author

aman-singh7 commented Nov 23, 2021

@manjotsidhu widget test ✔️ .

@aman-singh7
Copy link
Member Author

@manjotsidhu could you give some info to fix the CI failing? 😅

@manjotsidhu
Copy link
Member

@manjotsidhu could you give some info to fix the CI failing? 😅

The CI is not failing due to your changes.

@aman-singh7
Copy link
Member Author

@manjotsidhu can you now run the workflow? I have rebased the branch with master initially I just merged the master.

@coveralls
Copy link

coveralls commented Nov 26, 2021

Pull Request Test Coverage Report for Build 1610222365

  • 37 of 139 (26.62%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-1.2%) to 72.302%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/utils/router.dart 0 2 0.0%
lib/services/local_storage_service.dart 0 5 0.0%
lib/ui/views/ib/ib_page_view.dart 12 18 66.67%
lib/viewmodels/ib/ib_page_viewmodel.dart 0 12 0.0%
lib/models/ib/ib_showcase.dart 1 19 5.26%
lib/ui/views/ib/ib_landing_view.dart 24 51 47.06%
lib/viewmodels/ib/ib_landing_viewmodel.dart 0 32 0.0%
Files with Coverage Reduction New Missed Lines %
lib/ui/views/ib/ib_landing_view.dart 1 66.21%
Totals Coverage Status
Change from base Build 1605446927: -1.2%
Covered Lines: 3879
Relevant Lines: 5365

💛 - Coveralls

@manjotsidhu
Copy link
Member

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

@aman-singh7
Copy link
Member Author

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

The logic to trigger the Drawer Showcase is currently written inside ValueListenableBuilder. So, it will triggered (if not pressed earlier) when there is a content button on that screen

@manjotsidhu
Copy link
Member

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

The logic to trigger the Drawer Showcase is currently written inside ValueListenableBuilder. So, it will triggered (if not pressed earlier) when there is a content button on that screen

I think I opened drawer button earlier so that might be the reason.

@manjotsidhu
Copy link
Member

I tested again, it triggered drawer showcase an reaching next pages.

@manjotsidhu
Copy link
Member

Screenrecorder-2021-11-26-19-39-01-11.mp4

@aman-singh7
Copy link
Member Author

I tested again, it triggered drawer showcase an reaching next pages.

I am updating the state of button clicked in onTargetClick. Until and unless button is not pressed in showcaseview it is going to show.

@aman-singh7
Copy link
Member Author

aman-singh7 commented Nov 26, 2021

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

The logic to trigger the Drawer Showcase is currently written inside ValueListenableBuilder. So, it will triggered (if not pressed earlier) when there is a content button on that screen

*If not pressed implies if not pressed when showcased.

@manjotsidhu
Copy link
Member

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

The logic to trigger the Drawer Showcase is currently written inside ValueListenableBuilder. So, it will triggered (if not pressed earlier) when there is a content button on that screen

*If not pressed implies if not pressed when showcased.

Then the drawer showcase should be independent of toc being there or not. Drawer showcase is important initially.

@aman-singh7
Copy link
Member Author

While testing, after showcasing next and previous buttons, it didn't show drawer showcase until I went to next/previous page. Is this intended ?

The logic to trigger the Drawer Showcase is currently written inside ValueListenableBuilder. So, it will triggered (if not pressed earlier) when there is a content button on that screen

*If not pressed implies if not pressed when showcased.

Then the drawer showcase should be independent of toc being there or not. Drawer showcase is important initially.

Cool.. I will seperate it from toc.

@aman-singh7
Copy link
Member Author

Screenrecorder-2021-12-03-00-03-56-995.mp4

@manjotsidhu I have updated the logic of showcasing. I have a doubt that the current implementation forces the user to click on the button when showcased otherwise it is going to showcase after every page changed. Do we need to force the user or not showcase the button which are previously clicked.

@manjotsidhu
Copy link
Member

Screenrecorder-2021-12-03-00-03-56-995.mp4

@manjotsidhu I have updated the logic of showcasing. I have a doubt that the current implementation forces the user to click on the button when showcased otherwise it is going to showcase after every page changed. Do we need to force the user or not showcase the button which are previously clicked.

We should not ideally force the user to click the button, if the user dismisses the showcase then it is safe to say that our showcasing is done and no need to show showcase again.

@aman-singh7 aman-singh7 force-pushed the ib_showcase branch 2 times, most recently from 3b79878 to 31afb98 Compare December 8, 2021 20:15
@aman-singh7
Copy link
Member Author

@manjotsidhu can you now test the showcase?

@Nitish145
Copy link
Member

@manjotsidhu is the showcase working fine?

@manjotsidhu
Copy link
Member

Apologies for late reply, thanks for your contribution. I will test the showcase tonight but we will need to fix for iOS as well in order to merge. Would have been better if you have made a new PR for 2.8 since this PR's scope was showcase and we are also including fixes for 2.8.

@aman-singh7
Copy link
Member Author

Apologies for late reply, thanks for your contribution. I will test the showcase tonight but we will need to fix for iOS as well in order to merge. Would have been better if you have made a new PR for 2.8 since this PR's scope was showcase and we are also including fixes for 2.8.

Ok, I will make a separate PR for 2.8

Copy link
Member

@manjotsidhu manjotsidhu left a comment

Choose a reason for hiding this comment

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

✅ Tested and working perfectly on Android
✅ Implementation LGTM 👍

@manjotsidhu manjotsidhu merged commit 0970ada into CircuitVerse:master Dec 22, 2021
@aman-singh7 aman-singh7 deleted the ib_showcase branch January 12, 2022 17:31
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.

[Interactive Book] Showcase and brief buttons and toggles at first launch.
4 participants