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

chore: add terminal #99

Merged

Conversation

magicmatatjahu
Copy link
Member

@magicmatatjahu magicmatatjahu commented Sep 30, 2021

Description

  • add Terminal component like in VSC
  • add Problems tab in the Terminal component to show all errors from our ParserJS: it shows all errors with appropriate line

image

Related issue(s)
See also #80

@magicmatatjahu magicmatatjahu added the enhancement New feature or request label Sep 30, 2021
@magicmatatjahu magicmatatjahu marked this pull request as ready for review October 1, 2021 10:45
Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

Got a few comments:

  • Can you please update the parser dependency, as 2.2 is not supported.
  • I get a "problem" that the terminal does not catch, I assume it is just a warning? That the AsyncAPI version is not supported. Anything that needs to be changed now?
    billede
  • You don't want to add a few tests, or are you planning to create them afterwards 😟 ?

<div
className="flex flex-row justify-between items-center px-2 border-b border-gray-700 text-white uppercase font-bold text-xs cursor-pointer"
onClick={e => {
const clientRects = e.currentTarget.parentElement?.parentElement?.getClientRects()[0];
Copy link
Member

Choose a reason for hiding this comment

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

🧐

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes 😅 I need to get how many pixels away from the bottom of an element so that the terminal closes itself on click - I am taking a few pixel adjustments to improve the UX.

@magicmatatjahu
Copy link
Member Author

@jonaslagoni

  • Can you please update the parser dependency, as 2.2 is not supported. - all deps are bumped
  • I get a "problem" that the terminal does not catch, I assume it is just a warning? That the AsyncAPI version is not supported. Anything that needs to be changed now? - strange, I can use 2.0.0 without any warning:

image

  • You don't want to add a few tests, or are you planning to create them afterwards 😟 ? - I had a plan from beginning to create them afterwards :)

@jonaslagoni
Copy link
Member

jonaslagoni commented Oct 1, 2021

* `I get a "problem" that the terminal does not catch, I assume it is just a warning? That the AsyncAPI version is not supported. Anything that needs to be changed now?` - strange, I can use `2.0.0` without any warning:

I could make it disappear as well, no idea how, as I refreshed the window it reappeared.

@magicmatatjahu
Copy link
Member Author

@jonaslagoni Ok, it should be fixed now :)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@magicmatatjahu magicmatatjahu merged commit 2068441 into asyncapi:spa-scratch Oct 1, 2021
@magicmatatjahu magicmatatjahu deleted the spa-scratch/terminal branch October 1, 2021 13:39
@magicmatatjahu
Copy link
Member Author

@jonaslagoni Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants