wordplaydev / wordplay

An accessible, language-inclusive programming language and IDE for creating interactive typography on the web.
Other
55 stars 19 forks source link

Dragging from Guide results in emotes to show instead of words #506

Open thesmolcoder opened 4 days ago

thesmolcoder commented 4 days ago

Expected behavior

When in the all-text mode, if you drag from the guide, it stays in the localized mode which is the emoji. It is expected that dragging from the guide while in the all-text mode would result in the item being dragged to be in all-text

Actual behavior

  1. Be in all-text mode by clicking on the world symbol
  2. Go to 'Guide'
  3. Drag a function onto the editor
  4. Notice the dragged function is in localized mode

Screenshots

Screenshot 2024-07-01 at 3 46 09 PM

Environment

Desktop

OS + version: Mac OS 14.5 Browser + version: Brave Version 1.67.119 Chromium: 126.0.6478.114 (Official Build) (arm64)

amyjko commented 3 days ago

Ah, interesting case. I can see why that would be a reasonable expectation. At the moment, it's just copying exactly what is in the guide verbatim, without modifying any of the references.

I think one issue here is communicating expectations about what that switch does. Currently, the two behaviors are 1) show all localized text, no matter how many different translations are included, or 2) only show text in the currently selected locales. So it has nothing to do with emoji/non-emoji names.

So there are a few ways forward on this issue:

What do you think would be the more useful behavior?

thesmolcoder commented 3 days ago

I think the third mode may be better to allow for an alternative option but I feel better clarification also may be needed. I got a bit confused about what each was doing and this may have been due to seeing the 'en' so I automatically thought it was supposed to be in the language that I had it set to and was not expecting to see any symbols. Whereas when I saw the world symbol, I was expecting to see the symbols (Thinking of it as world languages and the symbols would be something most would understand without having to communicate in solely one language). Some may prefer to only see words/characters in their language and no symbols at all.

amyjko commented 3 days ago

I've thought about this design and think a way to proceed is as follows: