From 92895eae5c88dae4f73e1dfd34f5dd0aae84d9af Mon Sep 17 00:00:00 2001 From: Sherman Boyd Date: Mon, 27 Jan 2025 13:52:55 -0700 Subject: [PATCH 1/7] Fancy keycaps for Tutorial Card --- gui/src/components/mainInput/TutorialCard.tsx | 4 +-- gui/src/index.css | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/TutorialCard.tsx b/gui/src/components/mainInput/TutorialCard.tsx index c94f63598..3eb0da2ef 100644 --- a/gui/src/components/mainInput/TutorialCard.tsx +++ b/gui/src/components/mainInput/TutorialCard.tsx @@ -69,14 +69,14 @@ export function TutorialCard({ onClose }: TutorialCardProps) {
  • - Highlight code and press {getMetaKeyLabel() + "I"} to + Highlight code and press {getMetaKeyLabel()} + I to quickly make natural language edits
  • - Highlight code and press {getMetaKeyLabel() + "L"} to + Highlight code and press {getMetaKeyLabel()} + L to add it to the chat window
  • diff --git a/gui/src/index.css b/gui/src/index.css index ba8454b7b..f31f96f91 100644 --- a/gui/src/index.css +++ b/gui/src/index.css @@ -12,6 +12,18 @@ --vscode-editor-background: rgb(30, 30, 30); --vscode-editor-foreground: rgb(197, 200, 198); --vscode-textBlockQuote-background: rgba(255, 255, 255, 1); + + /* These vars control the colors of the kbd tag 3d keycap */ + --kbd-keycap-bg-color: #414859; + --kbd-keycap-border-color: #495265; + --kbd-text-color: #88b4b4; + --kbd-shadow-color: #2e3341; + --kbd-shadow-color-outer: #373e4b; + --kbd-shadow-tint: rgba(173, 212, 247, 0.4); + + /* Monospaced font for keycaps */ + --ifm-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, + Consolas, "Liberation Mono", "Courier New", monospace; } html, @@ -92,3 +104,27 @@ body { -webkit-line-clamp: 1; -webkit-box-orient: vertical; } + +kbd { + display: inline-block; + padding: 0.3em 0.4em; + margin: 0.1em 0.4em; + font-family: var( + --ifm-font-family-monospace + ); /* You might need to define this variable */ + font-size: 0.8rem; + font-weight: 500; + line-height: 0.8; + color: var(--kbd-text-color); + text-align: center; + white-space: nowrap; + background-color: var(--kbd-keycap-bg-color); + border: 1px solid var(--kbd-keycap-border-color); + border-radius: 0.3em; + box-shadow: + 0 2px 0 1px var(--kbd-shadow-color), + 0 3px 0 2px var(--kbd-shadow-color-outer), + 0 4px 6px var(--kbd-shadow-tint); + position: relative; + top: 0; +} From d02c6035aa4192e26fb9130d6dae066be2a380a8 Mon Sep 17 00:00:00 2001 From: Sherman Boyd Date: Tue, 28 Jan 2025 10:27:47 -0700 Subject: [PATCH 2/7] Remove CSS styling for --- gui/src/index.css | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/gui/src/index.css b/gui/src/index.css index f31f96f91..bef155dbd 100644 --- a/gui/src/index.css +++ b/gui/src/index.css @@ -8,22 +8,9 @@ --button-color: rgb(113, 28, 59); --button-color-hover: rgba(113, 28, 59, 0.667); --def-border-radius: 5px; - --vscode-editor-background: rgb(30, 30, 30); --vscode-editor-foreground: rgb(197, 200, 198); --vscode-textBlockQuote-background: rgba(255, 255, 255, 1); - - /* These vars control the colors of the kbd tag 3d keycap */ - --kbd-keycap-bg-color: #414859; - --kbd-keycap-border-color: #495265; - --kbd-text-color: #88b4b4; - --kbd-shadow-color: #2e3341; - --kbd-shadow-color-outer: #373e4b; - --kbd-shadow-tint: rgba(173, 212, 247, 0.4); - - /* Monospaced font for keycaps */ - --ifm-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, - Consolas, "Liberation Mono", "Courier New", monospace; } html, @@ -104,27 +91,3 @@ body { -webkit-line-clamp: 1; -webkit-box-orient: vertical; } - -kbd { - display: inline-block; - padding: 0.3em 0.4em; - margin: 0.1em 0.4em; - font-family: var( - --ifm-font-family-monospace - ); /* You might need to define this variable */ - font-size: 0.8rem; - font-weight: 500; - line-height: 0.8; - color: var(--kbd-text-color); - text-align: center; - white-space: nowrap; - background-color: var(--kbd-keycap-bg-color); - border: 1px solid var(--kbd-keycap-border-color); - border-radius: 0.3em; - box-shadow: - 0 2px 0 1px var(--kbd-shadow-color), - 0 3px 0 2px var(--kbd-shadow-color-outer), - 0 4px 6px var(--kbd-shadow-tint); - position: relative; - top: 0; -} From 682ef31ee393fd65c10355bc9c9183aa44e509a6 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 29 Jan 2025 22:49:31 -0800 Subject: [PATCH 3/7] try again --- .github/workflows/pr_checks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 81fb93701..77156499a 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -70,8 +70,8 @@ jobs: core-checks: needs: install-core runs-on: ubuntu-latest - # Tests requiring secrets need approval from maintainers - environment: ${{ github.event.pull_request.head.repo.fork && 'tests-requiring-secrets' || '' }} + # Tests requiring secrets need approval from maintainers. + environment: ${{ github.event.pull_request.head.repo.fork == true && 'tests-requiring-secrets' || '' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 From 8b3b3e00da401466041960ff3018aad4b8b951e1 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 29 Jan 2025 23:00:04 -0800 Subject: [PATCH 4/7] use pr target --- .github/workflows/pr_checks.yaml | 82 +++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 77156499a..1d7170957 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -1,7 +1,7 @@ name: PR checks on: - pull_request: + pull_request_target: branches: - main paths: @@ -9,7 +9,6 @@ on: - "extensions/vscode/**" - "core/**" - "gui/**" - - ".github/workflows/**" push: branches: @@ -22,10 +21,21 @@ on: - ".github/workflows/**" jobs: + validate-pr: + runs-on: ubuntu-latest + environment: ${{ github.event.pull_request.head.repo.fork && 'tests-requiring-secrets' || '' }} + steps: + - uses: actions/checkout@v4 + install-root: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -45,6 +55,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -74,6 +89,11 @@ jobs: environment: ${{ github.event.pull_request.head.repo.fork == true && 'tests-requiring-secrets' || '' }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -103,6 +123,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -134,6 +159,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -164,6 +194,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -200,6 +235,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -233,6 +273,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -264,6 +309,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -290,6 +340,10 @@ jobs: test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Cache node modules uses: actions/cache@v3 @@ -317,6 +371,11 @@ jobs: needs: [install-vscode, install-core] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -349,6 +408,11 @@ jobs: needs: [install-vscode, install-core] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -397,6 +461,11 @@ jobs: command: ["e2e:ci:run", "e2e:ci:run-yaml"] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -459,6 +528,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -490,6 +564,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + # This is important - it switches from the base repo to the fork + repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: actions/cache@v4 with: From 6fd8ea7eb82c8768c57a2a7ad1b5561d7761c0fd Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 29 Jan 2025 23:02:11 -0800 Subject: [PATCH 5/7] improve spacing --- core/core.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core.ts b/core/core.ts index 3aa8f0393..c52d4b076 100644 --- a/core/core.ts +++ b/core/core.ts @@ -289,6 +289,7 @@ export class Core { on("config/ideSettingsUpdate", (msg) => { this.configHandler.updateIdeSettings(msg.data); }); + on("config/listProfiles", (msg) => { return this.configHandler.listProfiles(); }); From 94d8769a2d07bdfc602876cb0e965b01143400c0 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 29 Jan 2025 23:06:50 -0800 Subject: [PATCH 6/7] update --- .github/workflows/pr_checks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 1d7170957..f0e87df93 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -9,6 +9,7 @@ on: - "extensions/vscode/**" - "core/**" - "gui/**" + - ".github/workflows/**" push: branches: From 8c9953b032d71c9d238bbc8825b79fc92d60d080 Mon Sep 17 00:00:00 2001 From: Sherman Boyd Date: Fri, 31 Jan 2025 22:33:15 -0700 Subject: [PATCH 7/7] Create keycaps-todo.md --- keycaps-todo.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 keycaps-todo.md diff --git a/keycaps-todo.md b/keycaps-todo.md new file mode 100644 index 000000000..0004cd0ad --- /dev/null +++ b/keycaps-todo.md @@ -0,0 +1,15 @@ +gui\src\components\mainInput\TutorialCard.tsx + +![image](https://github.com/user-attachments/assets/2e682fe1-b5b4-4d2d-a615-645b409fefb1) + +![image](https://github.com/user-attachments/assets/d4b5f474-c8b8-478e-867d-aa9f8a2f0fbb) + +gui\src\components\modelSelection\ModelSelect.tsx + +![image](https://github.com/user-attachments/assets/346b6774-fa3b-462c-af25-fe6264457387) + +![image](https://github.com/user-attachments/assets/2881c290-f5a6-4b3d-8f36-8fece492e346) + +gui\src\components\modelSelection\platform\AssistantSelect.tsx + +???