Repository navigation
Commit 8486833
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.tsx1 parent 3557109 commit 8486833
30 files changed
Lines changed: 257 additions & 124 deletions
File tree
- apps/editor
- src
- commands
- i18n/translations/commands
- utils
- views/prompt
- backend
- message-handlers
- frontend
- Home
- hooks
- use-prompt
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
436 | 441 | | |
437 | 442 | | |
438 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
0 commit comments