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

Clicking ok on app hint when its over a menu option clicks the menu option 465 #468

Conversation

fabulouiOS-monk
Copy link
Collaborator

@fabulouiOS-monk fabulouiOS-monk commented Jun 16, 2024

Contributor checklist


Description

Made the swiftUI view as userInteracable so that the table view's option doesn't get clicked on click of OK on app hints.

NOTE: This is only initial commit to check whether it works or not.

Related issue

Copy link

github-actions bot commented Jun 16, 2024

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and iOS rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • The commit messages for the remote branch should be checked to make sure the contributor's email is set up correctly so that they receive credit for their contribution

    • The contributor's name and icon in remote commits should be the same as what appears in the PR
    • If there's a mismatch, the contributor needs to make sure that the email they use for GitHub matches what they have for git config user.email in their local Scribe-iOS repo
  • The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

@andrewtavis
Copy link
Member

andrewtavis commented Jun 16, 2024

As of now it's still not fixed, @fabulouiOS-monk. Here's a screen recoding from a 3rd gen iPhone SE simulator:

Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2024-06-16.at.14.44.12.mp4

So steps above are close it normally, reset the hints, scroll down and then try to close it when it's above the GitHub link, and instead we're taken to GitHub. Let me know if you have some thoughts here!

@fabulouiOS-monk
Copy link
Collaborator Author

@andrewtavis, in the latest commit, pushed the changes for the blink animation.

@andrewtavis
Copy link
Member

Hey @fabulouiOS-monk 👋 This is really great! One final comment on this now that I'm able to play around with it: Can we have the tip view show up only if it's at the top of the screen? As of now the condition is that if it's scrolling up, then we show the tip, but then if we scroll down and then scroll up a bit, then it still covers some of the menu options. I think that a conditional that the current scroll position is the default would be the easiest to assure that the tooltip isn't over a menu option :)

Thanks for all the hard work here!

@andrewtavis andrewtavis self-requested a review June 25, 2024 07:24
@fabulouiOS-monk
Copy link
Collaborator Author

Ok, will see the fix for it, @andrewtavis!

@fabulouiOS-monk
Copy link
Collaborator Author

@andrewtavis, the latest commit has the fix to show the tip card view only when the user is at the top. Please have a look 😃 !

@andrewtavis
Copy link
Member

Looking forward, @fabulouiOS-monk!

@andrewtavis
Copy link
Member

Hey @fabulouiOS-monk 👋 Made the speed that the tip view appears a bit faster, just from testing it out. Really wanted to bring it in, but then on testing with an iPhone 15 the functionality isn't working as the value of private var topContentOffset: CGFloat = 116 seems to be only for iPhone SE, so it breaks the functionality and the tip disappears without coming back on larger devices. Where is the value of 116 coming from? Are we able to define this programmatically such that it'll be changed based on device dimensions, etc?

@andrewtavis
Copy link
Member

Also a note for myself, if we can figure out programmatically what the location of the About hint view is, then it'd be nice if we could also set that value to the height of hostingController.view.frame in Installation here:

hostingController.view.frame = CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 178)

I'm realizing that the hint on the installation page is variable based on the height of the device, and the number we're looking for is likely similar for what to set 116 for in topContentOffset and 178 in Installation's hostingController.view.frame. Note that they don't seem to similar, but 116 is based on an iPhone SE, and I chose the value of 178 based on an iPhone 15 Pro Max. There's a good chance that both of these are being set to "What's vertical position of the About tip view relative to the top of the screen?" :)

Let me know on 116 and if you have any thoughts. Once again very close! After this we're done with tip views, I swear 😄

@fabulouiOS-monk
Copy link
Collaborator Author

Hey @fabulouiOS-monk 👋 Made the speed that the tip view appears a bit faster, just from testing it out. Really wanted to bring it in, but then on testing with an iPhone 15 the functionality isn't working as the value of private var topContentOffset: CGFloat = 116 seems to be only for iPhone SE, so it breaks the functionality and the tip disappears without coming back on larger devices. Where is the value of 116 coming from? Are we able to define this programmatically such that it'll be changed based on device dimensions, etc?

Oops! Let me check it. 😅 I was only checking in SE and not others.

@andrewtavis
Copy link
Member

All good, @fabulouiOS-monk! Happens :)

@fabulouiOS-monk
Copy link
Collaborator Author

@andrewtavis, pushed the fix for all types of devices. 😄 Hope it all works.

Copy link
Member

@andrewtavis andrewtavis left a comment

Choose a reason for hiding this comment

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

All working perfectly, @fabulouiOS-monk! Thanks so much for taking this feature and really delivering through the entire thing. So great that the hints are in the state they're now in 👏 Looking forward to the next feature with you!

@andrewtavis andrewtavis merged commit 857fedb into scribe-org:main Jun 29, 2024
1 check passed
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.

2 participants