Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Update $var search UI to make it clearer that there are more examples

Open MetroidSnacks opened this issue 1 year ago • 1 comments

Description of problem.

I needed the day of the week for an event for things I wanted to do. My initial solution was to substring and do math off of the $discordtimestamp and that is not the right solution. when I searched for 'time' and it wasn't clear to me that for one $time was able to accept arguments and two that there was an "other examples" thing for $time as well.

Image of problem: image

Proposed Solution. Consider treating the variable name line like a function header and show that there are 'more examples' or that a particular variable 'accepts arguments' and then clicking on it shows the 'other examples'

ex: $variableName [+] /x/ Other Examples

To explain what I wrote up: $variableName is the variable name in question [+] is the current "Add to Textfield" button that exists /x/ is just some un-clickable text. When you hover over it it should say "This $variable accepts optional arguments" to indicate to the user that this variable is able to accept arguments if desired Other Examples is the same link that currently appears below the description of the variable that reveals the other examples and ideally auto-scrolls that window so that its clear your click actually changed something on the page.

Including either /x/ or Other Examples or both to the same line as $variableName may help. But which one will depend on your longest $variableName and how that fits within the space you have provided in that window.

MetroidSnacks avatar Mar 18 '24 02:03 MetroidSnacks

I think this would help with users being able to better navigate the variable window in question. the Symbol that can be after the + can be either the ? information tooltip that is used everywhere else or a boxed down arrow

CKY- avatar Mar 18 '24 03:03 CKY-