Implement "What's New" feature with auto-update notification#453
Implement "What's New" feature with auto-update notification#453Power-Maverick merged 5 commits intodevfrom
Conversation
…nd markdown rendering
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
There was a problem hiding this comment.
Pull request overview
Adds a VS Code-style “What’s New” experience in the renderer that loads release notes from a configurable updates origin, can be opened from the app menu, and auto-opens after an auto-update install.
Changes:
- Introduces a shared markdown rendering utility and updates marketplace README rendering to use it.
- Adds a new “What’s New” tab/module in the renderer, including external-link wiring and remote markdown fetching.
- Persists an auto-update “pending What’s New” marker in settings and triggers the tab automatically after restart into the updated version.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Injects PPTB_UPDATES_ORIGIN as a build-time process.env.* define. |
| src/renderer/utils/markdown.ts | Adds shared “safe” markdown rendering + external link wiring. |
| src/renderer/modules/whatsNewManagement.ts | New module to render and fetch “What’s New” markdown into a detail-style tab. |
| src/renderer/modules/toolManagement.ts | Extends openToolDetailTab to support custom tab label suffixes. |
| src/renderer/modules/marketplaceManagement.ts | Switches README rendering to shared markdown utilities. |
| src/renderer/modules/initialization.ts | Listens for a new toolbox event to open the “What’s New” tab via dynamic import. |
| src/renderer/index.html | Updates CSP to allow connecting to / loading images from www.powerplatformtoolbox.com; minor formatting. |
| src/main/index.ts | Adds menu item, stores pending version on update download, and auto-opens “What’s New” after restart. |
| src/common/types/settings.ts | Adds pendingWhatsNewVersion to user settings type. |
| .github/workflows/nightly-release.yml | Renames nightly prerelease suffix/tagging from beta to dev. |
| .env.example | Documents PPTB_UPDATES_ORIGIN env var. |
You can also share your feedback on Copilot code review. Take the survey.
|
@Power-Maverick I've opened a new pull request, #454, to work on those changes. Once the pull request is ready, I'll request review from you. |
…on and update URLs accordingly
* Initial plan * fix: make CSP reflect configured PPTB_UPDATES_ORIGIN at build time via Vite transformIndexHtml Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
1 similar comment
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
There was a problem hiding this comment.
Pull request overview
Adds a VS Code–style “What’s New” experience in the renderer, backed by remotely fetched markdown release notes and a configurable updates origin that’s injected into both runtime env (process.env.*) and the renderer CSP at build time.
Changes:
- Add a shared markdown rendering utility that escapes raw HTML and wires external links.
- Introduce a new “What’s New” tab/module and trigger it from both the app menu and post-auto-update restart.
- Make the updates content origin configurable via
PPTB_UPDATES_ORIGINand inject it into the renderer CSP.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Defines/injects PPTB_UPDATES_ORIGIN and adds an HTML transform plugin to patch the CSP placeholder at build time. |
| src/renderer/index.html | Adds __PPTB_UPDATES_ORIGIN__ placeholder into CSP img-src and connect-src. |
| src/renderer/utils/markdown.ts | New shared “safe markdown to HTML” renderer + external link wiring. |
| src/renderer/modules/marketplaceManagement.ts | Switches README rendering/link handling to the shared markdown utility. |
| src/renderer/modules/whatsNewManagement.ts | New module to open a “What’s New” tab and fetch/render release notes markdown. |
| src/renderer/modules/toolManagement.ts | Extends openToolDetailTab to allow customizing tab label suffix (used by “What’s New”). |
| src/renderer/modules/initialization.ts | Listens for a new toolbox event to open the “What’s New” tab via dynamic import. |
| src/main/index.ts | Adds Help menu item, records pending version on update download, and auto-opens “What’s New” after restart. |
| src/common/types/settings.ts | Adds pendingWhatsNewVersion to user settings. |
| .github/workflows/nightly-release.yml | Renames nightly prerelease suffix from beta to dev. |
| .env.example | Documents PPTB_UPDATES_ORIGIN. |
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
|
@Power-Maverick I've opened a new pull request, #457, to work on those changes. Once the pull request is ready, I'll request review from you. |
There was a problem hiding this comment.
Pull request overview
Adds a VS Code-style “What’s New” experience in the renderer, including safe rendering of remote markdown and a configurable updates origin that’s also allowed by the renderer CSP.
Changes:
- Introduces a shared markdown-to-“safe HTML” utility and reuses it for marketplace README rendering.
- Adds a new “What’s New” detail tab (manually via menu, and auto-open after an auto-update restart).
- Adds
PPTB_UPDATES_ORIGINsupport (env + CSP injection) and updates insider build suffix from-betato-dev.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Injects PPTB_UPDATES_ORIGIN into build-time defines and into the renderer CSP meta tag. |
| src/renderer/index.html | Adds __PPTB_UPDATES_ORIGIN__ placeholder to CSP for connect/img sources. |
| src/renderer/utils/markdown.ts | New shared marked renderer + external link wiring for remote markdown. |
| src/renderer/modules/marketplaceManagement.ts | Switches README rendering to shared safe markdown utilities. |
| src/renderer/modules/whatsNewManagement.ts | New module to fetch/render release notes and open a “What’s New” tab. |
| src/renderer/modules/toolManagement.ts | Extends openToolDetailTab to allow a configurable tab label suffix. |
| src/renderer/modules/initialization.ts | Handles “show what’s new” toolbox event via dynamic import. |
| src/main/index.ts | Adds Help menu entry, sets/consumes pendingWhatsNewVersion to auto-open after update. |
| src/common/types/settings.ts | Adds pendingWhatsNewVersion to user settings typing. |
| .github/workflows/nightly-release.yml | Renames insider version suffix from -beta to -dev. |
| .env.example | Documents PPTB_UPDATES_ORIGIN. |
You can also share your feedback on Copilot code review. Take the survey.
…ort from toolIconResolver (#457)
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
Please fill in this template.