botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
38 stars 38 forks source link

feat(superinput): add styles to superinput #230

Closed rob-gordon closed 2 years ago

rob-gordon commented 2 years ago

Here's an overview of the base styles. One thing of note, I tried using the CodeMirror's javascript styling API, but I had weird behavior and ultimate found it more cumbersome than plain old CSS. If we think that will be an issue we can try to port it into the styling API but it worked well for me in development.

I tried to inherit from BlueprintJs as much as possible so that it will be visually seamless with the app.

@Raid55 I did change what the sample app interface looks like, just to have more screen real estate, but I'm happy to change it back if you preferred it the other way!

Basic Focus State Screen Shot 2021-12-22 at 11 10 54 AM

Valid Preview Screen Shot 2021-12-22 at 11 11 11 AM

Multiline Valid Preview Screen Shot 2021-12-22 at 11 11 20 AM

Invalid Preview Screen Shot 2021-12-22 at 11 12 00 AM

Context Menu / InfoCard

Note: I only styled the wrapper of the InfoCard here because the content in the InfoCard felt like a placeholder. As soon as we know what we can to include in the InfoCard I can style it accordingly.

Screen Shot 2021-12-22 at 11 12 21 AM

InspectCard Screen Shot 2021-12-22 at 12 15 16 PM


InfoCard

Evaluates to...

Screen Shot 2022-01-18 at 9 38 04 AM

Docs Link

https://user-images.githubusercontent.com/159949/149962055-6a072c50-9442-4d5b-b158-9de712683c2f.mov

Updated CodeMirror syntax highlighting

Sadly CodeMirror only differentiates between parent and property (not like function and arguments).

Screen Shot 2022-01-18 at 9 40 22 AM

Other Updates

linear[bot] commented 2 years ago
DEV-2170 [super input] Styling

First run at styling the superinput. * [X] Main input * [ ] Dropdown/autocomplete and side infocard * [ ] Javascript Theme, see `README` * [X] Fonts