-
Notifications
You must be signed in to change notification settings - Fork 9
Disable pattern CF-2151 #185
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c77abee
fix: Distinguish Issue details from CLI
inesgomas c2e63c3
feature: Create base scenarios for disable pattern CF-2151
inesgomas 81f6875
feature: Add webview for coding standards CF-2151
inesgomas 88890eb
clean: Isolate css and js in seperated files CF-2151
inesgomas 02a935e
fix: Fix standard link CF-2151
inesgomas ff6bfa5
fix: Apply suggestions from copilot CF-2151
inesgomas b63bbae
feature: Add refresh action CF-2151
inesgomas 0b311aa
fix: Apply copilot suggestions CF-2151
inesgomas 33c0d56
Add disable for CLI CF-2151
inesgomas e6a75b3
fix: Use standards related to pattern instead of all standards CF-2151
inesgomas 2f13a88
fix: Add pattern title to action to be able to distinguish actions CF…
inesgomas b7b9ae4
nitpick
inesgomas f1a9a54
Update src/views/IssueDetailsProvider.ts
inesgomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| //@ts-check | ||
| /// <reference lib="dom" /> | ||
|
|
||
| /* global acquireVsCodeApi, document */ | ||
|
|
||
| /** | ||
| * @typedef {Object} VsCodeApi | ||
| * @property {function(Object): void} postMessage | ||
| * @property {function(): Object} getState | ||
| * @property {function(Object): void} setState | ||
| */ | ||
|
|
||
| ;(function () { | ||
| /** @type {VsCodeApi} */ | ||
| // @ts-expect-error - acquireVsCodeApi is provided by VS Code webview API | ||
| const vscode = acquireVsCodeApi() | ||
|
|
||
| document.addEventListener('DOMContentLoaded', function () { | ||
| const copyPatternButton = document.querySelector('.copy-pattern-button') | ||
| if (copyPatternButton) { | ||
| copyPatternButton.addEventListener('click', function () { | ||
| const patternTitle = this.getAttribute('data-pattern-title') | ||
| if (patternTitle) { | ||
| vscode.postMessage({ type: 'copyPattern', patternTitle: patternTitle }) | ||
| } | ||
| }) | ||
| } | ||
|
|
||
| const refreshButton = document.querySelector('.refresh-button') | ||
| if (refreshButton) { | ||
| refreshButton.addEventListener('click', function () { | ||
| vscode.postMessage({ type: 'refreshIssues' }) | ||
| }) | ||
| } | ||
| }) | ||
| })() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| * { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| body { | ||
| font-family: var(--vscode-font-family); | ||
| font-size: var(--vscode-font-size); | ||
| color: var(--vscode-foreground); | ||
| background-color: var(--vscode-editor-background); | ||
| padding: 40px; | ||
| line-height: 1.6; | ||
| } | ||
|
|
||
| h1 { | ||
| font-size: 24px; | ||
| font-weight: 500; | ||
| color: var(--vscode-foreground); | ||
| margin-bottom: 16px; | ||
| } | ||
|
|
||
| .intro-text { | ||
| font-size: 14px; | ||
| color: var(--vscode-descriptionForeground); | ||
| margin-bottom: 28px; | ||
| } | ||
|
|
||
| .step-card { | ||
| border: 1px solid var(--vscode-panel-border); | ||
| border-radius: 8px; | ||
| padding: 16px; | ||
| margin-bottom: 24px; | ||
| } | ||
|
|
||
| .step-header { | ||
| display: flex; | ||
| align-items: center; | ||
| margin-bottom: 12px; | ||
| } | ||
|
|
||
| .step-number { | ||
| width: 15px; | ||
| height: 15px; | ||
| border-radius: 50%; | ||
| background-color: var(--vscode-button-background); | ||
| color: var(--vscode-button-foreground); | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-weight: 700; | ||
| font-size: 9px; | ||
| margin-right: 8px; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .step-title { | ||
| font-size: 14px; | ||
| font-weight: 600; | ||
| color: var(--vscode-foreground); | ||
| } | ||
|
|
||
| .step-description { | ||
| font-size: 14px; | ||
| color: var(--vscode-descriptionForeground); | ||
| margin-bottom: 16px; | ||
| margin-left: 24px; | ||
| } | ||
|
|
||
| .standards-list { | ||
| list-style: none; | ||
| padding: 0; | ||
| margin: 0; | ||
| margin-left: 24px; | ||
| } | ||
|
|
||
| .standards-list li { | ||
| margin-bottom: 16px; | ||
| } | ||
|
|
||
| .standards-list a { | ||
| color: var(--vscode-textLink-foreground); | ||
| text-decoration: none; | ||
| font-size: 13px; | ||
| font-weight: 700; | ||
| display: inline-flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .standards-list a:hover { | ||
| color: var(--vscode-textLink-activeForeground); | ||
| } | ||
|
|
||
| .standards-list a::after { | ||
| content: ' →'; | ||
| margin-left: 5px; | ||
| } | ||
|
|
||
| .copy-pattern-button { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 8px; | ||
| background-color: transparent; | ||
| border: 1px solid var(--vscode-panel-border); | ||
| border-radius: 4px; | ||
| padding: 8px; | ||
| font-size: 12px; | ||
| font-weight: 400; | ||
| color: var(--vscode-descriptionForeground); | ||
| cursor: pointer; | ||
| margin-left: 24px; | ||
| } | ||
|
|
||
| .copy-icon { | ||
| width: 16px; | ||
| height: 16px; | ||
| color: var(--vscode-descriptionForeground); | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .refresh-button { | ||
| background-color: var(--vscode-button-background); | ||
| color: var(--vscode-button-foreground); | ||
| border: 1px solid var(--vscode-button-border); | ||
| padding: 6px 12px; | ||
| font-size: 13px; | ||
| font-weight: 500; | ||
| cursor: pointer; | ||
| display: inline-block; | ||
| margin-left: 24px; | ||
| } | ||
|
inesgomas marked this conversation as resolved.
|
||
|
|
||
| .refresh-button:hover { | ||
| background-color: var(--vscode-button-hoverBackground); | ||
| } | ||
|
|
||
| .help-text { | ||
| margin-top: 28px; | ||
| font-size: 12px; | ||
| color: var(--vscode-descriptionForeground); | ||
| } | ||
|
|
||
| .help-text a { | ||
| color: var(--vscode-textLink-foreground); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .help-text a:hover { | ||
| color: var(--vscode-textLink-activeForeground); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.