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

warn on empty blowpipe import #396

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

warn on empty blowpipe import #396

wants to merge 1 commit into from

Conversation

LlemonDuck
Copy link
Collaborator

Doesn't fully solve the issue, since we still need to fix the import flow to preserve the blowpipe ammo, but this at least prevents users loading empty blowpipes unknowingly and seeing incorrect results.

Closes #293

Doesn't fully solve the issue, since we still need to fix the import flow to preserve the blowpipe ammo, but this at least prevents users loading empty blowpipes unknowingly and seeing incorrect results.

Closes #293
Copy link
Member

@jayktaylor jayktaylor left a comment

Choose a reason for hiding this comment

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

I really don't like the current UI behaviour of this (see video below). I think two things need to happen:

  1. The warning should not require us to wait for a worker response before showing it. It's an issue that the frontend can raise instantly based on the current Mobx state. This would prevent the flickering seen on the video, and the shift of DOM elements around.
  2. If more than one "global" issue should be displayed, then we shouldn't just stack them on top of each other. It looks messy, and pushes everything down. We should re-think how the "global" issues are presented.

Also, we should change the message to something less technical, since the audience using this aren't going to understand it. Maybe:

We couldn't determine what darts your blowpipe uses. Please re-select it from the equipment dropdown.

Screen.Recording.2024-07-02.at.16.58.55.mov

LlemonDuck added a commit that referenced this pull request Jul 3, 2024
This solves the export-import portion of #293, but we still need to handle warnings. This PR could be merged in the interim since it's strictly better than existing behaviour, albeit not being a full fix.

I've put this up as a separate PR from #396 in case we change the approach for errors away from that one.

If we can solve the data sourcing issue in wikisync, it will also be capable of specifying the dart id through the itemVars field.
jayktaylor pushed a commit that referenced this pull request Jul 4, 2024
This solves the export-import portion of #293, but we still need to handle warnings. This PR could be merged in the interim since it's strictly better than existing behaviour, albeit not being a full fix.

I've put this up as a separate PR from #396 in case we change the approach for errors away from that one.

If we can solve the data sourcing issue in wikisync, it will also be capable of specifying the dart id through the itemVars field.
@LlemonDuck LlemonDuck marked this pull request as draft July 9, 2024 18:17
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.

Using a blowpipe with no darts should be a no-op & show a warning
2 participants