-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Bug] 3rd screen of Flag content flashes and disappears #1145
Comments
@dcadenas @mplorentz - Did someone fix this? I no longer see it happening in Staging? |
I didn't |
I didn't, and I don't recall seeing a PR for it. |
@joshuatbrown - Did you by chance fix this bug? I'm not seeing it any more on mac and I could have sworn I tested this at some point in the past couple of weeks. |
@setch-l No, I didn't. I thought it happened for me the first time I try to report, but not again after that. Maybe that's what's going on here? I'd like to have one of us investigate and see if we can reproduce since I'm pretty sure I saw it again recently. |
I can't reproduce this on Staging 0.1.18 (325). Moving along to UAT. |
I am reproducing this intermittently on Staging 0.1.8 (327). Here are the steps I'm using:
It seems like some SwiftUI view is getting redrawn or some piece of state is being reset when some data finishes loading in the background. @setch-l I'm moving this back from UAT into the sprint, but feel free to adjust. |
After maybe too many hours of investigation, I think this is an issue with the way we're using SwiftUI and specifically its confirmation dialog (also known as an action sheet). As I understand it, it’s designed to be used for a single list of options where the user selects one, and then it disappears. Then SwiftUI shows a new sheet with the next set of options. I believe that sometimes it just doesn't show the next sheet because it's not really designed to them in series like this. I'm not confident we can fix this -- I've tried a number of ways and haven't found anything that works yet. We're using sheets to build a wizard of sorts -- a series of screens through which the user navigates, ending with sending the report. I'd suggest we do something more like what Apple does in Maps with the "Report an Issue" feature, where they present a single sheet, the user selects an option, then continues down the screen selecting more options or entering text. Finally, the user can tap "Send" to send the report. RPReplay_Final1723564748.MP4For our case, we could do something like this:
Technical NotesIn After the user selects a category (such as "Impersonation"), we set But sometimes that confirmation dialog appears then disappears. In those cases, something is setting Is this a race condition? Maybe. Is there a way to fix it? I don't know. I spent a lot of time debugging, logging, and trying different approaches. I upgraded I think Matt is right:
I'm just not sure how we can avoid it. I think the design isn't quite right anyway, so perhaps we can revisit that and make bigger changes to the code that'll eliminate the problem. Or maybe I'm just missing something easy and obvious, and someone else can make a one-line change that fixes this. 😀 Update: After discussing all of this with Martin, he suggested that we could try eliminating our dependency on Other things I tried:
|
@Chardot See my comment above (you can skip all the "Technical Notes"). Sounds like we'll be talking about this next week. |
@joshuatbrown Yes, I also like that design for the content flag wizard 👍 I tried it in Maps for macOS and it centers the wizard menu on the screen (unlike iOS where it is a bottom-sliding sheet). |
We ended up redesigning the workflow to use a different format. |
Steps to Reproduce:
Issue: the Send to Nos or Post publicly dialogue flashes for a second and then disappears
Expected: It should remain on the screen until the user takes action
This slack message has a video of the issue: https://planetary-app.slack.com/archives/CM4EPK324/p1715816908047509
The text was updated successfully, but these errors were encountered: