Skip to content

Commit 8486833

Browse files
committed
Add manual check for updates command with periodic update checks and UI notifications
- create 'check for updates' command. update the frontend app to use this command via message passing. The update checking interval should be placed in `apps/editor/src/views/prompt/backend/prompt-view-provider.ts`, effecively removing the `apps/editor/src/views/prompt/frontend/hooks/use-update-check.ts` hook. - translate [Fragment] - in this state [Fragment] place button 'Update' on the notification. place contents of `apps/editor/src/views/prompt/backend/message-handlers/handle-update-extension.ts` in `apps/editor/src/utils` for reusability ├── apps │ └── editor │ ├── package.json │ ├── package.nls.bg.json │ ├── package.nls.cs.json │ ├── package.nls.de.json │ ├── package.nls.es.json │ ├── package.nls.fr.json │ ├── package.nls.hu.json │ ├── package.nls.it.json │ ├── package.nls.ja.json │ ├── package.nls.json │ ├── package.nls.ko.json │ ├── package.nls.pl.json │ ├── package.nls.pt-br.json │ ├── package.nls.ru.json │ ├── package.nls.tr.json │ ├── package.nls.zh-cn.json │ ├── package.nls.zh-tw.json │ └── src │ ├── commands │ │ ├── check-for-updates-command.ts │ │ └── index.ts │ ├── extension.ts │ ├── i18n │ │ └── translations │ │ └── commands │ │ ├── check-for-updates-command.ts │ │ ├── copy-markdown-command.ts │ │ ├── index.ts │ │ └── new-file-command.ts │ ├── utils │ │ ├── commit-message-details.ts │ │ ├── copy-optimised-recursively.ts │ │ └── update-extension.ts │ └── views │ └── prompt │ ├── backend │ │ ├── message-handlers │ │ │ ├── handle-update-extension.ts │ │ │ └── index.ts │ │ └── prompt-view-provider.ts │ ├── frontend │ │ ├── Home │ │ │ └── Home.tsx │ │ ├── Main │ │ │ ├── Main.tsx │ │ │ └── MainView │ │ │ ├── MainView.tsx │ │ │ └── components │ │ │ └── Header │ │ │ ├── Header.module.scss │ │ │ └── Header.tsx │ │ ├── Prompt.tsx │ │ └── hooks │ │ ├── use-alt-pressed.ts │ │ ├── use-api-configuration-editing.ts │ │ ├── use-cli-configuration-editing.ts │ │ ├── use-editor-sync.ts │ │ ├── use-is-landscape.ts │ │ ├── use-modal-manager.ts │ │ ├── use-preview-manager.ts │ │ ├── use-prompt │ │ │ ├── hooks │ │ │ │ └── use-instructions.ts │ │ │ ├── index.ts │ │ │ └── use-prompt.ts │ │ ├── use-recent-donations.ts │ │ ├── use-response-history.ts │ │ └── use-web-configuration-editing.ts │ └── types │ └── messages.ts └── packages └── ui └── src └── components └── editor └── common └── Button ├── Button.module.scss └── Button.tsx
1 parent 3557109 commit 8486833

30 files changed

Lines changed: 257 additions & 124 deletions

‎apps/editor/package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@
433433
"title": "%codeWebChat.copyMergeCommitDetails.title%",
434434
"category": "%codeWebChat.category%",
435435
"icon": "$(copy)"
436+
},
437+
{
438+
"command": "codeWebChat.checkForUpdates",
439+
"title": "%codeWebChat.checkForUpdates.title%",
440+
"category": "%codeWebChat.category%"
436441
}
437442
],
438443
"submenus": [

‎apps/editor/package.nls.bg.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Маркирай пътищата от клипборда...",
6060
"codeWebChat.selectParentFolder.title": "Избери родителска папка...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Копиране на детайлите на обединените къмити",
62+
"codeWebChat.checkForUpdates.title": "Проверка за актуализации...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.cs.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Vybrat cesty ze schránky...",
6060
"codeWebChat.selectParentFolder.title": "Vybrat nadřazenou složku...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Kopírovat podrobnosti sloučených commitů",
62+
"codeWebChat.checkForUpdates.title": "Zkontrolovat aktualizace...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.de.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Zwischenablage-Pfade auswählen...",
6060
"codeWebChat.selectParentFolder.title": "Übergeordneten Ordner auswählen...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Details der zusammengefassten Commits kopieren",
62+
"codeWebChat.checkForUpdates.title": "Nach Updates suchen...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.es.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Seleccionar rutas del portapapeles...",
6060
"codeWebChat.selectParentFolder.title": "Seleccionar carpeta principal...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Copiar detalles de commits agrupados",
62+
"codeWebChat.checkForUpdates.title": "Buscar actualizaciones...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.fr.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Sélectionner les chemins du presse-papiers...",
6060
"codeWebChat.selectParentFolder.title": "Sélectionner le dossier parent...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Copier les détails des commits fusionnés",
62+
"codeWebChat.checkForUpdates.title": "Vérifier les mises à jour...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.hu.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Vágólap útvonalainak kijelölése...",
6060
"codeWebChat.selectParentFolder.title": "Szülő mappa kiválasztása...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Egyesített commit részletek másolása",
62+
"codeWebChat.checkForUpdates.title": "Frissítések keresése...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.it.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Seleziona percorsi dagli appunti...",
6060
"codeWebChat.selectParentFolder.title": "Seleziona cartella superiore...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Copia i dettagli dei commit uniti",
62+
"codeWebChat.checkForUpdates.title": "Controlla aggiornamenti...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.ja.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "クリップボードのパスを選択...",
6060
"codeWebChat.selectParentFolder.title": "親フォルダーを選択...",
6161
"codeWebChat.copyMergeCommitDetails.title": "マージされたコミットの詳細をコピー",
62+
"codeWebChat.checkForUpdates.title": "更新を確認...",
6263
"codeWebChat.category": "CWC"
6364
}

‎apps/editor/package.nls.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"codeWebChat.selectClipboardPaths.title": "Select Clipboard Paths...",
6060
"codeWebChat.selectParentFolder.title": "Select Parent Folder...",
6161
"codeWebChat.copyMergeCommitDetails.title": "Copy Merge Commit Details",
62+
"codeWebChat.checkForUpdates.title": "Check for Updates...",
6263
"codeWebChat.category": "CWC"
6364
}

0 commit comments

Comments
 (0)