Skip to content

Commit

Permalink
feat: ai fix html (#467)
Browse files Browse the repository at this point in the history
* feat: ai fix html

* fix: add event listener conditionally
  • Loading branch information
teodora-sandu authored Jun 11, 2024
1 parent 1b3bde0 commit 3cfd254
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 30 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Snyk Security Changelog

## [2.12.0]
- Renders the AI Fix panel and adds more custom styling for VSCode.
- Adds position line interaction.

## [2.10.2]
- Remove snyk/codeclient dependancy.

## [2.10.1]
## [2.11.0]
- Add warning messages in the Tree View for the issue view options used in consistent ignores.
- Add Data Flow and Ignore Footer intractions for Consistent Ignores flows.
- Fix endpoint computation based on custom endpoint.
- Remove snyk/codeclient dependancy.

## [2.10.0]
- Injects custom styling for the HTML panel used by Snyk Code for consistent ignores.
Expand Down
46 changes: 39 additions & 7 deletions media/views/snykCode/suggestion/suggestionLS.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
@import '../../common/vscode';
@import '../../common/webview';

body {
position: relative;
display: inline-flex;
flex-direction: column;
width: 100%;
height: 100%;
margin: 0;
font-size: 1.4rem;
}

.severity-title {
font-size: 1.6rem;
font-weight: 500;
line-height: 2.4rem;
text-transform: capitalize;
}

.ignore-warning {
background: #FFF4ED;
color: #B6540B;
Expand All @@ -14,8 +34,6 @@
color: var(--vscode-textLink-foreground);
}

.tabs-nav {}

.tab-item {
color: var(--vscode-foreground);
border-bottom: 1px solid transparent;
Expand All @@ -25,28 +43,38 @@
fill: var(--tab-item-github-icon-color);
}

.tab-item:hover {}

.tab-item.is-selected {
border-bottom: 3px solid var(--vscode-focusBorder);
}

.tab-content {
background-color: var(--vscode-editor-background);
}

.ignore-details-header,
.data-flow-header,
.ai-fix-header,
.example-fixes-header {
text-transform: uppercase;
}

.data-flow-number,
.data-flow-clickable-row,
.data-flow-delimiter,
.data-flow-text {
background-color: transparent;
border-color: transparent;
padding: 0px;
}

.ignore-details-tab,
.fix-analysis-tab,
.vuln-overview-tab {
text-transform: uppercase;
}

.example {
border: 1px solid var(--vscode-input-border);
background-color: var(--vscode-editor-background);
}

.example-line-number,
.example-line>code {
color: var(--vscode-editor-foreground);
Expand Down Expand Up @@ -108,3 +136,7 @@
border-color: var(--vscode-button-hoverBackground);
color: var(--vscode-button-foreground);
}

.sn-fix-wrapper {
background-color: var(--vscode-editor-background);
}
Loading

0 comments on commit 3cfd254

Please sign in to comment.