DiceDB / playground-web

36 stars 45 forks source link

Display Squiggles for Invalid Command in Terminal Interface #38

Open sarthakkimtani opened 6 days ago

sarthakkimtani commented 6 days ago

When a user enters an invalid command in the web app's terminal interface, we need to visually indicate this error by displaying squiggles beneath the invalid command. This will help users quickly identify that their input was incorrect.

NOTE: To be fixed later once the initial app goes live.

Reference Image:

ref-image
codeshaine commented 5 days ago

can i try to tackle this issue ? If yes then do I need to underline the entire command or first word of the entire command ? And is it okay to make a list of valid commands in a file ?