-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: ai fix html [IDE-375] #527
Conversation
95776f7
to
69c3ed0
Compare
69c3ed0
to
19f7511
Compare
19f7511
to
f27590f
Compare
f27590f
to
c5f8f52
Compare
c5f8f52
to
72654c3
Compare
72654c3
to
44683d2
Compare
44683d2
to
f643ef2
Compare
@@ -600,8 +947,9 @@ <h2 class="example-fixes-header">Fixed Code Examples</h2> | |||
}; | |||
|
|||
// Event listeners for main and nested tabs | |||
// TODO: move this into the HTML as an onclick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can simplify a lot of this code by just adding an onclick
attribute to these elements and in IntelliJ and VSCode we only implement the functions that these elements use. The changes are already complicated enough in this PR and its other two in our IDEs so I'd like to do that in a follow-up if there's time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you manage to test this view? The consistent ignores backend is broken at the moment (it was broken on Friday and I explained in the PR description and it seems still broken today), so I haven't been able to test this part of the UI (where we have an ignored issue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In dev, everything is working fine 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, did we say that is the issue is ignored, we don't show AI Fixes? I'm not sure now and I can't find references to this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the designs we're meant to show the Fix Analysis
tab: https://www.figma.com/design/hcI2QHUtHfcIjgrpYlMqff/Holistic-Ignores?node-id=2292-64060&t=nsuVsneQwSDwzp71-4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks it does work in dev indeed! I've pushed a fix in snyk/vscode-extension@b21e406
15554ec
to
d3cb0de
Compare
d3cb0de
to
6f26e4b
Compare
6f26e4b
to
54cba23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All rendering looks awesome! Just the JS seems to not work sometimes. I'm approving it so we can continue it in later iterations since you said you'd like to inline the onclicks :)
Which JS is that @cat2608 ? I probably will raise a ticket to add the onclicks because I think the manual testing of the feature is more important than code improvements at this moment, so if there are parts of the JS that don't work maybe I can work on those instead |
@teodora-sandu this was my setup when testing your change and when I left my comment here
event-listeners-error.mp4Now I can see that you have added The only thing remaining is the Fix Action itself: action-missing.mp4 |
Ah the error you're seeing is a backend error, the call to get the fix diffs seems to return |
Description
Moves over the common HTML and styling from VSCode so that eventually it can be used to render this panel in IntelliJ. In snyk/vscode-extension#467 we can see the changes needed to add extra styling and javascript for VSCode and in snyk/snyk-intellij-plugin#541 we completely hide this panel for IntelliJ.
Checklist
🚨After having merged, please update the CLI go.mod to pull in latest language server.
Screenshots / GIFs
See screenshots in linked PRs.